re PR ipa/92883 (ICE in compare_values_warnv)
[gcc.git] / gcc / ChangeLog
1 2019-12-10 Jakub Jelinek <jakub@redhat.com>
2
3 PR ipa/92883
4 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
5 than *jfunc->m_vr to intersect. Formatting fix.
6
7 PR middle-end/92825
8 * cfgexpand.c (add_stack_protection_conflicts): Change return type
9 from void to bool, return true if at least one stack_vars[i].decl
10 is addressable.
11 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
12 (expand_used_vars): Don't call stack_protect_decl_p, instead for
13 -fstack-protector-strong set gen_stack_protect_signal to true
14 if add_stack_protection_conflicts returned true. Formatting fixes.
15 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
16 out variables or variables not living on the stack don't count.
17 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
18 rather than > 8 byte.
19
20 * ipa-param-manipulation.c
21 (ipa_param_body_adjustments::register_replacement): Fix comment typo
22 - accross -> across.
23 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
24 Likewise.
25 (param_splitting_across_edge): Fix typo in dump message - accross
26 -> across.
27
28 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
29
30 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
31 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
32 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
33 (expand_all_functions): First expand ordered section and then
34 unordered.
35 * profile.c (compute_value_histograms): Error on out of range
36 tp_first_runs.
37
38 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
39
40 * predict.c (compute_function_frequency): Check for presence of IPA
41 profile.
42
43 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
44
45 * varasm.c (default_function_section): Fix confused tests for
46 tp_first_run reordering.
47
48 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
49
50 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
51 allow SVE modes in GPRs.
52
53 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
54
55 * config/aarch64/iterators.md (vccore): New iterator.
56 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
57 of vwcore.
58 (*vec_series<mode>_plus): Likewise.
59
60 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
61
62 * omp-low.c (scan_omp_for): Use clause location in warning.
63
64 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
65
66 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
67 (add_const_value_attribute): Likewise.
68
69 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
70
71 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
72 handling direct_slp_reduc, allow the PHI arguments to have
73 a different type from the vector elements.
74
75 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
76
77 * tree-vect-stmts.c (vectorizable_condition): Record the loop
78 masks required for extract-last reductions.
79
80 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
81
82 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
83 original scalar statement rather than a pattern statement.
84 (vectorizable_condition): Likewise, in the handling of extract-last
85 reductions.
86
87 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
88
89 * tree-vect-loop.c (vectorizable_reduction): Don't use
90 EXTRACT_LAST_REDUCTION for chained reductions.
91
92 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
93
94 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
95 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
96 second demangled name.
97
98 2019-12-10 Jakub Jelinek <jakub@redhat.com>
99
100 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
101
102 2019-12-10 Martin Liska <mliska@suse.cz>
103
104 PR tree-optimization/92862
105 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
106 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
107 instead of true;
108
109 2019-12-09 David Malcolm <dmalcolm@redhat.com>
110
111 * gcc-rich-location.c
112 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
113 label_text ctor call with label_text::borrow.
114 * gcc-rich-location.h (text_range_label::get_text): Replace
115 label_text ctor called with false with label_text::borrow.
116
117 2019-12-09 David Malcolm <dmalcolm@redhat.com>
118
119 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
120 newline.
121 (selftest::test_diagnostic_show_locus_unknown_location): Remove
122 initial newline from expected outputs.
123 (selftest::test_one_liner_simple_caret): Likewise.
124 (selftest::test_one_liner_caret_and_range): Likewise.
125 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
126 (selftest::test_one_liner_fixit_insert_before): Likewise.
127 (selftest::test_one_liner_fixit_insert_after): Likewise.
128 (selftest::test_one_liner_fixit_remove): Likewise.
129 (selftest::test_one_liner_fixit_replace): Likewise.
130 (selftest::test_one_liner_fixit_replace_non_equal_range):
131 Likewise.
132 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
133 Likewise.
134 (selftest::test_one_liner_fixit_validation_adhoc_locations):
135 Likewise.
136 (selftest::test_one_liner_many_fixits_1): Likewise.
137 (selftest::test_one_liner_many_fixits_2): Likewise.
138 (selftest::test_one_liner_labels): Likewise.
139 (selftest::test_one_liner_simple_caret_utf8): Likewise.
140 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
141 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
142 Likewise.
143 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
144 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
145 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
146 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
147 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
148 Likewise.
149 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
150 Likewise.
151 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
152 Likewise.
153 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
154 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
155 (selftest::test_one_liner_labels_utf8): Likewise.
156 (selftest::test_add_location_if_nearby): Likewise.
157 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
158 (selftest::test_overlapped_fixit_printing): Likewise.
159 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
160 (selftest::test_overlapped_fixit_printing_2): Likewise.
161 (selftest::test_fixit_insert_containing_newline): Likewise.
162 (selftest::test_fixit_insert_containing_newline_2): Likewise.
163 (selftest::test_fixit_replace_containing_newline): Likewise.
164 (selftest::test_fixit_deletion_affecting_newline): Likewise.
165 (selftest::test_line_numbers_multiline_range): Likewise.
166 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
167 before call to diagnostic_show_locus.
168 (diagnostic_append_note): Likewise.
169
170 2019-12-09 Martin Sebor <msebor@redhat.com>
171
172 PR middle-end/92761
173 PR middle-end/92762
174 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
175 up tests.
176 * hash-table.h (hash_table::expand): Use placement new to copy
177 construct objects in uninitialized storage.
178 (hash_table::empty_slow): Avoid invoking copy assignment on
179 uninitialized objects.
180
181 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
182
183 PR preprocessor/49973
184 * input.c (location_compute_display_column): New function to help with
185 multibyte awareness in diagnostics.
186 (test_cpp_utf8): New self-test.
187 (input_c_tests): Call the new test.
188 * input.h (location_compute_display_column): Declare.
189 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
190 to all classes and functions.
191 (enum column_unit): New enum.
192 (class exploc_with_display_col): New class.
193 (class layout_point): Convert m_column member to array m_columns[2].
194 (layout_range::contains_point): Add col_unit argument.
195 (test_layout_range_for_single_point): Pass new argument.
196 (test_layout_range_for_single_line): Likewise.
197 (test_layout_range_for_multiple_lines): Likewise.
198 (line_bounds::convert_to_display_cols): New function.
199 (layout::get_state_at_point): Add col_unit argument.
200 (make_range): Use empty filename rather than dummy filename.
201 (get_line_width_without_trailing_whitespace): Rename to...
202 (get_line_bytes_without_trailing_whitespace): ...this.
203 (test_get_line_width_without_trailing_whitespace): Rename to...
204 (test_get_line_bytes_without_trailing_whitespace): ...this.
205 (class layout): m_exploc changed to exploc_with_display_col from
206 plain expanded_location.
207 (layout::get_linenum_width): New accessor member function.
208 (layout::get_x_offset_display): Likewise.
209 (layout::calculate_linenum_width): New subroutine for the constuctor.
210 (layout::calculate_x_offset_display): Likewise.
211 (layout::layout): Use the new subroutines. Add multibyte awareness.
212 (layout::print_source_line): Add multibyte awareness.
213 (layout::print_line): Likewise.
214 (layout::print_annotation_line): Likewise.
215 (line_label::line_label): Likewise.
216 (layout::print_any_labels): Likewise.
217 (layout::annotation_line_showed_range_p): Likewise.
218 (get_printed_columns): Likewise.
219 (class line_label): Rename m_length to m_display_width.
220 (get_affected_columns): Rename to...
221 (get_affected_range): ...this; add col_unit argument and multibyte
222 awareness.
223 (class correction): Add m_affected_bytes and m_display_cols
224 members. Rename m_len to m_byte_length for clarity. Add multibyte
225 awareness throughout.
226 (correction::insertion_p): Add multibyte awareness.
227 (correction::compute_display_cols): New function.
228 (correction::ensure_terminated): Use new member name m_byte_length.
229 (line_corrections::add_hint): Add multibyte awareness.
230 (layout::print_trailing_fixits): Likewise.
231 (layout::get_x_bound_for_row): Likewise.
232 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
233 with _utf8 suffix removed, testing multibyte awareness.
234 (test_one_liner_caret_and_range_utf8): Likewise.
235 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
236 (test_one_liner_fixit_insert_before_utf8): Likewise.
237 (test_one_liner_fixit_insert_after_utf8): Likewise.
238 (test_one_liner_fixit_remove_utf8): Likewise.
239 (test_one_liner_fixit_replace_utf8): Likewise.
240 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
241 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
242 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
243 (test_one_liner_many_fixits_1_utf8): Likewise.
244 (test_one_liner_many_fixits_2_utf8): Likewise.
245 (test_one_liner_labels_utf8): Likewise.
246 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
247 (test_overlapped_fixit_printing_utf8): Likewise.
248 (test_overlapped_fixit_printing): Adapt for changes to
249 get_affected_columns, get_printed_columns and class corrections.
250 (test_overlapped_fixit_printing_2): Likewise.
251 (test_linenum_sep): New constant.
252 (test_left_margin): Likewise.
253 (test_offset_impl): Helper function for new test.
254 (test_layout_x_offset_display_utf8): New test.
255 (diagnostic_show_locus_c_tests): Call new tests.
256
257 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
258
259 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
260 TYPE_CANONICAL from the element type only if it is true. Remove a few
261 obsolete lines and adjust recursive call.
262 (fld_process_array_type): Adjust call to build_array_type_1.
263 (build_array_type): Likewise.
264 (build_nonshared_array_type): Likewise.
265
266 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
267
268 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
269 %s to %o in asm output.
270 (gather<mode>_insn_2offsets<exec>): Likewise.
271
272 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
273
274 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
275 on a-profile.
276
277 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
278
279 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
280 set<mode>_cc.
281 (unnamed define_insn_and_split): Delete.
282 (unnamed define_insn): Delete.
283 (unnamed define_insn): Delete.
284 (unnamed define_split): Delete.
285
286 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
287
288 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
289 avoid a warning.
290
291 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
292
293 PR middle-end/92410
294 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
295 dataflow luids once basic blocks have been reordered.
296 * haifa-sched.c (reemit_notes): Create df insn record for each
297 new note.
298 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
299 insn has an insn record before trying to use it.
300
301 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
302
303 * common/config/i386/i386-common.c
304 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
305 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
306 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
307 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
308 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
309 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
310 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
311 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
312 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
313 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
314 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
315 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
316 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
317 OPTION_MASK_ISA_AVX512BF16_UNSET,
318 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
319 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
320 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
321 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
322 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
323 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
324 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
325 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
326 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
327 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
328 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
329 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
330 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
331 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
332 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
333 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
334 OPTION_MASK_ISA_ENQCMD): Ditto.
335 * config/i386/i386-builtin.def
336 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
337 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
338 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
339 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
340 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
341 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
342 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
343 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
344 * config/i386/i386-c.c
345 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
346 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
347 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
348 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
349 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
350 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
351 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
352 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
353 OPTION_MASK_ISA_ENQCMD): Ditto.
354 * config/i386/i386-option.c: Ditto
355 * config/i386/i386.opt: Ditto..
356 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
357 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
358 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
359 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
360 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
361 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
362 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
363 TARGET_ISA_ENQCMD): Ditto.
364
365 2019-12-09 Sudakshina Das <sudi.das@arm.com>
366 Richard Sandiford <richard.sandiford@arm.com>
367
368 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
369 vect_model_simple_cost call on scalar_shift_arg.
370
371 2019-12-09 Jakub Jelinek <jakub@redhat.com>
372
373 PR tree-optimization/92834
374 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
375 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
376
377 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
378
379 PR tree-optimization/89007
380 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
381 target support available, generate code to distribute rshift over plus
382 and add a carry.
383
384 2019-12-09 Martin Liska <mliska@suse.cz>
385
386 PR ipa/92737
387 * cgraph.c (symbol_table_test::symbol_table_test): Fix
388 coding style.
389 * cgraph.h (symtab_node::symtab_node): New constructor.
390 (cgraph_node::cgraph_node): Likewise.
391 (varpool_node::varpool_node): Likewise.
392 (symbol_table::allocate_cgraph_symbol): Use newly
393 created constructor.
394 (symbol_table::allocate_cgraph_symbol): Remove.
395 * cgraphunit.c (symtab_terminator): Likewise.
396 * varpool.c (varpool_node::create_empty): Use newly
397 created constructor.
398
399 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
400
401 PR target/92686
402 * config/i386/sse.md
403 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
404 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
405 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
406 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
407 * config/i386/i386.c (ix86_print_operand): New operand substitution.
408 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
409 New function.
410 (ix86_expand_sse_cmp): Relax condition for integer mask from
411 512-bit vector to all 128/256/512-bit vector. Delete code gen
412 for avx512f compare patterns since we have generic pattern now.
413 (ix86_expand_sse_movcc): Adjust condition and codegen for
414 maskcmp.
415 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
416 when corresponding vector compare is available.
417
418 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
419
420 Revert:
421 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
422
423 * config/nios2/linux.h (LINK_EH_SPEC): Define.
424
425 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
426
427 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
428 * cgraph.h (cgrpah_node): Likewise.
429 (tp_first_run_node_cmp): Deeclare.
430 * cgraphunit.c (node_cmp): Rename to ...
431 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
432 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
433 (expand_all_functions): Collect tp_first_run and normal functions to
434 two vectors so the other functions remain sorted. Do not check for
435 flag_profile_reorder_functions it is function local flag.
436 * profile.c (compute_value_histograms): Update tp_first_run printing.
437
438 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
439
440 * opts.c (common_handle_option): Do not clear ipa_reference for
441 -fprofile-use.
442
443 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
444
445 * ipa-split.c (split_function): Preserve 0 tp_first_run.
446
447 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
448
449 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
450 sanity check.
451
452 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
453
454 PR tree-optimization/92860
455 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
456 Optimization flag.
457
458 2019-12-07 Marek Polacek <polacek@redhat.com>
459
460 PR c++/91678 - wrong error with decltype and location wrapper.
461 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
462
463 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
464
465 PR middle-end/90840
466 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
467 sure to pass a valid inner mode in calls to simplify_gen_subreg.
468
469 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
470 David Malcolm <dmalcolm@redhat.com>
471 Jakub Jelinek <jakub@redhat.com>
472
473 PR c/87488
474 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
475 instead of ST sequence to terminate OSC 8 strings.
476
477 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
478 Vladimir Makarov <vmakarov@redhat.com>
479
480 PR rtl-optimization/92176
481 * lra.c (simplify_subreg_regno): Don't permit unconditional
482 changing mode for LRA too.
483
484 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
485
486 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
487 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
488 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
489 Handle them.
490
491 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
492
493 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
494 in the asm output.
495
496 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
497
498 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
499 (VEC_1REG_ALT): Likewise.
500 (VEC_ALL1REG_MODE): New mode iterator.
501 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
502 (VEC_1REG_INT_ALT): Likewise.
503 (VEC_ALL1REG_INT_MODE): New mode interator.
504 (VEC_ALL1REG_INT_ALT): Likewise.
505 (VEC_REG_MODE): Remove V64QI and V64HI.
506 (VEC_ALLREG_MODE): New mode interator.
507 (vec_merge): Change to VEC_ALLREG_MODE.
508 (vec_merge_with_clobber): Likewise.
509 (vec_merge_with_vcc): Likewise.
510 (mov<mode>): Likewise.
511 (mov<mode>_unspec): Likewise.
512 (*mov<mode>): Change to VEC_ALL1REG_MODE.
513 (mov<mode>_exec): Likewise.
514 (*mov<mode>_exec_match): Likewise.
515 (mov<mode>_sgprbase): Likewise.
516 (reload_in<mode>): Change to VEC_ALLREG_MODE.
517 (reload_out<mode>): Likewise.
518 (scalar address splits): Likewise.
519 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
520 (vec_set<mode>): Change to VEC_ALLREG_MODE.
521 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
522 (vec_duplicate<mode><exec>): Likewise.
523 (vec_extract<mode><scalar_mode>): Likewise.
524 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
525 (gather_load<mode>): Likewise.
526 (gather<mode>_exec): Likewise.
527 (gather<mode>_expr<exec>): Likewise.
528 (gather<mode>_insn_1offset<exec>): Likewise.
529 (gather<mode>_insn_1offset_ds<exec>): Likewise.
530 (gather<mode>_insn_2offsets<exec>): Likewise.
531 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
532 (VEC_INT_MODE): Remove V64QI and V64HI.
533 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
534 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
535 VEC_ALL1REG_MODE.
536 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
537 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
538 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
539 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
540 (maskstore<mode>di): Likewise.
541 (mask_gather_load<mode>): Likewise.
542 (mov_from_lane63_<mode>): Likewise.
543 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
544 and V64HImode vectorization.
545 (gcn_related_vector_mode): New function.
546 (TARGET_VECTORIZE_RELATED_MODE): New define.
547
548 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
549 Kwok Cheung Yeung <kcy@codesourcery.com>
550
551 * omp-low.c (lower_omp_target): For optional arguments, deref once
552 more to obtain the type.
553
554 2019-12-06 Richard Biener <rguenther@suse.de>
555
556 * match.pd (nop_convert): Remove empty match. Use nop_convert?
557 everywhere.
558
559 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
560
561 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
562 for empty vectors. Avoid using ordered_remove and instead
563 shuffle the vector as we go.
564
565 2019-12-06 Richard Biener <rguenther@suse.de>
566
567 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
568 VIEW_CONVERT{0,1,2}.
569 (expr::opt_grp): Add and initialize.
570 (lower_opt_convert): Rename to ...
571 (lower_opt): ... and work on opt_grp, simply switching operations
572 from being optional to being present or not.
573 (has_opt_convert): Rename to ...
574 (has_opt): ... and adjust.
575 (parser::parse_operation): Return the optional opt_grp,
576 remove special-casing of conditional operations and more generally
577 parse [digit]'?'.
578 (parser::parse_expr): Stick on the parsed opt_grp and perform
579 rough verification.
580 (parser::parse_for): Remove now unnecessary code.
581 (main): Likewise.
582 * doc/match-and-simplify.texi: Mention ? now works on all
583 unary operations and also match predicates.
584
585 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
586
587 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
588 functions, not inline clones.
589
590 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
591
592 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
593
594 2019-12-06 Richard Biener <rguenther@suse.de>
595
596 * genmatch.c (c_expr::gen_transform): Emit newlines from line
597 number changes rather than after every semicolon.
598
599 2019-12-06 Richard Biener <rguenther@suse.de>
600
601 PR tree-optimization/92819
602 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
603 into the last lane. For two-element vectors try inserting
604 into the last lane when inserting into the first fails.
605
606 2019-12-06 Jakub Jelinek <jakub@redhat.com>
607
608 * common.opt (fprofile-partial-training): Terminate description with
609 full stop.
610
611 2019-12-05 Martin Sebor <msebor@redhat.com>
612
613 PR middle-end/92622
614 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
615 left uninitialized by get_addr_base_and_unit_offset on failure.
616
617 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
618
619 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
620 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
621 (detect_type_change): Likewise.
622 (detect_type_change_ssa): Likewise.
623 (ipa_analyze_virtual_call_uses): Update.
624
625 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
626
627 * config/nios2/linux.h (LINK_EH_SPEC): Define.
628
629 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
630
631 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
632
633 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
634
635 * cgraphclones.c (localize_profile): New function.
636 (cgraph_node::create_clone): Use it for partial profiles.
637 * common.opt (fprofile-partial-training): New flag.
638 * doc/invoke.texi (-fprofile-partial-training): Document.
639 * ipa-cp.c (update_profiling_info): For partial profiles do not
640 set function profile to zero.
641 * profile.c (compute_branch_probabilities): With partial profile
642 watch if edge count is zero and turn all probabilities to guessed.
643 (compute_branch_probabilities): For partial profiles do not apply
644 profile when entry count is zero.
645 * tree-profile.c (tree_profiling): Only do value_profile_transformations
646 when profile is read.
647
648 2019-12-05 Sudakshina Das <sudi.das@arm.com>
649
650 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
651 check from if condition.
652
653 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
654
655 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
656 and Fortran's optional arguments, unconditionally add the is-present
657 condition before the libgomp call.
658
659 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
660
661 PR middle-end/92768
662 * tree-core.h (OEP_BITWISE): New flag.
663 * fold-const.c (operand_compare::operand_equal_p): Handle it.
664 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
665
666 2019-12-05 Richard Biener <rguenther@suse.de>
667
668 PR middle-end/92818
669 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
670 heuristics on what don't care element to choose.
671 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
672
673 2019-12-05 Martin Liska <mliska@suse.cz>
674
675 PR gcov-profile/92817
676 * coverage.c (build_gcov_exit_decl): Remove superfluous
677 void_type_node.
678
679 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
680
681 * config/msp430/msp430.md (cbranch<mode>4): Use
682 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
683 dest operand of CMP instruction.
684 (cbranchpsi4_real): Likewise.
685 (cbranchqi4_real): Likewise.
686 (cbranchhi4_real): Likewise.
687 (cbranchpsi4_reversed): Likewise.
688 (cbranchqi4_reversed): Likewise.
689 (cbranchhi4_reversed): Likewise.
690
691 2019-12-05 Richard Biener <rguenther@suse.de>
692
693 PR tree-optimization/92803
694 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
695 invariant vector construction.
696
697 2019-12-05 Martin Liska <mliska@suse.cz>
698
699 PR gcov-profile/91971
700 * coverage.c (coverage_init): Mangle full path
701 only when -fprofile-dir is used.
702
703 2019-12-05 Jakub Jelinek <jakub@redhat.com>
704
705 PR target/92791
706 * config/i386/i386.md (movstrict<mode>): Move test for
707 TARGET_PARTIAL_REG_STALL and not optimizing for size from
708 expander's condition to the body - FAIL; in that case.
709
710 2019-12-03 Martin Sebor <msebor@redhat.com>
711
712 PR middle-end/91582
713 * builtins.c (gimple_call_alloc_size): New function.
714 (compute_objsize): Add argument. Call gimple_call_alloc_size.
715 Handle variable offsets and indices.
716 * builtins.h (gimple_call_alloc_size): Declare.
717 (compute_objsize): Add argument.
718 * gimple-ssa-warn-restrict.c: Remove assertions.
719 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
720
721 2019-12-04 Julian Brown <julian@codesourcery.com>
722
723 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
724
725 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
726
727 PR bootstrap/92661
728 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
729 rs6000.h.
730 (altivec_overloaded_builtins): Move to rs6000-call.c.
731 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
732 rs6000-c.c.
733 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
734 (altivec_overloaded_builtins): Moved from rs6000-c.c.
735 (rs6000_common_init_builtins): Do no define builtins that overload
736 builtins that have been disabled.
737
738 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
739
740 * config/arm/arm.c (arm_option_override_internal):
741 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
742
743 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
744
745 * config/aarch64/aarch64.c
746 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
747 (thunderx_tunings): Likewise.
748 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
749 (thunderx2t99_tunings): Likewise.
750 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
751 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
752
753 2019-12-04 Richard Biener <rguenther@suse.de>
754
755 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
756 empty CTOR and memset partial-def registering. Take advantage
757 of fancy offset analysis in memset handling.
758
759 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
760
761 * fold-const.c (native_encode_vector_part): Handle
762 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
763 (native_decode_vector_tree): Delete, moving the bulk of the code to...
764 (native_interpret_vector_part): ...this new function. Use a pointer
765 and length instead of a vec<> and start index.
766 (native_interpret_vector): Use native_interpret_vector_part.
767 (fold_view_convert_vector_encoding): Likewise.
768
769 2019-12-04 Richard Biener <rguenther@suse.de>
770
771 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
772 non-constant defs in the most trivial way.
773 (vn_reference_lookup_3): Also push down SSA partial defs.
774
775 2019-12-04 Martin Liska <mliska@suse.cz>
776
777 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
778 Initialize count of newly created BB.
779
780 2019-12-04 Jakub Jelinek <jakub@redhat.com>
781
782 PR tree-optimization/92734
783 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
784 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
785
786 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
787
788 PR target/92760
789 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
790 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
791
792 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
793
794 * ipa-fnsummary.c: Include tree-into-ssa.h.
795 (compute_fn_summary): Call update_ssa.
796
797 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
798
799 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
800 is set only for symbol in comdat group.
801 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
802
803 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
804
805 * cgraph.c: Include tree-into-ssa.h
806 (cgraph_node::get_body): Call update_ssa.
807 * cgraphunit.c (cgraph_node::expand): Likewise.
808 * lto-streamer-in.c (input_function): Do not call update_ssa.
809
810 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
811
812 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
813 an array element size if array_element_size is already an invariant.
814 Similarly don't gimplify and install a field offset if
815 component_ref_field_offset is already an invariant.
816
817 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
818
819 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
820 with POLY_INT_CST size is made to a fixed-size object, force the
821 object to live in memory.
822
823 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
824
825 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
826 for the data mode.
827
828 2019-12-03 Richard Biener <rguenther@suse.de>
829
830 PR tree-optimization/92758
831 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
832 operation on uniform vectors.
833
834 2019-12-03 Richard Biener <rguenther@suse.de>
835
836 PR tree-optimization/92645
837 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
838 from or to a properly aligned register variable.
839
840 2019-12-03 Matthias Klose <doko@ubuntu.com>
841
842 * Makefile.in (SOURCES): Add doc/lto-dump.1.
843 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
844 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
845
846 2019-12-03 Richard Biener <rguenther@suse.de>
847
848 PR tree-optimization/92751
849 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
850 when a clobber ends up in the partial-def vector.
851 (vn_reference_lookup_3): Let clobbers be handled by the
852 assignment from CTOR handling.
853
854 2019-12-03 Jakub Jelinek <jakub@redhat.com>
855
856 PR tree-optimization/92734
857 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
858 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
859 inner subtraction.
860
861 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
862 Jakub Jelinek <jakub@redhat.com>
863
864 PR target/92744
865 * config/i386/i386.md (peephole2 for *swap<mode>): Use
866 general_reg_operand predicates instead of register_operand.
867
868 2019-12-03 Richard Biener <rguenther@suse.de>
869
870 PR tree-optimization/92645
871 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
872 a full def of a vector via a BIT_INSERT_EXPR.
873
874 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
875
876 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
877 static.
878 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
879 decl.
880
881 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
882
883 PR middle-end/92741
884 * fold-const.c (fold_convertible_p): Check vector types more
885 thoroughly.
886
887 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
888
889 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
890 (aarch64_expand_mov_immediate): Use it when attempting to measure
891 the length of an SVE vector.
892 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
893 SVE is enabled.
894
895 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
896
897 * config/aarch64/aarch64-sve-builtins.h
898 (gimple_folder::force_vector): Declare.
899 * config/aarch64/aarch64-sve-builtins.cc
900 (gimple_folder::force_vector): New function.
901 * config/aarch64/aarch64-sve-builtins-base.cc
902 (svcmp_impl::fold): Likewise.
903 (svdup_impl::fold): Handle svdup_z too.
904
905 2019-12-02 Martin Liska <mliska@suse.cz>
906
907 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
908 function.
909 (debug_tree_odr_name): New.
910 * ipa-utils.h (get_odr_name_for_type): New.
911
912 2019-12-02 Richard Biener <rguenther@suse.de>
913
914 PR tree-optimization/92742
915 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
916 touch the def-type but verify it is consistent with the
917 original stmts.
918
919 2019-12-02 Jakub Jelinek <jakub@redhat.com>
920
921 PR tree-optimization/92712
922 * match.pd ((A * B) +- A -> (B +- 1) * A,
923 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
924 even when we don't know anything about range of A, but do know
925 something about range of B and the simplification won't introduce
926 new UB.
927
928 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
929
930 PR ipa/92133
931 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
932 (ipa-cp-min-recursive-probability): Likewise.
933 * params.opt (ipa-cp-max-recursive-depth): New.
934 (ipa-cp-min-recursive-probability): Likewise.
935 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
936 val_p and unlimited.
937 (self_recursively_generated_p): New function.
938 (get_val_across_arith_op): Likewise.
939 (propagate_vals_across_arith_jfunc): Add constant propagation for
940 self-recursive function.
941 (incorporate_penalties): Do not penalize pure self-recursive function.
942 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
943 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
944 (get_info_about_necessary_edges): Relax hotness check for edge to
945 self-recursive function.
946 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
947
948 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
949
950 PR target/92499
951
952 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
953 objects of flexible types to be small if they have internal linkage
954 or are declared extern.
955 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
956 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
957 instead of the size of the object initializer.
958 * tree.c (flexible_array_type_p): Move from C front end, and
959 generalize to handle fields in non-C structures.
960 * tree.h (flexible_array_type_p): Declare.
961
962 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
963
964 * profile-count.h (profile_count::operator<): Use IPA value for
965 comparsion.
966 (profile_count::operator>): Likewise.
967 (profile_count::operator<=): Likewise.
968 (profile_count::operator>=): Likewise.
969 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
970
971 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
972
973 * ipa-inline.c (compute_max_insns): Return int64_t.
974 (inline_small_functions): Simplify.
975
976 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
977
978 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
979 scaling happen.
980
981 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
982
983 * cgraph.h (symtab_node): Add symver flag.
984 * cgraphunit.c (process_symver_attribute): New.
985 (process_common_attributes): Use process_symver_attribute.
986 * lto-cgraph.c (lto_output_node): Stream symver.
987 (lto_output_varpool_node): Stream symver.
988 (input_overwrite_node): Stream symver.
989 (input_varpool_node): Stream symver.
990 * output.h (do_assemble_symver): Decalre.
991 * symtab.c (symtab_node::dump_base): Dump symver.
992 (symtab_node::verify_base): Verify symver.
993 (symtab_node::resolve_alias): Handle symver.
994 * varasm.c (do_assemble_symver): New function.
995 * varpool.c (varpool_node::assemble_aliases): Use it.
996 * doc/extend.texi: (symver attribute): Document.
997 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
998
999 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1000
1001 * target.h (type_context_kind): New enum.
1002 (verify_type_context): Declare.
1003 * target.def (verify_type_context): New target hook.
1004 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1005 * doc/tm.texi: Regenerate.
1006 * tree.c (verify_type_context): New function.
1007 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1008 Declare.
1009 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1010 New function.
1011 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1012 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1013
1014 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1015
1016 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1017 * cgraph.h (cgraph_node): Add unit_id and
1018 merged_extern_inline.
1019 (symbol_table): Add max_unit.
1020 (symbol_table::symbol_table): Initialize it.
1021 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1022 merged_comdat, merged_extern_inline.
1023 (cgraph_node::create_clone): Likewise.
1024 (cgraph_node::create_version_clone): Likewise.
1025 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1026 calls.
1027 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1028 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1029 * ipa-inline.c (inline_small_functions): Likewise.
1030 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1031 copy merged_comdat and merged_extern_inline.
1032 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1033 merged_extern_inline and unit_id.
1034 (input_overwrite_node): Stream in these.
1035 (input_cgraph_1): Set unit_base.
1036 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1037 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1038
1039 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1040
1041 * gcc.c (process_command): Only warn about an ineffective `-x'
1042 option if any input files have actually been supplied.
1043
1044 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1045
1046 * doc/install.texi (Options specification): Remove the list of
1047 target library subdirectories supporting
1048 `--enable-version-specific-runtime-libs'. Document defaults for
1049 the option.
1050
1051 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1052
1053 PR rtl-optimization/92283
1054 * lra.c (lra): Update reg notes after inheritance sub-pass and
1055 before constraint sub-pass.
1056
1057 2019-11-29 Richard Biener <rguenther@suse.de>
1058
1059 PR tree-optimization/91003
1060 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1061 operand number, avoid handling the non-condition operands of
1062 COND_EXPRs as comparisons.
1063 (vect_get_constant_vectors): Pass down the operand number.
1064 (vect_get_slp_defs): Likewise.
1065
1066 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1067
1068 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1069 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1070 VEC_COND_EXPR can trap.
1071
1072 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1073
1074 PR tree-optimization/92677
1075 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1076 to zero when dissolving a group of strided accesses.
1077
1078 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1079
1080 PR tree-optimization/92596
1081 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1082 operations.
1083 (vectorizable_operation): Likewise, instead of relying on
1084 vect_get_mask_type_for_stmt to do this.
1085 (vect_get_vector_types_for_stmt): Always return a vector type
1086 immediately, rather than deferring the choice for boolean results.
1087 Use a vector mask type instead of a normal vector if
1088 vect_use_mask_type_p.
1089 (vect_get_mask_type_for_stmt): Delete.
1090 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1091 mask_producers argument and special boolean_type_node handling.
1092 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1093 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1094 (vect_determine_vectorization_factor): Update call accordingly.
1095 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1096 boolean_type_node handling.
1097 (vect_slp_analyze_node_operations_1): Likewise.
1098
1099 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1100
1101 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1102 (vect_use_mask_type_p): New function.
1103 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1104 mask precision to the pattern statement.
1105 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1106 and use it to initialize the new stmt's mask precision.
1107 (search_type_for_mask_1): Delete.
1108 (search_type_for_mask): Replace with...
1109 (integer_type_for_mask): ...this new function. Use the information
1110 cached in the stmt_vec_info.
1111 (vect_recog_bool_pattern): Update accordingly.
1112 (build_mask_conversion): Pass the scalar type associated with the
1113 mask type to append_pattern_def_seq.
1114 (vect_recog_mask_conversion_pattern): Likewise. Call
1115 integer_type_for_mask instead of search_type_for_mask.
1116 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1117 of search_type_for_mask.
1118 (possible_vector_mask_operation_p): New function.
1119 (vect_determine_mask_precision): Likewise.
1120 (vect_determine_stmt_precisions): Call it.
1121
1122 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1123
1124 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1125 the slp_tree parameter with a group size parameter.
1126 (vect_get_mask_type_for_stmt): Likewise.
1127 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1128 (vect_get_mask_type_for_stmt): Likewise.
1129 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1130 call accordingly.
1131
1132 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1133
1134 * tree-vect-stmts.c (vectorizable_operation): Punt early
1135 on codes that are handled elsewhere.
1136
1137 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1138
1139 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1140 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1141 operand to a boolean comparison is a natural vector mask,
1142 handle both operands like normal integers instead.
1143
1144 2019-11-29 Richard Biener <rguenther@suse.de>
1145
1146 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1147 out early for too large objects.
1148
1149 2019-11-29 Martin Jambor <mjambor@suse.cz>
1150
1151 PR ipa/92476
1152 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1153 the summary only if the summary exists.
1154 (find_more_scalar_values_for_callers_subset): Check node_dead in
1155 the summary only if the summary exists.
1156 (ipcp_store_bits_results): Ignore nodes without lattices.
1157 (ipcp_store_vr_results): Likewise.
1158 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1159 header files required by them.
1160 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1161
1162 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1163
1164 PR tree-optimization/92710
1165 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1166 vector mask arguments.
1167
1168 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1169
1170 * profile-count.c (profile_count::to_cgraph_frequency,
1171 profile_count::to_sreal_scale): Check for compaibility of counts.
1172 * profile-count.h (compatible_p): Make public; add checking for
1173 global0 versus global types.
1174 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1175
1176 2019-11-29 Richard Biener <rguenther@suse.de>
1177
1178 PR tree-optimization/92715
1179 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1180 out for uniform vectors and source vectors with less elements
1181 than the destination.
1182
1183 2019-11-29 Martin Liska <mliska@suse.cz>
1184
1185 PR lto/91574
1186 * ipa-devirt.c (types_same_for_odr): Check for existence
1187 of TYPE_NAMEs first.
1188
1189 2019-11-29 Richard Biener <rguenther@suse.de>
1190
1191 PR tree-optimization/92704
1192 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1193 in loops performing only loads.
1194
1195 2019-11-29 Julian Brown <julian@codesourcery.com>
1196
1197 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1198 BT_DFLOAT128_PTR) Remove.
1199 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1200 TI_DFLOAT128_PTR_TYPE): Remove.
1201 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1202 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1203 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1204 dfloat128_ptr_type_node): Remove macros.
1205
1206 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1207
1208 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1209 formatting.
1210 (*movdi_internal64): Ditto.
1211
1212 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1213
1214 PR target/92602
1215 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1216 indexed_or_indirect_operand to be memory_operand.
1217 (bswap<mode>2_store for HSI): Ditto.
1218 (bswapdi2_load): Ditto.
1219 (bswapdi2_store): Ditto.
1220
1221 2019-11-28 Martin Liska <mliska@suse.cz>
1222
1223 PR debug/46558
1224 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1225 headers for translation.
1226
1227 2019-11-28 Martin Liska <mliska@suse.cz>
1228
1229 PR lto/92609
1230 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1231 consistently.
1232
1233 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1234
1235 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1236 checks.
1237
1238 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1239
1240 * profile-count.c (profile_count::combine_with_ipa_count): Return
1241 uninitialized count if called on ininitialized count.
1242
1243 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1244
1245 * ipa-inline-transform.c (inline_transform): Scale profile before
1246 redirecting.
1247
1248 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1249
1250 * profile-count.h (profile_count::max): Work on profiles of different
1251 type.
1252 (profile_count::apply_scale): Be sure that ret is not local or global0
1253 type if num is global.
1254
1255 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1256
1257 * profile-count.h (profile_count::max): Work on profiles of different
1258 type.
1259 (profile_count::apply_scale): Be sure that ret is not local or global0
1260 type if num is global.
1261
1262 2019-11-28 Martin Jambor <mjambor@suse.cz>
1263
1264 PR ipa/92697
1265 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1266 ifunc_resolvers.
1267 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1268 Removed trailig whitespace.
1269
1270 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1271
1272 * profile-count.h (profile_count::combine_with_ipa_count_within):
1273 Declare.
1274 * profile-count.c (profile_count::combine_with_ipa_count_within):
1275 New.
1276 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1277 it.
1278
1279 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1280
1281 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1282 of counters are done same way.
1283
1284 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1285
1286 * ipa-cp.c (update_profiling_info): Fix scaling.
1287
1288 2019-11-28 Richard Biener <rguenther@suse.de>
1289
1290 PR tree-optimization/92645
1291 * tree-inline.c (remap_gimple_stmt): When the return value
1292 is not wanted, elide GIMPLE_RETURN.
1293
1294 2019-11-28 Richard Biener <rguenther@suse.de>
1295
1296 PR tree-optimization/92645
1297 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1298 conversions inside a mode class. Remove restriction on
1299 preserving the element size.
1300 (simplify_vector_constructor): Deal with the above and for
1301 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1302 and VEC_PACK_TRUNC_EXPR.
1303
1304 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1305
1306 Must use push insn to pass varargs arguments of DFmode because
1307 otherwise the middle-end generates wrong code.
1308
1309 PR target/92055
1310 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1311
1312 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1313
1314 PR tree-optimization/92691
1315 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1316 in function comment.
1317 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1318 calls, return !handle_printf_call rather than always returning true.
1319 (check_and_optimize_stmt): Describe return value meaning in function
1320 comment. Formatting fix.
1321
1322 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1323
1324 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1325 combination of globa0 and global counters..
1326
1327 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1328
1329 PR target/92566
1330 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1331 by VECTOR_UNIT_NONE_P instead.
1332
1333 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1334
1335 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1336 Refine VF to VF_AVX512VL.
1337
1338 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1339
1340 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1341 (movdi_internal64): Reformat.
1342
1343 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1344
1345 PR bootstrap/92661
1346 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1347 builtin if we don't have an actual type.
1348 (builtin_function_type): If the builtin function uses a DFP type
1349 and decimal float has been disabled, then return NULL_TREE.
1350
1351 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1352
1353 PR rtl-optimization/92510
1354 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1355 of comparison into a comparison with different mode if both imode and
1356 omode are scalar integral modes.
1357
1358 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1359
1360 PR rtl-optimization/90007
1361 * recog.c (constrain_operands): Permit hard registers too for
1362 memory when LRA is used.
1363
1364 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1365
1366 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1367 between Coldfire and regular m68k.
1368 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1369
1370 2019-11-27 Richard Biener <rguenther@suse.de>
1371
1372 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1373 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1374 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1375 * optabs-tree.c (supportable_convert_operation): Do not call
1376 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1377 * optabs-tree.h (supportable_convert_operation): Adjust.
1378 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1379 * doc/tm.texi: Regenerate.
1380 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1381 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1382 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1383 unused decl parameter and adjust.
1384 (vect_create_vectorized_promotion_stmts): Likewise.
1385 (vectorizable_conversion): Adjust.
1386
1387 2019-11-27 Richard Biener <rguenther@suse.de>
1388
1389 PR tree-optimization/92690
1390 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1391 converting elements not originally converted.
1392
1393 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1394
1395 PR middle-end/92463
1396 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1397 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1398 mpfr_rnd_t instead of mp_rnd_t.
1399 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1400 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1401 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1402 Use mpfr_exp_t instead of mp_exp_t.
1403 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1404 MPFR_RNDx instead of GMP_RNDx.
1405 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1406 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1407 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1408 of mp_rnd_t and remove MPFR_RNDx poisoning.
1409 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1410
1411 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1412
1413 PR tree-optimization/91790
1414 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1415 DR for vect_setup_realignment when first_stmt_info is different
1416 from first_stmt_info_for_drptr.
1417
1418 2019-11-27 Richard Biener <rguenther@suse.de>
1419
1420 PR tree-optimization/92645
1421 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1422 CTORs with just a subset of the original vectors.
1423
1424 2019-11-27 Richard Biener <rguenther@suse.de>
1425
1426 PR middle-end/92674
1427 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1428 edges and instead record blocks in bitmap.
1429 (gimple_expand_calls_inline): Adjust.
1430 (fold_marked_statements): Delay EH cleanup until all folding is
1431 done.
1432 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1433 inlining finished.
1434
1435 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1436
1437 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1438 LRA is enabled.
1439 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1440 disabled.
1441
1442 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1443
1444 PR debug/92664
1445 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1446
1447 2019-11-26 Martin Sebor <msebor@redhat.com>
1448
1449 PR tree-optimization/92683
1450 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1451 inadvertently removed in a previous change. Rename local variable
1452 for clarity.
1453
1454 2019-11-26 Richard Biener <rguenther@suse.de>
1455
1456 PR middle-end/92669
1457 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1458 NULL pre_order.
1459
1460 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1461
1462 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1463
1464 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1465
1466 PR tree-optimization/92644
1467 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1468 next to INTEGER_CST checks.
1469
1470 2019-11-26 Richard Biener <rguenther@suse.de>
1471
1472 PR tree-optimization/92645
1473 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1474 do not build the operation from scalars if the operand is.
1475
1476 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1477
1478 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1479 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1480 definitions.
1481
1482 2019-11-25 Martin Liska <mliska@suse.cz>
1483
1484 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1485 up used dump message.
1486
1487 2019-11-25 Martin Liska <mliska@suse.cz>
1488
1489 PR bootstrap/92653
1490 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1491 too strict checking assert.
1492
1493 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1494
1495 PR c/91985
1496 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1497 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1498 error_mark_node if corresponding global tree node is NULL.
1499 * tree.c (build_common_tree_nodes): Do not initialize
1500 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1501 decimal floating-point not supported.
1502
1503 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1504
1505 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1506 types.
1507
1508 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1509
1510 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1511 Replace code for non-CONST_INT constants with gcc_unreachable.
1512 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1513 compare and test.
1514 (CMPMODE): New mode_iterator.
1515 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1516 cbranch<mode>4.
1517 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1518 cstore<mode>4.
1519 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1520 operand.
1521 (bit test insns patterns): Use nonimmediate_operand, not
1522 register_operand, for source operands that allow memory in
1523 their constraints.
1524 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1525 Use register_operand, not nonimmediate_operand, for the
1526 destinations.
1527 (DBCC): New mode_iterator.
1528 (dbcc peepholes): Use it to reduce duplication.
1529 (trap): Use const_true_rtx, not const1_rtx.
1530 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1531 from m68k_subword_comparison_operand and changed to handle
1532 SImode.
1533
1534 PR target/91851
1535 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1536 declaration.
1537 (m68k_init_cc): New declaration.
1538 (m68k_output_compare_di, m68k_output_compare_si)
1539 (m68k_output_compare_hi, m68k_output_compare_qi)
1540 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1541 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1542 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1543 m68k_output_branch_float, m68k_output_branch_float_rev):
1544 Likewise.
1545 (valid_dbcc_comparison_p_2, flags_in_68881)
1546 (output_btst): Remove declaration.
1547 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1548 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1549 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1550 (flags_compare_op0, flags_compare_op1, flags_operand1,
1551 flags_operand2, flags_valid): New static variables.
1552 (m68k_find_flags_value, m68k_init_cc): New functions.
1553 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1554 remember_compare_flags): New static functions.
1555 (output_dbcc_and_branch): New argument CODE. Use it, and add
1556 PLUS and MINUS to the possible codes. All callers changed.
1557 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1558 and INSN arguments, add CODE arg. Return the comparison code
1559 to use. All callers changed. Use CODE instead of
1560 next_insn_tests_no_inequality, and replace cc_status management
1561 with changing the return code.
1562 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1563 RTX_COMPARE or RTX_COMM_COMPARE.
1564 (output_move_simode, output_move_qimode): Call
1565 handle_flags_for_move.
1566 (notice_update_cc): Delete function.
1567 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1568 m68k_output_compare_hi, m68k_output_compare_qi,
1569 m68k_output_compare_fp, m68k_output_branch_integer,
1570 m68k_output_branch_integer_rev, m68k_output_scc,
1571 m68k_output_branch_float, m68k_output_branch_float_rev,
1572 m68k_output_scc_float): New functions.
1573 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1574 once at the start, and set flags_valid and flags_operand1 if the
1575 flags are usable.
1576 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1577 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1578 definitions.
1579 (CC_STATUS_INIT): Define.
1580 * config/m68k/m68k.md (flags_valid): New define_attr.
1581 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1582 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1583 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1584 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1585 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1586 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1587 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1588 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1589 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1590 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1591 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1592 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1593 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1594 ctrapqi4, conditional_trap): Delete patterns.
1595 (cbranchdi4_insn): New pattern.
1596 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1597 test high part only. When testing EQ or NE, generate beq0_di
1598 and bne0_di patterns directly.
1599 (cstoredi4): When testing LT or GE, test high part only.
1600 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1601 patterns.
1602 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1603 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1604 cmp2_cf_predicate): New define_mode_attrs.
1605 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1606 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1607 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1608 New patterns.
1609 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1610 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1611 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1612 New patterns.
1613 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1614 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1615 Likewise.
1616 (BTST): New define_mode_iterator.
1617 (btst_predicate, btst_constraint, btst_range): New
1618 define_mode_attrs.
1619 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1620 patterns.
1621 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1622 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1623 patterns): Set attr "flags_valid".
1624 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1625 management. Set attr "flags_valid".
1626 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1627 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1628 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1629 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1630 manual CC_STATUS management.
1631 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1632 unnamed strict_lowpart subhi and subqi patterns): Set attr
1633 "flags_valid".
1634 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1635 Remove code to operate on address regs and assert the case
1636 does not occur.
1637 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1638 manual CC_STATUS_INIT.
1639 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1640 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1641 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1642 one_cmplqi2, unnamed strict_lowpart patterns
1643 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1644 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1645 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1646 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1647 CC_STATUS_INIT.
1648 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1649 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1650 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1651 unnamed strict_low_part patterns for HI and
1652 QI versions): Set attr "flags_valid".
1653 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1654 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1655 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1656 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1657 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1658 (various unnamed peepholes): Adjust compare/branch sequences
1659 for new cbranch patterns.
1660 (dbcc peepholes): Likewise, and output the comparison here
1661 as well.
1662 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1663 (fp_src_operand): Allow constant zero.
1664 (address_reg_operand): New predicate.
1665
1666 * rtl.h (inequality_comparisons_p): Remove declaration.
1667 * recog.h (next_insn_tests_no_inequality): Likewise.
1668 * rtlanal.c (inequality_comparisons_p): Delete function.
1669 * recog.c (next_insn_tests_no_inequality): Likewise.
1670
1671 2019-11-25 Richard Biener <rguenther@suse.de>
1672
1673 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1674 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1675 properly re-building the visited hash-map for each lane.
1676
1677 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1678
1679 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1680 gcn_md_reorg): Remove unused variables.
1681 (gcn_emutls_var_init): Add missing (but unreachable) return
1682 to silence warning.
1683 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1684 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1685 an uninitialized variable.
1686
1687 2019-11-25 Martin Jambor <mjambor@suse.cz>
1688
1689 PR ipa/92109
1690 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1691 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1692 (cgraph_materialize_clone): Move removel from clone tree to the
1693 the new method and use it instead.
1694 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1695 bodies of clones, also remove it from the clone tree.
1696
1697 2019-11-25 Martin Jambor <mjambor@suse.cz>
1698
1699 PR ipa/91956
1700 * ipa-sra.c (process_isra_node_results): Put the new node to the
1701 same comdat group as the original node.
1702
1703 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1704
1705 Build double32 / long-double32 multilibs if needed.
1706
1707 PR target/92055
1708 * config/avr/t-avr:
1709 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1710 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1711 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1712 tm_defines and pass to genmultilib.awk.
1713 * config/avr/genmultilib.awk: Use these variables to add double32
1714 and / or long-double32 multilib(s) as needed.
1715 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1716
1717 2019-11-25 Richard Biener <rguenther@suse.de>
1718
1719 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1720 loop body, defaulted to NULL.
1721 (single_likely_exit): Add exit vector argument
1722 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1723 (number_of_iterations_exit): Likewise.
1724 (number_of_iterations_exit_assumptions): Likewise.
1725 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1726 if not NULL.
1727 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1728 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1729 Compute exit vector around call to single_likely_exit.
1730 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1731 loop body to loop_only_exit_p.
1732 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1733 caller.
1734 (number_of_iterations_exit_assumptions): Get loop body from caller
1735 if not NULL.
1736 (number_of_iterations_exit): Pass through new loop body arg.
1737 (infer_loop_bounds_from_undefined): Get loop body from caller.
1738 (estimate_numbers_of_iterations): Compute loop body once.
1739
1740 2019-11-25 Richard Biener <rguenther@suse.de>
1741
1742 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1743 auto_bb_flag instead of an sbitmap for visited handling.
1744
1745 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1746
1747 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1748 iterator.
1749 (vector_fp_comparison_complex): Likewise.
1750 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1751 define_and_split.
1752 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1753 Likewise.
1754 (vector_lt<mode> for VEC_F): Refactor with
1755 vector_fp_comparison_simple.
1756 (vector_le<mode> for VEC_F): Likewise.
1757 (vector_unge<mode> for VEC_F): Likewise.
1758 (vector_unle<mode> for VEC_F): Likewise.
1759 (vector_ne<mode> for VEC_F): Likewise.
1760 (vector_ungt<mode> for VEC_F): Likewise.
1761 (vector_unlt<mode> for VEC_F): Likewise.
1762 (vector_ltgt<mode> for VEC_F): Refactor with
1763 vector_fp_comparison_complex.
1764 (vector_ordered<mode> for VEC_F): Likewise.
1765 (vector_uneq<mode> for VEC_F): Likewise.
1766 (vector_unordered<mode> for VEC_F): Likewise.
1767
1768 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1769
1770 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1771 COMPARE, representing an overflow detection.
1772
1773 * combine.c (combine_instructions): Record costs for jumps.
1774
1775 * combine.c (can_combine_p): Allow autoinc in jumps.
1776
1777 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1778
1779 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1780 * doc/invoke.texi (max-inline-insns-single-O2,
1781 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1782 early-inlining-insns-O2): Remove documentation.
1783 * ipa-fnsummary.c (analyze_function_body,
1784 compute_fn_summary): Use opt_for_fn when accessing parameters.
1785 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1786 inline_insns_auto, can_inline_edge_by_limits_p,
1787 want_early_inline_function_p, big_speedup_p,
1788 want_inline_small_function_p, want_inline_self_recursive_call_p,
1789 recursive_inlining, compute_max_insns, inline_small_functions):
1790 Likewise.
1791 * opts.c (default_options): Add -O3 defaults for
1792 OPT__param_early_inlining_insns_,
1793 OPT__param_inline_heuristics_hint_percent_,
1794 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1795 * params.opt (-param=early-inlining-insns-O2=,
1796 -param=inline-heuristics-hint-percent-O2=,
1797 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1798 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1799 -param=inline-min-speedup=, -param=inline-unit-growth=,
1800 -param=large-function-growth=, -param=large-stack-frame=,
1801 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1802 -param=max-inline-insns-recursive=,
1803 -param=max-inline-insns-recursive-auto=,
1804 -param=max-inline-insns-single=,
1805 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1806 -param=max-inline-recursive-depth=,
1807 -param=max-inline-recursive-depth-auto=,
1808 -param=min-inline-recursive-probability=,
1809 -param=partial-inlining-entry-probability=,
1810 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1811 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1812 Optimization.
1813
1814 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1815
1816 * ipa-fnsummary.c: Fix comment typos.
1817 * ipa-ref.h: Likewise.
1818 * ipa-predicate.h: Likewise.
1819 * ipa-split.c: Likewise.
1820 * ipa-inline-analysis.c: Likewise.
1821 * ipa-predicate.c: Likewise.
1822 * ipa-devirt.c: Likewise.
1823 * ipa-icf.h: Likewise.
1824 * profile-count.c: Likewise.
1825 * ipa-icf.c: Likewise.
1826 (sem_function::equals_wpa): Fix typos in dump messages.
1827 * ipa-icf-gimple.h: Fix comment typos.
1828 * ipa-inline-transform.c: Likewise.
1829 * ipa-polymorphic-call.c: Likewise.
1830 * ipa-fnsummary.h: Likewise.
1831 * ipa-inline.c: Likewise.
1832 (dump_inline_stats): Fix typo in debug dump message.
1833 * profile-count.h: Fix comment typos.
1834
1835 PR target/92615
1836 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1837 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1838 register_operand, force x into register before storing it into dest.
1839 Formatting fix.
1840
1841 PR middle-end/83859
1842 * doc/extend.texi (attribute access): Fix a typo.
1843
1844 PR rtl-optimization/92610
1845 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1846 cse_cfg_altered is set, even when tem is 0.
1847 (rest_of_handle_cse_after_global_opts): Likewise.
1848
1849 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1850
1851 PR c++/92458
1852 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1853 tree_hash): Move to ...
1854 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1855 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1856 types.
1857 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1858
1859 PR tree-optimization/92618
1860 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1861 containing the auto_vec and a tree.
1862 (undistribute_bitref_for_vector): Handle the case when element type
1863 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1864 fixes.
1865
1866 2019-11-22 Martin Sebor <msebor@redhat.com>
1867
1868 PR middle-end/83859
1869 * attribs.h (struct attr_access): New.
1870 * attribs.c (decl_attributes): Add an informational note.
1871 * builtins.c (check_access): Make extern. Consistently set no-warning
1872 after issuing a warning. Handle calls through function pointers. Set
1873 no-warning.
1874 * builtins.h (check_access): Declare.
1875 * calls.c (rdwr_access_hash): New type.
1876 (rdwr_map): Same.
1877 (init_attr_rdwr_indices): New function.
1878 (maybe_warn_rdwr_sizes): Same.
1879 (initialize_argument_information): Call init_attr_rdwr_indices.
1880 Call maybe_warn_rdwr_sizes.
1881 (get_size_range): Avoid null argument.
1882 * doc/extend.texi (attribute access): Document new attribute.
1883
1884 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1885
1886 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1887 (ACC_LDS_SIZE): Define.
1888 (OTHER_LDS_SIZE): Define.
1889 (LDS_SIZE): Redefine using above.
1890 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1891
1892 2019-11-22 Martin Sebor <msebor@redhat.com>
1893
1894 PR middle-end/88226
1895 * builtins.c (check_nul_terminated_array): New function.
1896 (fold_builtin_0): Remove declaration.
1897 (fold_builtin_1): Same.
1898 (fold_builtin_2): Same.
1899 (fold_builtin_3): Same.
1900 (fold_builtin_strpbrk): Add argument.
1901 (fold_builtin_strspn): Same.
1902 (fold_builtin_strcspn): Same.
1903 (expand_builtin_strcat): Call it. Remove unused argument.
1904 (expand_builtin_stpncpy): Same.
1905 (expand_builtin_strncat): Same.
1906 (expand_builtin_strncpy): Same. Adjust indentation.
1907 (expand_builtin_strcmp): Same.
1908 (expand_builtin_strncmp): Same.
1909 (expand_builtin_fork_or_exec): Same.
1910 (expand_builtin): Handle more built-ins.
1911 (fold_builtin_2): Add argument.
1912 (fold_builtin_n): Make static. Add argument.
1913 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1914 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1915 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1916 (fold_call_stmt): Pass new argument to fold_builtin_n.
1917 * builtins.h: Correct a comment.
1918 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1919 check_nul_terminated_array.
1920 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1921 check_nul_terminated_array.
1922 (handle_builtin_strchr): Same.
1923 (handle_builtin_string_cmp): Same.
1924
1925 2019-11-22 Martin Sebor <msebor@redhat.com>
1926
1927 PR tree-optimization/92501
1928 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1929 handle unterminated arrays. Rename local variables for clarity.
1930
1931 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1932
1933 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1934 granulated_sgprs according to architecture.
1935
1936 2019-11-22 Jan Hubicka <jh@suse.cz>
1937
1938 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1939 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1940 (memory_block_pool::reduce_free_list): ... this one.
1941 (memory_block_pool::trim): New static function.
1942 * memory-block.h (memory_block_pool::freelist_size): New constant
1943 (memory_block_pool::clear_free_list): Rename to ...
1944 (memory_block_pool::reduce_free_list): ... this one.
1945 (memory_block_pool::trim): Declare.
1946
1947 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1948
1949 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1950 vect_cost_for_stmt.
1951 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1952 here rather than...
1953 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1954
1955 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1956
1957 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1958 (bic_cmp0_noout): New pattern.
1959 (bic_cmp0): Likewise.
1960 (neg_scc_insn): Remove pattern.
1961 (not_scc_insn): Likewise.
1962
1963 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1964
1965 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1966
1967 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1968
1969 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1970 pedwarn instead of warning_at for fallthrough not preceding a case
1971 or default label.
1972
1973 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1974
1975 PR tree-optimization/92608
1976 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1977 of dyn_cast.
1978
1979 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1980
1981 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1982 New predicate.
1983 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1984 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1985 special for FP comparisons that need a cror instruction eventually.
1986 (rs6000_emit_fp_cror): New function.
1987 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1988 instruction, for normal FP modes, with HONOR_NANS.
1989 (rs6000_emit_cbranch): Reformat.
1990 * config/rs6000/rs6000.md (fp_rev): New iterator.
1991 (fp_two): New iterator.
1992 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1993 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1994 *cbranch_2insn: New define_insn_and_split.
1995
1996 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1997
1998 PR tree-optimization/92526
1999 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2000 versioning for alignment if the accesses do not have a consistent
2001 mask, rather than asserting that the masks are consistent.
2002
2003 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2004
2005 PR tree-optimization/92595
2006 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2007 check.
2008 (vectorizable_store, vectorizable_load): Likewise.
2009
2010 2019-11-21 Jan Hubicka <jh@suse.cz>
2011
2012 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2013 (resolve_noninline_speculation, inline_small_functions): Avoid
2014 redundant updates.
2015
2016 2019-11-21 Richard Biener <rguenther@suse.de>
2017
2018 * lra.c (lra_insn_recog_data_pool): New.
2019 (free_insn_recog_data): Adjust.
2020 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2021 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2022
2023 2019-11-21 Richard Biener <rguenther@suse.de>
2024
2025 PR tree-optimization/92596
2026 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2027
2028 2019-11-21 Jan Hubicka <jh@suse.cz>
2029
2030 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2031 ready for some vectors to not be allocated.
2032 (evaluate_properties_for_edge): Document better; make
2033 known_vals and known_aggs caller allocated; avoid determining
2034 values of parameters which are not used.
2035 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2036 known_aggs.
2037 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2038 (do_estimate_edge_size): Likewise.
2039 (do_estimate_edge_hints): Likewise.
2040 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2041 values are not known.
2042 (ipa_release_agg_values): Add option to not release vector itself.
2043 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2044
2045 2019-11-21 Richard Biener <rguenther@suse.de>
2046
2047 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2048 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2049 (loop_iterator::loop_iterator): Adjust.
2050 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2051 (compute_dominance_frontiers): ... this. Hoist invariant
2052 get_immediate_dominator call.
2053 (compute_idf): Use a work-set instead of a work-list for more
2054 optimal iteration order and duplicate avoidance.
2055 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2056 the vector all the time, instead pre-allocate the vector only
2057 once.
2058 (delete_update_ssa): Simplify.
2059 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2060
2061 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2062
2063 PR tree-optimization/91355
2064 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2065 for early_bb scaled count with best_bb count comparison.
2066
2067 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2068 preffer -> prefer.
2069 * ipa-inline.c (edge_badness): Likewise.
2070 * lto-streamer.h (class lto_location_cache): Likewise.
2071 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2072 gratutious -> gratuitous.
2073
2074 2019-11-21 Richard Biener <rguenther@suse.de>
2075
2076 Revert
2077 2019-09-17 Richard Biener <rguenther@suse.de>
2078
2079 PR tree-optimization/91790
2080 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2081 use the correct DR for setting up realignment.
2082
2083 2019-11-21 Richard Biener <rguenther@suse.de>
2084
2085 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2086 (equiv_class_obstack): New.
2087 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2088 (perform_var_substitution): Initialize equiv_class_obstack.
2089 (free_var_substitution_info): Free equiv_class_obstack.
2090
2091 2019-11-20 Jan Hubicka <jh@suse.cz>
2092
2093 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2094 edge growth when callee function is very large.
2095 * ipa-inline.h (estimate_min_edge_growth): New.
2096
2097 2019-11-20 Jan Hubicka <jh@suse.cz>
2098
2099 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2100 negative time in calls summary; correct roundoff errors
2101 leading to negative times.
2102 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2103 if present.
2104 (ipa_update_overall_fn_summary): Add RESET parameter.
2105 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2106 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2107
2108 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2109
2110 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2111 def types for two-operation SLP.
2112
2113 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2114
2115 PR testsuite/92366
2116 * doc/sourcebuild.texi (vect_char_add): Document.
2117
2118 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2119
2120 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2121 * function.c (record_final_call): Record even calls that might
2122 have been in the cgraph.
2123 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2124 callees.
2125
2126 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2127
2128 * configure.ac: Use https for gcc.gnu.org
2129 * configure: Regenerated.
2130 * doc/install.texi: Use https for gcc.gnu.org.
2131 * doc/sourcebuild.texi: Likewise.
2132
2133 2019-11-20 Julian Brown <julian@codesourcery.com>
2134
2135 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2136
2137 2019-11-20 Jan Hubicka <jh@suse.cz>
2138
2139 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2140 parameter and update call_size_time_table.
2141 (ipa_fn_summary::max_size_time_table_size): New constant.
2142 (estimate_calls_size_and_time_1): Break out from ...
2143 (estimate_calls_size_and_time): ... here; implement summary production.
2144 (summarize_calls_size_and_time): New function.
2145 (ipa_call_context::estimate_size_and_time): Bypass
2146 estimate_calls_size_and_time for leaf functions.
2147 (ipa_update_overall_fn_summary): Likewise.
2148 * ipa-fnsummary.h (call_size_time_table): New.
2149 (ipa_fn_summary::account_size_time): Update prototype.
2150
2151 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2152
2153 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2154
2155 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2156
2157 PR85678
2158 * common.opt (fcommon): Change init to 1.
2159 * doc/invoke.texi (-fcommon): Update documentation.
2160
2161 2019-11-20 Jan Hubicka <jh@suse.cz>
2162
2163 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2164 to ordinary array.
2165
2166 2019-11-20 Jan Hubicka <jh@suse.cz>
2167
2168 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2169 Add allocator parameter.
2170 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2171 (fibonacci_heap<K,V>::m_allocator): New.
2172 (fibonacci_heap<K,V>::m_own_allocator): New.
2173 (fibonacci_heap<K,V>::insert): Use allocator.
2174 (fibonacci_heap<K,V>::extract_min): Likewise.
2175 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2176 allocator.
2177 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2178 on stack.
2179 * fibonacci_heap.c: Include alloc-pool
2180 (test_empty_heap): Initialize allocator.
2181 (test_union): Likewise.
2182 * bb-reorder.c: Include alloc-pool.h.
2183 * tracer.c: Inlclude alloc-pool.h.
2184
2185 2019-11-20 Jan Hubicka <jh@suse.cz>
2186
2187 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2188 Preallocate for 32 entries.
2189 (DFS::worklist): Likewise.
2190 (DFS::DFS): Do not initialize sccstack and worklist.
2191 (DFS::~DFS): Do not release sccstack.
2192
2193 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2194
2195 PR target/92573
2196 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2197 Handle UNORDERED if !HONOR_NANS.
2198
2199 2019-11-20 Jan Hubicka <jh@suse.cz>
2200
2201 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2202 (edge_badness): ... here.
2203 (inline_small_functions): Use monotonicity of badness calculation
2204 to avoid redundant updates.
2205
2206 2019-11-20 Richard Biener <rguenther@suse.de>
2207
2208 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2209 constructors we are actually analyzing.
2210 (vect_slp_check_for_constructors): Do not vectorize uniform
2211 constuctors, do not dump here.
2212
2213 2019-11-20 Richard Biener <rguenther@suse.de>
2214
2215 PR tree-optimization/92537
2216 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2217 vectorization validity check...
2218 (vect_slp_analyze_operations): ... here.
2219
2220 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2221
2222 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2223 (make_pass_arc_predicate_delay_insns): Likewise.
2224 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2225 method, remove clone.
2226 (class pass_arc_predicate_delay_insns): Likewise.
2227 (arc_init): Remove registering of ARC specific passes.
2228 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2229 * config/arc/arc-passes.def: New file.
2230
2231 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2232
2233 PR middle-end/90840
2234 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2235 and has a mode that doesn't have corresponding integral type.
2236
2237 PR target/90867
2238 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2239 clear opts->x_ix86_isa_flags{,2} here...
2240 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2241 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2242
2243 PR c/90898
2244 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2245 assertion.
2246 (insert_clobbers_for_var): Fix a typo in function comment.
2247
2248 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2249 Jakub Jelinek <jakub@redhat.com>
2250
2251 PR middle-end/91195
2252 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2253 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2254 load.
2255
2256 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2257
2258 Make 0-series device specs work with older versions of avr-gcc.
2259
2260 PR target/92545
2261 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2262 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2263 <*link_pm_base_address>: Don't write spec.
2264 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2265
2266 2019-11-20 Richard Biener <rguenther@suse.de>
2267
2268 PR c/92088
2269 * builtins.c (compute_objsize): Deal with VLAs.
2270
2271 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2272
2273 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2274 from common code.
2275 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2276 call new function.
2277 (power9_sched_reorder2): Call new function.
2278 (rs6000_sched_reorder2): Likewise.
2279
2280 2019-11-18 Jan Hubicka <jh@suse.cz>
2281
2282 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2283 (estimate_calls_size_and_time): Update.
2284
2285 2019-11-18 Jan Hubicka <jh@suse.cz>
2286
2287 * ipa-inline.c (inlining_speedup): New function.
2288 (edge_badness): Use it.
2289
2290 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2291 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2292
2293 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2294 Mark as not having "likely" version.
2295 * config/mips/mips.md (insn_count): The simd_div instruction with
2296 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2297 (can_delay): Exclude simd_branch.
2298 (defile_delay *): Add simd_branch instructions.
2299 They have one regular delay slot.
2300
2301 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2302
2303 Revert:
2304 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2305
2306 * cse.c (cse_insn): Delete no-op register moves too.
2307 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2308 Take a second comparison to control the value for NE.
2309 (mask_to_comparison): Handle unsigned comparisons.
2310 (simplify_logical_relational_operation): Likewise. Update call
2311 to comparison_to_mask. Handle AND if !HONOR_NANs.
2312 (simplify_binary_operation_1): Call the above for AND too.
2313
2314 2019-11-19 Martin Liska <mliska@suse.cz>
2315
2316 * toplev.c (general_init): Move the call...
2317 (toplev::main): ... here as we need init_options_struct
2318 being called.
2319
2320 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2321
2322 PR target/79262
2323 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2324 vec_to_scalar_cost.
2325
2326 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2327
2328 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2329 (armv7-a): Likewise.
2330 (armv7ve): Likewise.
2331
2332 2019-11-19 Richard Biener <rguenther@suse.de>
2333
2334 PR tree-optimization/92581
2335 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2336 condition reduction chains gather all conditions involved
2337 for computing the index reduction vector.
2338
2339 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2340
2341 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2342 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2343 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2344 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2345 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2346 (aarch64_init_memtag_builtins): New.
2347 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2348 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2349 (aarch64_expand_builtin_memtag): New.
2350 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2351 (AARCH64_BUILTIN_SUBCODE): New macro.
2352 (aarch64_resolve_overloaded_memtag): New.
2353 (aarch64_resolve_overloaded_builtin_general): New. Call
2354 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2355 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2356 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2357 (aarch64_resolve_overloaded_builtin): Call
2358 aarch64_resolve_overloaded_builtin_general.
2359 * config/aarch64/aarch64-protos.h
2360 (aarch64_resolve_overloaded_builtin_general): New declaration.
2361 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2362 (TARGET_MEMTAG): Likewise.
2363 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2364 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2365 (irg, gmi, subp, addg, ldg, stg): New instructions.
2366 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2367 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2368 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2369 (__arm_mte_get_tag): Likewise.
2370 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2371 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2372 * config/arm/types.md (memtag): New.
2373 * doc/invoke.texi (-memtag): Update description.
2374
2375 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2376
2377 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2378 to define __GCC_ASM_FLAG_OUTPUTS__.
2379 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2380 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2381 depending on TARGET_THUMB1.
2382 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2383
2384 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2385
2386 PR target/92549
2387 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2388
2389 PR middle-end/91450
2390 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2391 operand is negative and one non-negative, compare the non-negative
2392 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2393 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2394 and s2 == 0, unless one of them is known to be negative. Remove
2395 tem2 variable, use tem where tem2 has been used before.
2396
2397 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2398
2399 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2400
2401 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2402
2403 PR tree-optimization/92557
2404 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2405 vmode rather than asserting it always is.
2406
2407 2019-11-19 Richard Biener <rguenther@suse.de>
2408
2409 PR tree-optimization/92554
2410 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2411 for the actual condition stmt and deal with sign-changes.
2412
2413 2019-11-19 Richard Biener <rguenther@suse.de>
2414
2415 PR tree-optimization/92555
2416 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2417 for non-SLP stmts.
2418
2419 2019-11-19 Martin Liska <mliska@suse.cz>
2420
2421 PR bootstrap/92540
2422 * config/riscv/riscv.c (riscv_address_insns): Initialize
2423 addr in order to remove boostrap -Wmaybe-uninitialized
2424 error.
2425
2426 2019-11-18 Martin Sebor <msebor@redhat.com>
2427
2428 PR tree-optimization/92493
2429 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2430 assignment.
2431
2432 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2433
2434 * cfgloop.c (get_loop_body_in_custom_order): New.
2435 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2436 * tree-loop-distribution.c (class loop_distribution): New.
2437 (bb_top_order_cmp): Remove.
2438 (bb_top_order_cmp_r): New.
2439 (create_rdg_vertices): Move into class loop_distribution.
2440 (stmts_from_loop): Same as above.
2441 (update_for_merge): Same as above.
2442 (partition_merge_into): Same as above.
2443 (get_data_dependence): Same as above.
2444 (data_dep_in_cycle_p): Same as above.
2445 (update_type_for_merge): Same as above.
2446 (build_rdg_partition_for-vertex): Same as above.
2447 (classify_builtin_ldst): Same as above.
2448 (classify_partition): Same as above.
2449 (share_memory_accesses): Same as above.
2450 (rdg_build_partitions): Same as above.
2451 (pg_add_dependence_edges): Same as above.
2452 (build_partition_graph): Same as above.
2453 (merge_dep_scc_partitions): Same as above.
2454 (break_alias_scc_partitions): Same as above.
2455 (finalize_partitions): Same as above.
2456 (distribute_loop): Same as above.
2457 (bb_top_order_init): New method
2458 (bb_top_order_destroy): New method.
2459 (get_bb_top_order_index_size): New method.
2460 (get_bb_top_order_index_index): New method.
2461 (get_bb_top_order_index_index): New method.
2462 (loop_distribution::execute): New method.
2463 (pass_loop_distribution::execute): Instantiate loop_distribution.
2464
2465 2019-11-18 Jan Hubicka <jh@suse.cz>
2466
2467 PR ipa/92508
2468 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2469 caches.
2470 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2471
2472 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2473
2474 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2475 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2476 * doc/md.texi: Document them.
2477 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2478 internal functions.
2479 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2480 * internal-fn.c (check_ptrs_direct): New macro.
2481 (expand_check_ptrs_optab_fn): Likewise.
2482 (direct_check_ptrs_optab_supported_p): Likewise.
2483 (internal_check_ptrs_fn_supported_p): New fuction.
2484 * tree-data-ref.c: Include internal-fn.h.
2485 (create_ifn_alias_checks): New function.
2486 (create_intersect_range_checks): Use it.
2487 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2488 (optab, cmp_op): Handle it.
2489 (raw_war, unspec): New int attributes.
2490 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2491 constants.
2492 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2493 New predicate.
2494 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2495 expander.
2496 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2497 pattern.
2498
2499 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2500
2501 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2502 empty constructors.
2503
2504 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2505
2506 * cse.c (cse_insn): Delete no-op register moves too.
2507 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2508 Take a second comparison to control the value for NE.
2509 (mask_to_comparison): Handle unsigned comparisons.
2510 (simplify_logical_relational_operation): Likewise. Update call
2511 to comparison_to_mask. Handle AND if !HONOR_NANs.
2512 (simplify_binary_operation_1): Call the above for AND too.
2513
2514 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2515
2516 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2517 splitting the main code out into...
2518 (native_encode_vector_part): ...this new function.
2519 (native_decode_vector_tree): New function.
2520 (fold_view_convert_vector_encoding): Likewise.
2521 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2522 to VECTOR_TYPEs.
2523
2524 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2525
2526 * tree-data-ref.c (create_intersect_range_checks_index): If the
2527 alias pair describes simple WAW and WAR dependencies, just check
2528 whether the first B access overlaps later A accesses.
2529 (create_waw_or_war_checks): New function that performs the same
2530 optimization on addresses.
2531 (create_intersect_range_checks): Call it.
2532
2533 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2534
2535 * lra-constraints.c (valid_address_p): Take the operand and a
2536 constraint as argument. If the operand is a MEM and the constraint
2537 is a memory constraint, check whether the eliminated form of the
2538 MEM already satisfies the constraint.
2539 (process_address_1): Update calls accordingly.
2540
2541 2019-11-18 Tom Tromey <tromey@adacore.com>
2542
2543 * doc/tm.texi: Rebuild.
2544 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2545 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2546
2547 2019-11-18 Richard Biener <rguenther@suse.de>
2548
2549 PR tree-optimization/92516
2550 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2551 argument, hoist bst_map creation/destruction to ...
2552 (vect_analyze_slp): ... here, forming a true graph with
2553 SLP instances being the entries.
2554 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2555 (vect_detect_hybrid_slp): Use one visited set for all
2556 graph entries.
2557 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2558 to hash-sets of slp_tree.
2559 (vect_slp_analyze_operations): Likewise.
2560 (vect_bb_slp_scalar_cost): Remove wrapper.
2561 (vect_bb_vectorization_profitable_p): Use one visited set for
2562 all graph entries.
2563 (vect_schedule_slp_instance): Elide bst_map use.
2564 (vect_schedule_slp): Likewise.
2565
2566 2019-11-18 Richard Biener <rguenther@suse.de>
2567
2568 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2569 was vectorized with just external refs fail.
2570
2571 2019-11-18 Martin Liska <mliska@suse.cz>
2572
2573 PR ipa/92525
2574 * ipa-icf.c (sem_function::init): Unset m_checker
2575 at the end of the function.
2576
2577 2019-11-18 Richard Biener <rguenther@suse.de>
2578
2579 PR tree-optimization/92558
2580 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2581 reducting the width of a reduction vector def update new_phis.
2582
2583 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2584
2585 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2586 and s390*-*-linux-musl* targets.
2587 * configure: Regenerate.
2588
2589 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2590
2591 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2592 (MUSL_DYNAMIC_LINKER64): Define.
2593
2594 2019-11-18 Martin Liska <mliska@suse.cz>
2595
2596 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2597 message for an unknown counter.
2598 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2599 (dbg_cnt_process_opt): Remove unreachable code.
2600
2601 2019-11-18 Martin Liska <mliska@suse.cz>
2602
2603 PR ipa/92529
2604 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2605 Compare LHS types of NOP_EXPR.
2606
2607 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2608
2609 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2610 "initial_pass_name" argument -- by running "*clean_state" pass.
2611 Also free the "initial_pass_name" when done.
2612
2613 2019-11-18 Richard Biener <rguenther@suse.de>
2614
2615 PR rtl-optimization/92462
2616 * alias.c (find_base_term): Restrict the look through ANDs.
2617 (find_base_value): Likewise.
2618
2619 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2620
2621 Add support for AVR devices from the 0-series.
2622
2623 PR target/92545
2624 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2625 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2626 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2627 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2628 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2629 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2630 for spec definitions.
2631 * doc/avr-mmcu.texi: Regenerate.
2632
2633 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2634
2635 PR target/92448
2636 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2637 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2638 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2639 (ix86_reassociation_width): Ditto.
2640 * config/i386/i386-options.c (ix86_option_override_internal):
2641 Replace TARGET_AVX128_OPTIAML with
2642 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2643 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2644 (TARGET_AVX128_OPTIMAL): Deleted.
2645 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2646 DEF_TUNE.
2647
2648 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2649
2650 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2651 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2652 just SI.
2653 (cceq_rev_compare): Rename to...
2654 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2655 just SI.
2656 (define_split for <bd>tf_<mode>): Add SImode first argument to
2657 gen_cceq_ior_compare.
2658
2659 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2660
2661 * common/config/powerpcspe: Delete.
2662
2663 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2664
2665 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2666 output in UNSPEC_WRFFR.
2667
2668 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2669
2670 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2671 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2672
2673 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2674
2675 * tree-data-ref.c (create_intersect_range_checks_index)
2676 (create_intersect_range_checks): Print dump messages.
2677
2678 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2679
2680 * tree-data-ref.c (dump_alias_pair): New function.
2681 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2682
2683 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2684
2685 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2686 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2687 merging data references with different steps.
2688 (create_intersect_range_checks_index): Take a
2689 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2690 Bail out if DR_ALIAS_MIXED_STEPS is set.
2691 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2692 instead of two dr_with_seg_lens. Update call to
2693 create_intersect_range_checks_index.
2694 (create_runtime_alias_checks): Update call accordingly.
2695
2696 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2697
2698 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2699 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2700 (dr_with_seg_len_pair_t::sequencing): New enum.
2701 (dr_with_seg_len_pair_t::flags): New member variable.
2702 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2703 parameter and initialize the flags member variable.
2704 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2705 call accordingly.
2706 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2707 Ensure the two data references in an alias pair are in statement
2708 order, if there is a defined order.
2709 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2710 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2711 swapped the references in a dr_with_seg_len_pair_t. OR together
2712 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2713 try to restore the original dr_with_seg_len order, updating the
2714 flags if that fails.
2715
2716 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2717
2718 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2719 swapping the dr_as based on init values until we've decided
2720 whether to merge them.
2721
2722 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2723
2724 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2725 two accesses in each dr_with_seg_len_pair_t before trying to
2726 combine separate dr_with_seg_len_pair_ts.
2727 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2728 that here.
2729 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2730
2731 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2732
2733 * config/aarch64/aarch64-sve.md
2734 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2735 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2736 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2737 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2738 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2739 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2740 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2741 pattern.
2742 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2743 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2744 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2745 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2746
2747 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2748
2749 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2750 (SVE_4HSI): New mode iterators.
2751 (ANY_EXTEND2): New code iterator.
2752 * config/aarch64/aarch64-sve.md
2753 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2754 Extend to...
2755 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2756 ...this, handling extension to partial modes as well as full modes.
2757 Describe the extension as a predicated rather than unpredicated
2758 extension.
2759 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2760 Likewise extend to...
2761 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2762 ...this, making the same adjustments.
2763 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2764 Likewise extend to...
2765 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2766 ...this, making the same adjustments.
2767 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2768 Likewise extend to...
2769 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2770 ...this, making the same adjustments.
2771 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2772 New pattern.
2773 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2774 extension predicate.
2775 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2776 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2777 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2778 Describe the extension as a predicated rather than unpredicated
2779 extension.
2780 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2781 Likewise. Canonicalize to a constant extension predicate.
2782 * config/aarch64/aarch64-sve-builtins-base.cc
2783 (svld1_gather_extend_impl::expand): Add an extra predicate for
2784 the extension.
2785 (svldff1_gather_extend_impl::expand): Likewise.
2786
2787 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2788
2789 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2790 iterators.
2791 * config/aarch64/aarch64-sve.md
2792 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2793 (gather_load<SVE_24:mode><v_int_container>): ...this.
2794 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2795 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2796 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2797 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2798 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2799 New pattern.
2800 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2801 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2802 Allow the nominal extension predicate to be different from the
2803 load predicate.
2804 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2805 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2806
2807 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2808
2809 * config/aarch64/aarch64-sve.md
2810 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2811 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2812 function.
2813 (aarch64_sve_adjust_stmt_cost): Call it.
2814
2815 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2816
2817 * config/aarch64/aarch64-sve.md
2818 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2819 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2820 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2821 Combine into...
2822 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2823 ...this new pattern, handling extension to partial modes as well
2824 as full modes. Describe the extension as a predicated rather than
2825 unpredicated extension.
2826 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2827 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2828 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2829 Combine into...
2830 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2831 ...this new pattern, handling extension to partial modes as well
2832 as full modes. Describe the extension as a predicated rather than
2833 unpredicated extension.
2834 * config/aarch64/aarch64-sve-builtins.cc
2835 (function_expander::use_contiguous_load_insn): Add an extra
2836 predicate for extending loads.
2837 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2838 (aarch64_sve_adjust_stmt_cost): Likewise.
2839 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2840 the cost of SVE vector stmts.
2841
2842 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2843
2844 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2845 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2846 * config/aarch64/aarch64-sve.md
2847 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2848 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2849 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2850 comment. Avoid new narrower_mask ambiguity.
2851 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2852 (*cond_uxt<mode>_2): Update comment.
2853 (*cond_uxt<mode>_any): Likewise.
2854
2855 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2856
2857 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2858 float modes.
2859 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2860 function.
2861 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2862 new vector float modes.
2863 (aarch64_sve_container_bits): New function.
2864 (aarch64_sve_pred_mode): Likewise.
2865 (aarch64_get_mask_mode): Use it.
2866 (aarch64_sve_element_int_mode): Handle structure modes and partial
2867 modes.
2868 (aarch64_sve_container_int_mode): New function.
2869 (aarch64_vectorize_related_mode): Return SVE modes when given
2870 SVE modes. Handle partial modes, taking the preferred number
2871 of units from the size of the given mode.
2872 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2873 in registers.
2874 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2875 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2876 (aarch64_split_sve_subreg_move): Use the mode form of
2877 aarch64_sve_pred_mode.
2878 (aarch64_secondary_reload): Handle partial modes in the same way
2879 as full big-endian vectors.
2880 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2881 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2882 merging with the Advanced SIMD modes. If two modes have the
2883 same size, try the Advanced SIMD mode first.
2884 (aarch64_simd_valid_immediate): Use the container rather than
2885 the element mode for INDEX constants.
2886 (aarch64_simd_vector_alignment): Make the alignment of partial
2887 SVE vector modes the same as their minimum size.
2888 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2889 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2890 (mov<SVE_ALL:mode>): ...this.
2891 (movmisalign<SVE_FULL:mode>): Extend to...
2892 (movmisalign<SVE_ALL:mode>): ...this.
2893 (*aarch64_sve_mov<mode>_le): Rename to...
2894 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2895 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2896 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2897 partial modes regardless of endianness.
2898 (aarch64_sve_reload_be): Rename to...
2899 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2900 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2901 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2902 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2903 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2904 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2905 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2906 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2907 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2908 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2909 (maskload<SVE_FULL:mode><vpred>): Extend to...
2910 (maskload<SVE_ALL:mode><vpred>): ...this.
2911 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2912 (maskstore<SVE_ALL:mode><vpred>): ...this.
2913 (vec_duplicate<SVE_FULL:mode>): Extend to...
2914 (vec_duplicate<SVE_ALL:mode>): ...this.
2915 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2916 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2917 (sve_ld1r<SVE_FULL:mode>): Extend to...
2918 (sve_ld1r<SVE_ALL:mode>): ...this.
2919 (vec_series<SVE_FULL_I:mode>): Extend to...
2920 (vec_series<SVE_I:mode>): ...this.
2921 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2922 (*vec_series<SVE_I:mode>_plus): ...this.
2923 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2924 new VPRED ambiguity.
2925 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2926 (add<SVE_FULL_I:mode>3): Extend to...
2927 (add<SVE_I:mode>3): ...this.
2928 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2929 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2930 (VPRED, vpred): Likewise.
2931 (Vctype): New iterator.
2932 (vw): Remove SVE modes.
2933
2934 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2935
2936 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2937 (SVE_PARTIAL_I): ...this.
2938 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2939
2940 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2941
2942 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2943 (SVE_FULL): ...this.
2944 (SVE_I): Rename to...
2945 (SVE_FULL_I): ...this.
2946 (SVE_F): Rename to...
2947 (SVE_FULL_F): ...this.
2948 (SVE_BHSI): Rename to...
2949 (SVE_FULL_BHSI): ...this.
2950 (SVE_HSD): Rename to...
2951 (SVE_FULL_HSD): ...this.
2952 (SVE_HSDI): Rename to...
2953 (SVE_FULL_HSDI): ...this.
2954 (SVE_HSF): Rename to...
2955 (SVE_FULL_HSF): ...this.
2956 (SVE_SD): Rename to...
2957 (SVE_FULL_SD): ...this.
2958 (SVE_SDI): Rename to...
2959 (SVE_FULL_SDI): ...this.
2960 (SVE_SDF): Rename to...
2961 (SVE_FULL_SDF): ...this.
2962 (SVE_S): Rename to...
2963 (SVE_FULL_S): ...this.
2964 (SVE_D): Rename to...
2965 (SVE_FULL_D): ...this.
2966 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2967 * config/aarch64/aarch64-sve2.md: Likewise.
2968
2969 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2970
2971 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2972 New option.
2973 * doc/invoke.texi: Document it.
2974 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2975 By default, return VECT_COMPARE_COSTS for SVE.
2976
2977 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2978
2979 * target.h (VECT_COMPARE_COSTS): New constant.
2980 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2981 * doc/tm.texi: Regenerate.
2982 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2983 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2984 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2985 Likewise.
2986 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2987 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2988 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2989 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2990 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2991 (_loop_vec_info::vec_inside_cost): New member variables.
2992 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2993 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2994 (vect_analyze_loop): When autovectorize_vector_modes returns
2995 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2996 vector mode and picking the one with the lowest cost.
2997 (vect_estimate_min_profitable_iters): Record the computed costs
2998 in the loop_vec_info.
2999
3000 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3001
3002 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3003 element type rather than an element mode.
3004 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3005 Use get_vectype_for_scalar_type to query the natural types
3006 for a given element type rather than basing everything on
3007 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3008 query to MAX_FIXED_MODE_SIZE.
3009 (duplicate_and_interleave): Update call accordingly.
3010 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3011
3012 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3013
3014 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3015 optional maximum nunits.
3016 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3017 takes an slp_tree.
3018 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3019 (vect_get_mask_type_for_stmt): Likewise.
3020 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3021 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3022 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3023 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3024 to get an assumed vector type for data references.
3025 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3026 (vect_update_all_shared_vectypes): Likewise.
3027 (vect_build_slp_tree_1): Pass the group size to
3028 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3029 for BB vectorization.
3030 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3031 before building the vectof from scalars.
3032 (vect_analyze_slp_instance): Pass the group size to
3033 get_vectype_for_scalar_type.
3034 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3035 types for BB vectorization here; just handle the case in which
3036 we deferred the choice for booleans.
3037 (vect_get_constant_vectors): Pass the slp_tree to
3038 get_vectype_for_scalar_type.
3039 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3040 (vectorizable_call): Likewise.
3041 (vectorizable_simd_clone_call): Likewise.
3042 (vectorizable_conversion): Likewise.
3043 (vectorizable_shift): Likewise.
3044 (vectorizable_operation): Likewise.
3045 (vectorizable_comparison): Likewise.
3046 (vect_is_simple_cond): Take the slp_tree as argument and
3047 pass it to get_vectype_for_scalar_type.
3048 (vectorizable_condition): Update call accordingly.
3049 (get_vectype_for_scalar_type): Take a group_size argument.
3050 For BB vectorization, limit the the vector to that number
3051 of elements. Also define an overload that takes an slp_tree.
3052 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3053 pass it to get_vectype_for_scalar_type.
3054 (vect_get_vector_types_for_stmt): Add a group_size argument
3055 and pass it to get_vectype_for_scalar_type. Don't use the
3056 cached vector type for BB vectorization if a group size is given.
3057 Handle data references in that case.
3058 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3059 pass it to get_mask_type_for_scalar_type.
3060
3061 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3062
3063 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3064 parameter.
3065 (estimate_edge_time): Use it.
3066 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3067 ret_nonspec_time parameter.
3068
3069 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3070
3071 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3072
3073 2019-11-15 Nick Clifton <nickc@redhat.com>
3074 Szabolcs Nagy <szabolcs.nagy@arm.com>
3075
3076 PR target/65649
3077 * config/microblaze/microblaze.c (print_operand): Print value as long.
3078
3079 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3080
3081 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3082 accidental commit.
3083
3084 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3085
3086 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3087 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3088
3089 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3090
3091 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3092 (gcn_conditional_register_usage): Use constants in place of hard-coded
3093 values.
3094 (gcn_hsa_declare_function_name): Set lower bound for number of
3095 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3096 MAX_NORMAL_VGPR_COUNT.
3097
3098 2019-11-15 Martin Jambor <mjambor@suse.cz>
3099
3100 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3101 declaration.
3102
3103 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3104
3105 * config/gcn/gcn.c (default_requested_args): New.
3106 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3107 set with default_requested_args.
3108 (gcn_conditional_register_usage): Limit register usage of non-kernel
3109 functions. Reassign fixed registers if a non-standard set of args is
3110 requested.
3111 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3112
3113 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3114
3115 PR ipa/92528
3116 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3117 aggregate jump function when inlined-to caller has no edge summary.
3118
3119 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3120
3121 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3122
3123 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3124
3125 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3126 prologue use of v0.
3127 (print_operand_address): Use v1 for zero vector offset.
3128
3129 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3130
3131 PR tree-optimization/92515
3132 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3133 types when converting a vector/scalar shift into a vector/vector one,
3134 using tree_nop_conversion_p instead of useless_type_conversion_p.
3135 Move the conversion code to the transform block.
3136
3137 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3138
3139 * read-rtl-function.c
3140 (function_reader::add_fixup_source_location): Take additional
3141 parameter of a column.
3142 (function_reader::maybe_read_location): Optionally parse column
3143 information and pass to add_fixup_source_location.
3144
3145 2019-11-15 Richard Biener <rguenther@suse.de>
3146
3147 PR tree-optimization/92512
3148 * tree-vect-loop.c (check_reduction_path): Fix operand index
3149 computability check. Add check for second use in COND_EXPRs.
3150
3151 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3152
3153 PR target/92515
3154 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3155 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3156
3157 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3158
3159 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3160 register class for VCC_LO and VCC_HI.
3161 (gcn_spill_class): Use SGPR_REGS to spill registers in
3162 VCC_CONDITIONAL_REG.
3163
3164 2019-11-15 Richard Biener <rguenther@suse.de>
3165
3166 PR tree-optimization/92324
3167 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3168 singedness of SLP reduction epilouge operations. Also reduce
3169 the vector width for SLP reductions before doing elementwise
3170 operations if possible.
3171
3172 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3173
3174 * passes.c (skip_pass): Set epilogue_completed if skipping the
3175 pro_and_epilogue pass.
3176
3177 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3178
3179 * passes.c (should_skip_pass_p): Always run "dfinish".
3180
3181 2019-11-15 Richard Biener <rguenther@suse.de>
3182
3183 * ipa-inline.c (inline_small_functions): Move assignment
3184 to next before call destroying edge.
3185
3186 2019-11-15 Richard Biener <rguenther@suse.de>
3187
3188 PR tree-optimization/92039
3189 PR tree-optimization/91975
3190 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3191 previous change, treat invariants consistently as non-constant.
3192 (tree_estimate_loop_size): Ternary ops with just the first op
3193 constant are not optimized away.
3194
3195 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3196
3197 * gimplify.c (gimplify_call_expr): Don't call
3198 omp_resolve_declare_variant after gimplification.
3199 * omp-general.c (omp_context_selector_matches): For isa that might
3200 match in some other function, defer if in declare simd function.
3201 (omp_context_compute_score): Don't look for " score" in construct
3202 trait set. Set *score to -1 if it can't ever match.
3203 (omp_resolve_declare_variant): If any variants need to be deferred,
3204 don't punt immediately, but compute scores of all variants and if
3205 ther eis a score winner that doesn't need to be deferred, return that.
3206
3207 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3208
3209 * ipa-comdats.c: Fix comments typo.
3210 * ipa-profile.c: Fix comments typo.
3211 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3212 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3213 (gimple_gen_ic_func_profiler): Likewise.
3214 (pass_ipa_tree_profile::gate): Fix comments typo.
3215
3216 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3217
3218 * ipa-inline.c (inline_small_functions): Update iterator of next.
3219
3220 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3221
3222 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3223 register is suitable for the mode.
3224
3225 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3226
3227 * range-op.h (range_operator::fold_range): Return a bool.
3228 * range-op.cc (range_operator::wi_fold): Assert supported type.
3229 (range_operator::fold_range): Assert supported type and return true.
3230 (operator_equal::fold_range): Return true.
3231 (operator_not_equal::fold_range): Same.
3232 (operator_lt::fold_range): Same.
3233 (operator_le::fold_range): Same.
3234 (operator_gt::fold_range): Same.
3235 (operator_ge::fold_range): Same.
3236 (operator_plus::op1_range): Adjust call to fold_range.
3237 (operator_plus::op2_range): Same.
3238 (operator_minus::op1_range): Same.
3239 (operator_minus::op2_range): Same.
3240 (operator_exact_divide::op1_range): Same.
3241 (operator_lshift::fold_range): Return true and adjust fold_range call.
3242 (operator_rshift::fold_range): Same.
3243 (operator_cast::fold_range): Return true.
3244 (operator_logical_and::fold_range): Same.
3245 (operator_logical_or::fold_range): Same.
3246 (operator_logical_not::fold_range): Same.
3247 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3248 (operator_bitwise_not::op1_range): Same.
3249 (operator_cst::fold_range): Return true.
3250 (operator_identity::fold_range): Return true.
3251 (operator_negate::fold_range): Return true and adjust fold_range call.
3252 (operator_addr_expr::fold_range): Return true.
3253 (operator_addr_expr::op1_range): Adjust call to fold_range.
3254 (range_cast): Same.
3255 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3256 (range_fold_unary_symbolics_p): Same.
3257
3258 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3259
3260 PR tree-optimization/92506
3261 * range-op.cc (range_operator::fold_range): Start with range undefined.
3262 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3263 overflow is varying.
3264
3265 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3266
3267 * range-op.cc (*operator*::*range): Remove calls to
3268 range_intersect, range_invert, and range_union in favor of calling
3269 the in-place API methods.
3270 (range_tests): Same.
3271 * range.cc (range_intersect): Remove.
3272 (range_union): Remove.
3273 (range_invert): Remove.
3274 * range.h (range_intersect): Remove.
3275 (range_union): Remove.
3276 (range_intersect): Remove.
3277
3278 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3279
3280 PR rtl-optimization/92430
3281 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3282 (pass_jump_after_combine::execute): Perform jump threading
3283 unconditionally.
3284
3285 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3286 Doug Rupp <rupp@adacore.com>
3287 Olivier Hainque <hainque@adacore.com>
3288
3289 * config.gcc: Collapse the arm-vxworks entries into
3290 a single arm-wrs-vxworks7* one, bpabi based. Update
3291 the default cpu from arm8 to armv7-a
3292 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3293 we always use ARM_UNWIND_INFO.
3294 (DWARF2_UNWIND_INFO): Remove redefinition.
3295 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3296 (VXWORKS_PERSONALITY): Define, to "llvm".
3297 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3298
3299 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3300
3301 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3302 _VX_CPU instead of CPU and handle arm_arch8.
3303
3304 2019-11-14 Doug Rupp <rupp@adacore.com>
3305 Olivier Hainque <hainque@adacore.com>
3306 Jerome Lambourg <lambourg@adacore.com>
3307
3308 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3309 * config/aarch64/aarch64-vxworks.h: New file.
3310 * config/aarch64/t-aarch64-vxworks: New file.
3311
3312 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3313 Olivier Hainque <hainque@adacore.com>
3314
3315 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3316 definition, pointless with a VxWorks specific version
3317 of crtstuff.
3318 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3319 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3320 New local macros, controlling the addition of vxworks specific
3321 crtstuff objects depending on the EH mechanism and kind of
3322 module being linked.
3323 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3324
3325 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3326 Jerome Lambourg <lambourg@adacore.com>
3327 Olivier Hainque <hainque@adacore.com>
3328
3329 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3330 common macro definitions, conveying VXWORKS7 or 64bit general
3331 variations. Add a block to set gcc_cv_initfini_array
3332 unconditionally to "yes" for VxWorks7.
3333 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3334 by default. Update some comments.
3335 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3336 default, to be added the end of VXWORKS_LIBS_RTP.
3337 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3338 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3339 redefine.
3340 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3341 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3342 to account for the now available TLS abilities.
3343 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3344 (VXWORKS_HAVE_TLS): Likewise.
3345
3346 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3347
3348 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3349 (vect_slp_convert_to_external): Likewise.
3350 (vect_slp_analyze_node_operations): If analysis fails, try building
3351 the node from scalars instead.
3352
3353 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3354
3355 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3356 between vector types.
3357 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3358 non-widening and non-narrowing path to handle standard
3359 conversion codes, if the target supports them.
3360 * expr.c (convert_move): Try using the extend and truncate optabs
3361 for vectors.
3362 * optabs-tree.c (supportable_convert_operation): Likewise.
3363 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3364 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3365 (trunc<mode><Vnarrowq>2): New patterns.
3366
3367 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3368
3369 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3370 require vectype and nunits_vectype to have the same size;
3371 instead assert that nunits_vectype has at least as many
3372 elements as vectype. Don't compute a separate nunits_vectype
3373 if the scalar type is obviously the same as vectype's.
3374 Tweak dump messages.
3375
3376 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3377
3378 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3379 function.
3380 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3381 (TARGET_VECTORIZE_RELATED_MODE): Define.
3382
3383 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3384
3385 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3386 (vec_info::used_vector_mode): New member variable.
3387 (vect_chooses_same_modes_p): Declare.
3388 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3389 chosen vector mode in vec_info::used_vector_mode.
3390 (vect_chooses_same_modes_p): New function.
3391 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3392 the same vector statements multiple times.
3393 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3394
3395 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3396
3397 * machmode.h (opt_machine_mode::operator==): New function.
3398 (opt_machine_mode::operator!=): Likewise.
3399 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3400 (get_related_vectype_for_scalar_type): Delete.
3401 (get_vectype_for_scalar_type_and_size): Declare.
3402 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3403 whether analysis passed or failed, and with what vector modes.
3404 Use related_vector_mode to check whether trying a particular
3405 vector mode would be redundant with the autodetected mode,
3406 and print a dump message if we decide to skip it.
3407 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3408 (vect_create_epilog_for_reduction): Use
3409 get_related_vectype_for_scalar_type instead of
3410 get_vectype_for_scalar_type_and_size.
3411 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3412 with...
3413 (get_related_vectype_for_scalar_type): ...this new function.
3414 Take a starting/"prevailing" vector mode rather than a vector size.
3415 Take an optional nunits argument, with the same meaning as for
3416 related_vector_mode. Use related_vector_mode when not
3417 auto-detecting a mode, falling back to mode_for_vector if no
3418 target mode exists.
3419 (get_vectype_for_scalar_type): Update accordingly.
3420 (get_same_sized_vectype): Likewise.
3421 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3422
3423 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3424
3425 * tree-vect-stmts.c (vectorizable_call): Require the types
3426 to have the same size.
3427
3428 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3429
3430 * tree-vect-stmts.c (vectorizable_call): If an operand is
3431 constant or external, use get_vectype_for_scalar_type
3432 rather than get_same_sized_vectype to get its vector type.
3433 (vectorizable_conversion, vectorizable_shift): Likewise.
3434 (vectorizable_operation): Likewise.
3435
3436 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3437
3438 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3439 (vec_info::vector_mode): ...this new field.
3440 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3441 (vect_analyze_loop, vect_transform_loop): Likewise.
3442 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3443 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3444 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3445 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3446 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3447
3448 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3449
3450 * target.h (vector_sizes, auto_vector_sizes): Delete.
3451 (vector_modes, auto_vector_modes): New typedefs.
3452 * target.def (autovectorize_vector_sizes): Replace with...
3453 (autovectorize_vector_modes): ...this new hook.
3454 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3455 Replace with...
3456 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3457 * doc/tm.texi: Regenerate.
3458 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3459 (default_autovectorize_vector_modes): New function.
3460 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3461 (default_autovectorize_vector_modes): New function.
3462 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3463 of autovectorize_vector_sizes. Use the number of units in the mode
3464 to calculate the maximum VF.
3465 * omp-low.c (omp_clause_aligned_alignment): Use
3466 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3467 Use a loop based on related_mode to iterate through all supported
3468 vector modes for a given scalar mode.
3469 * optabs-query.c (can_vec_mask_load_store_p): Use
3470 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3471 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3472 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3473 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3474 Replace with...
3475 (aarch64_autovectorize_vector_modes): ...this new function.
3476 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3477 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3478 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3479 (arc_autovectorize_vector_modes): ...this new function.
3480 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3481 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3482 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3483 (arm_autovectorize_vector_modes): ...this new function.
3484 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3485 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3486 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3487 (ix86_autovectorize_vector_modes): ...this new function.
3488 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3489 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3490 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3491 (mips_autovectorize_vector_modes): ...this new function.
3492 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3493 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3494
3495 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3496
3497 * tree-vect-stmts.c (vectorizable_shift): Check the number
3498 of vector elements as well as the type mode when deciding
3499 whether an op1_vectype is compatible. Reuse the result of
3500 this check when generating vector statements.
3501
3502 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3503
3504 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3505 targetm.vectorize.preferred_simd_mode returns an integer mode,
3506 use mode_for_vector to decide what the vector type's mode
3507 should actually be. Use build_vector_type_for_mode instead
3508 of build_vector_type.
3509
3510 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3511
3512 * target.def (get_mask_mode): Take a vector mode itself as argument,
3513 instead of properties about the vector mode.
3514 * doc/tm.texi: Regenerate.
3515 * targhooks.h (default_get_mask_mode): Update to reflect new
3516 get_mode_mask interface.
3517 * targhooks.c (default_get_mask_mode): Likewise. Use
3518 related_int_vector_mode.
3519 * optabs-query.c (can_vec_mask_load_store_p): Update call
3520 to get_mask_mode.
3521 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3522 first that the original mode really is a vector.
3523 * tree.c (build_truth_vector_type_for): Likewise.
3524 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3525 get_mode_mask interface.
3526 (aarch64_expand_sve_vcond): Update call accordingly.
3527 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3528 get_mode_mask interface.
3529 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3530
3531 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3532
3533 * tree.h (build_truth_vector_type): Delete.
3534 (build_same_sized_truth_vector_type): Likewise.
3535 * tree.c (build_truth_vector_type): Rename to...
3536 (build_truth_vector_type_for): ...this. Make static and take
3537 a vector type as argument.
3538 (truth_type_for): Update accordingly.
3539 (build_same_sized_truth_vector_type): Delete.
3540 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3541 instead of build_same_sized_truth_vector_type.
3542 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3543 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3544 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3545 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3546 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3547 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3548 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3549 (vectorizable_store, vectorizable_condition): Likewise.
3550 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3551 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3552 build_truth_vector_type.
3553 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3554 Use truth_type_for instead of build_same_sized_truth_vector_type.
3555 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3556
3557 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3558
3559 * tree.h (build_truth_vector_type_for_mode): Declare.
3560 * tree.c (build_truth_vector_type_for_mode): New function,
3561 split out from...
3562 (build_truth_vector_type): ...here.
3563 (build_opaque_vector_type): Fix head comment.
3564 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3565 vec_info parameter.
3566 (vect_halve_mask_nunits): Replace vec_info parameter with the
3567 mode of the new vector.
3568 (vect_double_mask_nunits): Likewise.
3569 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3570 (vect_double_mask_nunits): Likewise.
3571 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3572 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3573 to vect_halve_mask_nunits, getting the required mode from the unpack
3574 patterns.
3575 (vect_set_loop_condition_masked): Update call accordingly.
3576 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3577 parameter and update call to vect_double_mask_nunits.
3578 (vectorizable_conversion): Update call accordingly.
3579 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3580 (vectorizable_call): Update call accordingly.
3581 (supportable_widening_operation): Update call to
3582 vect_halve_mask_nunits.
3583 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3584 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3585
3586 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3587
3588 * machmode.h (mode_for_int_vector): Delete.
3589 (related_int_vector_mode): Declare.
3590 * stor-layout.c (mode_for_int_vector): Delete.
3591 (related_int_vector_mode): New function.
3592 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3593 instead of mode_for_int_vector.
3594 (expand_vec_perm_const): Likewise.
3595 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3596 (aarch64_evpc_sve_tbl): Likewise.
3597 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3598 (s390_expand_vcond): Likewise.
3599
3600 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3601
3602 * target.def (related_mode): New hook.
3603 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3604 * doc/tm.texi: Regenerate.
3605 * targhooks.h (default_vectorize_related_mode): Declare.
3606 * targhooks.c (default_vectorize_related_mode): New function.
3607 * machmode.h (related_vector_mode): Declare.
3608 * stor-layout.c (related_vector_mode): New function.
3609 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3610 * optabs-query.c (qimode_for_vec_perm): Likewise.
3611 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3612 (vectorizable_store, vectorizable_load): Likewise
3613
3614 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3615
3616 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3617 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3618 * config/arm/arm-c.c (arm_cpu_builtins): Define
3619 __GCC_ASM_FLAG_OUTPUTS__.
3620 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3621 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3622 Define __GCC_ASM_FLAG_OUTPUTS__.
3623 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3624 * doc/extend.texi (FlagOutputOperands): Add documentation
3625 for ARM and AArch64.
3626
3627 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3628 * config/arm/predicates.md (nz_comparison_operator): Rename
3629 from noov_comparison_operator.
3630 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3631 (arm_gen_dicompare_reg): Likewise.
3632 (maybe_get_arm_condition_code): Likewise.
3633 (thumb1_final_prescan_insn): Likewise.
3634 (arm_emit_coreregs_64bit_shift): Likewise.
3635 * config/arm/arm.md (addsi3_compare0): Likewise.
3636 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3637 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3638 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3639 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3640 (*mulsi3addsi_compare0_scratch): Likewise.
3641 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3642 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3643 (*zeroextractsi_compare0_scratch): Likewise.
3644 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3645 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3646 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3647 (andsi_not_shiftsi_si_scc): Likewise.
3648 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3649 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3650 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3651 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3652 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3653 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3654 (return_addr_mask, *check_arch2): Likewise.
3655 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3656 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3657 (compare_scc splitters): Likewise.
3658 (movcond_addsi): Likewise.
3659 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3660 (*thumb2_addsi3_compare0_scratch): Likewise.
3661 (*thumb2_mulsi_short_compare0): Likewise.
3662 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3663 (compare peephole2s): Likewise.
3664 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3665 nz_comparison_operator names.
3666 (cbranchsi4_insn): Likewise.
3667
3668 * config/arm/constraints.md (c): Use cc_register predicate.
3669
3670 * config/aarch64/constraints.md (c): New constraint.
3671
3672 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3673
3674 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3675 ipa_merge_fn_summary_after_inlining): Micro optimize.
3676
3677 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3678
3679 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3680
3681 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3682
3683 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3684 (ipa_value_range_from_jfunc): New function.
3685 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3686 known_value_ranges parameter; use it to evalulate conditions.
3687 (evaluate_properties_for_edge): Compute known value ranges.
3688 (ipa_fn_summary_t::duplicate): Update use of
3689 evaluate_conditions_for_known_args.
3690 (estimate_ipcp_clone_size_and_time): Likewise.
3691 (ipa_merge_fn_summary_after_inlining): Likewise.
3692 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3693
3694 2019-11-14 Martin Liska <mliska@suse.cz>
3695
3696 * ipa-inline.c (want_inline_small_function_p): Use
3697 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3698 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3699
3700 2019-11-14 Martin Liska <mliska@suse.cz>
3701
3702 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3703 of a callee to get value of the param.
3704 * ipa-inline.c (inline_insns_auto): Use proper
3705 opt_for_fn.
3706 * opts.c (maybe_default_option): Do not overwrite param
3707 value if optimization level does not match. Note that
3708 params usually have default value set via Init() keyword.
3709 * params.opt: Remove -param=max-inline-insns-auto-O2.
3710 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3711 * doc/invoke.texi: Remove documentation of
3712 max-inline-insns-auto-O2.
3713
3714 2019-11-14 Martin Liska <mliska@suse.cz>
3715
3716 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3717 Do not initialize m_other_count.
3718 (switch_conversion::collect): Do not count m_default_count and
3719 m_other_count as we use frequencies for edges.
3720 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3721
3722 2019-11-14 Martin Liska <mliska@suse.cz>
3723
3724 PR other/92329
3725 * doc/invoke.texi: Document -fallocation-dce.
3726
3727 2019-11-14 Martin Liska <mliska@suse.cz>
3728
3729 PR target/92389
3730 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3731 PTA_ICELAKE_CLIENT which is later interited by
3732 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3733
3734 2019-11-14 Martin Liska <mliska@suse.cz>
3735
3736 * ipa-icf.c (sem_item_optimizer::execute): Save
3737 loaded_symbols.
3738 (sem_item_optimizer::parse_nonsingleton_classes):
3739 Return number of loaded symbols.
3740 (sem_item_optimizer::merge_classes): Print
3741 statistics about totally needed symbols.
3742 * ipa-icf.h (parse_nonsingleton_classes): Change return
3743 type.
3744 (merge_classes): Add one argument.
3745
3746 2019-11-14 Martin Liska <mliska@suse.cz>
3747
3748 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3749 func_checker::hash_operand by handling of FIELD_DECLs.
3750
3751 2019-11-14 Martin Liska <mliska@suse.cz>
3752
3753 * ipa-icf-gimple.h (func_checker::func_checker): Add
3754 default constructor.
3755 * ipa-icf.c (sem_function::init): Make operand_equal_p
3756 and hash_operand public.
3757 (sem_item::add_expr): Remove.
3758 (sem_item::add_type): Remove.
3759 (sem_function::hash_stmt): Use m_checker for hashing
3760 of GIMPLE statements.
3761 (sem_function::parse): Init with checker.
3762 (sem_variable::parse): Pass NULL as checker.
3763 (sem_item_optimizer::parse_funcs_and_vars):
3764 Pass checker to ::parse function.
3765 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3766 (sem_variable::parse): New function.
3767 (sem_variable::get_hash): Only return computed hash value.
3768 (sem_variable::init): Initialize hash of a variable.
3769 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3770 to couple of functions as a new argument.
3771
3772 2019-11-14 Martin Liska <mliska@suse.cz>
3773
3774 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3775 bail out reason.
3776 (func_checker::compare_gimple_assign): Likewise.
3777
3778 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3779
3780 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3781 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3782 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3783
3784 * omp-general.c (omp_context_name_list_prop): New function.
3785 (omp_context_selector_matches): Use it. Return 0 if it returns
3786 NULL.
3787 (omp_context_selector_props_compare): Allow equivalency of an
3788 identifier and a string literal containing no embedded zeros.
3789
3790 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3791
3792 * range-op.cc (RANGE3): Remove.
3793 (range_tests): Remove all selftest that check for multi-ranges.
3794 Put tests in namespace selftest.
3795 * selftest.h: Move range_tests into namespace selftest.
3796 * value-range.h (class value_range): Unfriend range_tests.
3797
3798 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3799
3800 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3801 normalize_symbolics and normalize_addresses working in place.
3802 (range_fold_unary_symbolics_p): Same.
3803 (range_fold_unary_symbolics_p): Same.
3804 * value-range.cc (num_pairs): Same.
3805 (lower_bound): Same.
3806 (upper_bound): Same.
3807 (contains_p): Same.
3808 (normalize_addresses): Same.
3809 (normalize_symbolics): Same.
3810 * value-range.h (normalize_symbolics): Same.
3811 (normalize_addresses): Same.
3812
3813 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3814
3815 PR ipa/91682
3816 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3817 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3818 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3819 (ipa_agg_jump_function): Remove member function equal_to.
3820 (ipa_agg_jump_function_p): Remove typedef.
3821 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3822 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3823 information for aggregate jump function.
3824 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3825 record last definition statement.
3826 (load_from_unmodified_param_or_agg): New function.
3827 (ipa_known_agg_contents_list): Add new field type and value, remove
3828 field constant.
3829 (build_agg_jump_func_from_list): Rename parameter const_count to
3830 value_count, build aggregate jump function from ipa_load_agg_data.
3831 (analyze_agg_content_value): New function.
3832 (extract_mem_content): Analyze memory store assignment to prepare
3833 information for aggregate jump function generation.
3834 (determine_known_aggregate_parts): Add new parameter fbi, remove
3835 parameter aa_walk_budeget_p.
3836 (update_jump_functions_after_inlining): Update aggregate jump function.
3837 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3838 (try_make_edge_direct_simple_call): Add new parameter new_root.
3839 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3840 new_root_info.
3841 (update_indirect_edges_after_inlining): Pass new argument to
3842 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3843 (ipa_write_jump_function): Write aggregate jump function to file.
3844 (ipa_read_jump_function): Read aggregate jump function from file.
3845 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3846 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3847 (ipa_agg_value_from_node): Likewise.
3848 (ipa_agg_value_set_from_jfunc): Likewise.
3849 (propagate_vals_across_arith_jfunc): Likewise.
3850 (propagate_aggregate_lattice): Likewise.
3851 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3852 (propagate_vals_across_pass_through): Call
3853 propagate_vals_across_arith_jfunc.
3854 (get_clone_agg_value): Move forward.
3855 (propagate_aggs_across_jump_function): Handle value propagation for
3856 aggregate jump function.
3857 (agg_jmp_p_vec_for_t_vec): Remove.
3858 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3859 with vec<ipa_agg_value>.
3860 (copy_plats_to_inter, intersect_with_plats): Likewise.
3861 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3862 (intersect_aggregate_with_edge): Likewise.
3863 (find_aggregate_values_for_callers_subset): Likewise.
3864 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3865 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3866 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3867 (gather_context_independent_values): Likewise.
3868 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3869 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3870 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3871 (evaluate_properties_for_edge): Likewise.
3872 (estimate_edge_devirt_benefit): Likewise.
3873 (estimate_edge_size_and_time): Likewise.
3874 (estimate_calls_size_and_time): Likewise.
3875 (ipa_call_context::ipa_call_context): Likewise.
3876 (estimate_ipcp_clone_size_and_time): Likewise.
3877 * ipa-fnsummary.h (ipa_call_context): Replace
3878 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3879 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3880 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3881 (do_estimate_edge_size): Likewise.
3882 (do_estimate_edge_hints): Likewise.
3883
3884 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3885
3886 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3887 binary operations.
3888
3889 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3890
3891 * ipa-profile.c (check_argument_count): Check properly that e_info
3892 is non-NULL; do not check descriptors.
3893
3894 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3895
3896 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3897 check for ipa profiles.
3898
3899 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3900
3901 PR c++/92421
3902 * ipa-prop.c (update_indirect_edges_after_inlining):
3903 Mark parameter as used.
3904 * ipa-inline.c (recursive_inlining): Reset node cache
3905 after inlining.
3906 (inline_small_functions): Remove checking ifdef.
3907 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3908 cache consistency.
3909
3910 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3911
3912 PR ipa/92498
3913 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3914 is NULL.
3915 (ipa_profile): Fix reversed test.
3916
3917 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3918
3919 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3920 (propagate_constants_topo): Fix typo.
3921
3922 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3923
3924 * Makefile.in (OBJS): Add value-range.o.
3925 (GTFILES): Add value-range.h.
3926 * gengtype.c (open_base_files): Add value-range.h to list of
3927 header files.
3928 * tree-vrp.c: Move the following value_range related functions:
3929 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3930 constant_p, set_undefined, set_varying, may_contain_p,
3931 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3932 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3933 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3934 value_inside_range, ranges_from_anti_range, union_ranges,
3935 intersect_ranges, intersect_helper, union_helper, union_,
3936 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3937 upper_bound, contains_p, invert, intersect...
3938 * value-range.cc: ...to here.
3939 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3940 associated inline methods from here...
3941 * value-range.h: ...to here.
3942
3943 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3944
3945 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3946 instead of asserting its value.
3947
3948 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3949
3950 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3951 constructors and set methods so value_range_kind is the last
3952 argument and defaults to VR_RANGE.
3953 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3954 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3955 * ipa-prop.c (ipa_get_value_range): Same.
3956 (ipa_compute_jump_functions_for_edge): Same.
3957 * range-op.cc (value_range_from_overflowed_bounds): Same.
3958 (operator_cast::op1_range): Same.
3959 (range_tests): Same.
3960 * range.cc (range_nonzero): Same.
3961 * tree-ssanames.c (get_range_info): Same.
3962 * tree-vrp.c (value_range_equiv::set): Same.
3963 (value_range::value_range): Same.
3964 (value_range_equiv::value_range_equiv): Same.
3965 (value_range_equiv::update): Same.
3966 (value_range_equiv::deep_copy): Same.
3967 (value_range_equiv::move): Same.
3968 (value_range_equiv::set_undefined): Same.
3969 (value_range::set): Same.
3970 (value_range::set_nonzero): Same.
3971 (ranges_from_anti_range): Same.
3972 (extract_range_from_plus_minus_expr): Same.
3973 (value_range::intersect_helper): Same.
3974 (value_range_equiv::intersect): Same.
3975 (value_range::union_helper): Same.
3976 (value_range_equiv::union_): Same.
3977 (value_range::normalize_symbolics): Same.
3978 (value_range::invert): Same.
3979 (determine_value_range_1): Same.
3980 * tree-vrp.h (class value_range): Same.
3981 (class value_range_equiv): Same.
3982 * vr-values.c (set_value_range_to_nonnegative): Same.
3983 (set_value_range_to_truthvalue): Same.
3984 (vr_values::update_value_range): Same.
3985 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3986 (vr_values::extract_range_from_binary_expr): Same.
3987 (vr_values::extract_range_from_comparison): Same.
3988 (vr_values::extract_range_basic): Same.
3989 (vr_values::adjust_range_with_scev): Same.
3990 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3991 (vr_values::extract_range_from_phi_node): Same.
3992
3993 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3994
3995 * tree-dump.c (dequeue_and_dump): Print first tree operand
3996 for VIEW_CONVERT_EXPR.
3997
3998 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3999
4000 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4001 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4002 * real.c (get_max_float): Add norm_max argument.
4003 * real.h (get_max_float): Update prototype.
4004 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4005 get_max_float.
4006
4007 2019-11-13 Martin Liska <mliska@suse.cz>
4008
4009 * dbgcnt.c (test_sorted_dbg_counters): New.
4010 (dbgcnt_c_tests): Likewise.
4011 * selftest-run-tests.c (selftest::run_tests): Likewise.
4012 * selftest.h (dbgcnt_c_tests): Likewise.
4013
4014 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4015 Martin Jambor <mjambor@suse.cz>
4016
4017 PR ipa/92454
4018 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4019 (identify_dead_nodes): Likewise.
4020
4021 2019-11-13 Martin Liska <mliska@suse.cz>
4022
4023 * ipa-icf.c (sem_function::equals_private): Do not overuse
4024 push/pop_cfun functions.
4025
4026 2019-11-13 Martin Liska <mliska@suse.cz>
4027
4028 * common.opt: Document change of -fdbg-cnt option.
4029 * dbgcnt.c (DEBUG_COUNTER): Remove.
4030 (dbg_cnt_is_enabled): Remove.
4031 (dbg_cnt): Work with new intervals.
4032 (dbg_cnt_set_limit_by_index): Set to new
4033 list of intervals.
4034 (dbg_cnt_set_limit_by_name): Likewise.
4035 (dbg_cnt_process_single_pair): Process new format.
4036 (dbg_cnt_process_opt): Likewise.
4037 (dbg_cnt_list_all_counters): Likewise.
4038 * doc/invoke.texi: Document change of -fdbg-cnt option.
4039 (cmp_tuples): New.
4040
4041 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4042
4043 * ipa-inline.c (ipa_inline): Check that function is defined before
4044 flattening.
4045
4046 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4047 Julian Brown <julian@codesourcery.com>
4048
4049 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4050 flag_worker_partitioning is not set.
4051 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4052 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4053
4054 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4055
4056 * config/gcn/gcn-run.c (heap_region): New global variable.
4057 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4058 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4059 (get_kernarg_region): Move contents to ....
4060 (get_memory_region): .... here.
4061 (get_heap_region): New function.
4062 (init_device): Initialize the heap_region.
4063 (device_malloc): Add region parameter.
4064 (struct kernargs): Move heap ....
4065 (heap): ... to global scope.
4066 (main): Allocate heap separate to kernargs.
4067
4068 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4069
4070 * ipa-prop.c (ipa_print_node_jump_functions,
4071 ipa_print_node_params): Print info about missing summaries.
4072
4073 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4074
4075 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4076 the cost of generating loop masks.
4077
4078 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4079
4080 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4081 New function.
4082 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4083 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4084 (vect_transform_loop): Likewise.
4085 (vect_analyze_loop_costing): Don't take the cost of versioning
4086 into account for the static profitability threshold if it turns
4087 out that no versioning is needed.
4088
4089 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4090
4091 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4092 and target_option_default_node to get -fprofile-generate ctors working
4093 right with LTO.
4094
4095 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4096
4097 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4098 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4099 (vectorizable_assignment): Don't add a cost for nop conversions.
4100 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4101 Likewise.
4102 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4103
4104 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4105
4106 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4107 number of ncopies as an additional argument.
4108 (vectorizable_conversion): Update call accordingly. Use "modifier"
4109 to check whether a conversion is between vectors with the same
4110 numbers of units.
4111
4112 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4113
4114 * config/aarch64/aarch64-sve-builtins-functions.h
4115 (unary_count::expand): Use aarch64_sve_int_mode instead of
4116 mode_for_int_vector.
4117
4118 2019-11-13 Martin Liska <mliska@suse.cz>
4119
4120 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4121
4122 2019-11-13 Martin Liska <mliska@suse.cz>
4123
4124 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4125 Remove call to finalize_options_struct.
4126
4127 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4128
4129 PR target/92055
4130 * config/avr/t-avr (avr-mcus): Do not depend on
4131 $(srcdir)/config/avr/t-multilib.
4132
4133 2019-11-13 Richard Biener <rguenther@suse.de>
4134
4135 PR tree-optimization/92473
4136 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4137 direct optab reduction in the correct type.
4138
4139 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4140
4141 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4142 hexadecimal literal.
4143
4144 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4145
4146 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4147 UNORDERED if !HONOR_NANS (DFmode).
4148 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4149 if !HONOR_NANS (<MODE>mode).
4150
4151 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4152
4153 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4154 (ipcp_verify_propagated_values): Likewise.
4155 (propagate_constants_across_call): Likewise.
4156 (propagate_constants_topo): Likewise.
4157 (ipcp_propagate_stage): Likewise.
4158
4159 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4160
4161 PR ipa/92471
4162 * ipa-profile.c (check_argument_count): Break out from ...;
4163 watch for missing summaries.
4164 (ipa_profile): Here.
4165
4166 2019-11-12 Martin Sebor <msebor@redhat.com>
4167
4168 PR tree-optimization/92412
4169 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4170 extern variables.
4171
4172 2019-11-12 Martin Sebor <msebor@redhat.com>
4173
4174 PR middle-end/83688
4175 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4176 (directive::argno): New member.
4177 (format_result::aliases, format_result::alias_count): New data members.
4178 (format_result::append_alias): New member function.
4179 (fmtresult::dst_offset): New data member.
4180 (pass_sprintf_length::call_info::dst_origin): New data member.
4181 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4182 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4183 (get_origin_and_offset): Same.
4184 (format_string): Call it.
4185 (format_directive): Call append_alias and set directive argument
4186 number.
4187 (maybe_warn_overlap): New function.
4188 (pass_sprintf_length::compute_format_length): Call it.
4189 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4190 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4191
4192 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4193
4194 PR rtl-optimization/92430
4195 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4196 dominance info at the beginning.
4197
4198 2019-11-12 Richard Biener <rguenther@suse.de>
4199
4200 PR tree-optimization/92460
4201 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4202 expression before gimplifying.
4203
4204 2019-11-12 Richard Biener <rguenther@suse.de>
4205
4206 PR tree-optimization/92461
4207 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4208 stmt after propagation.
4209
4210 2019-11-12 Martin Liska <mliska@suse.cz>
4211
4212 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4213 Use SET_OPTION_IF_UNSET.
4214 (ix86_option_override_internal): Likewise.
4215 * opts.c (default_options_optimization): Likewise.
4216 (finish_options): Likewise.
4217 (enable_fdo_optimizations): Likewise.
4218 (common_handle_option): Likewise.
4219
4220 2019-11-12 Martin Liska <mliska@suse.cz>
4221
4222 * common/common-target.def: Remove option_validate_param and
4223 option_default_params.
4224 * common/common-targhooks.c (default_option_validate_param):
4225 Remove.
4226 * common/common-targhooks.h (default_option_validate_param):
4227 Remove.
4228 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4229 Remove usage of this.
4230 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4231 (aarch64_option_validate_param): Likewise.
4232 (aarch64_option_default_params): Likewise
4233 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4234 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4235 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4236 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4237 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4238 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4239 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4240 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4241 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4242 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4243 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4244 guard_size here.
4245 * doc/tm.texi: Remove option_default_params and option_validate_param.
4246 * doc/tm.texi.in: Likewise.
4247
4248 2019-11-12 Martin Liska <mliska@suse.cz>
4249
4250 * common/common-target.def:
4251 Do not mention set_default_param_value
4252 and set_param_value.
4253 * doc/tm.texi: Likewise.
4254
4255 2019-11-12 Martin Liska <mliska@suse.cz>
4256
4257 * common.opt: Remove param_values.
4258 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4259 Remove finalize_options_struct.
4260 * gcc.c (driver::decode_argv): Do not call global_init_params
4261 and finish_params.
4262 (driver::finalize): Do not call params_c_finalize
4263 and finalize_options_struct.
4264 * opt-suggestions.c (option_proposer::get_completions): Remove
4265 special casing of params.
4266 (option_proposer::find_param_completions): Remove.
4267 (test_completion_partial_match): Update expected output.
4268 * opt-suggestions.h: Remove find_param_completions.
4269 * opts-common.c (add_misspelling_candidates): Add
4270 --param with a space.
4271 * opts.c (handle_param): Remove.
4272 (init_options_struct):. Remove init_options_struct and
4273 similar calls.
4274 (finalize_options_struct): Remove.
4275 (common_handle_option): Use SET_OPTION_IF_UNSET.
4276 * opts.h (finalize_options_struct): Remove.
4277 * toplev.c (general_init): Do not call global_init_params.
4278 (toplev::finalize): Do not call params_c_finalize and
4279 finalize_options_struct.
4280
4281 2019-11-12 Martin Liska <mliska@suse.cz>
4282
4283 * Makefile.in: Remove PARAMS_H and params.list
4284 and params.options.
4285 * params-enum.h: Remove.
4286 * params-list.h: Remove.
4287 * params-options.h: Remove.
4288 * params.c: Remove.
4289 * params.def: Remove.
4290 * params.h: Remove.
4291 * asan.c: Do not include params.h.
4292 * auto-profile.c: Likewise.
4293 * bb-reorder.c: Likewise.
4294 * builtins.c: Likewise.
4295 * cfgcleanup.c: Likewise.
4296 * cfgexpand.c: Likewise.
4297 * cfgloopanal.c: Likewise.
4298 * cgraph.c: Likewise.
4299 * combine.c: Likewise.
4300 * common/config/aarch64/aarch64-common.c: Likewise.
4301 * common/config/gcn/gcn-common.c: Likewise.
4302 * common/config/ia64/ia64-common.c: Likewise.
4303 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4304 * common/config/rs6000/rs6000-common.c: Likewise.
4305 * common/config/sh/sh-common.c: Likewise.
4306 * config/aarch64/aarch64.c: Likewise.
4307 * config/alpha/alpha.c: Likewise.
4308 * config/arm/arm.c: Likewise.
4309 * config/avr/avr.c: Likewise.
4310 * config/csky/csky.c: Likewise.
4311 * config/i386/i386-builtins.c: Likewise.
4312 * config/i386/i386-expand.c: Likewise.
4313 * config/i386/i386-features.c: Likewise.
4314 * config/i386/i386-options.c: Likewise.
4315 * config/i386/i386.c: Likewise.
4316 * config/ia64/ia64.c: Likewise.
4317 * config/rs6000/rs6000-logue.c: Likewise.
4318 * config/rs6000/rs6000.c: Likewise.
4319 * config/s390/s390.c: Likewise.
4320 * config/sparc/sparc.c: Likewise.
4321 * config/visium/visium.c: Likewise.
4322 * coverage.c: Likewise.
4323 * cprop.c: Likewise.
4324 * cse.c: Likewise.
4325 * cselib.c: Likewise.
4326 * dse.c: Likewise.
4327 * emit-rtl.c: Likewise.
4328 * explow.c: Likewise.
4329 * final.c: Likewise.
4330 * fold-const.c: Likewise.
4331 * gcc.c: Likewise.
4332 * gcse.c: Likewise.
4333 * ggc-common.c: Likewise.
4334 * ggc-page.c: Likewise.
4335 * gimple-loop-interchange.cc: Likewise.
4336 * gimple-loop-jam.c: Likewise.
4337 * gimple-loop-versioning.cc: Likewise.
4338 * gimple-ssa-split-paths.c: Likewise.
4339 * gimple-ssa-sprintf.c: Likewise.
4340 * gimple-ssa-store-merging.c: Likewise.
4341 * gimple-ssa-strength-reduction.c: Likewise.
4342 * gimple-ssa-warn-alloca.c: Likewise.
4343 * gimple-ssa-warn-restrict.c: Likewise.
4344 * graphite-isl-ast-to-gimple.c: Likewise.
4345 * graphite-optimize-isl.c: Likewise.
4346 * graphite-scop-detection.c: Likewise.
4347 * graphite-sese-to-poly.c: Likewise.
4348 * graphite.c: Likewise.
4349 * haifa-sched.c: Likewise.
4350 * hsa-gen.c: Likewise.
4351 * ifcvt.c: Likewise.
4352 * ipa-cp.c: Likewise.
4353 * ipa-fnsummary.c: Likewise.
4354 * ipa-inline-analysis.c: Likewise.
4355 * ipa-inline.c: Likewise.
4356 * ipa-polymorphic-call.c: Likewise.
4357 * ipa-profile.c: Likewise.
4358 * ipa-prop.c: Likewise.
4359 * ipa-split.c: Likewise.
4360 * ipa-sra.c: Likewise.
4361 * ira-build.c: Likewise.
4362 * ira-conflicts.c: Likewise.
4363 * loop-doloop.c: Likewise.
4364 * loop-invariant.c: Likewise.
4365 * loop-unroll.c: Likewise.
4366 * lra-assigns.c: Likewise.
4367 * lra-constraints.c: Likewise.
4368 * modulo-sched.c: Likewise.
4369 * opt-suggestions.c: Likewise.
4370 * opts.c: Likewise.
4371 * postreload-gcse.c: Likewise.
4372 * predict.c: Likewise.
4373 * reload.c: Likewise.
4374 * reorg.c: Likewise.
4375 * resource.c: Likewise.
4376 * sanopt.c: Likewise.
4377 * sched-deps.c: Likewise.
4378 * sched-ebb.c: Likewise.
4379 * sched-rgn.c: Likewise.
4380 * sel-sched-ir.c: Likewise.
4381 * sel-sched.c: Likewise.
4382 * shrink-wrap.c: Likewise.
4383 * stmt.c: Likewise.
4384 * targhooks.c: Likewise.
4385 * toplev.c: Likewise.
4386 * tracer.c: Likewise.
4387 * trans-mem.c: Likewise.
4388 * tree-chrec.c: Likewise.
4389 * tree-data-ref.c: Likewise.
4390 * tree-if-conv.c: Likewise.
4391 * tree-inline.c: Likewise.
4392 * tree-loop-distribution.c: Likewise.
4393 * tree-parloops.c: Likewise.
4394 * tree-predcom.c: Likewise.
4395 * tree-profile.c: Likewise.
4396 * tree-scalar-evolution.c: Likewise.
4397 * tree-sra.c: Likewise.
4398 * tree-ssa-ccp.c: Likewise.
4399 * tree-ssa-dom.c: Likewise.
4400 * tree-ssa-dse.c: Likewise.
4401 * tree-ssa-ifcombine.c: Likewise.
4402 * tree-ssa-loop-ch.c: Likewise.
4403 * tree-ssa-loop-im.c: Likewise.
4404 * tree-ssa-loop-ivcanon.c: Likewise.
4405 * tree-ssa-loop-ivopts.c: Likewise.
4406 * tree-ssa-loop-manip.c: Likewise.
4407 * tree-ssa-loop-niter.c: Likewise.
4408 * tree-ssa-loop-prefetch.c: Likewise.
4409 * tree-ssa-loop-unswitch.c: Likewise.
4410 * tree-ssa-math-opts.c: Likewise.
4411 * tree-ssa-phiopt.c: Likewise.
4412 * tree-ssa-pre.c: Likewise.
4413 * tree-ssa-reassoc.c: Likewise.
4414 * tree-ssa-sccvn.c: Likewise.
4415 * tree-ssa-scopedtables.c: Likewise.
4416 * tree-ssa-sink.c: Likewise.
4417 * tree-ssa-strlen.c: Likewise.
4418 * tree-ssa-structalias.c: Likewise.
4419 * tree-ssa-tail-merge.c: Likewise.
4420 * tree-ssa-threadbackward.c: Likewise.
4421 * tree-ssa-threadedge.c: Likewise.
4422 * tree-ssa-uninit.c: Likewise.
4423 * tree-switch-conversion.c: Likewise.
4424 * tree-vect-data-refs.c: Likewise.
4425 * tree-vect-loop.c: Likewise.
4426 * tree-vect-slp.c: Likewise.
4427 * tree-vrp.c: Likewise.
4428 * tree.c: Likewise.
4429 * value-prof.c: Likewise.
4430 * var-tracking.c: Likewise.
4431
4432 2019-11-12 Martin Liska <mliska@suse.cz>
4433
4434 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4435 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4436 macro.
4437 (asan_sanitize_allocas_p): Likewise.
4438 (asan_emit_stack_protection): Likewise.
4439 (asan_protect_global): Likewise.
4440 (instrument_derefs): Likewise.
4441 (instrument_builtin_call): Likewise.
4442 (asan_expand_mark_ifn): Likewise.
4443 * auto-profile.c (auto_profile): Likewise.
4444 * bb-reorder.c (copy_bb_p): Likewise.
4445 (duplicate_computed_gotos): Likewise.
4446 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4447 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4448 (try_crossjump_bb): Likewise.
4449 * cfgexpand.c (defer_stack_allocation): Likewise.
4450 (stack_protect_classify_type): Likewise.
4451 (pass_expand::execute): Likewise.
4452 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4453 (estimate_reg_pressure_cost): Likewise.
4454 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4455 * combine.c (combine_instructions): Likewise.
4456 (record_value_for_reg): Likewise.
4457 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4458 (aarch64_option_default_params): Likewise.
4459 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4460 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4461 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4462 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4463 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4464 (aarch64_allocate_and_probe_stack_space): Likewise.
4465 (aarch64_expand_epilogue): Likewise.
4466 (aarch64_override_options_internal): Likewise.
4467 * config/alpha/alpha.c (alpha_option_override): Likewise.
4468 * config/arm/arm.c (arm_option_override): Likewise.
4469 (arm_valid_target_attribute_p): Likewise.
4470 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4471 * config/i386/i386.c (get_probe_interval): Likewise.
4472 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4473 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4474 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4475 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4476 (get_stack_clash_protection_guard_size): Likewise.
4477 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4478 * config/s390/s390.c (allocate_stack_space): Likewise.
4479 (s390_emit_prologue): Likewise.
4480 (s390_option_override_internal): Likewise.
4481 * config/sparc/sparc.c (sparc_option_override): Likewise.
4482 * config/visium/visium.c (visium_option_override): Likewise.
4483 * coverage.c (get_coverage_counts): Likewise.
4484 (coverage_compute_profile_id): Likewise.
4485 (coverage_begin_function): Likewise.
4486 (coverage_end_function): Likewise.
4487 * cse.c (cse_find_path): Likewise.
4488 (cse_extended_basic_block): Likewise.
4489 (cse_main): Likewise.
4490 * cselib.c (cselib_invalidate_mem): Likewise.
4491 * dse.c (dse_step1): Likewise.
4492 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4493 (get_max_insn_count): Likewise.
4494 (make_debug_insn_raw): Likewise.
4495 (init_emit): Likewise.
4496 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4497 * final.c (compute_alignments): Likewise.
4498 * fold-const.c (fold_range_test): Likewise.
4499 (fold_truth_andor): Likewise.
4500 (tree_single_nonnegative_warnv_p): Likewise.
4501 (integer_valued_real_single_p): Likewise.
4502 * gcse.c (want_to_gcse_p): Likewise.
4503 (prune_insertions_deletions): Likewise.
4504 (hoist_code): Likewise.
4505 (gcse_or_cprop_is_too_expensive): Likewise.
4506 * ggc-common.c: Likewise.
4507 * ggc-page.c (ggc_collect): Likewise.
4508 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4509 (MAX_DATAREFS): Likewise.
4510 (OUTER_STRIDE_RATIO): Likewise.
4511 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4512 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4513 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4514 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4515 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4516 (imm_store_chain_info::output_merged_store): Likewise.
4517 (pass_store_merging::process_store): Likewise.
4518 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4519 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4520 (scop_to_isl_ast): Likewise.
4521 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4522 (optimize_isl): Likewise.
4523 * graphite-scop-detection.c (build_scops): Likewise.
4524 * haifa-sched.c (set_modulo_params): Likewise.
4525 (rank_for_schedule): Likewise.
4526 (model_add_to_worklist): Likewise.
4527 (model_promote_insn): Likewise.
4528 (model_choose_insn): Likewise.
4529 (queue_to_ready): Likewise.
4530 (autopref_multipass_dfa_lookahead_guard): Likewise.
4531 (schedule_block): Likewise.
4532 (sched_init): Likewise.
4533 * hsa-gen.c (init_prologue): Likewise.
4534 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4535 (cond_move_process_if_block): Likewise.
4536 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4537 (merge_agg_lats_step): Likewise.
4538 (devirtualization_time_bonus): Likewise.
4539 (hint_time_bonus): Likewise.
4540 (incorporate_penalties): Likewise.
4541 (good_cloning_opportunity_p): Likewise.
4542 (ipcp_propagate_stage): Likewise.
4543 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4544 (set_switch_stmt_execution_predicate): Likewise.
4545 (analyze_function_body): Likewise.
4546 (compute_fn_summary): Likewise.
4547 * ipa-inline-analysis.c (estimate_growth): Likewise.
4548 * ipa-inline.c (caller_growth_limits): Likewise.
4549 (inline_insns_single): Likewise.
4550 (inline_insns_auto): Likewise.
4551 (can_inline_edge_by_limits_p): Likewise.
4552 (want_early_inline_function_p): Likewise.
4553 (big_speedup_p): Likewise.
4554 (want_inline_small_function_p): Likewise.
4555 (want_inline_self_recursive_call_p): Likewise.
4556 (edge_badness): Likewise.
4557 (recursive_inlining): Likewise.
4558 (compute_max_insns): Likewise.
4559 (early_inliner): Likewise.
4560 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4561 * ipa-profile.c (ipa_profile): Likewise.
4562 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4563 (ipa_analyze_node): Likewise.
4564 (ipcp_transform_function): Likewise.
4565 * ipa-split.c (consider_split): Likewise.
4566 * ipa-sra.c (allocate_access): Likewise.
4567 (process_scan_results): Likewise.
4568 (ipa_sra_summarize_function): Likewise.
4569 (pull_accesses_from_callee): Likewise.
4570 * ira-build.c (loop_compare_func): Likewise.
4571 (mark_loops_for_removal): Likewise.
4572 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4573 * loop-doloop.c (doloop_optimize): Likewise.
4574 * loop-invariant.c (gain_for_invariant): Likewise.
4575 (move_loop_invariants): Likewise.
4576 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4577 (decide_unroll_runtime_iterations): Likewise.
4578 (decide_unroll_stupid): Likewise.
4579 (expand_var_during_unrolling): Likewise.
4580 * lra-assigns.c (spill_for): Likewise.
4581 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4582 * modulo-sched.c (sms_schedule): Likewise.
4583 (DFA_HISTORY): Likewise.
4584 * opts.c (default_options_optimization): Likewise.
4585 (finish_options): Likewise.
4586 (common_handle_option): Likewise.
4587 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4588 (if): Likewise.
4589 * predict.c (get_hot_bb_threshold): Likewise.
4590 (maybe_hot_count_p): Likewise.
4591 (probably_never_executed): Likewise.
4592 (predictable_edge_p): Likewise.
4593 (predict_loops): Likewise.
4594 (expr_expected_value_1): Likewise.
4595 (tree_predict_by_opcode): Likewise.
4596 (handle_missing_profiles): Likewise.
4597 * reload.c (find_equiv_reg): Likewise.
4598 * reorg.c (redundant_insn): Likewise.
4599 * resource.c (mark_target_live_regs): Likewise.
4600 (incr_ticks_for_insn): Likewise.
4601 * sanopt.c (pass_sanopt::execute): Likewise.
4602 * sched-deps.c (sched_analyze_1): Likewise.
4603 (sched_analyze_2): Likewise.
4604 (sched_analyze_insn): Likewise.
4605 (deps_analyze_insn): Likewise.
4606 * sched-ebb.c (schedule_ebbs): Likewise.
4607 * sched-rgn.c (find_single_block_region): Likewise.
4608 (too_large): Likewise.
4609 (haifa_find_rgns): Likewise.
4610 (extend_rgns): Likewise.
4611 (new_ready): Likewise.
4612 (schedule_region): Likewise.
4613 (sched_rgn_init): Likewise.
4614 * sel-sched-ir.c (make_region_from_loop): Likewise.
4615 * sel-sched-ir.h (MAX_WS): Likewise.
4616 * sel-sched.c (process_pipelined_exprs): Likewise.
4617 (sel_setup_region_sched_flags): Likewise.
4618 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4619 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4620 * toplev.c (print_version): Likewise.
4621 (process_options): Likewise.
4622 * tracer.c (tail_duplicate): Likewise.
4623 * trans-mem.c (tm_log_add): Likewise.
4624 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4625 * tree-data-ref.c (split_constant_offset): Likewise.
4626 (compute_all_dependences): Likewise.
4627 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4628 * tree-inline.c (remap_gimple_stmt): Likewise.
4629 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4630 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4631 (create_parallel_loop): Likewise.
4632 * tree-predcom.c (determine_unroll_factor): Likewise.
4633 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4634 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4635 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4636 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4637 (dse_optimize_redundant_stores): Likewise.
4638 (dse_classify_store): Likewise.
4639 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4640 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4641 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4642 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4643 (try_peel_loop): Likewise.
4644 (tree_unroll_loops_completely): Likewise.
4645 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4646 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4647 (MAX_CONSIDERED_GROUPS): Likewise.
4648 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4649 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4650 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4651 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4652 (L1_CACHE_SIZE_BYTES): Likewise.
4653 (L2_CACHE_SIZE_BYTES): Likewise.
4654 (should_issue_prefetch_p): Likewise.
4655 (schedule_prefetches): Likewise.
4656 (determine_unroll_factor): Likewise.
4657 (volume_of_references): Likewise.
4658 (add_subscript_strides): Likewise.
4659 (self_reuse_distance): Likewise.
4660 (mem_ref_count_reasonable_p): Likewise.
4661 (insn_to_prefetch_ratio_too_small_p): Likewise.
4662 (loop_prefetch_arrays): Likewise.
4663 (tree_ssa_prefetch_arrays): Likewise.
4664 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4665 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4666 (convert_mult_to_fma): Likewise.
4667 (math_opts_dom_walker::after_dom_children): Likewise.
4668 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4669 (hoist_adjacent_loads): Likewise.
4670 (gate_hoist_loads): Likewise.
4671 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4672 (compute_partial_antic_aux): Likewise.
4673 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4674 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4675 (vn_reference_lookup): Likewise.
4676 (do_rpo_vn): Likewise.
4677 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4678 * tree-ssa-sink.c (select_best_block): Likewise.
4679 * tree-ssa-strlen.c (new_stridx): Likewise.
4680 (new_addr_stridx): Likewise.
4681 (get_range_strlen_dynamic): Likewise.
4682 (class ssa_name_limit_t): Likewise.
4683 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4684 (create_variable_info_for_1): Likewise.
4685 (init_alias_vars): Likewise.
4686 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4687 (tail_merge_optimize): Likewise.
4688 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4689 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4690 (thread_jumps::find_jump_threads_backwards): Likewise.
4691 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4692 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4693 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4694 (jump_table_cluster::can_be_handled): Likewise.
4695 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4696 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4697 (param_switch_conversion_branch_ratio): Likewise.
4698 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4699 (vect_enhance_data_refs_alignment): Likewise.
4700 (vect_prune_runtime_alias_test_list): Likewise.
4701 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4702 (vect_get_datarefs_in_loop): Likewise.
4703 (vect_analyze_loop): Likewise.
4704 * tree-vect-slp.c (vect_slp_bb): Likewise.
4705 * tree-vectorizer.h: Likewise.
4706 * tree-vrp.c (find_switch_asserts): Likewise.
4707 (vrp_prop::check_mem_ref): Likewise.
4708 * tree.c (wide_int_to_tree_1): Likewise.
4709 (cache_integer_cst): Likewise.
4710 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4711 (reverse_op): Likewise.
4712 (vt_find_locations): Likewise.
4713
4714 2019-11-12 Martin Liska <mliska@suse.cz>
4715
4716 * Makefile.in: Include params.opt.
4717 * flag-types.h (enum parloops_schedule_type): Add
4718 parloops_schedule_type used in params.opt.
4719 * params.opt: New file.
4720
4721 2019-11-12 Martin Liska <mliska@suse.cz>
4722
4723 * common.opt: Remove --param and --param= options.
4724 * opt-functions.awk: Mark CL_PARAMS for options
4725 that have Param keyword.
4726 * opts-common.c (decode_cmdline_options_to_array):
4727 Replace --param key=value with --param=key=value.
4728 * opts.c (print_filtered_help): Remove special
4729 printing of params.
4730 (print_specific_help): Update title for params.
4731 (common_handle_option): Do not handle OPT__param.
4732 opts.h (SET_OPTION_IF_UNSET): New macro.
4733 * doc/options.texi: Document Param keyword.
4734
4735 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4736 Frederik Harwath <frederik@codesourcery.com>
4737 Thomas Schwinge <thomas@codesourcery.com>
4738
4739 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4740 enumeration constant.
4741 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4742 (is_gimple_omp_offloaded): Likewise.
4743 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4744 constant. Adjust the value of ORT_NONE accordingly.
4745 (is_gimple_stmt): Handle OACC_SERIAL.
4746 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4747 (gomp_needs_data_present): Likewise.
4748 (gimplify_adjust_omp_clauses): Likewise.
4749 (gimplify_omp_workshare): Handle OACC_SERIAL.
4750 (gimplify_expr): Likewise.
4751 * omp-expand.c (expand_omp_target):
4752 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4753 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4754 * omp-low.c (is_oacc_parallel): Rename function to...
4755 (is_oacc_parallel_or_serial): ... this.
4756 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4757 (scan_sharing_clauses): Adjust accordingly.
4758 (scan_omp_for): Likewise.
4759 (lower_oacc_head_mark): Likewise.
4760 (convert_from_firstprivate_int): Likewise.
4761 (lower_omp_target): Likewise.
4762 (check_omp_nesting_restrictions): Handle
4763 GF_OMP_TARGET_KIND_OACC_SERIAL.
4764 (lower_oacc_reductions): Likewise.
4765 (lower_omp_target): Likewise.
4766 * tree.def (OACC_SERIAL): New tree code.
4767 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4768
4769 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4770
4771 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4772
4773 PR target/92449
4774 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4775 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4776
4777 PR tree-optimization/92452
4778 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4779 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4780 MINUS_EXPR on it.
4781
4782 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4783
4784 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4785 safelen with 0.
4786
4787 2019-11-12 Alan Modra <amodra@gmail.com>
4788
4789 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4790 element of unspec vec.
4791 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4792 PC-relative TLS.
4793 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4794 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4795 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4796 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4797
4798 2019-11-12 Alan Modra <amodra@gmail.com>
4799
4800 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4801 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4802 (IS_NOMARK_TLSGETADDR): Likewise.
4803 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4804 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4805 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4806 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4807 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4808 (rs6000_indirect_call_template_1): Likewise.
4809 (rs6000_pltseq_template): Likewise.
4810 (rs6000_opt_vars): Remove "tls-markers" entry.
4811 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4812 with TARGET_ELF.
4813 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4814 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4815 (pltseq_plt_pcrel<mode>): Likewise.
4816 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4817 (call_value_local64): Likewise.
4818 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4819 output and length attribute sub-expression.
4820 (call_value_nonlocal_sysv<mode>),
4821 (call_value_nonlocal_sysv_secure<mode>),
4822 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4823 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4824 (call_value_indirect_pcrel<mode>): Likewise.
4825 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4826 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4827 * configure: Regenerate.
4828 * config.in: Regenerate.
4829
4830 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4831
4832 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4833 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4834 address being a prefixed load/store.
4835 (stack_protect_testdi): Deal with either address being a prefixed
4836 load.
4837
4838 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4839
4840 PR bootstrap/92433
4841 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4842 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4843 std::swap.
4844
4845 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4846
4847 PR tree-optimization/92420
4848 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4849 up file.
4850 (get_group_load_store_type): Use it for reversed SLP accesses.
4851
4852 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4853
4854 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4855 summary.
4856 (ipcp_transformation_t::duplicate): Break out from ...
4857 (ipa_node_params_t::duplicate): ... here; add copying of agg
4858 replacements.
4859 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4860 (ipcp_transformation_t): Add duplicate.
4861
4862 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4863
4864 PR fortran/91828
4865 * doc/install.texi: Document that the minimum MPFR version is
4866 3.1.0.
4867
4868 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4869
4870 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4871 use new register constraint letters.
4872
4873 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4874
4875 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4876 as well, if interesting recover the symbol and re-legitimize the
4877 pic address.
4878
4879 2019-11-11 Martin Liska <mliska@suse.cz>
4880
4881 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4882 alphabetically.
4883
4884 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4885
4886 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4887 account when checking if there are enough iterations to vectorize
4888 epilogue.
4889
4890 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4891 Kwok Cheung Yeung <kcy@codesourcery.com>
4892
4893 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4894 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4895 (LANG_HOOKS_DECLS): Rename also here.
4896 * langhooks.h (lang_hooks_for_decls): Rename
4897 omp_is_optional_argument to omp_check_optional_argument; take
4898 additional bool argument.
4899 * omp-general.h (omp_check_optional_argument): Likewise.
4900 * omp-general.h (omp_check_optional_argument): Likewise.
4901 * omp-low.c (lower_omp_target): Update calls; handle absent
4902 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4903
4904 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4905
4906 PR target/87833
4907 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4908 -fPIC and -shared the last to create offload image.
4909
4910 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4911
4912 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4913 of 'offset'.
4914
4915 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4916 (config.status): Use/depend on it.
4917 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4918 * configure: Regenerate.
4919
4920 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4921
4922 PR tree-optimization/88760
4923 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4924 * common/config/rs6000/rs6000-common.c
4925 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4926 Turn on -funroll-loops and -munroll-only-small-loops.
4927 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4928 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4929 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4930 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4931 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4932 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4933
4934 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4935
4936 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4937 Make scalar_load, vector_load, unaligned_load and
4938 vector_gather_load cost more to conform hardware latency and
4939 insn cost settings.
4940
4941 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4942
4943 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4944 (MACHO_SYMBOL_LINKER_VIS_P): New.
4945
4946 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4947
4948 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4949 registers in eliminable_regset.
4950
4951 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4952
4953 * ipa-inline.c (compute_uninlined_call_time,
4954 compute_inlined_call_time): Take edge frequency as
4955 parameter rather than computing it by itself.
4956 (big_speedup_p, edge_badness): Manually CSE sreal
4957 frequency calculations.
4958
4959 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4960
4961 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4962 case where profiles are same.
4963
4964 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4965
4966 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4967
4968 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4969
4970 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4971 args summaries of inlined edge unless it holds info about
4972 described reference.
4973
4974 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4975
4976 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4977 (*movcc_internal1): Rename to...
4978 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4979
4980 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4981
4982 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4983 (cgraph_node::create_virtual_clone): Copy it.
4984 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4985 summaries.
4986 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4987 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4988 is disabled.
4989 (propagate_constants_across_call): If callee is not analyzed, give up.
4990 (propagate_constants_topo): Lower to bottom latties of all callees of
4991 functions with ipa-cp disabled.
4992 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4993 (cgraph_edge_brings_value_p): Check for availability first.
4994 (create_specialized_node): Set ipcp_clone.
4995 (ipcp_store_bits_results): Check that info is present.
4996 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4997 thunks.
4998 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4999 conservative when callee summary is missing.
5000 (remap_edge_summaries): Lookup call summary only when needed.
5001 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5002 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5003 Use get_create.
5004 (ipa_analyze_node): Use get_create.
5005 (propagate_controlled_uses): Do not propagate when function is not
5006 analyzed.
5007 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5008 (ipa_read_node_info): Use get_create.
5009 * ipa-prop.h (IPA_NODE_REF): Use get.
5010 (IPA_NODE_REF_GET_CREATE): New.
5011
5012 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5013
5014 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5015 on function symbol.
5016
5017 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5018
5019 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5020 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5021 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5022 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5023
5024 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5025
5026 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5027 capping the growth cumulated.
5028 (offline_size): Break out from ...
5029 (estimate_growth): ... here.
5030 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5031 parameters.
5032 (growth_likely_positive): Turn to ...
5033 (growth_positive_p): Re-implement.
5034 * ipa-inline.h (growth_likely_positive): Remove.
5035 (growth_positive_p): Declare.
5036 * ipa-inline.c (want_inline_small_function_p): Use
5037 growth_positive_p.
5038 (want_inline_function_to_all_callers_p): Likewise.
5039
5040 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5041
5042 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5043 calculation of min_size.
5044 (ipa_update_overall_fn_summary): Likewise.
5045
5046 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5047
5048 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5049 estimate_edge_devirt_benefit when not computing hints;
5050 do not compute time when not asked for.
5051 (estimate_calls_size_and_time): Pass NULL hints and time when
5052 these are not computed; do not evaluate hint predicates when these are
5053 not computed.
5054 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5055 frequency.
5056
5057 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5058
5059 PR tree-optimization/92401
5060 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5061 if res_op->code is an expression with code length 1.
5062 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5063 if res_op->code is an expression with code length 2.
5064 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5065 if res_op->code is an expression with code length 3.
5066
5067 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5068
5069 * config/darwin.c (machopic_mcount_stub_name): Validate the
5070 symbol stub name when it is created.
5071 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5072 stub validation.
5073
5074 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5075
5076 * symtab.c: Fix comment typos.
5077 * cgraphunit.c: Likewise.
5078 * cgraph.h: Likewise.
5079 * cgraphclones.c: Likewise.
5080 * cgraph.c: Likewise.
5081 * varpool.c: Likewise.
5082 * tree-ssa-strlen.c: Likewise.
5083 * ipa-sra.c: Likewise.
5084 (scan_expr_access, check_all_callers_for_issues): Fix typo
5085 in a dump message.
5086
5087 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5088
5089 * config/darwin-protos.h: Add include quard.
5090
5091 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5092
5093 * range-op.h (range_operator::fold_range): Return result in a
5094 reference parameter instead of by value.
5095 (range_operator::wi_fold): Same.
5096 * range-op.cc (range_operator::wi_fold): Return result in a reference
5097 parameter instead of by value.
5098 (range_operator::fold_range): Same.
5099 (value_range_from_overflowed_bounds): Same.
5100 (value_range_with_overflow): Same
5101 (create_possibly_reversed_range): Same.
5102 (operator_equal::fold_range): Same.
5103 (operator_not_equal::fold_range): Same.
5104 (operator_lt::fold_range): Same.
5105 (operator_le::fold_range): Same.
5106 (operator_gt::fold_range): Same.
5107 (operator_ge::fold_range): Same.
5108 (operator_plus::wi_fold): Same.
5109 (operator_plus::op1_range): Change call to fold_range.
5110 (operator_plus::op2_range): Change call to fold_range.
5111 (operator_minus::wi_fold): Return result via reference parameter.
5112 (operator_minus::op1_range): Change call to fold_range.
5113 (operator_minus::op2_range): Change call to fold_range.
5114 (operator_min::wi_fold): Return result via reference parameter.
5115 (operator_max::wi_fold): Same.
5116 (cross_product_operator::wi_cross_product): Same.
5117 (operator_mult::wi_fold): Same.
5118 (operator_div::wi_fold): Same.
5119 (operator_div op_floor_div): Fix whitespace.
5120 (operator_exact_divide::op1_range): Change call to fold_range.
5121 (operator_lshift::fold_range): Return result via reference parameter.
5122 (operator_lshift::wi_fold): Same.
5123 (operator_rshift::fold_range): Same.
5124 (operator_rshift::wi_fold): Same.
5125 (operator_cast::fold_range): Same.
5126 (operator_cast::op1_range): Change calls to fold_range.
5127 (operator_logical_and::fold_range): Return result via reference.
5128 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5129 (operator_bitwise_and::wi_fold): Return result via reference.
5130 (operator_logical_or::fold_range): Same.
5131 (operator_bitwise_or::wi_fold): Same.
5132 (operator_bitwise_xor::wi_fold): Same.
5133 (operator_trunc_mod::wi_fold): Same.
5134 (operator_logical_not::fold_range): Same.
5135 (operator_bitwise_not::fold_range): Same.
5136 (operator_bitwise_not::op1_range): Change call to fold_range.
5137 (operator_cst::fold_range): Return result via reference.
5138 (operator_identity::fold_range): Same.
5139 (operator_abs::wi_fold): Same.
5140 (operator_absu::wi_fold): Same.
5141 (operator_negate::fold_range): Same.
5142 (operator_negate::op1_range): Change call to fold_range.
5143 (operator_addr_expr::fold_range): Return result via reference.
5144 (operator_addr_expr::op1_range): Change call to fold_range.
5145 (operator_pointer_plus::wi_fold): Return result via reference.
5146 (operator_pointer_min_max::wi_fold): Same.
5147 (operator_pointer_and::wi_fold): Same.
5148 (operator_pointer_or::wi_fold): Same.
5149 (range_op_handler): Change call to fold_range.
5150 (range_cast): Same.
5151 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5152 fold_range.
5153 (range_fold_unary_symbolics_p): Same.
5154 (range_fold_binary_expr): Same.
5155 (range_fold_unary_expr): Same.
5156
5157 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5158
5159 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5160 vector type as an argument rather than reading it from the
5161 stmt_vec_info.
5162 (vect_create_epilog_for_reduction): Update accordingly.
5163 (vectorizable_reduction): Likewise.
5164 (vect_transform_cycle_phi): Likewise.
5165
5166 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5167
5168 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5169 the comparison codes that make sense for the mode used, and only the
5170 codes that can be done with a single branch instruction.
5171
5172 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5173
5174 PR tree-optimization/92351
5175 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5176 peeling the main loop for alignment, make sure to set the misalignment
5177 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5178
5179 2019-11-08 Richard Biener <rguenther@suse.de>
5180
5181 * dbgcnt.def (ivopts_loop): Add.
5182 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5183 ivopts_loop before optimizing a loop.
5184
5185 2019-11-08 Richard Biener <rguenther@suse.de>
5186
5187 PR ipa/92409
5188 * tree-inline.c (declare_return_variable): Properly handle
5189 type mismatches for the return slot.
5190
5191 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5192
5193 PR target/92095
5194 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5195 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5196 change.
5197 (got_helper_needed): New static variable.
5198 (output_load_pcrel_sym): New function.
5199 (get_pc_thunk_name): Remove after inlining...
5200 (load_got_register): ...here. Rework the initialization of the GOT
5201 register and of the GOT helper.
5202 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5203 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5204 helper must be emitted. Use output_asm_insn instead of fprintf.
5205 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5206 if optimization is enabled.
5207 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5208 by calling output_load_pcrel_sym.
5209
5210 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5211
5212 * tree-sra.c (create_access): Delay disqualifying the base
5213 for poly_int values until we know we have a base.
5214
5215 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5216
5217 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5218 for loops with SIMDUID set. Enable epilogue vectorization for loops
5219 with SIMDLEN set after finding a main loop with a VF that matches it.
5220
5221 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5222
5223 PR target/92038
5224 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5225 value only, return non-NULL if there is a single non-clobber
5226 constituent store even if there are constituent clobbers and return
5227 one of clobber constituent stores if all constituent stores are
5228 clobbers.
5229 (split_group): Handle clobbers.
5230 (imm_store_chain_info::output_merged_store): When computing
5231 bzero_first, look after all clobbers at the start. Don't count
5232 clobber stmts in orig_num_stmts, except if the first orig store is
5233 a clobber covering the whole area and split_stores cover the whole
5234 area, consider equal number of stmts ok. Punt if split_stores
5235 contains only ->orig stores and their number plus number of original
5236 clobbers is equal to original number of stmts. For ->orig, look past
5237 clobbers in the constituent stores.
5238 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5239 stmts.
5240 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5241 rhs.
5242 (store_valid_for_store_merging_p): Allow clobber stmts.
5243 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5244
5245 PR c++/92384
5246 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5247 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5248 slot.
5249 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5250 force creation of a unique data.stack_parm slot.
5251
5252 2019-11-08 Richard Biener <rguenther@suse.de>
5253
5254 * genmatch.c (expr::gen_transform): Use the resimplify
5255 member function instead of hard-coding the gimple_resimplifyN variant.
5256 (dt_simplify::gen_1): Likewise.
5257
5258 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5259
5260 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5261 POLY_INT_CST.
5262
5263 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5264
5265 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5266 instead of INTEGER_CST.
5267
5268 2019-11-08 Richard Biener <rguenther@suse.de>
5269
5270 PR tree-optimization/92324
5271 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5272 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5273 sign-conversions as necessary.
5274 (vectorizable_reduction): Reject conversions in the chain
5275 that are not sign-conversions, base analysis on a non-converting
5276 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5277 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5278 for debug stmts.
5279 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5280 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5281
5282 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5283
5284 PR target/92055
5285 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5286 Fix a missing '-' when displaying these options in the
5287 help screen.
5288
5289 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5290
5291 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5292
5293 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5294
5295 * config/aarch64/aarch64-builtins.c
5296 (aarch64_builtin_vectorized_function): Remove bswap handling.
5297
5298 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5299
5300 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5301 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5302 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5303 Treat the vector types as indivisible.
5304
5305 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5306
5307 * optabs.def (gather_load_optab, mask_gather_load_optab)
5308 (scatter_store_optab, mask_scatter_store_optab): Turn into
5309 conversion optabs, with the offset mode given explicitly.
5310 * doc/md.texi: Update accordingly.
5311 * config/aarch64/aarch64-sve-builtins-base.cc
5312 (svld1_gather_impl::expand): Likewise.
5313 (svst1_scatter_impl::expand): Likewise.
5314 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5315 (expand_scatter_store_optab_fn): Likewise.
5316 (direct_gather_load_optab_supported_p): Likewise.
5317 (direct_scatter_store_optab_supported_p): Likewise.
5318 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5319 to be argument 4.
5320 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5321 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5322 argument with the offset vector type. Require the two vector
5323 types to have the same number of elements but allow their element
5324 sizes to be different. Treat the optabs as conversion optabs.
5325 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5326 prototype accordingly.
5327 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5328 (supports_vec_convert_optab_p): ...this new function.
5329 (supports_vec_gather_load_p): Update accordingly.
5330 (supports_vec_scatter_store_p): Likewise.
5331 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5332 Replace the offset sign and bits parameters with a scalar type tree.
5333 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5334 Pass back the offset vector type instead of the scalar element type.
5335 Allow the offset to be wider than the memory elements. Search for
5336 an offset type that the target supports, stopping once we've
5337 reached the maximum of the element size and pointer size.
5338 Update call to internal_gather_scatter_fn_supported_p.
5339 (vect_check_gather_scatter): Update calls accordingly.
5340 When testing a new scale before knowing the final offset type,
5341 check whether the scale is supported for any signed or unsigned
5342 offset type. Check whether the target supports the source and
5343 target types of a conversion before deciding whether to look
5344 through the conversion. Record the chosen offset_vectype.
5345 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5346 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5347 directly from the gs_info's offset_vectype instead. Pass a zero
5348 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5349 * tree-vect-stmts.c (check_load_store_masking): Update call to
5350 internal_gather_scatter_fn_supported_p, passing the offset vector
5351 type recorded in the gs_info.
5352 (vect_truncate_gather_scatter_offset): Update call to
5353 vect_check_gather_scatter, leaving it to search for a valid
5354 offset vector type.
5355 (vect_use_strided_gather_scatters_p): Convert the offset to the
5356 element type of the gs_info's offset_vectype.
5357 (vect_get_gather_scatter_ops): Get the offset vector type directly
5358 from the gs_info.
5359 (vect_get_strided_load_store_ops): Likewise.
5360 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5361 and IFN_MASK_GATHER_LOAD.
5362 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5363 (gather_load<mode><v_int_equiv>): ...this.
5364 (mask_gather_load<mode>): Rename to...
5365 (mask_gather_load<mode><v_int_equiv>): ...this.
5366 (scatter_store<mode>): Rename to...
5367 (scatter_store<mode><v_int_equiv>): ...this.
5368 (mask_scatter_store<mode>): Rename to...
5369 (mask_scatter_store<mode><v_int_equiv>): ...this.
5370
5371 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5372
5373 PR target/92132
5374 * config/rs6000/predicates.md
5375 (signed_or_equality_comparison_operator): New predicate.
5376 (unsigned_or_equality_comparison_operator): Likewise.
5377 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5378 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5379 * config/rs6000/vector.md
5380 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5381 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5382 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5383 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5384 vector modes and same-size integer vector modes.
5385 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5386 (vector_lt<mode> for VEC_F): New expand.
5387 (vector_le<mode> for VEC_F): Likewise.
5388 (vector_ne<mode> for VEC_F): Likewise.
5389 (vector_unge<mode> for VEC_F): Likewise.
5390 (vector_ungt<mode> for VEC_F): Likewise.
5391 (vector_unle<mode> for VEC_F): Likewise.
5392 (vector_unlt<mode> for VEC_F): Likewise.
5393 (vector_uneq<mode>): Expose name.
5394 (vector_ltgt<mode>): Likewise.
5395 (vector_unordered<mode>): Likewise.
5396 (vector_ordered<mode>): Likewise.
5397
5398 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5399
5400 PR target/92295
5401 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5402 Enhance ix86_expand_vector_init_concat.
5403
5404 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5405
5406 * doc/invoke.texi (-Wold-style-definition): Document () not being
5407 considered an old-style definition for C2x.
5408
5409 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5410
5411 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5412 Enhance comment.
5413 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5414 insn patterns using ldcw instruction.
5415 (memory_barrier): Remove insn pattern using sync instruction.
5416 * config/pa/pa.opt (coherent-ldcw): New option.
5417 (ordered): New option.
5418
5419 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5420
5421 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5422 valid conditions.
5423
5424 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5425
5426 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5427 typo - mistmatch -> mismatch.
5428 * ipa-profile.c (ipa_profile): Likewise.
5429 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5430 - mistmatch -> mismatch.
5431
5432 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5433
5434 * simplify-rtx.c (comparison_to_mask): New function.
5435 (mask_to_comparison): New function.
5436 (simplify_logical_relational_operation): New function.
5437 (simplify_binary_operation_1): Call
5438 simplify_logical_relational_operation.
5439
5440 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5441
5442 PR other/92090
5443 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5444 modes for integer constants.
5445
5446 2019-11-07 Jan Hubicka <jh@suse.cz>
5447
5448 PR ipa/92406
5449 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5450 summary.
5451
5452 2019-11-07 Jan Hubicka <jh@suse.cz>
5453
5454 * optc-save-gen.awk: Generate cl_target_option_free
5455 and cl_optimization_option_free.
5456 * opth-en.awk: Declare cl_target_option_free
5457 and cl_optimization_option_free.
5458 * tree.c (free_node): Use it.
5459
5460 2019-11-06 Jan Hubicka <jh@suse.cz>
5461
5462 * lto-streamer-in.c: Include alloc-pool.h.
5463 (freeing_string_slot_hasher): Remove.
5464 (string_slot_allocator): New object allocator.
5465 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5466 (file_name_obstack): New obstack.
5467 (canon_file_name): Allocate in obstack and allocator.
5468 (lto_reader_init): Initialize obstack and allocator.
5469 (lto_free_file_name_hash): New function.
5470 * lto-streamer.h (lto_free_file_name_hash): New.
5471
5472 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5473
5474 PR tree-optimization/89134
5475 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5476 * params.def: Add min-loop-cond-split-prob.
5477 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5478 outside checks on loop into the function.
5479 (split_info): New class.
5480 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5481 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5482 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5483 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5484 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5485 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5486 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5487 (split_loop_on_cond): Likewise.
5488 (tree_ssa_split_loops): Add loop split on conditional statement.
5489
5490 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5491
5492 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5493 pattern.
5494
5495 2019-11-07 Richard Biener <rguenther@suse.de>
5496
5497 PR tree-optimization/92405
5498 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5499 restrict lane-reducing ops to single stmt chains.
5500
5501 2019-11-07 Martin Jambor <mjambor@suse.cz>
5502
5503 PR lto/70929
5504 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5505 * cgraph.h (gimple_check_call_matching_types): Remove
5506 * cgraph.c (gimple_check_call_args): Likewise.
5507 (gimple_check_call_matching_types): Likewise.
5508 (symbol_table::create_edge): Do not call
5509 gimple_check_call_matching_types.
5510 (cgraph_edge::make_direct): Likewise.
5511 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5512 * value-prof.h (check_ic_target): Remove.
5513 * value-prof.c (check_ic_target): Remove.
5514 (gimple_ic_transform): Do nat call check_ic_target.
5515 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5516 (afdo_indirect_call): Likewise.
5517 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5518 gimple_check_call_matching_types.
5519 * ipa-inline.c (early_inliner): Likewise.
5520
5521 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5522
5523 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5524 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5525 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5526 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5527 * config/arm/iterators.md (USSAT16): New int_iterator.
5528 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5529 (sup): Likewise.
5530 * config/arm/predicates.md (ssat16_imm): New predicate.
5531 (usat16_imm): Likewise.
5532 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5533
5534 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5535
5536 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5537 New define_insns.
5538 (arm_<simd32_op>): New define_expands.
5539 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5540 __smuad, __smuadx): Define.
5541 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5542 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5543 (SIMD32_BINOP_Q): Likewise.
5544 (simd32_op): Handle the above.
5545 * config/arm/unspecs.md: Define unspecs for the above.
5546
5547 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5548
5549 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5550 * config/arm/arm.md (APSRGE_REGNUM): Define.
5551 (arm_<simd32_op>): New define_insn.
5552 (arm_sel): Likewise.
5553 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5554 (CALL_USED_REGISTERS): Likewise.
5555 (REG_ALLOC_ORDER): Likewise.
5556 (FIRST_PSEUDO_REGISTER): Update value.
5557 (ARM_GE_BITS_READ): Define.
5558 * config/arm/arm.c (arm_conditional_register_usage): Clear
5559 APSRGE_REGNUM from operand_reg_set.
5560 (arm_ge_bits_access): Define.
5561 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5562 ARM_BUIILTIN_sel.
5563 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5564 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5565 FAIL if ARM_GE_BITS_READ.
5566 (*arm_add<mode>3): New define_insn.
5567 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5568 (*arm_sub<mode>3): New define_insn.
5569 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5570 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5571 __usub16): Define.
5572 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5573 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5574 (simd32_op): Handle the above.
5575 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5576 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5577 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5578 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5579
5580 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5581
5582 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5583 (arm_smlabb): New define_expand.
5584 (*maddhisi4tb): Rename to...
5585 (maddhisi4tb): ... This.
5586 (*maddhisi4tt): Rename to...
5587 (maddhisi4tt): ... This.
5588 (arm_smlatb_setq): New define_insn.
5589 (arm_smlatb): New define_expand.
5590 (arm_smlatt_setq): New define_insn.
5591 (arm_smlatt): New define_expand.
5592 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5593 (arm_<smlaw_op>): New define_expand.
5594 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5595 __smlawb, __smlawt): Define.
5596 * config/arm_acle_builtins.def: Define builtins for the above.
5597 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5598 (slaw_op): New int_attribute.
5599 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5600
5601 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5602
5603 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5604 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5605 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5606 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5607 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5608 (ss_op): New code_attr.
5609
5610 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5611
5612 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5613 * config/arm/arm.md (APSRQ_REGNUM): Define.
5614 (add_setq): New define_subst.
5615 (add_clobber_q_name): New define_subst_attr.
5616 (add_clobber_q_pred): Likewise.
5617 (maddhisi4): Change to define_expand. Split into mult and add if
5618 ARM_Q_BIT_READ.
5619 (arm_maddhisi4): New define_insn.
5620 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5621 (*maddhisi4tt): Likewise.
5622 (arm_ssat): New define_expand.
5623 (arm_usat): Likewise.
5624 (arm_get_apsr): New define_insn.
5625 (arm_set_apsr): Likewise.
5626 (arm_saturation_occurred): New define_expand.
5627 (arm_set_saturation): Likewise.
5628 (*satsi_<SAT:code>): Rename to...
5629 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5630 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5631 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5632 (CALL_USED_REGISTERS): Mark apsrq.
5633 (FIRST_PSEUDO_REGISTER): Update value.
5634 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5635 (machine_function): Add q_bit_access.
5636 (ARM_Q_BIT_READ): Define.
5637 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5638 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5639 operand_reg_set.
5640 (arm_q_bit_access): Define.
5641 * config/arm/arm-builtins.c: Include stringpool.h.
5642 (arm_sat_binop_imm_qualifiers,
5643 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5644 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5645 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5646 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5647 SET_SAT_QUALIFIERS): Likewise.
5648 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5649 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5650 Handle 0 argument expander.
5651 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5652 (arm_check_builtin_call): Define.
5653 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5654 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5655 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5656 (arm_q_bit_access): Likewise.
5657 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5658 __saturation_occurred, __set_saturation_occurred): Define.
5659 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5660 saturation_occurred, set_saturation_occurred.
5661 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5662 (UNSPEC_APSR_READ): Likewise.
5663 (VUNSPEC_APSR_WRITE): Likewise.
5664 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5665 (*arm_ssadd<mode>3): New define_insn.
5666 (sssub<mode>3): Convert to define_expand.
5667 (*arm_sssub<mode>3): New define_insn.
5668 (ssmulsa3): Convert to define_expand.
5669 (*arm_ssmulsa3): New define_insn.
5670 (usmulusa3): Convert to define_expand.
5671 (*arm_usmulusa3): New define_insn.
5672 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5673 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5674 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5675
5676 2019-11-07 Martin Liska <mliska@suse.cz>
5677
5678 PR c++/92354
5679 * cgraph.c (delete_function_version): Clear global
5680 variable version_info_node if equal to deleted
5681 function.
5682
5683 2019-11-07 Martin Liska <mliska@suse.cz>
5684
5685 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5686 of CONSTRUCTOR_NO_CLEARING.
5687 (operand_compare::hash_operand): Likewise.
5688
5689 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5690
5691 Support 64-bit double and 64-bit long double configurations.
5692
5693 PR target/92055
5694 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5695 --with-long-double=.
5696 * config/avr/t-multilib: Remove.
5697 * config/avr/t-avr: Output of genmultilib.awk is now fully
5698 dynamically generated and no more part of the repo.
5699 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5700 Pass them down to...
5701 * config/avr/genmultilib.awk: ...here and handle them.
5702 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5703 (-mlong-double=, avr_long_double). New option and var.
5704 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5705 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5706 Set default as requested by --with-double=
5707 (TARGET_HANDLE_OPTION): Define to this...
5708 (avr_handle_option): ...new hook worker.
5709 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5710 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5711 (avr_double_lib): New proto for spec function.
5712 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5713 (DRIVER_SELF_SPECS): Call %:double-lib.
5714 * config/avr/avr.c (avr_option_override): Assert
5715 sizeof(long double) >= sizeof(double) for the target.
5716 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5717 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5718 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5719 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5720 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5721 New built-in define depending on --with-double=, --with-long-double=.
5722 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5723 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5724 * doc/install.texi (Cross-Compiler-Specific Options)
5725 <--with-double=, --with-long-double=>: Doc.
5726
5727 2019-11-07 Richard Biener <rguenther@suse.de>
5728
5729 * dbgcnt.def (gimple_unroll): New.
5730 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5731 gimple_unroll debug counter before applying transform.
5732 (try_peel_loop): Likewise.
5733
5734 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5735
5736 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5737 frame pointer in multiple registers.
5738 (ira_setup_eliminable_regset): Setup eliminable_regset,
5739 ira_no_alloc_regs and regs_ever_live for frame pointer in
5740 multiple registers.
5741
5742 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5743
5744 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5745 V2DI modes.
5746
5747 2019-11-06 Jan Hubicka <jh@suse.cz>
5748
5749 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5750 allocations.
5751 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5752 Do not silently ignore summary corruptions.
5753
5754 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5755
5756 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5757 the epilogue if there are peeled iterations for it to handle.
5758
5759 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5760
5761 * config/arc/arc.c (arc_split_ior): Add asserts.
5762 (arc_split_mov_const): Likewise.
5763 (arc_check_ior_const): Do not match known short immediate values.
5764 * config/arc/arc.md (movsi): Don't split predicated instructions
5765 (iorsi): Likewise.
5766
5767 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5768
5769 * config/arc/arc.opt (mea): Update help string.
5770 * doc/invoke.texi(ARC): Update mea option info.
5771
5772 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5773
5774 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5775 (zero_extendqisi2_ac): Likewise.
5776 (zero_extendhisi2_i): Likewise.
5777 (extendqihi2_i): Likewise.
5778 (extendqisi2_ac): Likewise.
5779 (extendhisi2_i): Likewise.
5780
5781 2019-11-06 Richard Biener <rguenther@suse.de>
5782
5783 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5784 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5785 Simplify single_defuse_cycle condition.
5786
5787 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5788
5789 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5790 epilogue loop, make sure that the VF is small enough or that
5791 the epilogue loop can be fully-masked.
5792
5793 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5794
5795 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5796 loop when we've finished, rather than returning directly from
5797 the loop. Use a local variable to track whether we're still
5798 searching for the preferred simdlen. Make vect_epilogues
5799 record whether the next iteration should try to treat the
5800 loop as an epilogue.
5801
5802 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5803
5804 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5805 __arc_hard_float__, __ARC_HARD_FLOAT__,
5806 __arc_soft_float__, __ARC_SOFT_FLOAT__
5807
5808 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5809
5810 PR tree-optimization/92317
5811 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5812 update phi's with constant phi arguments.
5813
5814 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5815 Alexandre Oliva <oliva@adacore.com>
5816
5817 * common.opt (-fcallgraph-info[=]): New option.
5818 * doc/invoke.texi (Developer options): Document it.
5819 * opts.c (common_handle_option): Handle it.
5820 * builtins.c (expand_builtin_alloca): Record allocation if
5821 -fcallgraph-info=da.
5822 * calls.c (expand_call): If -fcallgraph-info, record the call.
5823 (emit_library_call_value_1): Likewise.
5824 * flag-types.h (enum callgraph_info_type): New type.
5825 * explow.c: Include stringpool.h.
5826 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5827 * function.c (allocate_stack_usage_info): New.
5828 (allocate_struct_function): Call it for -fcallgraph-info.
5829 (prepare_function_start): Call it otherwise.
5830 (record_final_call, record_dynamic_alloc): New.
5831 * function.h (struct callinfo_callee): New.
5832 (CALLEE_FROM_CGRAPH_P): New.
5833 (struct callinfo_dalloc): New.
5834 (struct stack_usage): Add callees and dallocs.
5835 (record_final_call, record_dynamic_alloc): Declare.
5836 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5837 object if -fcallgraph-info=da.
5838 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5839 * print-tree.h (print_decl_identifier): Declare.
5840 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5841 * print-tree.c: Include print-tree.h.
5842 (print_decl_identifier): New function.
5843 * toplev.c: Include print-tree.h.
5844 (callgraph_info_file): New global variable.
5845 (callgraph_info_external_printed): Likewise.
5846 (output_stack_usage): Rename to...
5847 (output_stack_usage_1): ... this. Make it static, add cf
5848 parameter. If -fcallgraph-info=su, print stack usage to cf.
5849 If -fstack-usage, use print_decl_identifier for
5850 pretty-printing.
5851 (INDIRECT_CALL_NAME): New.
5852 (dump_final_node_vcg_start): New.
5853 (dump_final_callee_vcg, dump_final_node_vcg): New.
5854 (output_stack_usage): New.
5855 (lang_dependent_init): Open and start file if
5856 -fcallgraph-info. Allocated callgraph_info_external_printed.
5857 (finalize): If callgraph_info_file is not null, finish it,
5858 close it, and release callgraph_info_external_printed.
5859
5860 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5861 Frederik Harwath <frederik@codesourcery.com>
5862 Thomas Schwinge <thomas@codesourcery.com>
5863
5864 * omp-low.c (struct omp_context): New fields
5865 local_reduction_clauses, outer_reduction_clauses.
5866 (new_omp_context): Initialize these.
5867 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5868 (scan_omp_for): Check reduction clauses for incorrect nesting.
5869
5870 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5871
5872 PR inline-asm/92352
5873 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5874 operands with non-memory constraints.
5875
5876 2019-11-05 Martin Sebor <msebor@redhat.com>
5877
5878 PR tree-optimization/92373
5879 * tree.c (component_ref_size): Only consider initializers of objects
5880 of matching struct types.
5881 Return null for instances of interior zero-length arrays.
5882
5883 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5884
5885 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5886
5887 2019-11-05 Jason Merrill <jason@redhat.com>
5888
5889 PR tree-optimization/91825
5890 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5891
5892 2019-11-05 Jim Wilson <jimw@sifive.com>
5893
5894 PR middle-end/92263
5895 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5896 optimize_insn_for_speed_p is true.
5897
5898 2019-11-05 Martin Sebor <msebor@redhat.com>
5899
5900 PR middle-end/92333
5901 PR middle-end/82608
5902 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5903 size.
5904 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5905 name and location for a temporary variable.
5906
5907 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5908
5909 * tree-vrp.c (value_range::value_range): Fix whitespace.
5910 (defined_ranges_p): Same.
5911 (range_fold_binary_symbolics_p): Same.
5912 (value_range::intersect_helper): Same.
5913 (value_range::union_helper): Same.
5914 * tree-vrp.h (range_fold_binary_expr): Same.
5915
5916 2019-11-04 Martin Sebor <msebor@redhat.com>
5917
5918 PR middle-end/92341
5919 PR middle-end/82612
5920 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5921 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5922 of message printed in a warning for empty arrays.
5923 (vrp_prop::check_mem_ref): Also handle function parameters and
5924 empty arrays.
5925
5926 2019-11-05 Richard Biener <rguenther@suse.de>
5927
5928 PR tree-optimization/92371
5929 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5930 on the original stmt of live stmts in the chain.
5931 (vectorizable_live_operation): Look at the original stmt when
5932 checking STMT_VINFO_REDUC_DEF.
5933
5934 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5935
5936 * gimple-fold.c, gimple-loop-versioning.cc,
5937 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5938 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5939 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5940 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5941 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5942 value_range_equiv, and value_range_base to value_range.
5943
5944 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5945
5946 * expr.c (build_personality_function): Fix generated type to
5947 match actual personality functions.
5948
5949 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5950
5951 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5952 enough bytes for the NULL character.
5953
5954 2019-11-05 Richard Biener <rguenther@suse.de>
5955
5956 PR tree-optimization/92280
5957 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5958 had a single use do not create a new CTOR.
5959 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5960 BIT_FIELD_REF of a CTOR via GENERIC.
5961
5962 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5963
5964 * config/s390/s390.c (s390_vector_alignment): Check if the value
5965 fits into uhwi before using it.
5966
5967 2019-11-05 Martin Liska <mliska@suse.cz>
5968
5969 * symbol-summary.h: Use ggc_delete.
5970
5971 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5972
5973 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5974 Change vec_perm field to 10.
5975
5976 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5977
5978 * doc/install.texi: Further fix syntax for html generation.
5979
5980 2019-11-05 Martin Liska <mliska@suse.cz>
5981
5982 * symbol-summary.h: Rename allocator to m_allocator and
5983 add comment.
5984
5985 2019-11-05 Richard Biener <rguenther@suse.de>
5986
5987 PR tree-optimization/92324
5988 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5989 all signed or unsigned operations.
5990
5991 2019-11-05 Jan Hubicka <jh@suse.cz>
5992
5993 * hsa-brig.c: Include alloc-pool.h
5994 * hsa-dump.c: Likewise.
5995 * hsa-gen.c: Likewise.
5996 * hse-regalloc.c: Likewise.
5997 * ipa-hsa.c: Likewise.
5998 * ipa-predicate.c: Likewise.
5999 * ipa-reference.c: Likewise.
6000 * ipa-sra.c: Likewise.
6001 * omp-expand.c: Likewise.
6002 * omp-general.c: Likewise.
6003 * omp-low.c: Likewise.
6004 * sumbol-summary.h (function_summary_base): Add allocator.
6005 (function_summary<T *>::function_summary): Update construction.
6006 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6007 (call_summary_base): Add allcator.
6008 (call_summary<T *>::call_summary): Update construction.
6009 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6010
6011 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6012
6013 PR tree-optimization/91945
6014 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6015 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6016 Formatting fix.
6017
6018 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6019
6020 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6021 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6022 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6023 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6024 (vrp_set_zero_nonzero_bits): Move to...
6025 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6026 (vr_values::simplify_bit_ops_using_ranges): Rename
6027 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6028
6029 2019-11-05 Martin Liska <mliska@suse.cz>
6030
6031 PR c++/92339
6032 * fold-const.c (operand_compare::hash_operand): Remove
6033 FIELD_DECL handling.
6034
6035 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6036
6037 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6038 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6039 static.
6040
6041 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6042
6043 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6044 properly handle symbolics.
6045 (range_compatible_p): Remove.
6046
6047 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6048
6049 * common.opt (-fabi-version): Document =14.
6050 * doc/invoke.texi (C++ Dialect Options): Likewise.
6051
6052 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6053
6054 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6055
6056 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6057
6058 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6059 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6060 gcn_omp_device_kind_arch_isa.
6061 * config/gcn/t-omp-device: New file.
6062 * configure.ac: Support gcn for omp_device_property.
6063 * configure: Regenerate.
6064
6065 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6066
6067 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6068 (vrp_val_max): Same.
6069 (vrp_val_is_min): Same.
6070 (vrp_val_is_max): Same.
6071 (value_range_base::nonzero_p): Remove last argument to
6072 vrp_val_is_max.
6073 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6074 (vrp_val_max): Same.
6075 (vrp_val_is_min): Same.
6076 (vrp_val_is_max): Same.
6077 (value_range_base::set_varying): Remove last argument to vrp_val*.
6078 (value_range_base::dump): Same.
6079 (value_range_base::set): Same.
6080 (value_range_base::normalize_symbolics): Same.
6081 (value_range_base::num_pairs): Same.
6082 (value_range_base::lower_bound): Same.
6083 (value_range_base::upper_bound): Same.
6084 (ranges_from_anti_range): Remove handle_pointers argument.
6085 (value_range_base::singleton_p): Remove last argument to
6086 ranges_from_anti_range.
6087
6088 2019-11-04 Jan Hubicka <jh@suse.cz>
6089
6090 * ipa-reference.c (init_function_info): Initialize
6091 info->global.statics_read.
6092
6093 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6094
6095 * tree-vrp.c (value_range_base::invert): Use constructors to build
6096 range.
6097
6098 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6099
6100 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6101 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6102
6103 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6104
6105 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6106 VR_UNDEFINED.
6107
6108 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6109
6110 * tree-vrp.c (dump_assert_info): New.
6111 (dump_asserts_info): New.
6112
6113 2019-11-04 Jan Hubicka <jh@suse.cz>
6114
6115 * ipa-inline-transform.c: Include ipa-utils.h
6116 (inline_call): Set thunk_expansion flag.
6117 * ipa-utils.h (thunk_expansion): Declare.
6118 * ipa-devirt.c (thunk_expansion): New global var.
6119 (devirt_node_removal_hook): Do not invalidate cache while
6120 doing thunk expansion.
6121
6122 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6123
6124 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6125
6126 2019-11-04 Martin Sebor <msebor@redhat.com>
6127
6128 PR tree-optimization/92349
6129 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6130 memebers have constant sizes.
6131
6132 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6133
6134 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6135 parameter.
6136 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6137 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6138 vect_analyze_loop.
6139
6140 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6141
6142 * expr.c (store_constructor): Modify to handle single element vectors.
6143 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6144 constructors.
6145 (vect_slp_check_for_constructors): New function.
6146 (vect_slp_analyze_bb_1): Call new function to check for vector
6147 constructors.
6148 (vectorize_slp_instance_root_stmt): New function.
6149 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6150 constructors.
6151 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6152
6153 2019-11-04 Richard Biener <rguenther@suse.de>
6154
6155 PR tree-optimization/92345
6156 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6157 we produced a reduction chain.
6158 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6159 LOOP_VINFO_REDUCTIONS.
6160
6161 2019-11-04 Jan Hubicka <jh@suse.cz>
6162
6163 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6164 duplicate summaries.
6165 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6166 first.
6167 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6168 access call summaries.
6169 (dump_ipa_call_summary): Be ready for missing edge summaries.
6170 (analyze_function_body): Use get instead of get_create to access
6171 edge summary.
6172 (estimate_calls_size_and_time): Do not access summaries of
6173 inlined edges; sanity check they are missing.
6174 (ipa_call_context::estimate_size_and_time): Use get instead
6175 of get_create to access node summary.
6176 (inline_update_callee_summaries): Do not update depth of
6177 inlined edge.
6178 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6179 growth caches.
6180 (ipa_merge_fn_summary_after_inlining): Use get instead
6181 of get_create.
6182 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6183 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6184 fast summary.
6185 (initialize_growth_caches): Update.
6186 (do_estimate_edge_time): Remove redundant copy of context.
6187 (ipa_remove_from_growth_caches): New function.
6188 * ipa-inline.c (flatten_function): Update overall summary
6189 only when optimizing.
6190 (inline_to_all_callers): Update overall summary of function
6191 inlined to.
6192 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6193 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6194 to false.
6195
6196 2019-11-04 Richard Biener <rguenther@suse.de>
6197
6198 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6199 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6200
6201 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6202
6203 * ggc-common.c: Include system.h before malloc.h.
6204
6205 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6206
6207 * configure.ac: Pass --enable-obsolete=* and
6208 --enable-option-checking=* down to build configure, and fail
6209 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6210 * configure: Rebuild.
6211 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6212 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6213
6214 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6215
6216 * config.in: Regenerate.
6217 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6218 -mtiny-printf is used without GCC being configured with
6219 --enable-newlib-nano-formatted-io.
6220 * config/msp430/msp430.h (LINK_SPEC): Pass
6221 "--wrap puts --wrap printf" when -mtiny-printf is used.
6222 * config/msp430/msp430.opt: Document -mtiny-printf.
6223 * configure: Regenerate.
6224 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6225 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6226 --enable-newlib-nano-formatted-io is passed.
6227 * doc/invoke.texi: Document -mtiny-printf.
6228
6229 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6230
6231 * configure: Regenerate.
6232
6233 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6234
6235 * config/msp430/driver-msp430.c
6236 (msp430_get_linker_devices_include_path): New spec function.
6237 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6238 (extract_devices_dir_from_exec_prefix): New function.
6239 (extract_devices_dir_from_collect_gcc): New function.
6240 (msp430_check_env_var_for_devices): New function.
6241 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6242 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6243 devices.csv was not found using other methods.
6244 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6245 New prototype.
6246 (msp430_dirname): Likewise.
6247 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6248 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6249 msp430_get_linker_devices_include_path.
6250 (TARGET_EXTRA_PRE_INCLUDES): Define.
6251 * doc/invoke.texi: Document new ways of searching for support files.
6252
6253 2019-11-04 Richard Biener <rguenther@suse.de>
6254
6255 PR tree-optimization/92301
6256 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6257 as required by epilogue generation
6258
6259 2019-11-04 Martin Liska <mliska@suse.cz>
6260
6261 PR ipa/92304
6262 * fold-const.c (operand_compare::hash_operand): Fix field
6263 hashing of CONSTRUCTOR.
6264
6265 2019-11-04 Martin Liska <mliska@suse.cz>
6266
6267 * ggc.h (ggc_delete): New function.
6268 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6269 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6270 (ipa_free_all_node_params): Likewise.
6271 * ipa-sra.c (ipa_sra_analysis): Likewise.
6272
6273 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6274
6275 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6276 set_switch_stmt_execution_predicate, compute_bb_predicates,
6277 will_be_nonconstant_expr_predicate,
6278 phi_result_unknown_predicate,
6279 analyze_function_body): Pass arround params summary.
6280 (ipa_call_context::duplicate_from): New comment;
6281 only duplicate useful values.
6282 (ipa_call_context::equal_to): Only compare useful values.
6283 (remap_edge_summaries): Pass params_summary.
6284 (remap_hint_predicate): Likewise.
6285 (ipa_merge_fn_summary_after_inlining): Likewise.
6286 (inline_read_section): Initialize params summary used flags.
6287 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6288 around param_summary.
6289 (add_condition): Initialized used params summary flags.
6290 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6291 (inline_param_summary::useless_p): New predicate.
6292 (remap_after_inlining, add_condition): Update prototype
6293 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6294 move_cost.
6295 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6296 summaries.
6297 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6298 (ipa_analyze_virtual_call_uses): Likewise.
6299 (update_indirect_edges_after_inlining): Update param summaries.
6300 (ipa_print_node_params): Print used flags.
6301 (ipa_read_indirect_edge_info): Update param summareis.
6302 * ipa-prop.h (ipa_param_descriptor): Add
6303 used_by_ipa_predicates, used_by_indirect_call
6304 and used_by_polymorphic_call.
6305 (ipa_set_param_used_by_ipa_predicates,
6306 ipa_set_param_used_by_indirect_call,
6307 ipa_set_param_used_by_polymorphic_call,
6308 ipa_is_param_used_by_ipa_predicates,
6309 ipa_is_param_used_by_indirect_call,
6310 ipa_is_param_used_by_polymorphic_call): New inline functions.
6311
6312 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6313
6314 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6315 member function.
6316 (ipa_call_context::release): Add ALL parameter.
6317 (ipa_call_context::equal_to): New member function.
6318 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6319 duplicate_form, release, equal_to and exists_p member functoins.
6320 * ipa-inline-analysis.c (node_context_cache_entry): New
6321 class.
6322 (node_context_summary): Likewise.
6323 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6324 node_context_clear): New static vars.
6325 (initialize_growth_caches): New function.
6326 (free_growth_caches): Also delete node_context_cache; output stats.
6327 (do_estimate_edge_time): Cache contexts.
6328 (reset_node_cache): New function.
6329 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6330 (inline_small_functions): Initialize growth caches.
6331 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6332 Declare.
6333 * ipa-predicate.h (inline_param_summary::equal_to): New.
6334 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6335 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6336 (ipa_agg_jump_function): Implement equal_to member function.
6337
6338 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6339
6340 * ipa-fnsummary.c (inline_read_section): Set vector size
6341 ahead of time.
6342
6343 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6344
6345 * ipa-fnsummary.c (ipa_call_context): New constructor.
6346 (estimate_node_size_and_time): Turn to ...
6347 (ipa_call_context::estimate_size_and_time): ... this one.
6348 (ipa_call_context::release): New.
6349 * ipa-fnsummary.h (ipa_call_context): New class.
6350 (estimate_node_size_and_time): Remove.
6351 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6352 do_estimate_edge_hints): Update.
6353
6354 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6355
6356 * config.in: Regenerate.
6357 * configure: Regenerate.
6358 * configure.ac: Check for mallinfo.
6359 * ggc-common.c: Include malloc.h if available;
6360 include options.h
6361 (report_heap_memory_use): New functoin.
6362 * ggc-page.c (ggc_grow): Do not print "start".
6363 * ggc.h (report_heap_memory_use): Declare.
6364 * pases.c (execute_one_pass): Report memory after IPA passes.
6365 (ipa_read_summaries_1): Likewise.
6366 (ipa_read_optimization_summaries_1): Likewise.
6367
6368 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6369
6370 * gimplify.h (omp_construct_selector_matches): Change return
6371 type to int, add a new SCORES argument.
6372 * gimplify.c (omp_construct_selector_matches): Likewise. If
6373 SCORES is non-NULL, compute scores of each construct.
6374 * omp-general.h (omp_get_context_selector): Declare.
6375 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6376 Adjust omp_construct_selector_matches callers.
6377 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6378 (omp_context_compute_score): New function.
6379 (omp_resolve_declare_variant): Compute scores and decide based on
6380 that.
6381
6382 PR bootstrap/92314
6383 * configure.ac: Don't look for omp-device-properties files from
6384 installed offloading compilers. Instead add tmake_file snippets
6385 for configured offloading targets and use files they generate.
6386 * Makefile.in (install): Don't depend on
6387 install-omp-device-properties.
6388 (install-omp-device-properties): Remove goal.
6389 * config/i386/t-omp-device: New file.
6390 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6391 * config/nvptx/t-omp-device: New file.
6392 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6393 * configure: Regenerated.
6394
6395 * omp-general.h (omp_context_selector_set_compare): Declare.
6396 * omp-general.c (omp_construct_simd_compare,
6397 omp_context_selector_props_compare, omp_context_selector_set_compare,
6398 omp_context_selector_compare): New functions.
6399 (omp_resolve_declare_variant): Prune variants that are strict subset
6400 of another variant.
6401
6402 2019-11-01 Martin Sebor <msebor@redhat.com>
6403
6404 PR middle-end/91679
6405 PR middle-end/91647
6406 PR middle-end/91463
6407 PR middle-end/92312
6408 * doc/invoke.texi (-Wzero-length-bounds): Document.
6409 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6410 instead of a hand-rolled loop to avoid PR 92323.
6411 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6412 with initializers.
6413 (vrp_prop::check_mem_ref): Handle declared struct objects.
6414 * tree.c (last_field): New function.
6415 (array_at_struct_end_p): Handle MEM_REF.
6416 (get_initializer_for): New helper.
6417 (component_ref_size): Add argument. Rename locals. Call
6418 get_initializer_for instead of fold_ctor_reference. Correct handling
6419 of flexible array members.
6420 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6421
6422 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6423
6424 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6425 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6426 UNSPEC_VSX_CVSPUXDS): Remove.
6427 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6428 (vsx_xvcvspdp_be): ... this. New. And...
6429 (vsx_xvcvspdp_le): ... this. New.
6430 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6431 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6432 (vsx_xvcv<su>xwdp_le): ... this. New.
6433 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6434 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6435 (vsx_xvcvsp<su>xds_le): ... this. New.
6436
6437 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6438
6439 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6440 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6441 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6442 UNSPEC_VSX_XVCVSPSXWS): Remove.
6443 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6444 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6445
6446 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6447
6448 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6449 (UNSPEC_VSX_XVCDPSP): Remove.
6450 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6451 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6452
6453 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6454
6455 * hooks.c (hook_tree_tree_bool_null): New.
6456 * hooks.h (hook_tree_tree_bool_null): Declare.
6457 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6458 (LANG_HOOKS_DECLS): Add it.
6459 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6460 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6461 (lower_omp_target): Handle Fortran array with descriptor in
6462 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6463
6464 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6465
6466 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6467 Assert that the type we store in abi_vector_types is its own
6468 main variant.
6469 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6470
6471 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6472
6473 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6474 from a CONST_INT address when TARGET_THUMB2.
6475
6476 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6477
6478 * config/arm/arm.md (add_not_cin): New insn.
6479 (add_not_shift_cin): Likewise.
6480
6481 2019-10-31 Martin Liska <mliska@suse.cz>
6482
6483 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6484 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6485 and compare_memory_operand.
6486
6487 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6488
6489 * configure.ac: Compute and substitute omp_device_properties and
6490 omp_device_property_deps.
6491 * Makefile.in (generated_files): Add omp-device-properties.h.
6492 (omp-general.o): Depend on omp-device-properties.h.
6493 (omp_device_properties): New make variable.
6494 (omp-device-properties.h, s-omp-device-properties-h,
6495 install-omp-device-properties): New goals.
6496 (install): Depend on install-omp-device-properties for accelerators.
6497 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6498 * target.h (enum omp_device_kind_arch_isa): New enum.
6499 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6500 documentation.
6501 * omp-general.c: Include omp-device-properties.h.
6502 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6503 colon instead of comma.
6504 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6505 functions.
6506 (omp_context_selector_matches): Implement device set arch/isa
6507 selectors, improve device set kind selector handling.
6508 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6509 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6510 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6511 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6512 ix86_omp_device_kind_arch_isa.
6513 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6514 definition from ix86_target_string to file scope.
6515 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6516 to file scope.
6517 (ix86_omp_device_kind_arch_isa): New function.
6518 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6519 isa_opts definitions to file scope.
6520 * config/i386/t-intelmic (omp-device-properties): New goal.
6521 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6522 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6523 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6524 nvptx_omp_device_kind_arch_isa.
6525 * configure: Regenerate.
6526 * doc/tm.texi: Regenerate.
6527
6528 PR middle-end/92231
6529 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6530 DECL_BUILT_IN in comment. Remove redundant ()s around return
6531 argument.
6532 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6533 before calling fndecl_built_in_p.
6534 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6535 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6536 fndecl_built_in_p on it.
6537
6538 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6539
6540 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6541
6542 2019-10-31 Martin Liska <mliska@suse.cz>
6543
6544 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6545 of cgraph_local_info and use local_info_node instead.
6546 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6547 (bfin_function_ok_for_sibcall): Likewise.
6548 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6549 (must_reload_pic_reg_p): Likewise.
6550
6551 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6552
6553 PR c++/90947
6554 * tree.h (type_initializer_zero_p): Remove.
6555 * tree.c (type_initializer_zero_p): Remove.
6556
6557 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6558
6559 * doc/invoke.texi (-Wshadow, -Wshadow=global
6560 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6561
6562 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6563
6564 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6565 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6566 and 'target exit data'.
6567
6568 2019-10-30 Martin Jambor <mjambor@suse.cz>
6569
6570 ipa/92278
6571 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6572 availability comparison.
6573
6574 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6575
6576 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6577 calls to __mspabi_mpy* functions.
6578 * config/msp430/msp430.md (mulhisi3): New define_expand.
6579 (umulhisi3): New define_expand.
6580 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6581 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6582
6583 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6584
6585 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6586 (msp430_check_plus_not_high_mem): New.
6587 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6588 might be in low memory.
6589 Indicate that a 16-bit absolute address is in lower memory.
6590
6591 2019-10-30 Martin Jambor <mjambor@suse.cz>
6592
6593 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6594 ultimate_alias_target.
6595
6596 2019-10-30 Richard Biener <rguenther@suse.de>
6597
6598 PR tree-optimization/92275
6599 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6600 Copy all loop-closed PHIs.
6601
6602 2019-10-30 Martin Liska <mliska@suse.cz>
6603
6604 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6605 const_tree as function argument.
6606 (func_checker::compare_decl): Likewise.
6607 (func_checker::operand_equal_p): Likewise.
6608 (func_checker::compare_variable_decl): Likewise.
6609 (func_checker::parse_labels): Likewise.
6610 * ipa-icf-gimple.h: Likewise.
6611
6612 2019-10-30 Martin Liska <mliska@suse.cz>
6613
6614 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6615 Do not compare alias sets. It's handled by operand_equal_p.
6616
6617 2019-10-30 Martin Liska <mliska@suse.cz>
6618
6619 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6620 initialize m_compare_polymorphic.
6621 (func_checker::compare_decl): Do not compare polymorphic types.
6622 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6623 * ipa-icf.c (sem_function::equals_private): Do not call
6624 compare_polymorphic_p.
6625
6626 2019-10-30 Martin Liska <mliska@suse.cz>
6627
6628 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6629 compare_operand.
6630 (func_checker::compare_memory_operand): Remove.
6631 (func_checker::compare_cst_or_decl): Remove.
6632 (func_checker::operand_equal_valueize): Do not handle
6633 FIELD_DECL.
6634 (func_checker::compare_gimple_call): Call compare_operand.
6635 (func_checker::compare_gimple_assign): Likewise.
6636 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6637 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6638 * ipa-icf.h (icf_handled_component_p): Remove.
6639
6640 2019-10-30 Martin Liska <mliska@suse.cz>
6641
6642 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6643 (func_checker::compare_cst_or_decl): Remove handling
6644 of FIELD_DECL.
6645 (func_checker::compare_operand): Transform to ...
6646 (func_checker::operand_equal_p): ... this.
6647 * ipa-icf-gimple.h (class func_checker): Add
6648 operand_equal_p and hash_operand.
6649 * ipa-icf.c (sem_function::equals_private): Fix
6650 pushing and popping of cfun.
6651
6652 2019-10-30 Martin Liska <mliska@suse.cz>
6653
6654 * fold-const.c (operand_equal_p): Move to ...
6655 (operand_compare::operand_equal_p): ... here.
6656 (operand_compare::verify_hash_value): New.
6657 (add_expr): Move to ...
6658 (operand_compare::hash_operand): ... here.
6659 * fold-const.h (operand_equal_p): Move to the class.
6660 (class operand_compare): New.
6661 * tree.c (add_expr): Remove.
6662
6663 2019-10-30 Martin Liska <mliska@suse.cz>
6664
6665 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6666 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6667
6668 2019-10-30 Martin Liska <mliska@suse.cz>
6669
6670 PR lto/91393
6671 PR lto/88220
6672 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6673 from a first_clone in order to get proper LTO section
6674 in LTO stream.
6675 (cgraph_node::get_untransformed_body):
6676 Use lto_get_section_data where symtab_node::order
6677 must be provided.
6678 * cgraphclones.c (cgraph_node::find_replacement):
6679 Update also symbol order.
6680 * ipa-fnsummary.c (ipa_fn_summary_read):
6681 Use new function lto_get_summary_section_data.
6682 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6683 * ipa-icf.c (sem_item_optimizer::read_summary):
6684 Likewise.
6685 * ipa-prop.c (ipa_prop_read_jump_functions):
6686 Likewise.
6687 (ipcp_read_transformation_summaries): Likewise.
6688 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6689 * lto-cgraph.c (input_node): Add also order_base.
6690 (input_varpool_node): Likewise.
6691 (input_cgraph_1): Assign the order_base.
6692 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6693 * lto-opts.c (lto_write_options): Pass new argument.
6694 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6695 (lto_get_summary_section_data): New.
6696 (lto_get_raw_section_data): Add order argument.
6697 (lto_create_simple_input_block): Likewise.
6698 * lto-section-out.c (lto_destroy_simple_output_block):
6699 Likewise.
6700 * lto-streamer-in.c (lto_input_toplevel_asms):
6701 Use lto_get_summary_section_data.
6702 (lto_input_mode_table): Likewise.
6703 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6704 (lto_output_toplevel_asms): Pass new argument.
6705 (copy_function_or_variable): Likewise.
6706 (produce_lto_section):Likewise.
6707 (produce_symtab): Likewise.
6708 (lto_write_mode_table): Likewise.
6709 (produce_asm_for_decls): Likewise.
6710 * lto-streamer.c (lto_get_section_name): Concat symbol name
6711 and symbol order.
6712 * lto-streamer.h (lto_get_section_data): Add order argument.
6713 (lto_get_summary_section_data): New.
6714 (lto_get_raw_section_data): Add order argument.
6715 (lto_get_section_name): Likewise.
6716 * varpool.c (varpool_node::get_constructor): Pass order argument.
6717
6718 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6719
6720 PR tree-optimization/92262
6721 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6722 ubase or cbase here.
6723 (remove_unused_ivs): Unshare comp before using it.
6724
6725 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6726
6727 * ipa-prop.c (update_jump_functions_after_inlining):
6728 Watch for missing summaries.
6729
6730 2019-10-30 Richard Biener <rguenther@suse.de>
6731
6732 PR tree-optimization/65930
6733 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6734 chains also allow a leading and trailing conversion.
6735 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6736 intermediate reduction chains.
6737 (vect_analyze_slp_instance): Likewise. Build a SLP
6738 node for a trailing conversion manually.
6739
6740 2019-10-30 Martin Liska <mliska@suse.cz>
6741
6742 * cgraph.c (cgraph_node::local_info): Transform to ...
6743 (cgraph_node::local_info_node): ... this.
6744 (cgraph_node::dump): Remove cgraph_local_info and
6745 put its fields directly into cgraph_node.
6746 (cgraph_node::get_availability): Likewise.
6747 (cgraph_node::make_local): Likewise.
6748 (cgraph_node::verify_node): Likewise.
6749 * cgraph.h (struct GTY): Likewise.
6750 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6751 (duplicate_thunk_for_node): Likewise.
6752 (cgraph_node::create_clone): Likewise.
6753 (cgraph_node::create_virtual_clone): Likewise.
6754 (cgraph_node::create_version_clone): Likewise.
6755 * cgraphunit.c (cgraph_node::reset): Likewise.
6756 (cgraph_node::finalize_function): Likewise.
6757 (cgraph_node::add_new_function): Likewise.
6758 (analyze_functions): Likewise.
6759 * combine.c (setup_incoming_promotions): Likewise.
6760 * config/i386/i386.c (ix86_function_regparm): Likewise.
6761 (ix86_function_sseregparm): Likewise.
6762 (init_cumulative_args): Likewise.
6763 * ipa-cp.c (determine_versionability): Likewise.
6764 (count_callers): Likewise.
6765 (set_single_call_flag): Likewise.
6766 (initialize_node_lattices): Likewise.
6767 (estimate_local_effects): Likewise.
6768 (create_specialized_node): Likewise.
6769 (identify_dead_nodes): Likewise.
6770 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6771 (ipa_fn_summary_generate): Likewise.
6772 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6773 (process_hsa_functions): Likewise.
6774 * ipa-icf.c (set_local): Likewise.
6775 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6776 * ipa-inline.c (speculation_useful_p): Likewise.
6777 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6778 (ipa_profile): Likewise.
6779 * ipa-split.c (split_function): Likewise.
6780 (execute_split_functions): Likewise.
6781 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6782 (ipa_sra_ipa_function_checks): Likewise.
6783 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6784 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6785 * lto-cgraph.c (lto_output_node): Likewise.
6786 (input_overwrite_node): Likewise.
6787 * multiple_target.c (expand_target_clones): Likewise.
6788 * omp-simd-clone.c (simd_clone_create): Likewise.
6789 * trans-mem.c (expand_call_tm): Likewise.
6790 (ipa_tm_mayenterirr_function): Likewise.
6791 (ipa_tm_diagnose_tm_safe): Likewise.
6792 (ipa_tm_diagnose_transaction): Likewise.
6793 (ipa_tm_create_version): Likewise.
6794 (ipa_tm_transform_calls_redirect): Likewise.
6795 (ipa_tm_execute): Likewise.
6796 * tree-inline.c (expand_call_inline): Likewise.
6797
6798 2019-10-29 Martin Liska <mliska@suse.cz>
6799
6800 * symbol-summary.h (function_summary): Pass memory location
6801 to underlaying hash_map (or vec).
6802 (V>::fast_function_summary): Likewise.
6803
6804 2019-10-29 Martin Liska <mliska@suse.cz>
6805
6806 * ggc.h (ggc_alloc_no_dtor): New function.
6807 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6808 destructor and ggc_free.
6809 (ipa_free_size_summary): Call delete instead
6810 of release.
6811 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6812 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6813 (ipa_free_all_edge_args): Call destructor and ggc_free.
6814 (ipa_free_all_node_params): Likewise.
6815 (ipcp_free_transformation_sum): Likewise.
6816 * ipa-prop.h (ipa_check_create_node_params):
6817 Call new ggc_alloc_no_dtor.
6818 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6819 (ipa_sra_analysis): Call destructor and ggc_free.
6820 Replace release with delete operator.
6821 * symbol-summary.h (release): Remove ..
6822 (V>::~fast_function_summary): and move logic here.
6823 Likewise for other classes.
6824
6825 2019-10-29 Richard Biener <rguenther@suse.de>
6826
6827 PR tree-optimization/92260
6828 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6829 lane-reducing ops.
6830
6831 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6832
6833 PR tree-optimization/88915
6834 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6835 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6836 and make the valueize function pointer also take a void pointer.
6837 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6838 around vn_valueize, to call it without a context.
6839 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6840 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6841 (~_loop_vec_info): Release epilogue_vinfos.
6842 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6843 number of iterations of epilogue.
6844 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6845 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6846 versioning threshold needed for main loop.
6847 (vect_analyze_loop): Likewise.
6848 (find_in_mapping): New helper function.
6849 (update_epilogue_loop_vinfo): New function.
6850 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6851 on main loop and call update_epilogue_loop_vinfo to update it.
6852 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6853 stmts on loop preheader edge.
6854 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6855 we decided to vectorize epilogues. Update epilogues NITERS and
6856 construct ADVANCE to update epilogues data references where needed.
6857 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6858 (vect_do_peeling, vect_update_inits_of_drs,
6859 determine_peel_for_niter, vect_analyze_loop): Add or update
6860 declarations.
6861 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6862 created loop_vec_info's for epilogues when available. Otherwise analyse
6863 epilogue separately.
6864
6865 2019-10-29 Richard Biener <rguenther@suse.de>
6866
6867 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6868 example.
6869
6870 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6871
6872 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6873 index for the COND_EXPR from stmt_info rather than reduc_info.
6874
6875 2019-10-29 Richard Biener <rguenther@suse.de>
6876
6877 PR tree-optimization/65930
6878 * tree-vect-loop.c (check_reduction_path): Relax single-use
6879 check allowing out-of-loop uses.
6880 (vect_is_simple_reduction): SLP reduction chains cannot have
6881 intermediate stmts used outside of the loop.
6882 (vect_create_epilog_for_reduction): The adjustment might need
6883 to be converted.
6884 (vectorizable_reduction): Annotate live stmts of the reduction
6885 chain with STMT_VINFO_REDUC_DEF.
6886 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6887
6888 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6889
6890 * calls.c (pass_by_reference): Leave the target to decide whether
6891 POLY_INT_CST-sized arguments should be passed by value or reference,
6892 rather than forcing them to be passed by reference.
6893 (must_pass_in_stack_var_size): Likewise.
6894 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6895 V31_REGNUM to P15_REGNUM.
6896 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6897 Take an extra "silent_p" parameter, defaulting to false.
6898 (aarch64_sve::svbool_type_p): Declare.
6899 (aarch64_sve::nvectors_if_data_type): Likewise.
6900 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6901 (aarch64_frame::reg_offset): Turn into poly_int64s.
6902 (aarch64_frame::save_regs_size): Likewise.
6903 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6904 (aarch64_frame::sve_callee_adjust): Likewise.
6905 (aarch64_frame::spare_reg_reg): Likewise.
6906 (ARM_PCS_SVE): New arm_pcs value.
6907 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6908 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6909 (CUMULATIVE_ARGS::silent_p): Likewise.
6910 (BITS_PER_SVE_PRED): New macro.
6911 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6912 function. Reject aarch64_vector_pcs attributes on SVE functions.
6913 (aarch64_attribute_table): Use the above handler.
6914 (aarch64_sve_abi): New function.
6915 (aarch64_sve_argument_p): Likewise.
6916 (aarch64_returns_value_in_sve_regs_p): Likewise.
6917 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6918 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6919 descriptor for them.
6920 (aarch64_simd_decl_p): Delete.
6921 (aarch64_emit_cfi_for_reg_p): New function.
6922 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6923 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6924 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6925 as partly clobbered for the SVE PCS.
6926 (aarch64_function_ok_for_sibcall): Check whether the two functions
6927 use the same ABI, rather than checking specifically for whether
6928 they're aarch64_vector_pcs functions.
6929 (aarch64_pass_by_reference): Raise an error for attempts to pass
6930 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6931 if there are not enough free registers left, or if the argument is
6932 variadic.
6933 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6934 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6935 tuples in memory.
6936 (aarch64_layout_arg): Take a function_arg_info rather than
6937 individual properties. Handle SVE predicates, vectors and tuples.
6938 Raise an error if they are passed to unprototyped functions.
6939 (aarch64_function_arg): If the silent_p flag is set, suppress the
6940 usual error about using float registers without TARGET_FLOAT.
6941 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6942 it in the cumulative_args structure. Initialize aapcs_nprn and
6943 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6944 error about using float registers without TARGET_FLOAT.
6945 If the silent_p flag is not set, also raise an error about
6946 using SVE functions when SVE is disabled.
6947 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6948 and call it for SVE functions too. Update aapcs_nprn similarly
6949 to the other register counts.
6950 (aarch64_layout_frame): If a big-endian function needs to save
6951 and restore Z8-Z15, search for a spare predicate that it can use.
6952 Store SVE predicates at the bottom of the register save area,
6953 followed by SVE vectors, then followed by the normal slots.
6954 Keep pointing the hard frame pointer at the base of the normal slots,
6955 above the SVE vectors. Update the various frame creation and
6956 tear-down strategies for the new layout, initializing the new
6957 sve_callee_adjust field. Add an additional layout for frames
6958 whose saved registers are all SVE registers.
6959 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6960 (aarch64_return_address_signing_enabled): Likewise.
6961 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6962 aarch64_reg_save_mode.
6963 (aarch64_adjust_sve_callee_save_base): New function.
6964 (aarch64_add_cfa_expression): Move earlier in file. Take the
6965 saved register as an rtx rather than a register number and use
6966 its mode for the MEM slot.
6967 (aarch64_save_callee_saves): Remove the mode argument and instead
6968 use aarch64_reg_save_mode to get the mode of each save slot.
6969 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6970 offsets. Allow GP offsets to be saved at a VL-based offset from
6971 the stack, handling this case using the frame pointer if available
6972 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6973 big-endian SVE functions; use normal moves for other SVE saves.
6974 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6975 returns true. Add explicit CFA notes when not storing via the
6976 stack pointer. Do not try to pair SVE saves.
6977 (aarch64_restore_callee_saves): Cope with poly_int64 register
6978 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6979 use normal moves for other SVE restores. Only add CFA restore notes
6980 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6981 SVE restores.
6982 (aarch64_get_separate_components): Always keep the first SVE save
6983 in the prologue if we need to use it as a stack probe. Don't allow
6984 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6985 Likewise the spare predicate register that they need. Update the
6986 offset calculation to account for the SVE save area. Use the
6987 appropriate range check for SVE LDR and STR instructions.
6988 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6989 (aarch64_process_components): Likewise. Update the offset
6990 calculation to account for the SVE save area. Only mark the
6991 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6992 Do not try to pair SVE saves.
6993 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6994 reg_offsets. When handling the final allocation, expect the
6995 first SVE register save to be part of the initial allocation
6996 and for it to act as a probe at SP. Account for the SVE callee
6997 save area in the dump information.
6998 (aarch64_expand_prologue): Update the frame diagram. Fold the
6999 SVE callee allocation into the initial allocation if stack clash
7000 protection is enabled. Use new variables to track the offset
7001 of the frame chain (and hard frame pointer) from the current
7002 stack pointer, and likewise the offset of the bottom of the
7003 register save area. Update calls to aarch64_save_callee_saves
7004 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7005 saving the FP&SIMD registers. Save the predicate registers.
7006 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7007 into account when setting the stack pointer from the frame pointer,
7008 and when deciding whether we can inherit the initial adjustment
7009 amount from the prologue. Restore the predicate registers after
7010 the vector registers, then apply sve_callee_adjust, then restore
7011 the general registers.
7012 (aarch64_secondary_reload): Don't use secondary SVE reloads
7013 for VNx16BImode.
7014 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7015 (aarch64_short_vector_p): Return false for SVE types.
7016 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7017 at the start of the function. Return false for SVE types.
7018 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7019 functions too.
7020 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7021 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7022 to big-endian targets for bytewise moves.
7023 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7024
7025 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7026 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7027 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7028
7029 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7030 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7031 aarch64-sve-builtins-base.o to extra_objs. Add
7032 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7033 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7034 (aarch64-sve-builtins-shapes.o): Likewise.
7035 (aarch64-sve-builtins-base.o): New rules.
7036 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7037 (aarch64_resolve_overloaded_builtin): Likewise.
7038 (aarch64_check_builtin_call): Likewise.
7039 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7040 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7041 pragma.
7042 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7043 (aarch64_svprfop): New enum.
7044 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7045 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7046 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7047 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7048 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7049 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7050 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7051 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7052 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7053 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7054 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7055 (aarch64_sve::mangle_builtin_type): Likewise.
7056 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7057 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7058 (aarch64_sve::expand_builtin): Likewise.
7059 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7060 (aarch64_sve_int_mode): Likewise.
7061 (aarch64_ptrue_all_mode): New function.
7062 (aarch64_convert_sve_data_to_pred): Make public.
7063 (svprfop_token): New function.
7064 (aarch64_output_sve_prefetch): Likewise.
7065 (aarch64_fold_sve_cnt_pat): Likewise.
7066 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7067 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7068 instead of gen_while_ult.
7069 (aarch64_replace_reg_mode): Make public.
7070 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7071 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7072 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7073 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7074 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7075 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7076 (aarch64_sve_ptrue_svpattern_p): Likewise.
7077 (aarch64_sve_pred_valid_immediate): Check
7078 aarch64_sve_ptrue_svpattern_p.
7079 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7080 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7081 functions.
7082 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7083 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7084 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7085 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7086 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7087 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7088 New unspecs.
7089 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7090 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7091 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7092 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7093 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7094 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7095 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7096 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7097 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7098 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7099 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7100 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7101 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7102 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7103 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7104 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7105 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7106 (Vesize): Handle partial vector modes.
7107 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7108 mode attributes.
7109 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7110 iterators.
7111 (s, paired_extend, inc_dec): New code attributes.
7112 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7113 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7114 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7115 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7116 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7117 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7118 UNSPEC_COND_FMULX.
7119 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7120 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7121 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7122 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7123 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7124 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7125 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7126 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7127 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7128 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7129 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7130 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7131 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7132 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7133 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7134 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7135 UNSPEC_COND_FSCALE.
7136 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7137 (binqops_op, binqops_op_rev, last_op): New int attributes.
7138 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7139 (fn, ab): New int attributes.
7140 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7141 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7142 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7143 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7144 UNSPEC_RBIT.
7145 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7146 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7147 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7148 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7149 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7150 UNSPEC_COND_FMULX.
7151 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7152 (brk_reg_con, brk_reg_opno): New int attributes.
7153 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7154 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7155 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7156 UNSPEC_COND_FMIN.
7157 (max_elem_bits): New int attribute.
7158 (min_elem_bits): Handle UNSPEC_RBIT.
7159 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7160 TRUNCATE as well as SUBREG.
7161 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7162 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7163 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7164 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7165 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7166 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7167 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7168 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7169 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7170 (aarch64_gather_scale_operand_h): New predicates.
7171 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7172 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7173 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7174 (*aarch64_sve_reinterpret<mode>): Allow any source register
7175 instead of requiring an exact match.
7176 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7177 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7178 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7179 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7180 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7181 (aarch64_update_ffrt): New patterns.
7182 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7183 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7184 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7185 (@aarch64_ld<fn>f1<mode>): New patterns.
7186 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7187 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7188 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7189 (@aarch64_ldnt1<mode>): New patterns.
7190 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7191 the scalar part of the address.
7192 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7193 scalar part of the addresse and add an alternative for handling
7194 nonzero offsets.
7195 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7196 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7197 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7198 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7199 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7200 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7201 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7202 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7203 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7204 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7205 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7206 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7207 (@aarch64_sve_prefetch<mode>): New patterns.
7208 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7209 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7210 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7211 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7212 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7213 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7214 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7215 (@aarch64_stnt1<mode>): New patterns.
7216 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7217 the scalar part of the address.
7218 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7219 the scalar part of the addresse and add an alternative for handling
7220 nonzero offsets.
7221 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7222 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7223 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7224 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7225 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7226 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7227 New patterns.
7228 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7229 (extract_last_<mode>): Generalize to...
7230 (@extract_<LAST:last_op>_<mode>): ...this.
7231 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7232 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7233 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7234 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7235 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7236 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7237 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7238 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7239 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7240 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7241 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7242 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7243 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7244 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7245 (*aarch64_adr_uxtw_unspec): Likewise.
7246 (*aarch64_adr_uxtw): Rename to...
7247 (*aarch64_adr_uxtw_and): ...this.
7248 (@aarch64_adr<mode>_shift): New expander.
7249 (*aarch64_adr_shift_sxtw): New pattern.
7250 (aarch64_<su>abd<mode>_3): Rename to...
7251 (@aarch64_pred_<su>abd<mode>): ...this.
7252 (<su>abd<mode>_3): Update accordingly.
7253 (@aarch64_cond_<su>abd<mode>): New expander.
7254 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7255 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7256 (*<su>mul<mode>3_highpart): Rename to...
7257 (@aarch64_pred_<optab><mode>): ...this.
7258 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7259 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7260 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7261 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7262 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7263 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7264 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7265 (*v<ASHIFT:optab><mode>3): Rename to...
7266 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7267 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7268 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7269 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7270 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7271 (@cond_asrd<mode>): New expander.
7272 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7273 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7274 (*sdiv_pow2<mode>3): Delete.
7275 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7276 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7277 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7278 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7279 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7280 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7281 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7282 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7283 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7284 (*add<SVE_F:mode>3): Rename to...
7285 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7286 for SVE_STRICT_GP.
7287 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7288 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7289 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7290 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7291 (*sub<SVE_F:mode>3): Rename to...
7292 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7293 for SVE_STRICT_GP.
7294 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7295 (*fabd<SVE_F:mode>3): Rename to...
7296 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7297 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7298 (*mul<SVE_F:mode>3): Rename to...
7299 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7300 for SVE_STRICT_GP.
7301 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7302 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7303 to...
7304 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7305 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7306 (*<nlogical><PRED_ALL:mode>3): Rename to...
7307 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7308 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7309 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7310 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7311 (aarch64_pred_<logical_nn><mode>_z): ...this.
7312 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7313 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7314 (*fma<SVE_I:mode>4): Rename to...
7315 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7316 (*fnma<SVE_I:mode>4): Rename to...
7317 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7318 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7319 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7320 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7321 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7322 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7323 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7324 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7325 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7326 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7327 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7328 (@aarch64_sve_tmad<mode>): Likewise.
7329 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7330 (*aarch64_sel_dup<mode>): Rename to...
7331 (@aarch64_sel_dup<mode>): ...this.
7332 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7333 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7334 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7335 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7336 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7337 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7338 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7339 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7340 (*fcm<cmp_op><mode>): Rename to...
7341 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7342 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7343 (*fcmuo<mode>): Rename to...
7344 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7345 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7346 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7347 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7348 (fold_extract_last_<mode>): Generalize to...
7349 (@fold_extract_<last_op>_<mode>): ...this.
7350 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7351 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7352 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7353 DImode result explicit.
7354 (reduc_plus_scal_<mode>): Update accordingly.
7355 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7356 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7357 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7358 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7359 (*aarch64_sve_tbl<mode>): Rename to...
7360 (@aarch64_sve_tbl<mode>): ...this.
7361 (@aarch64_sve_compact<mode>): New pattern.
7362 (*aarch64_sve_dup_lane<mode>): Rename to...
7363 (@aarch64_sve_dup_lane<mode>): ...this.
7364 (@aarch64_sve_dupq_lane<mode>): New pattern.
7365 (@aarch64_sve_splice<mode>): Likewise.
7366 (aarch64_sve_<perm_insn><mode>): Rename to...
7367 (@aarch64_sve_<perm_insn><mode>): ...this.
7368 (*aarch64_sve_ext<mode>): Rename to...
7369 (@aarch64_sve_ext<mode>): ...this.
7370 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7371 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7372 to...
7373 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7374 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7375 Rename to...
7376 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7377 ...this.
7378 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7379 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7380 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7381 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7382 to...
7383 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7384 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7385 a "@" marker.
7386 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7387 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7388 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7389 pattern.
7390 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7391 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7392 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7393 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7394 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7395 "@" marker.
7396 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7397 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7398 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7399 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7400 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7401 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7402 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7403 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7404 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7405 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7406 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7407 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7408 (aarch64_sve_cnt_pat): Likewise.
7409 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7410 (*aarch64_sve_incsi_pat): Likewise.
7411 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7412 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7413 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7414 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7415 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7416 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7417 (*aarch64_sve_decsi_pat): Likewise.
7418 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7419 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7420 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7421 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7422 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7423 (@aarch64_pred_cntp<mode>): Likewise.
7424 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7425 New expander.
7426 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7427 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7428 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7429 New expander.
7430 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7431 New pattern.
7432 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7433 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7434 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7435 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7436 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7437 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7438 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7439 New expander.
7440 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7441 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7442 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7443 New expander.
7444 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7445 New pattern.
7446 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7447 expander.
7448 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7449 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7450 expander.
7451 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7452 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7453 expander.
7454 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7455 * config/aarch64/arm_sve.h: New file.
7456 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7457 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7458 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7459 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7460 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7461 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7462 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7463 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7464 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7465
7466 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7467
7468 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7469 New pattern.
7470 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7471 SVE modes.
7472
7473 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7474
7475 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7476 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7477 FFRT_REGNUM + 1.
7478 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7479 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7480 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7481 (aarch64_hard_regno_nregs): Handle the new register classes.
7482 (aarch64_hard_regno_mode_ok): Likewise.
7483 (aarch64_regno_regclass): Likewise.
7484 (aarch64_class_max_nregs): Likewise.
7485 (aarch64_register_move_cost): Likewise.
7486 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7487 as general register_operands.
7488
7489 2019-10-29 Martin Liska <mliska@suse.cz>
7490
7491 * ggc-common.c: One can't subtract unsigned types
7492 in compare function.
7493
7494 2019-10-29 Martin Liska <mliska@suse.cz>
7495
7496 * cgraphunit.c (symbol_table::compile): Pass
7497 title as dump_memory_report argument.
7498 * toplev.c (dump_memory_report): New argument.
7499 (finalize): Pass new argument.
7500 * toplev.h (dump_memory_report): Add argument.
7501
7502 2019-10-29 Martin Liska <mliska@suse.cz>
7503
7504 * ggc-common.c: Move Leak to the first column.
7505
7506 2019-10-29 Martin Liska <mliska@suse.cz>
7507
7508 * cgraphunit.c (symbol_table::compile): Remove argument
7509 for dump_memory_report.
7510 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7511 (compare_final): Remove in order to make report
7512 better readable.
7513 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7514 * mem-stats.h (mem_alloc_description::get_list):
7515 Do not pass cmp.
7516 (mem_alloc_description::dump): Likewise here.
7517 * toplev.c (dump_memory_report): Remove final
7518 argument.
7519 (finalize): Likewise.
7520 * toplev.h (dump_memory_report): Remove argument.
7521
7522 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7523
7524 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7525 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7526 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7527 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7528 accept "const".
7529
7530 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7531
7532 * coretypes.h (string_int_pair): New typedef.
7533 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7534 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7535 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7536
7537 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7538
7539 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7540 (simulate_builtin_function_decl): Declare.
7541 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7542 (LANG_HOOKS_INITIALIZER): Include it.
7543 * langhooks.c (add_builtin_function_common): Rename to...
7544 (build_builtin_function): ...this. Add a location parameter and use
7545 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7546 the decl instead.
7547 (add_builtin_function): Update accordingly, passing the returned
7548 decl to the lang hook.
7549 (add_builtin_function_ext_scope): Likewise
7550 (simulate_builtin_function_decl): New function.
7551
7552 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7553
7554 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7555 example, use actual names of supported offload targets.
7556
7557 PR target/92258
7558 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7559
7560 2019-10-28 Martin Sebor <msebor@redhat.com>
7561
7562 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7563 (handle_store): Pass argument to get_addr_stridx.
7564
7565 2019-10-28 Martin Sebor <msebor@redhat.com>
7566
7567 PR tree-optimization/92226
7568 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7569 the offset is in the open range outlined by SI's length.
7570
7571 2019-10-28 Martin Sebor <msebor@redhat.com>
7572
7573 PR c/66970
7574 * doc/cpp.texi (__has_builtin): Document.
7575 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7576
7577 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7578
7579 PR target/82981
7580 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7581 doubleword and low doubleword result of multiplication on
7582 MIPS64R6.
7583
7584 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7585 pure qualifier to the built-in.
7586 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7587 built-ins.
7588 (struct mips_builtin_description): Add is_pure flag.
7589 (mips_init_builtins): Mark built-in as pure if the flag in the
7590 corresponding mips_builtin_description struct is set.
7591
7592 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7593 alternative which covers the floating-point input value. Also
7594 forbid the split of insert.d pattern for floating-point values.
7595
7596 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7599 * config/riscv/riscv-sr.c: New file.
7600 * config/riscv/riscv.c (riscv_reorg): New function.
7601 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7602 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7603 (riscv_remove_unneeded_save_restore_calls): Declare.
7604 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7605
7606 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7607
7608 PR tree-optimization/92163
7609 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7610 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7611 before calling bitmap_set_bit.
7612 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7613 delete_dead_or_redundant_assignment.
7614 (dse_dom_walker::dse_optimize_stmt): Likewise.
7615 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7616
7617 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7618
7619 PR middle-end/91272
7620 * tree-vect-stmts.c (vectorizable_condition): Support
7621 EXTRACT_LAST_REDUCTION with fully-masked loops.
7622
7623 2019-10-28 Richard Biener <rguenther@suse.de>
7624
7625 PR tree-optimization/92252
7626 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7627 STMT_VINFO_REDUC_IDX when swapping operands.
7628
7629 2019-10-28 Richard Biener <rguenther@suse.de>
7630
7631 PR tree-optimization/92241
7632 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7633 we failed to update the reduction index do not use the pattern
7634 stmts for the reduction chain.
7635 (vectorizable_reduction): When the reduction chain is corrupt,
7636 fail.
7637 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7638 fail to update the reduction chain.
7639
7640 2019-10-28 Richard Biener <rguenther@suse.de>
7641
7642 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7643 STMT_VINFO_REDUC_IDX from the actual stmt.
7644 (vect_transform_reduction): Likewise.
7645 (vectorizable_reduction): Compute the reduction chain length,
7646 do not recompute the reduction operand index. Remove no longer
7647 necessary restriction for condition reduction chains.
7648
7649 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7650
7651 PR target/92225
7652 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7653 condition for V2DImode.
7654
7655 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7656
7657 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7658 Remove %k operand modifier.
7659 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7660
7661 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7662
7663 PR rtl-optimization/92007
7664 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7665 call it after reload if hot/cold partitioning has been done.
7666 (class pass_postreload_jump): Rename to
7667 pass_jump_after_combine.
7668 (make_pass_postreload_jump): Rename to
7669 make_pass_jump_after_combine.
7670 * passes.def(pass_postreload_jump): Move before reload, rename
7671 to pass_jump_after_combine.
7672 * tree-pass.h (make_pass_postreload_jump): Rename to
7673 make_pass_jump_after_combine.
7674
7675 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7676
7677 PR ipa/92242
7678 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7679 for missing EDGE_REF
7680 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7681
7682 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7683
7684 PR tree-optimization/88760
7685 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7686 Enable -funroll-loops for -O2 and above.
7687 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7688 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7689 do not turn on web and rngreg implicitly, if the unroller is not
7690 explicitly enabled.
7691
7692 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7693
7694 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7695 jump functions.
7696
7697 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7698
7699 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7700 * cgraph.h (cgraph_node::rtl_info): Likewise.
7701
7702 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7703
7704 * ipa-cp.c (propagate_constants_across_call): If args are not available
7705 just drop everything to varying.
7706 (find_aggregate_values_for_callers_subset): Watch for missing
7707 edge summary.
7708 (find_more_scalar_values_for_callers_subs): Likewise.
7709 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7710 update_jump_functions_after_inlining, propagate_controlled_uses):
7711 Watch for missing summaries.
7712 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7713 is finished.
7714 (ipa_write_node_info): Watch for missing summaries.
7715 (ipa_read_edge_info): Create new ref.
7716 (ipa_edge_args_sum_t): Add remove.
7717 (IPA_EDGE_REF_GET_CREATE): New macro.
7718 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7719 edge summary.
7720 (remap_edge_change_prob): Likewise.
7721
7722 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7723
7724 * ipa-inline-transform.c (inline_call): update function summaries
7725 after expanidng thunk.
7726
7727 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7728
7729 * ipa-icf.c (sem_function::merge): Update function summaries.
7730 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7731
7732 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7733
7734 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7735 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7736 operand already has scalar mode.
7737 (iptr): Remove SF/DF.
7738
7739 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7740
7741 PR target/91289
7742 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7743 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7744 this.
7745
7746 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7747
7748 * config/i386/sse.md
7749 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7750 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7751 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7752 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7753 <sse>_vmmaskcmp<mode>3):
7754 Change predicates from vector_operand to nonimmediate_operand,
7755 constraints xBm to xm, since scalar operations don't need
7756 memory address alignment.
7757 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7758 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7759 round_saeonly_nimm_predicate with
7760 round_saeonly_nimm_scalar_predicate.
7761 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7762 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7763 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7764 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7765 avx512f_vmfmadd_<mode>_mask3<round_name>,
7766 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7767 *avx512f_vmfmsub_<mode>_mask<round_name>,
7768 avx512f_vmfmsub_<mode>_mask3<round_name>,
7769 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7770 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7771 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7772 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7773 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7774 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7775 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7776 cvtusi2<ssescalarmodesuffix>32<round_name>,
7777 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7778 round_nimm_predicate with round_nimm_scalr_predicate.
7779 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7780 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7781 avx512er_vmrcp28<mode><round_saeonly_name>,
7782 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7783 ): Replace round_saeonly_nimm_predicate with
7784 round_saeonly_nimm_scalar_predicate.
7785 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7786 vector_operand with nonimmediate_operand.
7787 * config/i386/subst.md (round_scalar_nimm_predicate,
7788 round_saeonly_scalar_nimm_predicate): Replace
7789 vector_operand with nonimmediate_operand.
7790
7791 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7792
7793 PR target/89071
7794 * config/i386/i386.md (*rcpsf2_sse): Add
7795 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7796 (*rsqrtsf2_sse): Ditto.
7797 (*sqrt<mode>2_sse): Ditto.
7798 (sse4_1_round<mode>2): separate constraint vm, add
7799 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7800 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7801 by pass rpad.
7802 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7803 Ditto.
7804 (*sse_vmrsqrtv4sf2): Ditto.
7805 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7806 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7807 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7808 <iptr> pointer size modifier since vround support memory operand.
7809
7810 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7811
7812 PR target/85969
7813 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7814 static function.
7815
7816 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7817 Tobias Burnus <tobias@codesourcery.com>
7818
7819 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7820 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7821 common block decls.
7822
7823 2019-10-25 Richard Biener <rguenther@suse.de>
7824
7825 PR tree-optimization/92222
7826 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7827 (_slp_oprnd_info::second_pattern): Likewise.
7828 (_slp_oprnd_info::any_pattern): New.
7829 (vect_create_oprnd_info): Adjust.
7830 (vect_get_and_check_slp_defs): Compute whether any stmt is
7831 in a pattern.
7832 (vect_build_slp_tree_2): Avoid building up a node from scalars
7833 if any of the operand defs, not just the first, is in a pattern.
7834
7835 2019-10-25 Richard Biener <rguenther@suse.de>
7836
7837 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7838 swapping if we actually have to modify the IL on a shared stmt.
7839 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7840 because we no longer modify the IL.
7841
7842 2019-10-25 Martin Liska <mliska@suse.cz>
7843
7844 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7845
7846 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7847
7848 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7849 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7850 handled by vect_transform_reduction. Allow fully-masked loops
7851 to be used with reduction chains.
7852 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7853 operations in fully-masked loops.
7854 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7855 operations in fully-masked loops.
7856
7857 2019-10-25 Richard Biener <rguenther@suse.de>
7858
7859 * tree-vect-loop.c (vectorizable_reduction): Verify
7860 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7861 correctly.
7862 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7863 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7864 stmts.
7865
7866 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7867
7868 * gimplify.h (omp_construct_selector_matches): Declare.
7869 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7870 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7871 called function if needed for flag_openmp.
7872 (gimplify_scan_omp_clauses): Set ctx->code.
7873 (omp_construct_selector_matches): New function.
7874 * omp-general.h (omp_constructor_traits_to_codes,
7875 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7876 * omp-general.c (omp_constructor_traits_to_codes,
7877 omp_context_selector_matches, omp_resolve_declare_variant): New
7878 functions.
7879
7880 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7881 literal.
7882 * config/rx/rx.c (rx_print_operand): Likewise.
7883 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7884 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7885 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7886 Likewise.
7887 * genemit.c (emit_c_code): Likewise.
7888 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7889
7890 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7891
7892 * symbols-summary.h (fast_function_summary<T *, V>::release,
7893 fast_call_summary<T *, V>::release): Free m_vector.
7894
7895 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7896
7897 * cgraphunit.c (symbol_table::process_new_functions): Call
7898 ipa_free_size_summary.
7899 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7900 (devirtualization_time_bonus): Update.
7901 (ipcp_propagate_stage): Update.
7902 * ipa-fnsummary.c (ipa_size_summaries): New.
7903 (ipa_fn_summary_alloc): Alloc size summary.
7904 (dump_ipa_call_summary): Update.
7905 (ipa_dump_fn_summary): Update.
7906 (analyze_function_body): Update.
7907 (compute_fn_summary): Likewise.
7908 (ipa_get_stack_frame_offset): New function.
7909 (inline_update_callee_summaries): Do not update frame offsets.
7910 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7911 remove call and function summary.
7912 (ipa_update_overall_fn_summary): Update.
7913 (inline_read_section): Update.
7914 (ipa_fn_summary_write): Update.
7915 (ipa_free_fn_summary): Do not remove summaries.
7916 (ipa_free_size_summary): New.
7917 (release summary pass): Also run at WPA.
7918 * ipa-fnsummary.h (ipa_size_summary): Declare.
7919 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7920 estimated_self_stack_size.
7921 (ipa_size_summary_t): New type.
7922 (ipa_size_summaries): Declare.
7923 (ipa_free_size_summary): Declare.
7924 (ipa_get_stack_frame_offset): Declare.
7925 * ipa-icf.c (sem_function::merge): Update.
7926 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7927 (estimate_growth): Update.
7928 (growth_likely_positive): Update.
7929 (clone_inlined_nodes): Update.
7930 (inline_call): Update.
7931 * ipa-inline.c (caller_growth_limits): Update.
7932 (edge_badness): Update.
7933 (recursive_inlining): Update.
7934 (inline_small_functions): Update.
7935 (inline_to_all_callers_1): Update.
7936 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7937
7938 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7939
7940 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7941 (uavg<mode>3_ceil): ... This.
7942 (altivec_vavgs<VI_char>): Rename to...
7943 (avg<mode>3_ceil): ... This.
7944 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7945 VAVGUW, VAVGSW): Adjust.
7946
7947 2019-10-24 Nathan Sidwell <nathan@acm.org>
7948
7949 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7950
7951 2019-10-24 Martin Liska <mliska@suse.cz>
7952
7953 * symbol-summary.h (gt_pch_nx): Mark all functions
7954 with gcc_unreachable as we do not expect to be called.
7955
7956 2019-10-24 Richard Biener <rguenther@suse.de>
7957
7958 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7959 chains try harder with operand swapping and instead of
7960 putting a shifted chain into the reduction operands put
7961 a repetition of the final reduction op there as if we'd
7962 reassociate the expression.
7963
7964 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7965
7966 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7967 statics_not_read and statics_not_written to statics_read and
7968 statics_written respectively.
7969 (no_module_statics): New static var.
7970 (ipa_reference_get_not_read_global): Rename to ...
7971 (ipa_reference_get_read_global): ... this.
7972 (ipa_reference_get_not_written_global): Rename to ...
7973 (ipa_reference_get_written_global): ... this.
7974 (dump_static_vars_set_to_file): Dump no_module_statics.
7975 (copy_static_var_set): Add for propagation parameter.
7976 (ipa_init): Initialize no_module_statics.
7977 (ipa_ref_opt_summary_t::duplicate): Update.
7978 (ipa_ref_opt_summary_t::remove): Update.
7979 (propagate): Update.
7980 (write_node_summary_p): Look correctly for bitmap differences.
7981 (ipa_reference_write_optimization_summary): Update.
7982 (ipa_reference_read_optimization_summary): Update.
7983 * ipa-reference.h
7984 (ipa_reference_get_not_read_global): Rename to ...
7985 (ipa_reference_get_read_global): ... this.
7986 (ipa_reference_get_not_written_global): Rename to ...
7987 (ipa_reference_get_written_global): ... this.
7988 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7989 (call_may_clobber_ref_p_1): Update.
7990
7991 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7992
7993 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7994 and add comment.
7995 (msp430_hard_regno_nregs_with_padding): Remove.
7996
7997 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7998
7999 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8000 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8001 shift amount is between 1 and 4.
8002 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8003 is between 1 and 4.
8004
8005 2019-10-24 Richard Biener <rguenther@suse.de>
8006
8007 PR tree-optimization/92205
8008 * tree-vect-loop.c (vectorizable_reduction): Restrict
8009 search for alternate vectype_in to lane-reducing patterns
8010 we support.
8011
8012 2019-10-24 Richard Biener <rguenther@suse.de>
8013
8014 PR tree-optimization/92203
8015 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8016 Skip eliminating conversion stmts inserted by insertion.
8017
8018 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8019
8020 * config/s390/s390.c (s390_get_thread_pointer): Use
8021 gen_get_thread_pointer.
8022 (s390_expand_split_stack_prologue): Likewise.
8023 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8024 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8025 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8026 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8027 parameterized name.
8028
8029 2019-10-24 Richard Biener <rguenther@suse.de>
8030
8031 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8032 SLP discovery fails try to handle the reduction as part
8033 of SLP reduction discovery.
8034
8035 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8036
8037 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8038 declaration.
8039 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8040 attribute if it exists, rather than the insn size. If we use the
8041 insn size, adjust the size to remove the extra size that prefixed
8042 instructions take.
8043 (rs6000_adjust_insn_length): New function.
8044 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8045 update the instruction sized if prefixed instructions are used.
8046 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8047 (non_prefixed_length attribute): Delete.
8048 (num_insns attribute): New insn attribute to return the number of
8049 instructions.
8050 (max_prefixed_insns attribute): New insn attribute to return the
8051 maximum number of prefixed instructions in an insn.
8052 (length attribute): Do not adjust for prefix instructions here,
8053 punt to ADJUST_INSN_LENGTH.
8054 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8055 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8056 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8057 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8058 max_prefixed_insns and num_insns.
8059
8060 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8061 (movtd_64bit_nodm): Reformat.
8062 (mov<mode>_32bit): Reformat.
8063 (mov<mode>_softfloat): Reformat.
8064 (FMOVE128_GPR splitter): Reformat.
8065 (DIFD splitter): Reformat.
8066 (TI2 splitter): Reformat.
8067 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8068 bits of the offset for the memory address are non-zero, use PLWA
8069 if prefixed instructions are available.
8070
8071 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8072
8073 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8074
8075 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8076
8077 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8078 previous patch.
8079
8080 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8081
8082 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8083 (cmp_symbol_files): New.
8084 (lto_output): Copy sections in file order.
8085 * lto-streamer.h (lto_file_decl_data): Add field order.
8086
8087 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8088
8089 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8090 * ipa-reference.c (reference_vars_map_t): new type.
8091 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8092 (ipa_reference_var_uid): Implement.
8093 (varpool_node_hooks): New static var.
8094 (varpool_removal_hook): New function.
8095 (is_improper): Do not check bitmap for id==-1
8096 (get_static_name): Update.
8097 (ipa_init): Initialize new datastructures.
8098 (analyze_function): Do not recompute ids.
8099 (propagate): Free reference_vars_to_consider.
8100 (stream_out_bitmap): Update.
8101 (ipa_reference_read_optimization_summary): Update.
8102
8103 2019-10-23 qing zhao <qing.zhao@oracle.com>
8104
8105 PR gcov-profile/91971
8106 * coverage.c (coverage_init): Mangle the full path of filename when
8107 filename is a absolute path.
8108
8109 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8110
8111 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8112 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8113 (msp430_has_hwmult): New.
8114 (msp430_output_labelref):
8115 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8116 * config/msp430/msp430.md (mulhisi3): Likewise.
8117 (umulhisi3): Likewise.
8118 (mulsidi3): Likewise.
8119 (umulsidi3): Likewise.
8120
8121 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8122
8123 PR ipa/92074
8124 * params.def (inline-heuristics-hint-percent): Set to 600.
8125
8126 2019-10-23 Richard Biener <rguenther@suse.de>
8127
8128 PR tree-optimization/65930
8129 * tree-vect-loop.c (check_reduction_path): Allow conversions
8130 that only change the sign.
8131 (vectorizable_reduction): Relax latch def stmts we handle further.
8132
8133 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8134
8135 PR debug/90231
8136 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8137 (remove_unused_ivs): Use it instead of get_computation_at. When
8138 choosing best candidate, only consider candidates where
8139 get_debug_computation_at actually returns non-NULL.
8140
8141 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8142
8143 PR tree-optimization/92131
8144 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8145 range would be symbolic, drop to varying for any explicit overflow
8146 in the constant part or if neither range is a singleton.
8147
8148 2019-10-23 Martin Liska <mliska@suse.cz>
8149
8150 PR middle-end/81669
8151 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8152 Initialize m_data.
8153
8154 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8155
8156 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8157 int_mode_for_mode rather than mode_for_int_vector for scalars.
8158
8159 2019-10-23 Richard Biener <rguenther@suse.de>
8160
8161 PR tree-optimization/92179
8162 * tree-vect-stmts.c (vectorizable_shift): For shift args
8163 that are all the same remove type restriction in the SLP case.
8164 Adjust SLP code to handle converting of the shift arg to
8165 only apply in case the modes are different.
8166
8167 2019-10-23 Martin Liska <mliska@suse.cz>
8168
8169 PR ipa/91969
8170 * ipa-inline.c (recursive_inlining): Do not print
8171 when curr->count is not initialized.
8172
8173 2019-10-23 Richard Biener <rguenther@suse.de>
8174
8175 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8176 op from scalars in case there's a constant operand in its
8177 definition.
8178
8179 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8180
8181 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8182 against out of range max skip or log values.
8183
8184 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8185
8186 * cgraph.c (dump_graphviz): Change name to dump_name
8187
8188 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8189
8190 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8191 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8192 subtraction from a carry operation.
8193
8194 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8195
8196 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8197
8198 2019-10-22 Richard Biener <rguenther@suse.de>
8199
8200 PR tree-optimization/92173
8201 * tree-vect-loop.c (vectorizable_reduction): If
8202 vect_transform_reduction cannot handle code-generation try without
8203 the single-def-use-cycle optimization. Pass optab_vector to
8204 optab_for_tree_code to get vector shifts as that's what we'd
8205 generate.
8206
8207 2019-10-22 Michael Matz <matz@suse.de>
8208
8209 PR middle-end/90796
8210 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8211 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8212 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8213
8214 2019-10-22 Richard Biener <rguenther@suse.de>
8215
8216 PR tree-optimization/92173
8217 * tree-vect-loop.c (vectorizable_reduction): If
8218 vect_transform_reduction cannot handle code-generation try without
8219 the single-def-use-cycle optimization. Pass optab_vector to
8220 optab_for_tree_code to get vector shifts as that's what we'd
8221 generate.
8222
8223 2019-10-22 Martin Liska <mliska@suse.cz>
8224
8225 * diagnostic-format-json.cc (json_from_expanded_location):
8226 Use json::integer_number.
8227 * gcov.c (output_intermediate_json_line): Use new
8228 json::integer_number.
8229 (output_json_intermediate_file): Likewise.
8230 * json.cc (number::print): Move to ...
8231 (float_number::print): ... this.
8232 (integer_number::print): New.
8233 (test_writing_numbers): Move to ...
8234 (test_writing_float_numbers): ... this.
8235 (test_writing_integer_numbers): New.
8236 (json_cc_tests): Register test_writing_integer_numbers.
8237 * json.h (class value): Add forward declaration
8238 for float_number and integer_number.
8239 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8240 (class number): Move to ...
8241 (class float_number): ... this.
8242 (class integer_number): New.
8243 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8244 Use json::integer_number.
8245 (optrecord_json_writer::location_to_json): Likewise.
8246 (optrecord_json_writer::profile_count_to_json): Likewise.
8247 (optrecord_json_writer::pass_to_json): Likewise.
8248
8249 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8250
8251 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8252 autodetected_vector_size rather than vector_size is zero.
8253 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8254 Set autodetected_vector_size immediately after calling
8255 vect_analyze_loop_2. Check for a fatal error before advancing
8256 next_size.
8257
8258 2019-10-21 Jason Merrill <jason@redhat.com>
8259
8260 * lock-and-run.sh: Check for process existence rather than timeout.
8261
8262 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8263
8264 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8265 widening multiplication.
8266
8267 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8268
8269 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8270 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8271 type attribute.
8272 (subsi3_carryin_shift): Separate into register and constant controlled
8273 alternatives. Use shift_amount_operand for operand 4. Set shift
8274 attribute and simplify type attribute.
8275 (subsi3_carryin_shift_alt): Likewise.
8276 (rsbsi3_carryin_shift): Likewise.
8277 (rsbsi3_carryin_shift_alt): Likewise.
8278 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8279 and register controlled shifts into distinct alternatives.
8280 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8281 (andsi_not_shiftsi_si_scc): Likewise.
8282 (arm_cmpsi_negshiftsi_si): Likewise.
8283 (not_shiftsi): Remove redundant M constraint from alternative 1.
8284 (not_shiftsi_compare0): Likewise.
8285 (arm_cmpsi_insn): Remove redundant alternative 2.
8286 (cmpsi_shift_swp): Likewise.
8287 (sub_shiftsi): Likewise.
8288 (sub_shiftsi_compare0_scratch): Likewise.
8289 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8290 (thumb2_cmpsi_neg_shiftsi): Likewise.
8291
8292 2019-10-21 Richard Biener <rguenther@suse.de>
8293
8294 PR tree-optimization/92162
8295 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8296 STMT_VINFO_REDUC_IDX in reduc_info.
8297 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8298
8299 2019-10-21 Richard Biener <rguenther@suse.de>
8300
8301 * tree-vectorizer.h (_slp_tree::ops): New member.
8302 (SLP_TREE_SCALAR_OPS): New.
8303 (vect_get_slp_defs): Adjust prototype.
8304 * tree-vect-slp.c (vect_free_slp_tree): Release
8305 SLP_TREE_SCALAR_OPS.
8306 (vect_create_new_slp_node): Initialize it. New overload for
8307 initializing by an operands array.
8308 (_slp_oprnd_info::ops): New member.
8309 (vect_create_oprnd_info): Initialize it.
8310 (vect_free_oprnd_info): Release it.
8311 (vect_get_and_check_slp_defs): Populate the operands array.
8312 Do not swap operands in the IL when not necessary.
8313 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8314 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8315 swap operands in the operands array. Do not swap operands in
8316 the IL.
8317 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8318 (vect_gather_slp_loads): Fix.
8319 (vect_detect_hybrid_slp_stmts): Likewise.
8320 (vect_slp_analyze_node_operations_1): Search for a internal
8321 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8322 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8323 the def-type push/pop dance.
8324 (vect_get_constant_vectors): Compute number_of_vectors here.
8325 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8326 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8327 (vect_get_slp_defs): Simplify greatly.
8328 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8329 (vect_transform_reduction): Likewise.
8330 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8331 (vectorizable_call): Likewise.
8332 (vectorizable_operation): Likewise.
8333 (vectorizable_load): Likewise.
8334 (vectorizable_condition): Likewise.
8335 (vectorizable_comparison): Likewise.
8336
8337 2019-10-21 Richard Biener <rguenther@suse.de>
8338
8339 PR tree-optimization/92161
8340 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8341 for reductions.
8342
8343 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8344
8345 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8346 (aarch64_rndr): New define_insn.
8347 (aarch64_rndrrs): Likewise.
8348 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8349 (TARGET_RNG): Likewise.
8350 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8351 argument.
8352 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8353 Add fourth argument in prototype.
8354 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8355 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8356 (aarch64_init_rng_builtins): Define.
8357 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8358 (aarch64_expand_rng_builtin): Define.
8359 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8360 RNG builtins.
8361 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8362 __ARM_FEATURE_RNG when TARGET_RNG.
8363 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8364
8365 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8366
8367 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8368 alignment is more restrictive.
8369
8370 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8371
8372 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8373 (vect_update_max_nunits): Update comment.
8374 (current_vector_size): Delete.
8375 * tree-vect-stmts.c (current_vector_size): Likewise.
8376 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8377 of current_vector_size.
8378 (get_mask_type_for_scalar_type): Likewise.
8379 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8380 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8381 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8382 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8383 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8384 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8385
8386 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8387
8388 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8389 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8390 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8391 accordingly.
8392
8393 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8394
8395 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8396 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8397 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8398 call accordingly.
8399 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8400
8401 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8402
8403 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8404 a loop_vec_info.
8405 (vect_set_loop_condition_masked): Update call accordingly.
8406
8407 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8408
8409 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8410 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8411 (simple_integer_narrowing): Update call accordingly.
8412 (vectorizable_conversion): Likewise.
8413
8414 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8415
8416 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8417 (vectorizable_call): Update call accordingly.
8418
8419 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8420
8421 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8422 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8423 (duplicate_and_interleave): Update call accordingly.
8424 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8425
8426 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8427
8428 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8429 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8430 (vect_get_constant_vectors): Update call accordingly.
8431 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8432
8433 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8434
8435 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8436 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8437 (vect_prologue_cost_for_slp_op): Update call accordingly.
8438 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8439 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8440 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8441 (get_mask_type_for_scalar_type): Likewise.
8442 (vect_get_vector_types_for_stmt): Likewise.
8443 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8444 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8445 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8446 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8447 (vect_split_statement, vect_convert_input): Likewise.
8448 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8449 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8450 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8451 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8452 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8453 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8454 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8455 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8456 (vect_recog_mask_conversion_pattern): Likewise.
8457 (vect_add_conversion_to_pattern): Likewise.
8458 (vect_recog_gather_scatter_pattern): Likewise.
8459 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8460 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8461
8462 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8463
8464 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8465 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8466 (vect_check_load_store_mask): Update call accordingly.
8467 (vect_get_mask_type_for_stmt): Likewise.
8468 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8469 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8470 (vect_convert_mask_for_vectype): Likewise.
8471
8472 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8473
8474 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8475 a vec_info.
8476 (vect_recog_dot_prod_pattern): Update call accordingly.
8477 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8478 (vect_recog_widen_sum_pattern): Likewise.
8479
8480 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8481
8482 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8483 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8484 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8485 accordingly.
8486
8487 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8488
8489 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8490 get_vectype_for_scalar_type_and_size instead of
8491 get_vectype_for_scalar_type.
8492
8493 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8494
8495 * common.opt (-fcommon): Fix description.
8496
8497 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8498
8499 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8500 * config/i386/i386.c (ix86_pre_reload_split): New function.
8501 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8502 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8503 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8504 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8505 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8506 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8507 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8508 *<shift_insn><dwi>3_doubleword_mask,
8509 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8510 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8511 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8512 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8513 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8514 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8515 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8516 *avx2_<code>v8qiv8si2<mask_name>_2,
8517 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8518 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8519 *avx512f_<code>v8qiv8di2<mask_name>_2,
8520 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8521 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8522 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8523 sse4_2_pcmpistr): Likewise.
8524
8525 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8526
8527 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8528 now defaults to https.
8529
8530 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8531
8532 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8533 skip non-zero array accesses.
8534
8535 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8536
8537 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8538 and return a boolean success value. Move the allocation and
8539 initialization of the bb_vec_info to...
8540 (vect_slp_bb_region): ...here. Update call accordingly.
8541 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8542 than in vect_slp_analyze_bb_1.
8543
8544 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8545
8546 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8547 when processing the given datarefs for the first time and
8548 check_datarefs subsequently.
8549 (vect_slp_bb_region): New function, split out of...
8550 (vect_slp_bb): ...here. Don't recompute the region bounds and
8551 dataref sets when retrying with a different vector size.
8552
8553 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8554 Uroš Bizjak <ubizjak@gmail.com>
8555
8556 PR target/92140
8557 * config/i386/predicates.md (int_nonimmediate_operand): New special
8558 predicate.
8559 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8560 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8561 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8562 define_insn_and_split patterns.
8563
8564 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8565
8566 * config/rs6000/rs6000.md: Delete out--of-date comment about
8567 special-casing integer loads.
8568
8569 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8570
8571 * escaped_string.h (escaped_string): New header.
8572 * tree.c (escaped_string): Remove escaped_string class.
8573
8574 2019-10-18 Martin Sebor <msebor@redhat.com>
8575
8576 PR tree-optimization/92157
8577 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8578 compute_string_length to return a negative result.
8579
8580 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8581
8582 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8583 (negvsi3, negvdi3): Delete.
8584 (negdi2_compare): Delete.
8585
8586 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8587
8588 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8589 operations.
8590 (subdi3_compare1): Delete pattern.
8591 (subvsi3_borrow): New insn pattern.
8592 (subvsi3_borrow_imm): Likewise.
8593
8594 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8595
8596 * config/arm/arm.md (subv<mode>4): Delete.
8597 (subvdi4): New expander pattern.
8598 (subvsi4): Likewise. Handle some immediate values.
8599 (subvsi3_intmin): New insn pattern.
8600 (subvsi3): Likewise.
8601 (subvsi3_imm1): Likewise.
8602 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8603 idioms.
8604
8605 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8606
8607 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8608 incoming operands. Early split the calculation into SImode
8609 operations.
8610 (usubvsi3_borrow): New insn pattern.
8611 (usubvsi3_borrow_imm): Likewise.
8612
8613 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8614
8615 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8616 (usubvsi4): New pattern. Allow some immediate values for inputs.
8617 (usubvdi4): New pattern.
8618
8619 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8620
8621 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8622 or second operand of the PLUS inside a DImode equality test to be
8623 sign-extend when selecting CC_Vmode.
8624 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8625 instructions.
8626 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8627 expand patterns.
8628 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8629 (addsi3_cin_vout_0): Likewise.
8630 (adddi3_compareV): Delete.
8631
8632 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8633
8634 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8635 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8636 to transform this back into the summation version when that leads
8637 to smaller code.
8638
8639 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8640
8641 * config/arm/arm.md (addv<mode>4): Delete.
8642 (addvsi4): New pattern. Handle immediate values that the architecture
8643 supports.
8644 (addvdi4): New pattern.
8645 (addsi3_compareV): Rename to ...
8646 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8647 and use COMPARE rather than NE.
8648 (addsi3_compareV_imm): New pattern.
8649 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8650 a signed-overflow check.
8651
8652 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8653
8654 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8655 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8656 CC_ADCmode.
8657 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8658 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8659 with overflow.
8660 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8661 expand patterns.
8662 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8663 (addsi3_cin_cout_imm_insn): Likewise.
8664 (adddi3_compareC): Delete insn.
8665 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8666
8667 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8668
8669 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8670 * (uaddv<mode>4): Delete expansion pattern.
8671 (uaddvsi4): New pattern.
8672 (uaddvdi4): Likewise.
8673 (addsi3_compareC): Delete pattern, change callers to use
8674 addsi3_compare_op1.
8675 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8676 reduce the number of alternatives and re-work type attribute handling.
8677 (addsi3_compare_op2): Clean up constraints to reduce the number of
8678 alternatives and re-work type attribute handling.
8679 (compare_addsi2_op0): Likewise.
8680 (compare_addsi2_op1): Likewise.
8681
8682 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8683
8684 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8685 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8686 for DImode operands.
8687 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8688 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8689 CC_NCVmode.
8690 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8691 (arm_cmpdi_unsigned): Delete.
8692
8693 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8694
8695 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8696 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8697 unchanged only if that will be cheaper.
8698 (arm_select_cc_mode): Recognize a swapped comparison that will
8699 be regenerated using RSBS or RSCS. Relax restriction on selecting
8700 CC_RSBmode.
8701 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8702 a constant.
8703 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8704 is CC_RSBmode.
8705 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8706 as CCmode.
8707 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8708 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8709
8710 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8711
8712 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8713 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8714 need these modes.
8715 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8716 of EQ, NE, LT, GE, LTU and GEU.
8717 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8718 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8719 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8720 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8721 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8722
8723 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8724
8725 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8726 operand 2.
8727 (cstoredi4): Similarly, but for operand 3.
8728 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8729 canonicalization of unsigned compares with a constant on Arm.
8730 Prefer using const+1 and adjusting the comparison over swapping the
8731 operands whenever the original constant was not valid.
8732 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8733 register here.
8734 (arm_validize_comparison): Do not force invalid DImode operands to
8735 registers here.
8736
8737 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8738
8739 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8740 return CC_Zmode if comparing against a constant where one word is
8741 zero.
8742 (arm_gen_compare_reg): Split DImode handling to ...
8743 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8744 against simple constants.
8745 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8746
8747 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8748
8749 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8750 (rsbsi3_carryin_shift_alt): Likewise.
8751
8752 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8753
8754 * config/arm/arm.md (negscc_borrow): New pattern.
8755 (mov_negscc): Don't split if the insn would match negscc_borrow.
8756 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8757 (thumb2_mov_negscc_strict_it): Likewise.
8758
8759 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8760
8761 * config/arm/arm.c (arm_insn_cost): New function.
8762 (TARGET_INSN_COST): Override default definition.
8763
8764 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8765
8766 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8767 borrow operations.
8768
8769 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8770
8771 * config/arm/arm.c (strip_carry_operation): New function.
8772 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8773 for SImode.
8774
8775 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8776
8777 * config/arm/predicates.md (arm_carry_operation): New special
8778 predicate.
8779 * config/arm/iterators.md (LTUGEU): Delete iterator.
8780 (cnb): Delete code attribute.
8781 (optab): Delete ltu and geu elements.
8782 * config/arm/arm.md (addsi3_carryin): Renamed from
8783 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8784 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8785 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8786 (addsi3_carryin_clobercc): Similarly.
8787 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8788 Thumb2 state.
8789
8790 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * config/arm/arm.md (arm_subdi3): Delete insn.
8793 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8794
8795 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8796
8797 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8798 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8799 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8800 return CC_RSBmode.
8801 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8802 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8803 expand.
8804 (subdi3): Rewrite to early-expand the sub-operations.
8805 (rsb_im_compare): New pattern.
8806 (negdi2): Delete.
8807 (negdi2_insn): Delete.
8808 (arm_negsi2): Correct type attribute to alu_imm.
8809 (negsi2_0compare): New insn pattern.
8810 (negsi2_carryin): New insn pattern.
8811
8812 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8813
8814 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8815 operand 2.
8816
8817 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8818
8819 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8820 to match canonical form.
8821
8822 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8823
8824 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8825 (extend<mode>di2): Likewise.
8826
8827 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8828
8829 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8830 * config/arm/arm.c (arm_decompose_di_binop): New function.
8831 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8832 If not generating Thumb-1 code, decompose the operation into 32-bit
8833 pieces.
8834 * add0si_carryin_<optab>: New pattern.
8835
8836 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8837
8838 * arm.md (adddi3): Only accept register operands.
8839 (arm_adddi3): Convert to simple insn with no split. Do not accept
8840 constants.
8841 (adddi_sesidi_di): Delete patern.
8842 (adddi_zesidi_di): Likewise.
8843 (uaddv<mode>4): Use LTU as condition for branch.
8844 (adddi3_compareV): Convert to simple insn with no split.
8845 (addsi3_compareV_upper): Delete pattern.
8846 (adddi3_compareC): Convert to simple insn with no split. Correct
8847 flags setting expression.
8848 (addsi3_compareC_upper): Delete pattern.
8849 (addsi3_compareC): Correct flags setting expression.
8850 (subdi3_compare1): Convert to simple insn with no split.
8851 (subsi3_carryin_compare): Delete pattern.
8852 (arm_subdi3): Convert to simple insn with no split.
8853 (subdi_zesidi): Delete pattern.
8854 (subdi_di_sesidi): Delete pattern.
8855 (subdi_zesidi_di): Delete pattern.
8856 (subdi_sesidi_di): Delete pattern.
8857 (subdi_zesidi_zesidi): Delete pattern.
8858 (negvdi3): Use s_register_operand.
8859 (negdi2_compare): Convert to simple insn with no split.
8860 (negdi2_insn): Likewise.
8861 (negsi2_carryin_compare): Delete pattern.
8862 (negdi_zero_extendsidi): Delete pattern.
8863 (arm_cmpdi_insn): Convert to simple insn with no split.
8864 (negdi2): Don't call gen_negdi2_neon.
8865 * config/arm/neon.md (adddi3_neon): Delete pattern.
8866 (subdi3_neon): Delete pattern.
8867 (negdi2_neon): Delete pattern.
8868 (splits for negdi2_neon): Delete splits.
8869
8870 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8871
8872 PR middle-end/92153
8873 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8874 than after it.
8875
8876 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8877
8878 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8879 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8880 new multilib variants and new mappings.
8881
8882 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8883
8884 PR target/86040
8885 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8886
8887 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8888 Richard Sandiford <richard.sandiford@arm.com>
8889
8890 PR target/86753
8891 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8892 and define hashmap traits for it.
8893 (loop_vec_info::scalar_cond_masked_set): New member.
8894 (vect_record_loop_mask): Adjust prototype.
8895 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8896 Implement method.
8897 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8898 vect_record_loop_mask.
8899 (vectorizable_live_operation): Likewise.
8900 (vect_record_loop_mask): New param scalar_mask. Add entry
8901 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8902 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8903 Pass it as last arg to vect_record_loop_mask.
8904 (vectorizable_call): Pass scalar_mask as last arg to
8905 vect_record_loop_mask.
8906 (vectorizable_store): Likewise.
8907 (vectorizable_load): Likewise.
8908 (vectorizable_condition): Check if another part of vectorized code
8909 applies loop_mask to condition or to it's inverse, and if yes,
8910 apply loop_mask to result of vector comparison.
8911
8912 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8913
8914 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8915
8916 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8917
8918 PR tree-optimization/92056
8919 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8920 before calling compute_builtin_object_size.
8921
8922 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8923
8924 PR target/65342
8925 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8926 (movdi_low_st): Delete.
8927 * config/rs6000/rs6000.c
8928 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8929 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8930 * config/rs6000/rs6000.md (movsi_low): Delete.
8931
8932 2019-10-17 Jason Merrill <jason@redhat.com>
8933
8934 * gimplify.h (get_initialized_tmp_var): Add default argument to
8935 post_p.
8936 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8937 NULL post_p argument.
8938 * targhooks (std_gimplify_va_arg_expr): Likewise.
8939
8940 2019-10-17 Richard Biener <rguenther@suse.de>
8941
8942 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8943 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8944 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8945 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8946 * tree-vect-loop.c (vect_is_simple_reduction): Set
8947 STMT_VINFO_REDUC_CODE.
8948 (vectorizable_reduction): Remove dead and redundant code, use
8949 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8950
8951 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8952
8953 Fix breakage introduced by r276985.
8954
8955 * config/avr/avr.c (avr_option_override): Remove set of
8956 PARAM_ALLOW_STORE_DATA_RACES.
8957 * common/config/avr/avr-common.c (avr_option_optimization_table)
8958 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8959
8960 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8961
8962 * config/i386/i386.h (processor_costs): Add clear_ratio.
8963 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8964 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8965 of 6 and move_ratio in all cost models.
8966
8967 2019-10-17 Richard Biener <rguenther@suse.de>
8968
8969 * tree-vect-loop.c (check_reduction_path): Compute reduction
8970 operation here.
8971 (vect_is_simple_reduction): Remove special-case of single-stmt
8972 reduction path detection.
8973
8974 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8975
8976 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8977
8978 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8979
8980 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8981 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8982 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8983 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8984 New combine patterns.
8985 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8986 above.
8987 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8988
8989 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8990
8991 * tree-vrp.c (value_range_base::dump): Display +INF for both
8992 pointers and integers when appropriate.
8993
8994 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8995
8996 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8997 when to use versioning threshold.
8998
8999 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9000
9001 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9002 outlined code from ...
9003 (vect_analyze_loop_2): ... here.
9004
9005 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9006
9007 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9008 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9009 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9010
9011 2019-10-17 Richard Biener <rguenther@suse.de>
9012
9013 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9014 (vect_is_simple_reduction): Move all validity checks ...
9015 (vectorizable_reduction): ... here. Compute whether we
9016 need a fold-left reduction here.
9017 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9018 both overloads, check needs_fold_left_reduction_p directly.
9019 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9020
9021 2019-10-17 Richard Biener <rguenther@suse.de>
9022
9023 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9024 TARGET_MEM_REF creation.
9025
9026 2019-10-17 Richard Biener <rguenther@suse.de>
9027
9028 PR tree-optimization/92129
9029 * tree-vect-loop.c (vectorizable_reduction): Also fail
9030 on GIMPLE_SINGLE_RHS.
9031
9032 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9033
9034 PR tree-optimization/92056
9035 * tree-object-size.c (cond_expr_object_size): Return early if then_
9036 processing resulted in unknown size.
9037
9038 PR tree-optimization/92115
9039 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9040 temporary if it could trap.
9041
9042 2019-10-17 Richard Biener <rguenther@suse.de>
9043
9044 PR debug/91887
9045 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9046 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9047
9048 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9049
9050 * tree-ssa-strlen.c (maybe_invalidate): Use
9051 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9052
9053 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9054 Jim Wilson <jimw@sifive.com>
9055
9056 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9057 regs to SIBCALL_REGS.
9058 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9059 passing regs to SIBCALL_REGS.
9060
9061 2019-10-16 Martin Sebor <msebor@redhat.com>
9062
9063 PR tree-optimization/83821
9064 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9065 the length of a string when available.
9066 (handle_builtin_memset) Add argument.
9067 (handle_store, strlen_check_and_optimize_call): Same.
9068 (check_and_optimize_stmt): Same. Pass it to callees.
9069
9070 2019-10-16 Martin Sebor <msebor@redhat.com>
9071
9072 PR tree-optimization/91996
9073 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9074 information.
9075 (compare_nonzero_chars): Add an overload.
9076 (count_nonzero_bytes): Add an argument. Call overload above.
9077 Handle non-constant lengths in some range.
9078 (handle_store): Add an argument.
9079 (check_and_optimize_stmt): Pass an argument to handle_store.
9080
9081 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9082
9083 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9084
9085 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9086
9087 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9088 operands which correspond to the same input-output register to
9089 have the same pseudo assigned to them.
9090
9091 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9092
9093 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9094
9095 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9096
9097 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9098 Apply reasonable limit to symbol offsets.
9099
9100 2019-10-16 Richard Biener <rguenther@suse.de>
9101
9102 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9103 (vect_is_simple_reduction): Delay checking to
9104 vectorizable_reduction and relax the checking.
9105 (vectorizable_reduction): Check we have a simple use. Check
9106 for bogus condition reductions.
9107 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9108 are looking at the last stmt in a pattern sequence when
9109 filling in backedge PHI values.
9110
9111 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9112 Jiufu Guo <guojiufu@linux.ibm.com>
9113
9114 PR target/70010
9115 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9116 the callee explicitly disables some isa_flags the caller is using.
9117
9118 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9119
9120 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9121
9122 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9123
9124 * genmodes.c (mode_data::order): New field.
9125 (blank_mode): Update accordingly.
9126 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9127 (make_vector_modes): Likewise.
9128 (VECTOR_MODES): Update use accordingly.
9129 (cmp_modes): Sort by the new order field ahead of sorting by size.
9130 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9131 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9132 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9133 (aarch64_classify_vector_mode): Handle the new partial modes.
9134 (aarch64_vl_bytes): New function.
9135 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9136 when counting the number of registers in an SVE mode.
9137 (aarch64_class_max_nregs): Likewise.
9138 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9139 in registers yet.
9140 (aarch64_classify_address): Treat partial vectors analogously
9141 to full vectors.
9142 (aarch64_print_address_internal): Consolidate the printing of
9143 MUL VL addresses, using aarch64_vl_bytes as the number of
9144 bytes represented by "VL".
9145 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9146
9147 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9148
9149 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9150 rather than known_lt when choosing frame layouts.
9151
9152 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9153
9154 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9155 that all the adjustments add up to the full frame size.
9156 Use crtl->outgoing_args_size directly as the final adjustment
9157 where appropriate.
9158
9159 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9160
9161 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9162 "frame" reference instead of always referring directly to
9163 "cfun->machine->frame".
9164
9165 2019-10-16 Richard Biener <rguenther@suse.de>
9166
9167 PR tree-optimization/92119
9168 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9169 against missing bswap lhs.
9170
9171 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9172
9173 PR middle-end/92033
9174 * poly-int.h (constant_lower_bound_with_limit): New function.
9175 (constant_upper_bound_with_limit): Likewise.
9176 * doc/poly-int.texi: Document them.
9177 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9178 into the worst-case INTEGER_CST bounds.
9179
9180 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9181
9182 PR ipa/91088
9183 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9184 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9185 * ipa-predicat.h (struct expr_eval_op): New struct.
9186 (expr_eval_ops): New typedef.
9187 (struct condition): Add type and param_ops fields, remove size field.
9188 (add_condition): Replace size parameter with type parameter, add
9189 param_ops parameter.
9190 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9191 (predicate::add_clause): Add comparisons on type and param_ops.
9192 (dump_condition): Add debug dump for param_ops.
9193 (remap_after_inlining): Adjust call arguments to add_condition.
9194 (add_condition): Replace size parameter with type parameter, add
9195 param_ops parameter. Unshare constant value used in conditions.
9196 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9197 parameter expressions using param_ops.
9198 (decompose_param_expr): New function.
9199 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9200 to replace call to unmodified_parm_or_parm_agg_item.
9201 (set_switch_stmt_execution_predicate): Likewise.
9202 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9203 with type.
9204 (inline_read_section): Read param_ops from summary stream.
9205 (ipa_fn_summary_write): Write param_ops to summary stream.
9206
9207 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9208
9209 PR rtl-optimization/92107
9210 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9211 expression written.
9212
9213 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9214
9215 * config/darwin.c: Update description of fix and continue.
9216
9217 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9218
9219 * config/darwin.c (darwin_binds_local_p): Update to call
9220 default_binds_local_p_3 () directly. amend comments.
9221
9222 2019-10-15 Richard Biener <rguenther@suse.de>
9223
9224 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9225 (tree_is_indexable): Use it.
9226 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9227 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9228 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9229
9230 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9231
9232 * config/msp430/msp430.md (zero_extendqipsi2): New.
9233 (zero_extendqisi2): Optimize case where src register and base dst
9234 register are the same.
9235 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9236 (zero_extendpsisi2): Optimize r->m case.
9237 Add unnamed insn patterns to catch insns combine searches for when
9238 optimizing pointer manipulation.
9239
9240 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9241
9242 * config/msp430/msp430.md: Group zero_extend* insns together.
9243
9244 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9245
9246 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9247 constraint.
9248 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9249 POST_INC.
9250 (msp430_subreg): Likewise.
9251 (msp430_split_addsi): Likewise.
9252 (msp430_print_operand_addr): Likewise.
9253 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9254 (USE_STORE_POST_INCREMENT): Define.
9255 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9256 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9257 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9258 (msp430_general_dst_operand): New.
9259 (msp430_general_dst_nonv_operand): New.
9260 (msp430_nonsubreg_operand): Remove.
9261 (msp430_nonsubreg_dst_operand): New.
9262 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9263 of defunct msp430_nonsubreg_operand.
9264 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9265
9266 2019-10-15 Richard Biener <rguenther@suse.de>
9267
9268 PR tree-optimization/91929
9269 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9270 (get_or_alloc_expr_for_name): Initialize it.
9271 (get_or_alloc_expr_for_constant): Likewise.
9272 (phi_translate_1): Copy it.
9273 (create_expression_by_pieces): Use the original location
9274 of the expression for the inserted stmt.
9275 (compute_avail): Record the location of the stmt for the
9276 expressions created.
9277
9278 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9279
9280 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9281 before using tree_to_uhwi.
9282
9283 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9284
9285 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9286
9287 2019-10-15 Richard Biener <rguenther@suse.de>
9288
9289 PR tree-optimization/92094
9290 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9291 do not adjust the reduction definition def type.
9292 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9293 defines the latch argument of the PHI.
9294
9295 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9296
9297 PR target/92035
9298 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9299 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9300 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9301 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9302 _mm_maskz_roundscale_round_sd): New intrinsics.
9303 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9304 __builtin_ia32_rndscales?_mask_round builtins instead of
9305 __builtin_ia32_rndscales?_round.
9306 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9307 __builtin_ia32_rndscalesd_round): Remove.
9308 (__builtin_ia32_rndscaless_mask_round,
9309 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9310 * config/i386/sse.md
9311 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9312 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9313 ... this, adjust and add subst atrributes to make it maskable.
9314
9315 2019-10-15 Richard Biener <rguenther@suse.de>
9316
9317 PR middle-end/92046
9318 * common.opt (fallow-store-data-races): New.
9319 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9320 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9321 * doc/invoke.texi (fallow-store-data-races): Document.
9322 (--param allow-store-data-races): Remove docs.
9323 * opts.c (default_options_table): Enable -fallow-store-data-races
9324 at -Ofast.
9325 (default_options_optimization): Do not enable --param
9326 allow-store-data-races at -Ofast.
9327 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9328 instead of PARAM_ALLOW_STORE_DATA_RACES.
9329 * tree-ssa-loop-im.c (execute_sm): Likewise.
9330
9331 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9332
9333 PR tree-optimization/92085
9334 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9335 instead of calling it unconditionally after
9336 delete_dead_or_redundant_assignment and fix indentation.
9337
9338 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9339
9340 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9341 TARGET_VFP_DOUBLE.
9342 (*fmsub<SDF:mode>4): Likewise.
9343 *fnmsub<SDF:mode>4): Likewise.
9344 (*fnmadd<SDF:mode>4): Likewise.
9345
9346 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9347
9348 * doc/tree-ssa.texi: Update renamed macro name.
9349
9350 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9351
9352 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9353 vector constants.
9354
9355 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9356
9357 * config/darwin.c: Use unsigned ints for the picbase label
9358 counters, initialise the vars explicitly.
9359 (update_pic_label_number_if_needed): Move a variable declaration
9360 to where it's needed.
9361 (machopic_output_function_base_name): Use a more strict checking
9362 assert, and and unsigned int for the picbase label counter.
9363 (machopic_get_function_picbase): Likewise.
9364
9365 2019-10-14 Richard Biener <rguenther@suse.de>
9366
9367 PR middle-end/92046
9368 * dse.c (scan_insn): Use param max_active_local_stores.
9369 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9370 based on optimization level.
9371 * loop-invariant.c (move_loop_invariants): Adjust
9372 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9373 * opts.c (default_options_optimization): Do not adjust
9374 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9375 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9376
9377 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9378
9379 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9380
9381 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9382
9383 * config/arm/arm.c (arm_option_override): Don't override sched
9384 pressure algorithm.
9385
9386 2019-10-14 Richard Biener <rguenther@suse.de>
9387
9388 PR tree-optimization/92069
9389 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9390 cycles do not set vect_nested_cycle on the latch definition.
9391
9392 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9393
9394 * function-abi.h (expr_callee_abi): Declare.
9395 * function-abi.cc (expr_callee_abi): New function.
9396
9397 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9398
9399 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9400 into [1,MAX].
9401 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9402 non-zero being represented as [1,MAX].
9403
9404 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9405
9406 * tree-sra.c (dump_access): Add missing braces.
9407
9408 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9409
9410 * config/darwin.c (machopic_indirection_name): Rework the
9411 function to emit linker-visible symbols only for indirections
9412 in the data section. Clean up the code and update comments.
9413
9414 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9415
9416 * config/darwin.c (machopic_indirect_data_reference): Remove
9417 redundant code.
9418
9419 2019-10-13 Nathan Sidwell <nathan@acm.org>
9420
9421 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9422
9423 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9424
9425 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9426 c99_runtime.
9427
9428 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9429
9430 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9431 so non-virutal are before virutals.
9432 (output_function): Avoid body modifications.
9433
9434 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9435
9436 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9437 %r22. Load function address before global pointer.
9438 (pa_attr_length_indirect_call): Adjust length of inline versions of
9439 $$dyncall.
9440 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9441 before normal cases. Update inline $$dyncall sequences to preserve
9442 function descriptor address in register %r22.
9443 (TRAMPOLINE_CODE_SIZE): Adjust.
9444 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9445 register %r22 contains trampoline address.
9446 (pa_trampoline_init): Adjust offsets.
9447 (pa_trampoline_adjust_address): Likewise.
9448 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9449
9450 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9451
9452 PR target/67183
9453 * config/darwin.c (machopic_indirection): New field to flag
9454 non-lazy-symbol-pointers in the data section.
9455 (machopic_indirection_name): Compute if an indirection should
9456 appear in the data section.
9457 (machopic_output_data_section_indirection): New callback split
9458 from machopic_output_indirection.
9459 (machopic_output_stub_indirection): Likewise.
9460 (machopic_output_indirection): Retain the code for non-lazy
9461 symbol pointers in their regular section.
9462 (machopic_finish): Use the new callbacks to order the indirection
9463 output.
9464
9465 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9466
9467 * config/darwin-protos.h (machopic_finish): Delete.
9468 * config/darwin.c (machopic_finish): Make static.
9469
9470 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9471
9472 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9473 sections when building kernel extension code.
9474
9475 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9476
9477 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9478 later standard."
9479
9480 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9481
9482 * config/pa/pa.c (pa_option_override): Remove trailing comma
9483 from warning.
9484
9485 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9486
9487 PR middle-end/92063
9488 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9489 <case VEC_COND_EXPR>: Return false with *handled = false.
9490 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9491 recursing on the first operand.
9492 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9493 instead of tree_could_trap_p.
9494 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9495
9496 2019-10-11 Jim Wilson <jimw@sifive.com>
9497
9498 PR rtl-optimization/91860
9499 * combine.c (subst): If new_rtx is a constant, also check for
9500 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9501
9502 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9503
9504 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9505 INTVAL when calling store_bit_field.
9506
9507 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9508
9509 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9510 size.
9511
9512 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9513
9514 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9515 vectorizable_live_operation.
9516 (vectorizable_live_operation): Adjust parameters.
9517 * tree-vect-stmts.c (vect_init_vector,
9518 vect_gen_widened_results_half): Fix typo in function comment.
9519 (can_vectorize_live_stmts): Adjust function comment.
9520 Adjust parameters. Adjust call to vectorizable_live_operation.
9521 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9522 (vect_transform_stmt): Adjust function comment. Adjust call to
9523 can_vectorize_live_stmts.
9524 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9525
9526 2019-10-11 Richard Biener <rguenther@suse.de>
9527
9528 PR tree-optimization/90883
9529 PR tree-optimization/91091
9530 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9531 alias-sets both for recording VN table entries and continuing
9532 walking after translating through copies. Handle same-sized
9533 reads from SSA names by returning the plain SSA name.
9534 (eliminate_dom_walker::eliminate_stmt): Properly handle
9535 non-size precision stores in redundant store elimination.
9536
9537 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9538
9539 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9540 (ggc_collect): Dump later to not interfere with release_page dump.
9541 (ggc_trim): New function.
9542 * ggc-none.c (ggc_trim): New.
9543 * ggc.h (ggc_trim): Declare.
9544
9545 2019-10-11 Richard Biener <rguenther@suse.de>
9546
9547 PR tree-optimization/92066
9548 PR tree-optimization/92046
9549 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9550 Fix bogus cost model check.
9551
9552 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9553
9554 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9555 (LANG_HOOKS_DECLS): Add it.
9556 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9557 update comment for omp_is_optional_argument.
9558 * omp-general.c (omp_is_allocatable_or_ptr): New.
9559 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9560 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9561 Fortran's optional arguments and allocatable/pointer scalars
9562 with use_device_addr.
9563
9564 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9565
9566 PR target/77918
9567 * config/s390/2827.md: Add new opcodes.
9568 * config/s390/2964.md: Likewise.
9569 * config/s390/3906.md: Likewise.
9570 * config/s390/8561.md: Likewise.
9571 * config/s390/s390-builtins.def (s390_vfchesb): Use
9572 the new vec_cmpgev4sf_quiet_nocc.
9573 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9574 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9575 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9576 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9577 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9578 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9579 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9580 * config/s390/s390-modes.def (CCSFPS): New mode.
9581 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9582 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9583 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9584 (s390_expand_vec_compare): Use non-signaling patterns where
9585 necessary.
9586 (s390_reverse_condition): Support CCSFPS.
9587 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9588 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9589 (asm_fcmp_op): Likewise.
9590 (*smaxv2df3_vx): Use pattern for quiet comparison.
9591 (*sminv2df3_vx): Likewise.
9592 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9593 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9594 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9595 (vec_cmplt<mode>_quiet_nocc): New expander.
9596 (vec_cmpge<mode>_quiet_nocc): New pattern.
9597 (vec_cmple<mode>_quiet_nocc): New expander.
9598 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9599 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9600 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9601 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9602 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9603 (vec_cmpungt<mode>): New expander.
9604 (vec_cmpunge<mode>): Likewise.
9605 (vec_cmpuneq<mode>): Use quiet patterns.
9606 (vec_cmpltgt<mode>): Allow only on z14+.
9607 (vec_cmpordered<mode>): Use quiet patterns.
9608 (vec_cmpunordered<mode>): Likewise.
9609 (VEC_CMP_EXPAND): Add ungt and unge.
9610
9611 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9612
9613 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9614 parameter.
9615 * lto-streamer-out.c: Include tree-dfa.h.
9616 (output_cfg): Do not use cfun.
9617 (lto_prepare_function_for_streaming): New.
9618 (output_function): Do not push cfun; do not initialize loop optimizer.
9619 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9620 * passes.c (ipa_write_summaries): Use it.
9621 (ipa_write_optimization_summaries): Do not modify bodies.
9622 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9623 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9624 * tree-ssa-dse.c (pass_dse::execute): Update use of
9625 renumber_gimple_stmt_uids.
9626 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9627
9628 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9629
9630 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9631 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9632
9633 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9634
9635 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9636 macros.
9637 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9638 Also define DFP macros for these conditions.
9639 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9640 DEC128_SUBNORMAL_MIN): Do not define.
9641 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9642 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9643
9644 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9645 Sandra Loosemore <sandra@codesourcery.com>
9646
9647 PR middle-end/26241
9648 * doc/lto.texi (IPA): Reference to the IPA passes.
9649 * doc/passes.texi (Pass manager): Add node IPA passes and
9650 description for each IPA pass.
9651
9652 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9653
9654 * ipa-reference.c: Do not include splay-tree.h
9655 (reference_vars_to_consider): Turn to hash map.
9656 (get_static_name, ipa_init, analyze_function, propagate,
9657 stream_out_bitmap, ipa_reference_write_optimization_summary,
9658 ipa_reference_write_optimization_summary): Update.
9659
9660 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9661
9662 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9663
9664 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9665
9666 * config/darwin.c: Lookup Objective C metadata and force indirection
9667 for IVAR refs.
9668
9669 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9670
9671 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9672 addresses.
9673 (mem_operand_gpr): Add check for prefixed addresses.
9674 (mem_operand_ds_form): Add check for prefixed addresses.
9675 (rs6000_legitimate_offset_address_p): If we support prefixed
9676 addresses, check for a 34-bit offset instead of 16-bit.
9677 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9678 Do not allow load/store with update if the address is prefixed.
9679 (rs6000_mode_dependent_address): If we support prefixed
9680 addresses, check for a 34-bit offset instead of 16-bit.
9681
9682 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9683
9684 PR target/77918
9685 * config/s390/vector.md (vcond_comparison_operator): New
9686 predicate.
9687 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9688
9689 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9690
9691 PR 87488
9692 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9693 -D.
9694 * configure.ac (--with-documentation-root-url): New option.
9695 * configure: Regenerate.
9696 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9697 option URL, add it as a new string field of the diagnostic option.
9698 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9699 (print_option_information): If get_option_url is non-NULL, call
9700 it, and if the result is non-NULL, potentially emit an escape
9701 sequence to markup the option text with the resulting URL.
9702 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9703 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9704 example of JSON output.
9705 * opts-diagnostic.h (get_option_url): New decl.
9706 * opts.c (get_option_url): New function.
9707 * toplev.c (general_init): Initialize the get_option_url callback.
9708
9709 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9710
9711 PR 87488
9712 * common.opt (fdiagnostics-urls=): New option.
9713 (diagnostic-url.h): Add SourceInclude.
9714 (diagnostic_url_rule): New enum.
9715 * diagnostic-color.c: Include "diagnostic-url.h".
9716 (diagnostic_urls_enabled_p): New function.
9717 * diagnostic-url.h: New file.
9718 * diagnostic.c: Include "diagnostic-url.h".
9719 (diagnostic_urls_init): New function.
9720 * diagnostic.h (diagnostic_urls_init): New decl.
9721 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9722 -fdiagnostics-urls to the list.
9723 (-fdiagnostics-urls): New option.
9724 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9725 (driver::global_initializations): Call diagnostic_urls_init.
9726 * opts-global.c (init_options_once): Likewise.
9727 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9728 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9729 show_urls.
9730 (pp_begin_url): New function.
9731 (pp_end_url): New function.
9732 (selftest::test_urls): New selftest.
9733 (selftest::pretty_print_c_tests): Call it.
9734 * pretty-print.h (pretty_printer::show_urls): New field.
9735 (pp_begin_url): New decl.
9736 (pp_end_url): New decl.
9737
9738 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9739
9740 PR target/92022
9741 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9742
9743 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9744
9745 PR target/88630
9746 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9747 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9748 also for TARGET_FPU_SH4_300.
9749 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9750 TARGET_SH4_300.
9751 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9752 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9753 (*negsf2_i): Split into ...
9754 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9755 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9756 (**abssf2_i): Split into ...
9757 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9758 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9759 (*negdf2_i): Split into ...
9760 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9761 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9762 (**abssf2_i): Split into ...
9763 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9764
9765 2019-10-10 Richard Biener <rguenther@suse.de>
9766
9767 PR middle-end/92046
9768 * opts.c (finish_options): Do not influence global --params
9769 from options that are adjustable per function.
9770 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9771 Apply --param adjustment based on active cost-model.
9772 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9773 further store-sinking when vectorization or if-conversion
9774 are not enabled.
9775
9776 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9777
9778 PR middle-end/92037
9779 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9780 rather than ggc_alloc_cleared to alloc symbol table.
9781 * toplev.c (general_init): Likewise.
9782 * cgraph.h (symbol_table): Explicitly construct every field.
9783
9784 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9785
9786 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9787 (PF_Z15): ... this.
9788 * config.gcc: Add z15 as option for --with-arch and --with-tune
9789 configure switches.
9790 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9791 error reporting for unsupported builtins.
9792 * config/s390/s390-opts.h (enum processor_type): Rename
9793 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9794 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9795 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9796 Likewise.
9797 * config/s390/s390-builtins.def: Likewise.
9798 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9799 (s390_expand_builtin): Add missing check for unsupported builtins.
9800 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9801 (s390_rtx_costs): Likewise.
9802 (s390_get_sched_attrmask): Rename arch13 to z15.
9803 (s390_get_unit_mask): Likewise.
9804 (s390_is_fpd): Likewise.
9805 (s390_is_fxd): Likewise.
9806 * config/s390/s390.h (enum processor_flags): Likewise.
9807 * config/s390/s390.md: Likewise.
9808 * config/s390/vector.md: Likewise.
9809 * config/s390/vx-builtins.md: Likewise.
9810 * config/s390/s390.opt: Add z15 to processor_type value.
9811
9812 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9813
9814 PR target/91035
9815 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9816 prototype.
9817 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9818 ("split_stack_data", "split_stack_call")
9819 ("split_stack_call_<mode>", "split_stack_cond_call")
9820 ("split_stack_cond_call_<mode>"): Remove.
9821 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9822 insn definition.
9823 * config/s390/s390.c (s390_output_split_stack_data): New function.
9824 (s390_expand_split_stack_prologue): Use the merged expander.
9825
9826 2019-10-09 Martin Sebor <msebor@redhat.com>
9827
9828 PR tree-optimization/90879
9829 * builtins.c (check_access): Avoid using maxbound when null.
9830 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9831 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9832 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9833 conditional.
9834 (get_range_strlen): Overwrite initial maxbound when non-null.
9835 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9836 changes.
9837 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9838 (used_only_for_zero_equality): New function.
9839 (handle_builtin_memcmp): Call it.
9840 (determine_min_objsize): Return an integer instead of tree.
9841 (get_len_or_size, strxcmp_eqz_result): New functions.
9842 (maybe_warn_pointless_strcmp): New function.
9843 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9844 between a longer string and a smaller array.
9845 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9846
9847 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9848
9849 * config/darwin.c (darwin_override_options): Make the check for
9850 Objective-C ABI version more specific for 64bit code.
9851
9852 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9853
9854 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9855 indicate that the new symbol is an indirection.
9856 (machopic_indirect_call_target): Likewise.
9857 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9858 (MACHO_SYMBOL_INDIRECTION_P): New.
9859 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9860
9861 2019-10-08 Jason Merrill <jason@redhat.com>
9862
9863 * doc/invoke.texi: Document -fconcepts-ts.
9864
9865 2019-10-09 Richard Biener <rguenther@suse.de>
9866
9867 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9868 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9869
9870 2019-10-08 Richard Biener <rguenther@suse.de>
9871
9872 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9873 (_stmt_vec_info::force_single_cycle): Likewise.
9874 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9875 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9876 * tree-vect-loop.c (vectorizable_reduction): Set
9877 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9878 (vect_transform_reduction): Use them to remove redundant code.
9879 (vect_transform_cycle_phi): Likewise.
9880
9881 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9882
9883 PR tree-optimization/90836
9884 * match.pd (popcount): New pattern.
9885
9886 2019-10-08 Martin Sebor <msebor@redhat.com>
9887
9888 PR middle-end/92026
9889 PR middle-end/92014
9890 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9891 again once nbytes has been set. Set the access size when not yet set.
9892
9893 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9894
9895 * config/darwin.c (machopic_select_section): Remove dead code for
9896 old Objective-C section selection method, replace with unreachable.
9897
9898 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9899
9900 * config/darwin.c (machopic_indirect_data_reference): Check for
9901 required indirections before making direct access to defined
9902 values.
9903 (machopic_output_indirection): Place the indirected pointes for
9904 required indirections into the non-lazy symbol pointers section.
9905 (darwin_encode_section_info):
9906 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9907 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9908
9909 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9910
9911 PR target/91994
9912 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9913 instead of ALL_SSE_REG to check if function call preserves some
9914 256-bit SSE registers.
9915
9916 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9917
9918 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9919 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9920 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9921
9922 2019-10-08 Richard Biener <rguenther@suse.de>
9923
9924 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9925 (_stmt_vec_info::is_reduc_info): Add.
9926 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9927 (vectorizable_condition): Remove.
9928 (vectorizable_shift): Likewise.
9929 (vectorizable_reduction): Adjust.
9930 (info_for_reduction): New.
9931 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9932 (vect_analyze_scalar_cycles_1): ... here.
9933 (vect_analyze_loop_operations): Adjust.
9934 (needs_fold_left_reduction_p): Simplify for single caller.
9935 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9936 for nested cycles not part of double reductions.
9937 (vect_model_reduction_cost): Pass in the reduction type.
9938 (info_for_reduction): New function.
9939 (vect_create_epilog_for_reduction): Use it, access reduction
9940 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9941 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9942 (vectorize_fold_left_reduction): Remove pointless assert.
9943 (vectorizable_reduction): Analyze the full reduction when
9944 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9945 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9946 stmt code-generation to vectorizable_* in most cases. Verify
9947 code-generation only for cases handled by
9948 vect_transform_reductuon.
9949 (vect_transform_reduction): Use info_for_reduction to get at
9950 reduction meta. Simplify.
9951 (vect_transform_cycle_phi): Likewise.
9952 (vectorizable_live_operation): Likewise.
9953 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9954 at the PHI node for STMT_VINFO_REDUC_TYPE.
9955 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9956 longer necessary code.
9957 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9958 (vectorizable_condition): Likewise. Get at reduction related
9959 info via info_for_reduction.
9960 (vect_analyze_stmt): Adjust.
9961 (vect_transform_stmt): Likewise.
9962 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9963 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9964
9965 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9966
9967 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9968 -fno-fp-int-builtin-inexact default for C2X.
9969
9970 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9971 Richard Biener <rguenther@suse.de>
9972
9973 PR tree-optimization/91532
9974 * tree-if-conv.c: Include tree-ssa-dse.h.
9975 (ifcvt_local_dce): Change param from bb to loop,
9976 and call dse_classify_store.
9977 (tree_if_conversion): Pass loop instead of loop->header as arg
9978 to ifcvt_local_dce.
9979 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9980 (delete_dead_or_redundant_assignment): Remove static qualifier from
9981 declaration, and add prototype in tree-ssa-dse.h.
9982 (dse_store_status): Move to tree-ssa-dse.h.
9983 (dse_classify_store): Remove static qualifier and add new tree param
9984 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9985 * tree-ssa-dse.h: New header.
9986
9987 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9988
9989 * config/darwin.c (machopic_output_indirection): Don't put
9990 hidden symbol indirections into the .data section, use the
9991 non-lazy symbol pointers section as normal.
9992 (darwin_encode_section_info): Record if a symbol is hidden.
9993 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9994 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9995
9996 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9997
9998 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9999 predicates instead of accessing bits directly.
10000 (machopic_indirect_call_target): Likewise.
10001 (machopic_output_indirection): Likewise.
10002 (darwin_encode_section_info): Improve description. Use renamed
10003 symbol flags. Use predicate macros for variables and functions.
10004 * config/darwin.h:
10005 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10006 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10007 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10008 (MACHO_SYMBOL_VARIABLE_P): New.
10009 (MACHO_SYMBOL_DEFINED_P):New.
10010 (MACHO_SYMBOL_STATIC_P): New.
10011 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10012 (SYMBOL_FLAG_SUBT_DEP): New.
10013 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10014
10015 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10016
10017 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10018 (msp430_expand_epilogue): Likewise.
10019 * config/msp430/predicates.md: Likewise.
10020 * config/msp430/msp430.md: Likewise.
10021 Replace blocks of 8 spaces with tabs.
10022
10023 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10024
10025 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10026 * config/msp430/msp430.c (msp430_split_addsi): New.
10027 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10028 a block of C code for splitting addsi.
10029
10030 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10031
10032 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10033 ix86_expand_rounddf_32): Reorder functions.
10034 * config/i386/i386-protos.h: Update.
10035
10036 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10037
10038 * config.in: Regenerate.
10039 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10040 Add new "Yx" constraint.
10041 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10042 function.
10043 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10044 prototype.
10045 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10046 code/data region to be selected in the small memory model.
10047 (msp430_section_attr): Don't warn if the "section" and "lower"
10048 attributes are used together.
10049 (msp430_handle_generic_attribute): Likewise.
10050 (msp430_var_in_low_mem): New function.
10051 (TARGET_ENCODE_SECTION_INFO): Define.
10052 (msp430_encode_section_info): New function.
10053 (gen_prefix): Return early in the small memory model.
10054 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10055 ".lower" prefix if -m{code,data}-region=lower have been passed.
10056 (msp430_output_aligned_decl_common): Emit common symbols when
10057 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10058 set.
10059 (TARGET_ASM_FILE_END): Define.
10060 (msp430_file_end): New function.
10061 (msp430_do_not_relax_short_jumps): Allow relaxation when
10062 function will be in the lower region.
10063 (msp430_op_not_in_high_mem): New function.
10064 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10065 the 'X' operand selector.
10066 Clarify comment for 'x' operand selector.
10067 * config/msp430/msp430.h (LINK_SPEC): Propagate
10068 -m{code,data}-region to the linker via spec function
10069 msp430_propagate_region_opt.
10070 (msp430_propagate_region_opt): New prototype.
10071 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10072 (SYMBOL_FLAG_LOW_MEM): Define.
10073 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10074 selector.
10075 (zero_extendqihi2): Fix operand number used by "%X" selector.
10076 (zero_extendqisi2): Likewise.
10077 (zero_extendhisi2): Likewise.
10078 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10079 (movhi): Likewise.
10080 (addqi3): Likewise.
10081 (addhi3): Likewise.
10082 (addsi3): Likewise.
10083 (addhi3_cy): Likewise.
10084 (addchi4_cy): Likewise.
10085 (subqi3): Likewise.
10086 (subhi3): Likewise.
10087 (subsi3): Likewise.
10088 (bic<mode>3): Likewise.
10089 (and<mode>3): Likewise.
10090 (ior<mode>3): Likewise.
10091 (xor<mode>3): Likewise.
10092 (slli_1): Add missing "%X" operand selector.
10093 (slll_1): Likewise.
10094 (slll_2): Likewise.
10095 (srai_1): Likewise.
10096 (sral_1): Likewise.
10097 (sral_2): Likewise.
10098 (srli_1): Likewise.
10099 (srll_1): Likewise.
10100 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10101 selector.
10102 (cbranchhi4_real): Likewise.
10103 (cbranchqi4_reversed): Likewise.
10104 (cbranchhi4_reversed): Likewise.
10105 (*bitbranch<mode>4): Likewise.
10106 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10107 * config/msp430/msp430.opt (mcode-region=): Set default to
10108 MSP430_REGION_LOWER. Improve docstring.
10109 (mdata-region=): Likewise.
10110 (muse-lower-region-prefix): New option.
10111 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10112 mdata-region=none multilib.
10113 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10114 mdata-region=none multilib.
10115 MULTILIB_EXCEPTIONS: Remove.
10116 MULTILIB_REQUIRED: Define.
10117 * configure: Regenerate.
10118 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10119 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10120 * doc/extend.texi: Clarify comment for {upper,lower,either}
10121 function attributes.
10122 Add separate description for "lower" variable attribute.
10123
10124 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10125
10126 PR target/77918
10127 * optabs-tree.c (vcond_icode_p): New function.
10128 (vcond_eq_icode_p): Likewise.
10129 (expand_vec_cond_expr_p): Use vcond_icode_p and
10130 vcond_eq_icode_p.
10131 * optabs.c (can_vcond_compare_p): New function.
10132 * optabs.h (can_vcond_compare_p): Likewise.
10133
10134 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10135
10136 PR target/77918
10137 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10138 caller passes a non-trapping condition.
10139 (is_gimple_condexpr): Allow trapping conditions.
10140 (is_gimple_condexpr_1): New helper function.
10141 (is_gimple_condexpr_for_cond): New function, acts like old
10142 is_gimple_condexpr.
10143 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10144 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10145 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10146 * gimplify.c (gimplify_cond_expr): Use
10147 is_gimple_condexpr_for_cond.
10148 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10149 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10150 VEC_COND_EXPR.
10151 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10152 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10153 is_gimple_condexpr_for_cond, remove pointless tmp check
10154 (forward_propagate_into_cond): Remove pointless tmp check.
10155
10156 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10157
10158 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10159 match that of other gsi_next_* functions. Adjust the comment.
10160 (gsi_start_nonvirtual_phis): New function.
10161 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10162 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10163
10164 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10165
10166 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10167 setjmp situation here. Fix a verb's ending: "the exact variables or
10168 elements for which there are warnings depends" -> "... depend".
10169
10170 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10171
10172 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10173
10174 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10175
10176 * ipa-prop.c (ipa_vr::nonzero_p): New.
10177 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10178 non-zero range.
10179 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10180 * tree-vrp.c (range_has_numeric_bounds_p): New.
10181 (range_int_cst_p): Use range_has_numeric_bounds_p.
10182 (get_range_op_handler): New.
10183 (supported_types_p): New.
10184 (defined_ranges_p): New.
10185 (drop_undefines_to_varying): New.
10186 (range_fold_binary_symbolics_p): New.
10187 (range_fold_unary_symbolics_p): New.
10188 (range_fold_unary_expr): Extract out into above functions.
10189 (range_fold_binary_expr): Same.
10190 (value_range_base::normalize_addresses): New.
10191 (value_range_base::normalize_symbolics): Normalize addresses.
10192 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10193
10194 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10195
10196 * tree-vrp.c (value_range_base::singleton_p): Use
10197 value_range_base::num_pairs instead of vrp_val_is* to check
10198 if a range has one sub-range.
10199
10200 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10201
10202 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10203 DEF is not a true earlyclobber but is tied to a specific input
10204 operand, and so is effectively earlyclobber wrt inputs that have
10205 different values.
10206 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10207
10208 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10209
10210 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10211 (pod_mode): Mark operators likewise.
10212 (scalar_int_mode): Mark non-default constructors and
10213 operators with CONSTEXPR.
10214 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10215 (fixed_size_mode): Likewise.
10216
10217 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10218
10219 PR target/91994
10220 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10221 and wrap the unspec_volatile in a parallel.
10222 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10223 the unspec_volatile.
10224 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10225 unspec_volatile to be wrapped in a parallel.
10226 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10227 (ix86_add_reg_usage_to_vzerouppers): New functions.
10228 (rest_of_handle_insert_vzeroupper): Use them to add register
10229 usage information to the vzeroupper instructions.
10230
10231 2019-10-07 Richard Biener <rguenther@suse.de>
10232
10233 PR tree-optimization/91975
10234 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10235 handle invariants.
10236
10237 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10238
10239 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10240 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10241
10242 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10243
10244 * config/darwin.c (darwin_override_options): Adjust objective-c
10245 ABI version error messages to avoid punctuation and contracted
10246 negations.
10247
10248 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10249
10250 * ipa-inline.c: Fix type; compute size rather than self_size
10251 for size of caller function.
10252
10253 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10254
10255 PR target/59888
10256 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10257 choose const_data section for constants with relocations.
10258 (machopic_select_section): Pass relocation flag to
10259 darwin_rodata_section ().
10260
10261 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10262
10263 PR tree-optimization/91734
10264 * generic-match-head.c: Include fold-const-call.h.
10265 * match.pd (sqrt(x) cmp c): Check the boundary value and
10266 in case inexact computation of c*c affects comparison of the boundary,
10267 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10268 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10269 for -frounding-math. For c2, try the next smaller or larger floating
10270 point constant depending on comparison code and if it has the same
10271 sqrt as c2, use it instead of c2.
10272
10273 2019-10-04 Martin Sebor <msebor@redhat.com>
10274
10275 PR middle-end/91977
10276 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10277 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10278 uninitialized objects.
10279
10280 2019-10-04 Martin Sebor <msebor@redhat.com>
10281
10282 * builtins.c (compute_objsize): Add an argument.
10283 * tree-object-size.c (addr_object_size): Same.
10284 (compute_builtin_object_size): Same.
10285 * tree-object-size.h (compute_builtin_object): Same.
10286
10287 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10288
10289 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10290
10291 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10292
10293 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10294
10295 2019-10-04 Martin Jambor <mjambor@suse.cz>
10296
10297 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10298 fntype when switching to calling memcpy instead of memset.
10299
10300 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10301
10302 * hash-table.h (hash_table::empty_slow): Don't assign
10303 size_t values to int variables.
10304
10305 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10306
10307 * expr.c (convert_mode_scalar): Remove shadowing local var.
10308 (emit_block_move): Rename local vars.
10309 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10310 (emit_push_insn): Rename local vars.
10311 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10312 shadowing local vars.
10313 (store_constructor): Remove shadowing local vars. Rename local var.
10314 (store_field, expand_cond_expr_using_cmove,
10315 expand_expr_real_2): Remove shadowing local vars.
10316 (expand_expr_real_1,
10317 do_store_flag): Remove shadowing local vars. Rename local vars.
10318
10319 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10320
10321 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10322
10323 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10324
10325 * genmatch.c (commutate): Rename local var.
10326 (lower_cond): Reuse local var.
10327 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10328 dt_operand::gen, dt_operand::gen_gimple_expr,
10329 dt_simplify::gen): Add a param. Rename generated vars.
10330 (decision_tree::insert_operand,
10331 (capture_info::walk_match, capture_info::walk_result,
10332 capture_info::walk_c_expr): Rename local vars.
10333 (expr::gen_transform): Rename generated vars.
10334 Use snprintf. Rename local vars.
10335 (capture::gen_transform, dt_operand::get_name,
10336 dt_operand::gen_opname): Rename generated vars.
10337 (write_predicate): Adjust call to gen_kids.
10338 (parser::get_internal_capture_id): Rename generated vars.
10339 (parser::parse_expr): Rename local vars.
10340 (parser::parse_if): Remove local var.
10341 (parser::parse_pattern, add_operator): Rename local vars.
10342
10343 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10344
10345 * builtins.def (DEF_C2X_BUILTIN): New macro.
10346 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10347 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10348 (strndup): Use DEF_C2X_BUILTIN.
10349 * coretypes.h (enum function_class): Add function_c2x_misc.
10350
10351 2019-10-04 Maya Rashish <coypu@sdf.org>
10352
10353 * ira-color.c (update_costs_from_allocno): Call
10354 ira_init_register_move_cost_if_necessary.
10355
10356 2019-10-04 Jeff Law <law@redhat.com>
10357
10358 * config/h8300/h8300.md (cpymemsi): Disable.
10359 (movmd, movmd_internal_<mode>, movstr, movsd):
10360 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10361 (movmd splitter, movsd splitter): Likewise.
10362
10363 * range-op.cc (range_tests): Avoid two tests when ints and
10364 shorts are the same size.
10365
10366 2019-10-04 Richard Biener <rguenther@suse.de>
10367
10368 PR lto/91968
10369 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10370 BLOCK_VARS.
10371
10372 2019-10-04 Richard Biener <rguenther@suse.de>
10373
10374 PR tree-optimization/91982
10375 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10376 against EXTRACT_LAST_REDUCTION.
10377 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10378
10379 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10380
10381 * range-op.o (value_range_from_overflowed_bounds): Rename from
10382 adjust_overflow_bound.
10383 (value_range_with_overflow): Rename from
10384 create_range_with_overflow.
10385 (create_possibly_reversed_range): Adjusted for above renames.
10386 (operator_*::wi_fold): Same.
10387 (cross_product_operator::wi_cross_productor): Same.
10388
10389 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10390
10391 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10392 -Wshadow=compatible-local): Fix description.
10393 Add an example where -Wshadow=compatible-local does not
10394 warn.
10395
10396 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10397
10398 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10399
10400 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10401 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10402
10403 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10404
10405 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10406 can_move_by_pieces issue.
10407
10408 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10409
10410 PR target/87243
10411 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10412 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10413 is available and the user has not set one on the command line.
10414
10415 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10416
10417 PR target/91769
10418 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10419 instead of REGNO equality check on addr.reg.
10420
10421 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10422
10423 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10424 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10425 * doc/invoke.texi (inline-heuristics-hint-percent,
10426 inline-heuristics-hint-percent-O2): Document.
10427 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10428 hint attribute.
10429 (can_inline_edge_by_limits_p): Use it.
10430
10431 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10432
10433 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10434 to print CONST_DOUBLEs.
10435
10436 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10437
10438 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10439 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10440 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10441
10442 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10443
10444 * Makefile.in (OBJS): Add range.o and range-op.o.
10445 Remove wide-int-range.o.
10446 * function-tests.c (test_ranges): New.
10447 (function_tests_c_tests): Call test_ranges.
10448 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10449 range_fold_unary_expr instead of extract_range_from_unary_expr.
10450 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10451 * range-op.cc: New file.
10452 * range-op.h: New file.
10453 * range.cc: New file.
10454 * range.h: New file.
10455 * selftest.h (range_tests): New prototype.
10456 * ssa.h: Include range.h.
10457 * tree-vrp.c (value_range_base::value_range_base): New
10458 constructors.
10459 (value_range_base::singleton_p): Do not call
10460 ranges_from_anti_range until sure we will need to.
10461 (value_range_base::type): Rename gcc_assert to
10462 gcc_checking_assert.
10463 (vrp_val_is_max): New argument.
10464 (vrp_val_is_min): Same.
10465 (wide_int_range_set_zero_nonzero_bits): Move from
10466 wide-int-range.cc.
10467 (extract_range_into_wide_ints): Remove.
10468 (extract_range_from_multiplicative_op): Remove.
10469 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10470 from extract_range_from_binary_expr.
10471 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10472 from extract_range_from_binary_expr.
10473 (extract_range_from_binary_expr): Remove.
10474 (normalize_for_range_ops): New.
10475 (range_fold_binary_expr): New.
10476 (range_fold_unary_expr): New.
10477 (value_range_base::num_pairs): New.
10478 (value_range_base::lower_bound): New.
10479 (value_range_base::upper_bound): New.
10480 (value_range_base::upper_bound): New.
10481 (value_range_base::contains_p): New.
10482 (value_range_base::invert): New.
10483 (value_range_base::union_): New.
10484 (value_range_base::intersect): New.
10485 (range_compatible_p): New.
10486 (value_range_base::operator==): New.
10487 (determine_value_range_1): Call range_fold_*expr instead of
10488 extract_range_from_*expr.
10489 * tree-vrp.h (class value_range_base): Add new constructors.
10490 Add methods for union_, intersect, operator==, contains_p,
10491 num_pairs, lower_bound, upper_bound, invert.
10492 (vrp_val_is_min): Add handle_pointers argument.
10493 (vrp_val_is_max): Same.
10494 (extract_range_from_unary_expr): Remove.
10495 (extract_range_from_binary_expr): Remove.
10496 (range_fold_unary_expr): New.
10497 (range_fold_binary_expr): New.
10498 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10499 range_fold_binary_expr instead of extract_range_from_binary_expr.
10500 (vr_values::extract_range_basic): Same.
10501 (vr_values::extract_range_from_unary_expr): Call
10502 range_fold_unary_expr instead of extract_range_from_unary_expr.
10503 * wide-int-range.cc: Remove.
10504 * wide-int-range.h: Remove.
10505
10506 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10507
10508 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10509 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10510 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10511 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10512 macro.
10513
10514 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10515
10516 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10517 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10518 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10519 * glimits.h: Likewise.
10520
10521 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10522
10523 PR rtl-optimization/91976
10524 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10525 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10526 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10527
10528 2019-10-02 Martin Sebor <msebor@redhat.com>
10529
10530 PR tree-optimization/80936
10531 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10532
10533 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10534
10535 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10536 instead of reg_class_contents[ALL_REGS].
10537
10538 2019-09-30 Jason Merrill <jason@redhat.com>
10539
10540 Add some hash_map_safe_* functions like vec_safe_*.
10541 * hash-map.h (default_hash_map_size): New variable.
10542 (create_ggc): Use it as default argument.
10543 (hash_map_maybe_create, hash_map_safe_get)
10544 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10545
10546 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10547
10548 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10549 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10550 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10551 (can_inline_edge_by_limits_p): Use it.
10552 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10553 (want_inline_small_function_p): Use O2 bounds.
10554 (edge_badness): LIkewise.
10555 * opts.c (default_options): Add OPT_finline_functions.
10556 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10557 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10558 New parameters.
10559 * doc/invoke.texi (-finline-functions): Update documentation.
10560 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10561 inline-min-speedup-O2): Document.
10562 (early-inlining-insns-O2): Simplify docs.
10563
10564 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10565
10566 PR rtl-optimization/87047
10567 * ifcvt.c (average_cost): New static function. Use it...
10568 (noce_process_if_block): ... here.
10569
10570 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10571
10572 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10573 * config/rs6000/rs6000-string.c (expand_block_move): Add
10574 might_overlap parm.
10575 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10576 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10577
10578 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10579
10580 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10581 (expand_builtin_memcpy): Use might_overlap parm.
10582 (expand_builtin_mempcpy_args): Use might_overlap parm.
10583 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10584 (expand_builtin_memory_copy_args): Add might_overlap parm.
10585 * expr.c (emit_block_move_via_cpymem): Rename to
10586 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10587 or movmem optab as appropriate.
10588 (emit_block_move_hints): Add might_overlap parm, do the right
10589 thing for might_overlap==true.
10590 * expr.h (emit_block_move_hints): Update prototype.
10591
10592 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10593
10594 * tree-eh.h (unsplit_eh_edges): Declare.
10595 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10596 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10597 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10598 (struct store_immediate_info): Add lp_nr field.
10599 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10600 initialize lp_nr with it.
10601 (struct merged_store_group): Add lp_nr and only_constants fields.
10602 (merged_store_group::merged_store_group): Initialize them.
10603 (merged_store_group::can_be_merged_into): Deal with them.
10604 (pass_store_merging): Rename terminate_and_release_chain into
10605 terminate_and_process_chain.
10606 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10607 renaming and remove useless assertions.
10608 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10609 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10610 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10611 instead of always recomputing it and compare lp_nr.
10612 (imm_store_chain_info::output_merged_store): If the group is in an
10613 active EH region, register new stores if they can throw. Moreover,
10614 if the insertion has created new basic blocks, adjust the PHI nodes
10615 of the post landing pad.
10616 (imm_store_chain_info::output_merged_stores): If the original stores
10617 are in an active EH region, deregister them.
10618 (lhs_valid_for_store_merging_p): Prettify.
10619 (adjust_bit_pos): New function extracted from...
10620 (mem_valid_for_store_merging): ...here. Use it for the base address
10621 and also for the offset if it is the addition of a constant.
10622 (lp_nr_for_store): New function.
10623 (pass_store_merging::process_store): Change return type to bool.
10624 Call lp_nr_for_store to initialize the store info. Propagate the
10625 return status of various called functions to the return value.
10626 (store_valid_for_store_merging_p): New predicate.
10627 (enum basic_block_status): New enumeration.
10628 (get_status_for_store_merging): New function.
10629 (pass_store_merging::execute): If the function can throw and catch
10630 non-call exceptions, unsplit the EH edges on entry and clean up the
10631 CFG on exit if something changed. Call get_status_for_store_merging
10632 for every basic block and keep the chains open across basic blocks
10633 when possible. Terminate and process open chains at the end, if any.
10634
10635 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10636
10637 * reginfo.c (globalize_reg): Fix shadowed variable in
10638 function_abis walk.
10639
10640 2019-10-02 Martin Jambor <mjambor@suse.cz>
10641
10642 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10643 do not compute some stuff when set.
10644 (cgraph_node::create_edge): Likewise.
10645 (cgraph_node::create_indirect_edge): Renamed last parameter to
10646 coning_p and flipped its meaning, don't even calculate
10647 inline_failed when set.
10648 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10649 (symbol_table::::create_edge): Likewise.
10650 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10651 the default value.
10652 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10653 call graph edge creating functions.
10654
10655 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10656
10657 PR c++/91222
10658 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10659 namespace types.
10660
10661 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10662
10663 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10664
10665 2019-10-02 Richard Biener <rguenther@suse.de>
10666
10667 * tree-vectorizer.h (vect_transform_reduction): Declare.
10668 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10669 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10670 stmt transform to ...
10671 (vect_transform_reduction): ... this.
10672
10673 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10674
10675 * omp-low.c (lower_omp_target): Dereference optional argument
10676 to work with the right pointer.
10677
10678 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10679
10680 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10681 false.
10682 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10683 * langhooks.h (omp_is_optional_argument): New hook.
10684 * omp-general.c (omp_is_optional_argument): New.
10685 * omp-general.h (omp_is_optional_argument): New declaration.
10686 * omp-low.c (lower_omp_target): Create temporary for received value
10687 and take the address for new_var if the original variable was a
10688 DECL_BY_REFERENCE. Use size of referenced object when a
10689 pass-by-reference optional argument used as argument to firstprivate.
10690
10691 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10692
10693 PR tree-optimization/91940
10694 * tree-vect-patterns.c: Include tree-vector-builder.h and
10695 vec-perm-indices.h.
10696 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10697 unpromoting the argument back to uint16_t, or by converting into a
10698 rotate, or into shifts plus ior.
10699
10700 2019-10-02 Richard Biener <rguenther@suse.de>
10701
10702 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10703 New.
10704 (vect_transform_cycle_phi): Declare.
10705 * tree-vect-stmts.c (vect_transform_stmt): Call
10706 vect_transform_cycle_phi.
10707 * tree-vect-loop.c (vectorizable_reduction): Split out
10708 PHI transformation stage to ...
10709 (vect_transform_cycle_phi): ... here.
10710
10711 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10712
10713 PR middle-end/91957
10714 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10715 eliminable registers.
10716 (make_hard_regno_live): Likewise, and don't make them live.
10717
10718 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10719
10720 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10721 Call pp_emit_prefix.
10722 (layout::print_source_line): Likewise.
10723 (layout::start_annotation_line): Likewise.
10724 (diagnostic_show_locus): Remove call to temporarily clear the
10725 prefix.
10726 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10727 interaction of pp_set_prefix with rulers and fix-it hints.
10728 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10729 prefix when calling diagnostic_show_locus, rather than destroying
10730 it afterwards.
10731 (print_parseable_fixits): Temporarily clear prefix.
10732 * pretty-print.c (pp_format): Save and restore line_length, rather
10733 than assuming it is zero.
10734 (pp_output_formatted_text): Remove assertion that line_length is
10735 zero.
10736
10737 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10738
10739 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10740 Rename to ...
10741 (nonoverlapping_refs_since_match_p): ... this; handle also
10742 ARRAY_REFs.
10743 (alias_stats): Update stats.
10744 (dump_alias_stats): Likewise.
10745 (cheap_array_ref_low_bound): New function.
10746 (aliasing_matching_component_refs_p): Add partial_overlap
10747 argument;
10748 pass it to nonoverlapping_refs_since_match_p.
10749 (aliasing_component_refs_walk): Update call of
10750 aliasing_matching_component_refs_p
10751 (nonoverlapping_array_refs_p): New function.
10752 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10753 indirect_refs_may_alias_p): Update calls of
10754 nonoverlapping_refs_since_match_p.
10755
10756 2019-10-01 Maya Rashish <coypu@sdf.org>
10757
10758 PR target/85401
10759 * ira-color.c (allocno_copy_cost_saving): Call
10760 ira_init_register_move_cost_if_necessary.
10761
10762 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10763
10764 * Makefile.in (gnat_install_lib): New variable.
10765 * configure.ac: Substitute it.
10766 * configure: Regenerate.
10767
10768 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10769
10770 PR lto/91222
10771 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10772 is matched with non-C++ type
10773
10774 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10775
10776 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10777 after local CSE.
10778
10779 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10780
10781 * doc/invoke.texi (early-inlining-insns-O2): Document.
10782 (early-inlining-insns): Update.
10783 * params.def (early-inlining-insns-O2): New bound.
10784 (early-inlining-insns): Update docs.
10785 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10786
10787 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10788
10789 PR target/88562
10790 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10791 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10792 a memory access insn.
10793
10794 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10795
10796 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10797 vpmsumd.
10798
10799 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10800
10801 PR target/77918
10802 * config/s390/s390.c (s390_expand_vec_compare): Use
10803 gen_vec_cmpordered and gen_vec_cmpunordered.
10804 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10805 vec_unordered): Delete.
10806 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10807 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10808 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10809 (vec_cmp<code>): Generic dispatcher.
10810
10811 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10812
10813 PR target/77918
10814 * config/s390/vector.md (V_HW): Add V1TI in order to make
10815 vcond$a$b generate vcondv1tiv1tf.
10816
10817 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10818
10819 PR rtl-optimization/91948
10820 * ira-build.c (ira_create_allocno): Initialize
10821 ALLOCNO_CROSSED_CALLS_ABIS.
10822 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10823 than regno to ira_need_caller_save_p.
10824
10825 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10826
10827 * config/i386/i386-options.c
10828 (ix86_recompute_optlev_based_flags): New, moved out of...
10829 (ix86_option_override_internal): ... this. Call it.
10830 (ix86_override_options_after_change): Call it here too.
10831
10832 PR debug/91507
10833 * dwarf2out.c (override_type_for_decl_p): New.
10834 (gen_variable_die): Use it.
10835
10836 2019-10-01 Richard Biener <rguenther@suse.de>
10837
10838 * tree-vect-loop.c (vectorizable_reduction): Move variables
10839 to where they are used.
10840
10841 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10842
10843 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10844 (build_def_use): Use PC instead of CC0 in a comment.
10845
10846 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10847
10848 * rtl.def (CLOBBER_HIGH): Delete.
10849 * doc/rtl.texi (clobber_high): Remove documentation.
10850 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10851 (reg_is_clobbered_by_clobber_high): Delete.
10852 (gen_hard_reg_clobber_high): Likewise.
10853 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10854 * cfgexpand.c (expand_gimple_stmt): Likewise.
10855 * combine-stack-adj.c (single_set_for_csa): Likewise.
10856 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10857 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10858 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10859 * cse.c (invalidate_reg): Remove clobber_high parameter.
10860 (invalidate): Update call accordingly.
10861 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10862 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10863 (count_reg_usage, insn_live_p): Likewise.
10864 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10865 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10866 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10867 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10868 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10869 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10870 (mark_nonreg_stores_2): Likewise.
10871 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10872 (df_get_call_refs): Likewise.
10873 * dwarf2out.c (mem_loc_descriptor): Likewise.
10874 * emit-rtl.c (verify_rtx_sharing): Likewise.
10875 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10876 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10877 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10878 * genemit.c (gen_exp, gen_insn): Likewise.
10879 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10880 * haifa-sched.c (haifa_classify_rtx): Likewise.
10881 * ira-build.c (create_insn_allocnos): Likewise.
10882 * ira-costs.c (scan_one_insn): Likewise.
10883 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10884 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10885 * jump.c (mark_jump_label_1): Likewise.
10886 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10887 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10888 handling.
10889 (mark_not_eliminable): Likewise.
10890 * lra-lives.c (process_bb_lives): Likewise.
10891 * lra.c (new_insn_reg): Remove clobber_high parameter.
10892 (collect_non_operand_hard_regs): Likewise. Update call to new
10893 insn_reg. Remove CLOBBER_HIGH handling.
10894 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10895 to collect_non_operand_hard_regs.
10896 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10897 Update call to new_insn_reg.
10898 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10899 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10900 (move2add_note_store): Likewise.
10901 * print-rtl.c (print_pattern): Likewise.
10902 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10903 (if_test_bypass_p): Likewise.
10904 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10905 * reginfo.c (reg_scan_mark_refs): Likewise.
10906 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10907 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10908 (forget_old_reloads_1): Likewise.
10909 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10910 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10911 (dbr_schedule): Likewise.
10912 * resource.c (update_live_status, mark_referenced_resources)
10913 (mark_set_resources): Likewise.
10914 * rtl.c (copy_rtx): Likewise.
10915 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10916 (note_pattern_stores): Likewise.
10917 (reg_is_clobbered_by_clobber_high): Delete.
10918 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10919 CLOBBER_HIGH handling.
10920
10921 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10922
10923 PR target/91452
10924 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10925 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10926 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10927 Handle ARM_PCS_TLSDESC.
10928 (aarch64_tlsdesc_abi_id): New function.
10929 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10930 rtx instead of a list of clobbers and clobber_highs.
10931 (tlsdesc_small_<mode>): Update accordingly.
10932
10933 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10934
10935 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10936 extra callee_abi argument.
10937 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10938 Insert a CALLEE_ABI unspec into the call pattern as the second
10939 element in the PARALLEL.
10940 (aarch64_simd_call_p): Delete.
10941 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10942 the new CALLEE_ABI element of the PARALLEL.
10943 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10944 from the function type, if given.
10945 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10946 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10947 when passed the function_arg_info end marker.
10948 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10949 final argument of gen_sibcall.
10950 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10951 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10952 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10953 pattern.
10954 (call_value): Likewise operand 3.
10955 (sibcall): Likewise operand 2. Place the unspec before rather than
10956 after the return.
10957 (sibcall_value): Likewise operand 3.
10958 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10959 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10960 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10961 constraint strings.
10962 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10963
10964 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10965
10966 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10967 choose_hard_reg_mode.
10968 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10969
10970 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10971
10972 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10973 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10974 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10975
10976 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10977
10978 * diagnostic-show-locus.c (line_label::line_label): Initialize
10979 m_has_vbar.
10980 (line_label::comparator): Reverse the sort order by m_state_idx,
10981 so that when the list is walked backwards the labels appear in
10982 order of insertion into the rich_location.
10983 (line_label::m_has_vbar): New field.
10984 (layout::print_any_labels): When dealing with multiple labels at
10985 the same line and column, only print vertical bars for the one
10986 with the highest label_line.
10987 (selftest::test_one_liner_labels): Update test for multiple labels
10988 to expect the labels to be in the order of insertion into the
10989 rich_location. Add a test for many such labels, where the column
10990 numbers are out-of-order relative to the insertion order.
10991
10992 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10993
10994 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10995 (ix86_frame::expensive_count): Likewise.
10996 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10997 of use_fast_prologue_epilogue robust against incidental changes
10998 in function size.
10999
11000 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11001
11002 PR target/77918
11003 * config/s390/vector.md (vec_unordered<mode>): Call
11004 gen_vec_ordered<mode>.
11005
11006 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11007
11008 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11009 New pattern for ASRD.
11010 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11011 * internal-fn.def (IFN_DIV_POW2): New internal function.
11012 * optabs.def (sdiv_pow2_optab): New optab.
11013 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11014 Modify pattern to support new operation.
11015 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11016 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11017 Document new target selector.
11018
11019 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11020
11021 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11022 to test whether we're compiling a vector PCS function and to test
11023 whether the function needs to save a particular register.
11024 Remove the vector PCS handling of df_set_regs_ever_live.
11025 (aarch64_components_for_bb): Use crtl->abi to test whether
11026 the function needs to save a particular register.
11027 (aarch64_process_components): Use crtl->abi to test whether
11028 we're compiling a vector PCS function.
11029 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11030 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11031
11032 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11033
11034 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11035 Delete.
11036 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11037 whether the block calls a function that clobbers more registers
11038 than the current function is allowed to.
11039 (aarch64_use_simple_return_insn_p): Delete.
11040 * config/aarch64/aarch64.md (simple_return): Remove condition.
11041
11042 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11043
11044 * function-abi.h (function_abi_aggregator): New class.
11045 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11046 function.
11047 * ira.c (update_equiv_regs_prescan): New function. Call
11048 set_paradoxical_subreg here rather than...
11049 (update_equiv_regs): ...here.
11050 (ira): Call update_equiv_regs_prescan.
11051
11052 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11053
11054 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11055 IN_TARGET_CODE.
11056 (call_used_or_fixed_regs): Likewise.
11057 (call_used_or_fixed_reg_p): Likewise.
11058 * reginfo.c (regs_invalidated_by_call): New macro.
11059
11060 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11061
11062 * shrink-wrap.c: Include function-abi.h.
11063 (requires_stack_frame_p): Use crtl->abi to test whether the
11064 current function can use a register without saving it first.
11065
11066 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11067
11068 * sel-sched-ir.h (_def::crosses_call): Replace with...
11069 (_def::crossed_call_abis): ..this new field.
11070 (def_list_add): Take a mask of ABIs instead of a crosses_call
11071 boolean.
11072 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11073 of _def accordingly.
11074 * sel-sched.c: Include function-abi.h.
11075 (hard_regs_data::regs_for_call_clobbered): Delete.
11076 (reg_rename::crosses_call): Replace with...
11077 (reg_rename::crossed_call_abis): ...this new field.
11078 (fur_static_params::crosses_call): Replace with...
11079 (fur_static_params::crossed_call_abis): ...this new field.
11080 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11081 (init_hard_regs_data): Use crtl->abi to test which registers the
11082 current function would need to save before it uses them.
11083 (mark_unavailable_hard_regs): Update handling of call-clobbered
11084 registers, using call_clobbers_in_region to find out which registers
11085 might be call-clobbered (but without taking -fipa-ra into account
11086 for now). Remove separate handling of partially call-clobbered
11087 registers.
11088 (verify_target_availability): Use crossed_call_abis instead of
11089 crosses_call.
11090 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11091 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11092
11093 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11094
11095 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11096 function to test whether a register is fully or partly clobbered.
11097
11098 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11099
11100 * rtlanal.c: Include function-abi.h.
11101 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11102 function and clobbers_reg_p to test whether the register
11103 is call-clobbered.
11104 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11105 to get the ABI of the called function and full_reg_clobbers to
11106 get the set of fully call-clobbered registers. Warn about the
11107 pitfalls of using this mode.
11108
11109 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11110
11111 * reload.c: Include function-abi.h.
11112 (find_equiv_reg): Use clobbers_reg_p to test whether either
11113 of the equivalent registers is clobbered by a call.
11114 * reload1.c: Include function-abi.h.
11115 (reg_reloaded_call_part_clobbered): Delete.
11116 (reload): Use crtl->abi to test which registers would need
11117 saving in the prologue before use.
11118 (find_reg): Likewise.
11119 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11120 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11121 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11122
11123 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11124
11125 * regrename.h (du_head::call_clobber_mask): New field.
11126 (du_head::need_caller_save_reg): Replace with...
11127 (du_head::call_abis): ...this new field.
11128 * regrename.c: Include function-abi.h.
11129 (call_clobbered_in_chain_p): New function.
11130 (check_new_reg_p): Use crtl->abi when deciding whether a register
11131 is free for use after RA. Use call_clobbered_in_chain_p to test
11132 whether a candidate register would be clobbered by a call.
11133 (find_rename_reg): Don't add call-clobber conflicts here.
11134 (rename_chains): Check call_abis instead of need_caller_save_reg.
11135 (merge_chains): Update for changes to du_head.
11136 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11137 target. Record the ABI identifier in call_abis and the set of
11138 fully or partially clobbered registers in call_clobber_mask.
11139 Add fully-clobbered registers to hard_conflicts here rather
11140 than in find_rename_reg.
11141 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11142 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11143 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11144 function-abi.h.
11145 * config/c6x/c6x.c: Likewise.
11146
11147 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11148
11149 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11150 mode of the register when deciding whether it is no longer
11151 available after a call.
11152
11153 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11154
11155 * recog.c: Include function-abi.h.
11156 (peep2_find_free_register): Use crtl->abi when deciding whether
11157 a register is free for use after RA.
11158
11159 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11160
11161 * postreload-gcse.c: Include regs.h and function-abi.h.
11162 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11163 call insn target. Conservatively assume that partially-clobbered
11164 registers are altered.
11165
11166 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11167
11168 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11169 when deciding whether a register is free for use after RA.
11170 (reload_combine): Remove unnecessary use of fixed_reg_set.
11171 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11172 call insn target. Use reg_mode when testing whether a register
11173 is no longer available.
11174
11175 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11176
11177 * target.def (return_call_with_max_clobbers): Delete.
11178 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11179 * doc/tm.texi: Regenerate.
11180 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11181 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11182 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11183 (lra_reg::call_insn): Delete.
11184 * lra.c: Include function-abi.h.
11185 (initialize_lra_reg_info_element): Don't initialize the fields above.
11186 (lra): Use crtl->abi to test whether the current function needs to
11187 save a register in the prologue. Remove special pre-inheritance
11188 lra_create_live_ranges pass for flag_ipa_ra.
11189 * lra-assigns.c: Include function-abi.h
11190 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11191 function needs to save a register in the prologue.
11192 (lra_assign): Assert that registers aren't allocated to a
11193 conflicting register, rather than checking only for overlaps
11194 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11195 and for registers that are not live across a call.
11196 * lra-constraints.c (last_call_for_abi): New variable.
11197 (full_and_partial_call_clobbers): Likewise.
11198 (setup_next_usage_insn): Remove the register from
11199 full_and_partial_call_clobbers.
11200 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11201 whether the register needs a caller save.
11202 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11203 of call_used_or_fixed_regs.
11204 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11205 full_and_partial_call_clobbers.
11206 * lra-lives.c (check_pseudos_live_through_calls): Replace
11207 last_call_used_reg_set and call_insn arguments with an abi argument.
11208 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11209 as the set of conflicting registers.
11210 (calls_have_same_clobbers_p): Delete.
11211 (process_bb_lives): Track the ABI of the last call instead of an
11212 insn/HARD_REG_SET pair. Update calls to
11213 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11214 the set of registers that could be clobbered by an EH edge.
11215 Include partially-clobbered as well as fully-clobbered registers.
11216 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11217 * lra-remat.c: Include function-abi.h.
11218 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11219 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11220 registers and bitmap_view to combine them into dead_regs.
11221 (call_used_input_regno_present_p): Take a function_abi argument
11222 and use it to test whether a register is call-clobbered.
11223 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11224 call insn target. Update tje call to call_used_input_regno_present_p.
11225 (do_remat): Likewise.
11226 (lra_remat): Remove the initialization of call_used_regs_arr_len
11227 and call_used_regs_arr.
11228
11229 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11230
11231 * loop-iv.c: Include regs.h and function-abi.h.
11232 (simplify_using_initial_values): Use insn_callee_abi to get the
11233 ABI of the call insn target. Conservatively assume that
11234 partially-clobbered registers are altered.
11235
11236 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11237
11238 * function-abi.h (call_clobbers_in_region): Declare.
11239 (call_clobbered_in_region_p): New function.
11240 * function-abi.cc (call_clobbers_in_region): Likewise.
11241 * ira-int.h: Include function-abi.h.
11242 (ira_allocno::crossed_calls_abis): New field.
11243 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11244 (ira_need_caller_save_regs): New function.
11245 (ira_need_caller_save_p): Likewise.
11246 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11247 of call_used_or_fixed_regs.
11248 (do_reload): Use crtl->abi to test whether the current function
11249 needs to save a register in the prologue. Count registers that
11250 need to be saved rather than registers that don't.
11251 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11252 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11253 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11254 (propagate_some_info_from_allocno): Likewise.
11255 (copy_info_to_removed_store_destinations): Likewise.
11256 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11257 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11258 (ira_build): Use ira_need_caller_save_regs instead of
11259 call_used_or_fixed_regs.
11260 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11261 whether the current function would need to save a register
11262 before using it.
11263 (calculate_spill_cost): Likewise.
11264 (allocno_reload_assign): Use ira_need_caller_save_regs and
11265 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11266 * ira-conflicts.c (ira_build_conflicts): Use
11267 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11268 as the set of call-clobbered registers. Remove the
11269 call_used_or_fixed_regs mask from the calculation of
11270 temp_hard_reg_set and mask its use instead. Remove special
11271 handling of partially-clobbered registers.
11272 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11273 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11274 calculate the set of conflicting registers for calls that
11275 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11276 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11277 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11278 Use eh_edge_abi to calculate the set of registers that could
11279 be clobbered by an EH edge. Include partially-clobbered as
11280 well as fully-clobbered registers.
11281
11282 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11283
11284 * haifa-sched.c: Include function-abi.h.
11285 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11286 the function would need to save a register before using it.
11287
11288 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11289
11290 * gcse.c: Include function-abi.h.
11291 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11292 the call insn target. Invalidate partially call-clobbered
11293 registers as well as fully call-clobbered ones.
11294
11295 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11296
11297 * function.c (aggregate_value_p): Work out which ABI the
11298 function is using before testing which registers are at least
11299 partly preserved by a call.
11300
11301 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11302
11303 * early-remat.c: Include regs.h and function-abi.h.
11304 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11305 registers here.
11306 (early_remat::restrict_remat_for_unavail_regs): New function.
11307 (early_remat::restrict_remat_for_call): Likewise.
11308 (early_remat::process_block): Before calling emit_remat_insns
11309 for a previous call in the block, invalidate any candidates
11310 that would clobber call-preserved registers.
11311 (early_remat::emit_remat_insns_for_block): Likewise for the
11312 final call in a block. Do the same thing for live-in registers
11313 when calling emit_remat_insns at the head of a block.
11314
11315 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11316
11317 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11318 whether the current function needs to save at least part of a
11319 register before using it.
11320 (df_get_exit_block_use_set): Likewise for epilogue restores.
11321
11322 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11323
11324 * df-problems.c: Include regs.h and function-abi.h.
11325 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11326 sparse_invalidated_by_eh and dense_invalidated_by_call to
11327 dense_invalidated_by_eh.
11328 (df_print_bb_index): Update accordingly.
11329 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11330 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11331 that are clobbered by an EH edge. Clobber partially-clobbered
11332 registers as well as fully-clobbered ones.
11333 (df_md_confluence_n): Likewise.
11334 (df_rd_local_compute): Likewise. Update for changes to
11335 df_rd_problem_data.
11336 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11337 of registers that are clobbered by an EH edge. Includde partially-
11338 clobbered registers as well as fully-clobbered ones.
11339
11340 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11341
11342 * cselib.c (cselib_process_insn): If we know what mode a
11343 register was set in, check whether it is clobbered in that
11344 mode by a call. Only fall back to reg_raw_mode if that fails.
11345
11346 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11347
11348 * cse.c: Include regs.h and function-abi.h.
11349 (invalidate_for_call): Take the call insn as an argument.
11350 Use insn_callee_abi to get the ABI of the call and invalidate
11351 partially clobbered registers as well as fully clobbered ones.
11352 (cse_insn): Update call accordingly.
11353
11354 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11355
11356 * combine.c: Include function-abi.h.
11357 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11358 of the target of call insns. Invalidate partially-clobbered
11359 registers as well as fully-clobbered ones.
11360
11361 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11362
11363 * cfgloopanal.c: Include regs.h and function-abi.h.
11364 (init_set_costs): Use default_function_abi to test whether
11365 a general register is call-clobbered.
11366
11367 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11368
11369 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11370 instead of the call-clobbered sets.
11371
11372 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11373
11374 * caller-save.c (setup_save_areas): Remove redundant |s of
11375 fixed_reg_set.
11376 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11377 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11378 value is useful.
11379
11380 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11381
11382 * rtl.h (predefined_function_abi): Declare.
11383 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11384 instead of a boolean call_save flag.
11385 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11386 accordingly.
11387 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11388 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11389 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11390 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11391 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11392 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11393 * reginfo.c (init_reg_modes_target): Likewise.
11394 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11395 instead of a boolean call_save flag.
11396 * targhooks.c: Include function-abi.h.
11397 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11398 using eh_edge_abi to choose the mode.
11399
11400 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11401
11402 * target.def (hard_regno_call_part_clobbered): Take an ABI
11403 identifier instead of an rtx_insn.
11404 * doc/tm.texi: Regenerate.
11405 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11406 (hook_bool_uint_uint_mode_false): New function.
11407 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11408 (hook_bool_uint_uint_mode_false): New function.
11409 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11410 Take an ABI identifier instead of an rtx_insn.
11411 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11412 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11413 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11414 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11415 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11416 Likewise.
11417 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11418 * cselib.c: Include function-abi.h.
11419 (cselib_process_insn): Update call to
11420 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11421 to get the appropriate ABI identifier.
11422 * function-abi.cc (predefined_function_abi::initialize): Update call
11423 to targetm.hard_regno_call_part_clobbered.
11424 * ira-conflicts.c (ira_build_conflicts): Likewise.
11425 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11426 * lra-constraints.c: Include function-abi.h.
11427 (need_for_call_save_p): Update call to
11428 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11429 to get the appropriate ABI identifier.
11430 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11431 * regcprop.c (copyprop_hardreg_forward_1): Update call
11432 to targetm.hard_regno_call_part_clobbered.
11433 * reginfo.c (choose_hard_reg_mode): Likewise.
11434 * regrename.c (check_new_reg_p): Likewise.
11435 * reload.c (find_equiv_reg): Likewise.
11436 * reload1.c (emit_reload_insns): Likewise.
11437 * sched-deps.c: Include function-abi.h.
11438 (deps_analyze_insn): Update call to
11439 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11440 to get the appropriate ABI identifier.
11441 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11442 call to targetm.hard_regno_call_part_clobbered.
11443 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11444
11445 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11446
11447 * config/i386/i386.c: Include function-abi.h.
11448 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11449 if they preserve some 256-bit or 512-bit SSE registers.
11450
11451 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11452
11453 * target.def (insn_callee_abi): New hook.
11454 (remove_extra_call_preserved_regs): Delete.
11455 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11456 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11457 * doc/tm.texi: Regenerate.
11458 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11459 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11460 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11461 insn argument.
11462 (aarch64_remove_extra_call_preserved_regs): Delete.
11463 (aarch64_insn_callee_abi): New function.
11464 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11465 (TARGET_INSN_CALLEE_ABI): New macro.
11466 * rtl.h (get_call_fndecl): Declare.
11467 (cgraph_rtl_info): Fix formatting. Tweak comment for
11468 function_used_regs. Remove function_used_regs_valid.
11469 * rtlanal.c (get_call_fndecl): Moved from final.c
11470 * function-abi.h (insn_callee_abi): Declare.
11471 (target_function_abi_info): Mention insn_callee_abi.
11472 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11473 way to get_call_reg_set_usage did.
11474 (insn_callee_abi): New function.
11475 * regs.h (get_call_reg_set_usage): Delete.
11476 * final.c: Include function-abi.h.
11477 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11478 function_used_regs before the main loop rather than afterwards.
11479 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11480 if function_used_regs ends up not being useful.
11481 (get_call_fndecl): Move to rtlanal.c
11482 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11483 * caller-save.c: Include function-abi.h.
11484 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11485 instead of get_call_reg_set_usage.
11486 * cfgcleanup.c: Include function-abi.h.
11487 (old_insns_match_p): Use insn_callee_abi instead of
11488 get_call_reg_set_usage.
11489 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11490 a tree.
11491 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11492 function_used_regs.
11493 * df-scan.c: Include function-abi.h.
11494 (df_get_call_refs): Use insn_callee_abi instead of
11495 get_call_reg_set_usage.
11496 * ira-lives.c: Include function-abi.h.
11497 (process_bb_node_lives): Use insn_callee_abi instead of
11498 get_call_reg_set_usage.
11499 * lra-lives.c: Include function-abi.h.
11500 (process_bb_lives): Use insn_callee_abi instead of
11501 get_call_reg_set_usage.
11502 * postreload.c: Include function-abi.h.
11503 (reload_combine): Use insn_callee_abi instead of
11504 get_call_reg_set_usage.
11505 * regcprop.c: Include function-abi.h.
11506 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11507 get_call_reg_set_usage.
11508 * resource.c: Include function-abi.h.
11509 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11510 instead of get_call_reg_set_usage.
11511 * var-tracking.c: Include function-abi.h.
11512 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11513 get_call_reg_set_usage.
11514
11515 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11516
11517 * target.def (fntype_abi): New target hook.
11518 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11519 * doc/tm.texi: Regenerate.
11520 * target.h (predefined_function_abi): Declare.
11521 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11522 if defined.
11523 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11524 * config/aarch64/aarch64.c: Include function-abi.h.
11525 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11526 (TARGET_FNTYPE_ABI): Define.
11527
11528 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11529
11530 * Makefile.in (OBJS): Add function-abi.o.
11531 (GTFILES): Add function-abi.h.
11532 * function-abi.cc: New file.
11533 * function-abi.h: Likewise.
11534 * emit-rtl.h (rtl_data::abi): New field.
11535 * function.c: Include function-abi.h.
11536 (prepare_function_start): Initialize crtl->abi.
11537 * read-rtl-function.c: Include regs.h and function-abi.h.
11538 (read_rtl_function_body): Initialize crtl->abi.
11539 (read_rtl_function_body_from_file_range): Likewise.
11540 * reginfo.c: Include function-abi.h.
11541 (init_reg_sets_1): Initialize default_function_abi.
11542 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11543 when making a register global.
11544 * target-globals.h (this_target_function_abi_info): Declare.
11545 (target_globals::function_abi_info): New field.
11546 (restore_target_globals): Copy it.
11547 * target-globals.c: Include function-abi.h.
11548 (default_target_globals): Initialize the function_abi_info field.
11549 (target_globals): Allocate it.
11550 (save_target_globals): Free it.
11551
11552 2019-09-30 Nick Clifton <nickc@redhat.com>
11553
11554 PR target/85978
11555 * config/frv/frv.c (frv_register_move_cost): Add break statements
11556 to avoid falling through to the wrong cases. Tidy code.
11557
11558 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11559
11560 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11561 For multi-registers modes, test how big each register part is.
11562
11563 2019-09-30 Nick Clifton <nickc@redhat.com>
11564
11565 PR target/59205
11566 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11567 (TARGET_ASM_SELECT_SECTION): Remove definition.
11568 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11569
11570 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11571
11572 * emit-rtl.c (init_raw_REG): New function.
11573 (gen_raw_REG): Use init_raw_REG.
11574 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11575 macros.
11576 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11577 * rtl.h (rtx_init): New function.
11578 (rtx_alloca): New function.
11579 (init_raw_REG): New function.
11580 (alloca_raw_REG): New macro.
11581
11582 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11583
11584 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11585 (pcrel_local_address): Replace pcrel_address predicate, use the
11586 new function address_to_insn_form.
11587 (pcrel_external_address): Replace with new implementation using
11588 address_to_insn_form..
11589 (prefixed_mem_operand): Delete predicate which is now unused.
11590 (pcrel_external_mem_operand): Delete predicate which is now
11591 unused.
11592 * config/rs6000/rs6000-protos.h (enum insn_form): New
11593 enumeration.
11594 (enum non_prefixed_form): New enumeration.
11595 (address_to_insn_form): New declaration.
11596 (prefixed_load_p): New declaration.
11597 (prefixed_store_p): New declaration.
11598 (prefixed_paddi_p): New declaration.
11599 (rs6000_asm_output_opcode): New declaration.
11600 (rs6000_final_prescan_insn): Move declaration and update calling
11601 signature.
11602 (address_is_prefixed): New helper inline function.
11603 * config/rs6000/rs6000.c(print_operand_address): Check for either
11604 PC-relative local symbols or PC-relative external symbols.
11605 (rs6000_emit_move): Support loading PC-relative addresses.
11606 (mode_supports_prefixed_address_p): Delete, no longer used.
11607 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11608 (address_to_insn_form): New function to decode an address format.
11609 (reg_to_non_prefixed): New function to identify what the
11610 non-prefixed memory instruction format is for a register.
11611 (prefixed_load_p): New function to identify prefixed loads.
11612 (prefixed_store_p): New function to identify prefixed stores.
11613 (prefixed_paddi_p): New function to identify prefixed load
11614 immediates.
11615 (next_insn_prefixed_p): New static state variable.
11616 (rs6000_final_prescan_insn): New function to determine if an insn
11617 uses a prefixed instruction.
11618 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11619 prefixed instruction.
11620 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11621 (ASM_OUTPUT_OPCODE): New target hook.
11622 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11623 prefixed instructions.
11624 (prefixed_length): New insn attribute for the size of prefixed
11625 instructions.
11626 (non_prefixed_length): New insn attribute for the size of
11627 non-prefixed instructions.
11628 (pcrel_local_addr): New insn to load up a local PC-relative
11629 address.
11630 (pcrel_extern_addr): New insn to load up an external PC-relative
11631 address.
11632 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11633 GPR and loading a 128-bit floating point type to a GPR.
11634
11635 2019-09-30 Richard Biener <rguenther@suse.de>
11636
11637 * gimple.c (gimple_get_lhs): For PHIs return the result.
11638 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11639 SLP instance as argument.
11640 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11641 double-reduction PHIs with vectorizable_lc_phi.
11642 (vect_analyze_loop_operations): Adjust.
11643 (vect_create_epilog_for_reduction): Remove all code not dealing
11644 with reduction LC PHI or epilogue generation.
11645 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11646 for live stmts of reductions.
11647 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11648 do not handle defs that are not vect_internal_def.
11649 (can_vectorize_live_stmts): Adjust.
11650 (vect_analyze_stmt): When the vectorized stmt defined a value
11651 used on backedges adjust the backedge uses of vectorized PHIs.
11652
11653 2019-09-30 Martin Jambor <mjambor@suse.cz>
11654
11655 PR ipa/91853
11656 * tree-inline.c (force_value_to_type): New function.
11657 (setup_one_parameter): Use force_value_to_type to convert type.
11658 * tree-inline.c (force_value_to_type): Declare.
11659 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11660 with register type mismatches.
11661
11662 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11663
11664 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11665 32-bit PowerPC.
11666 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11667 * config/rs6000/t-freebsd64: Make use of the above define and build
11668 the 32-bit libraries with secure-plt.
11669
11670 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11671
11672 PR target/91931
11673 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11674 gen_int_mode instead of GEN_INT.
11675
11676 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11677
11678 * config/darwin.c (gen_macho_low): Amend to include the mode
11679 argument.
11680 (machopic_indirect_data_reference): Amend gen_macho_low call
11681 to include mode argument
11682 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11683 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11684 the macho_high expander and two define_insn entries.
11685
11686 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11687
11688 PR bootstrap/90543
11689 * optc-save-gen.awk: Fix up printing string option differences.
11690
11691 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11692
11693 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11694 vec_perm cost to 1 for non-Power7 VSX architectures.
11695
11696 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11697
11698 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11699 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11700 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11701
11702 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11703
11704 * config/darwin.c (gen_macho_high): Amend to include the mode
11705 argument.
11706 (machopic_indirect_data_reference): Amend gen_macho_high call
11707 to include mode argument.
11708 (machopic_legitimize_pic_address): Likewise.
11709 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11710 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11711 the macho_high expander and two define_insn entries.
11712
11713 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11714
11715 PR target/86805
11716 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11717
11718 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11719
11720 PR target/80672
11721 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11722 std::string::compare instead of std::string::find.
11723
11724 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11725
11726 * configure: Regenerate.
11727
11728 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11729
11730 PR middle-end/91920
11731 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11732 variables as shared.
11733
11734 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11735
11736 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11737 replaces the expander and two define_insn entries.
11738 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11739 call.
11740 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11741
11742 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11743
11744 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11745 (fibonacci_heap::nodes): Likewise.
11746 (fibonacci_heap::min_key): Likewise.
11747 (fibonacci_heap::min): Likewise.
11748
11749 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11750
11751 * cgraph.c (cgraph_node::get_fun): Make const.
11752 * cgraph.h (cgraph_node::get_fun): Likewise.
11753
11754 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11755
11756 PR target/91919
11757 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11758 of SImode MULT.
11759
11760 2019-09-27 Richard Biener <rguenther@suse.de>
11761
11762 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11763 (STMT_VINFO_REDUC_FN): Likewise.
11764 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11765 STMT_VINFO_REDUC_FN.
11766 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11767 for condition reductions.
11768 (vect_create_epilog_for_reduction): Compute all required state
11769 from the stmt to be vectorized.
11770 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11771 invocation and remove then dead code. For single def-use chains
11772 record only a single vector stmt.
11773
11774 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11775
11776 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11777 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11778 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11779 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11780 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11781 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11782 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11783 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11784 (aarch64_general_builtin_rsqrt): Declare.
11785 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11786 New function.
11787 (aarch64_mangle_builtin_type): Rename to...
11788 (aarch64_general_mangle_builtin_type): ...this.
11789 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11790 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11791 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11792 aarch64_general_add_builtin instead of add_builtin_function.
11793 (aarch64_init_builtins): Rename to...
11794 (aarch64_general_init_builtins): ...this. Use
11795 aarch64_general_add_builtin instead of add_builtin_function.
11796 (aarch64_builtin_decl): Rename to...
11797 (aarch64_general_builtin_decl): ...this and remove the unused
11798 arguments.
11799 (aarch64_expand_builtin): Rename to...
11800 (aarch64_general_expand_builtin): ...this and remove the unused
11801 arguments.
11802 (aarch64_builtin_rsqrt): Rename to...
11803 (aarch64_general_builtin_rsqrt): ...this.
11804 (aarch64_fold_builtin): Rename to...
11805 (aarch64_general_fold_builtin): ...this. Take the function subcode
11806 and return type as arguments. Remove the "ignored" argument.
11807 (aarch64_gimple_fold_builtin): Rename to...
11808 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11809 subcode and gcall as arguments, and return the new function call.
11810 * config/aarch64/aarch64.c (aarch64_init_builtins)
11811 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11812 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11813 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11814 instead of aarch64_builtin_rsqrt.
11815 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11816 instead of aarch64_mangle_builtin_type.
11817
11818 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11819
11820 * target.def (check_builtin_call): New target hook.
11821 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11822 * doc/tm.texi: Regenerate.
11823
11824 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11825
11826 PR tree-optimization/91909
11827 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11828 reduc_index parameter. When handling COND_REDUCTION, make sure
11829 that the reduction phi operand is in the correct arm of the
11830 VEC_COND_EXPR.
11831 (vectorizable_reduction): Pass reduc_index to the above.
11832
11833 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11834
11835 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11836 New combine pattern.
11837
11838 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11839
11840 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11841 loop instruction into new basic block before the loop when basic
11842 block that precedes the loop is empty.
11843
11844 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11845
11846 * function.c (gimplify_parameters): Use build_clobber function.
11847 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11848 * tree-inline.c (expand_call_inline): Likewise.
11849 * tree-sra.c (clobber_subtree): Likewise.
11850 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11851 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11852 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11853 lower_omp_target): Likewise.
11854 * omp-expand.c (expand_omp_for_generic): Likewise.
11855 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11856
11857 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11858
11859 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11860 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11861 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11862 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11863 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11864 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11865 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11866 LD_ELEMREV_V16QI): Use the PURE attribute.
11867
11868 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11869
11870 * config/rs6000/darwin.md: Replace the expanders for
11871 load_macho_picbase and reload_macho_picbase with use of '@'
11872 and <mode> in their respective define_insns.
11873 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11874 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11875 Pmode to gen_load_macho_picbase.
11876 * config/rs6000/rs6000.md: Likewise.
11877
11878 2019-09-25 Richard Biener <rguenther@suse.de>
11879
11880 PR tree-optimization/91896
11881 * tree-vect-loop.c (vectorizable_reduction): The single
11882 def-use cycle optimization cannot apply when there's more
11883 than one pattern stmt involved.
11884
11885 2019-09-26 Richard Biener <rguenther@suse.de>
11886
11887 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11888 loop-closed PHIs that are vect_internal_def.
11889 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11890 Simplify.
11891 (vectorizable_lc_phi): New.
11892 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11893 (vect_transform_stmt): Likewise.
11894 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11895 (vectorizable_lc_phi): Declare.
11896
11897 2019-09-26 Richard Biener <rguenther@suse.de>
11898
11899 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11900 vectorizable_reduction for vect_double_reduction_def.
11901 (vect_transform_loop): Likewise.
11902 (vect_create_epilog_for_reduction): Move double-reduction
11903 PHI creation and preheader argument setting of PHIs ...
11904 (vectorizable_reduction): ... here. Also process
11905 vect_double_reduction_def PHIs, creating the vectorized
11906 PHI nodes, remembering the scalar adjustment computed for
11907 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11908 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11909 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11910 Initialize STMT_VINFO_REDUC_CODE.
11911 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11912 (_stmt_vec_info::reduc_code): Likewise.
11913 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11914 (STMT_VINFO_REDUC_CODE): Likewise.
11915
11916 2019-09-26 Matt Turner <mattst88@gmail.com>
11917
11918 PR driver/69471
11919 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11920 (mtune=): Add Negative(mtune=).
11921 (mcpu=): Add Negative(mcpu=).
11922 * config/arm/arm.opt: Likewise.
11923
11924 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11925
11926 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11927 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11928 Define.
11929 * config/arm/arm_acle.h: Define builtins for the above.
11930 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11931 (simd32_op): Handle the above.
11932 * config/arm/unspecs.md: Define unspecs for the above.
11933
11934 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11935
11936 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11937 (arm_<sup>xtb16): Likewise.
11938 (arm_usada8): Likewise.
11939 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11940 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11941 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11942 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11943 __sxtb16, __uxtab16, __uxtb16): Define.
11944 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11945 * config/arm/unspecs.md: Define unspecs for the above.
11946 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11947 (USXTB16): Likewise.
11948 (simd32_op): New int_attribute.
11949 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11950 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11951
11952 2019-09-26 Martin Jambor <mjambor@suse.cz>
11953
11954 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11955 internal_error.
11956
11957 2019-09-26 Martin Jambor <mjambor@suse.cz>
11958
11959 * ipa-sra.c (process_scan_results): Fix continue condition.
11960
11961 2019-09-26 Martin Liska <mliska@suse.cz>
11962
11963 PR tree-optimization/91885
11964 * tree-vectorizer.c (try_vectorize_loop_1): Add
11965 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11966
11967 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11968
11969 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11970 aarch64_plus_immediate rather than aarch64_uimm12_shift
11971 to test for valid PLUS immediates.
11972
11973 2019-09-25 Martin Jambor <mjambor@suse.cz>
11974
11975 * tree-sra.c (no_accesses_p): Remove.
11976 (no_accesses_representant): Likewise.
11977
11978 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11979
11980 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11981 consistenly.
11982 (vaba_s16): Likewise.
11983 (vaba_s32): Likewise.
11984 (vaba_u8): Likewise.
11985 (vaba_u16): Likewise.
11986 (vaba_u32): Likewise.
11987 (vabal_high_s8): Likewise.
11988 (vabal_high_s16): Likewise.
11989 (vabal_high_s32): Likewise.
11990 (vabal_high_u8): Likewise.
11991 (vabal_high_u16): Likewise.
11992 (vabal_high_u32): Likewise.
11993 (vabal_s8): Likewise.
11994 (vabal_s16): Likewise.
11995 (vabal_s32): Likewise.
11996 (vabal_u8): Likewise.
11997 (vabal_u16): Likewise.
11998 (vabal_u32): Likewise.
11999 (vabaq_s8): Likewise.
12000 (vabaq_s16): Likewise.
12001 (vabaq_s32): Likewise.
12002 (vabaq_u8): Likewise.
12003 (vabaq_u16): Likewise.
12004 (vabaq_u32): Likewise.
12005 (vabd_s8): Likewise.
12006 (vabd_s16): Likewise.
12007 (vabd_s32): Likewise.
12008 (vabd_u8): Likewise.
12009 (vabd_u16): Likewise.
12010 (vabd_u32): Likewise.
12011 (vabdl_high_s8): Likewise.
12012 (vabdl_high_s16): Likewise.
12013 (vabdl_high_s32): Likewise.
12014 (vabdl_high_u8): Likewise.
12015 (vabdl_high_u16): Likewise.
12016 (vabdl_high_u32): Likewise.
12017 (vabdl_s8): Likewise.
12018 (vabdl_s16): Likewise.
12019 (vabdl_s32): Likewise.
12020 (vabdl_u8): Likewise.
12021 (vabdl_u16): Likewise.
12022 (vabdl_u32): Likewise.
12023 (vabdq_s8): Likewise.
12024 (vabdq_s16): Likewise.
12025 (vabdq_s32): Likewise.
12026 (vabdq_u8): Likewise.
12027 (vabdq_u16): Likewise.
12028 (vabdq_u32): Likewise.
12029 (vaddlv_s8): Likewise.
12030 (vaddlv_s16): Likewise.
12031 (vaddlv_u8): Likewise.
12032 (vaddlv_u16): Likewise.
12033 (vaddlvq_s8): Likewise.
12034 (vaddlvq_s16): Likewise.
12035 (vaddlvq_s32): Likewise.
12036 (vaddlvq_u8): Likewise.
12037 (vaddlvq_u16): Likewise.
12038 (vaddlvq_u32): Likewise.
12039 (vcvtx_f32_f64): Likewise.
12040 (vcvtx_high_f32_f64): Likewise.
12041 (vcvtxd_f32_f64): Likewise.
12042 (vmla_n_f32): Likewise.
12043 (vmla_n_s16): Likewise.
12044 (vmla_n_s32): Likewise.
12045 (vmla_n_u16): Likewise.
12046 (vmla_n_u32): Likewise.
12047 (vmla_s8): Likewise.
12048 (vmla_s16): Likewise.
12049 (vmla_s32): Likewise.
12050 (vmla_u8): Likewise.
12051 (vmla_u16): Likewise.
12052 (vmla_u32): Likewise.
12053 (vmlal_high_n_s16): Likewise.
12054 (vmlal_high_n_s32): Likewise.
12055 (vmlal_high_n_u16): Likewise.
12056 (vmlal_high_n_u32): Likewise.
12057 (vmlal_high_s8): Likewise.
12058 (vmlal_high_s16): Likewise.
12059 (vmlal_high_s32): Likewise.
12060 (vmlal_high_u8): Likewise.
12061 (vmlal_high_u16): Likewise.
12062 (vmlal_high_u32): Likewise.
12063 (vmlal_n_s16): Likewise.
12064 (vmlal_n_s32): Likewise.
12065 (vmlal_n_u16): Likewise.
12066 (vmlal_n_u32): Likewise.
12067 (vmlal_s8): Likewise.
12068 (vmlal_s16): Likewise.
12069 (vmlal_s32): Likewise.
12070 (vmlal_u8): Likewise.
12071 (vmlal_u16): Likewise.
12072 (vmlal_u32): Likewise.
12073 (vmlaq_n_f32): Likewise.
12074 (vmlaq_n_s16): Likewise.
12075 (vmlaq_n_s32): Likewise.
12076 (vmlaq_n_u16): Likewise.
12077 (vmlaq_n_u32): Likewise.
12078 (vmlaq_s8): Likewise.
12079 (vmlaq_s16): Likewise.
12080 (vmlaq_s32): Likewise.
12081 (vmlaq_u8): Likewise.
12082 (vmlaq_u16): Likewise.
12083 (vmlaq_u32): Likewise.
12084 (vmls_n_f32): Likewise.
12085 (vmls_n_s16): Likewise.
12086 (vmls_n_s32): Likewise.
12087 (vmls_n_u16): Likewise.
12088 (vmls_n_u32): Likewise.
12089 (vmls_s8): Likewise.
12090 (vmls_s16): Likewise.
12091 (vmls_s32): Likewise.
12092 (vmls_u8): Likewise.
12093 (vmls_u16): Likewise.
12094 (vmls_u32): Likewise.
12095 (vmlsl_high_n_s16): Likewise.
12096 (vmlsl_high_n_s32): Likewise.
12097 (vmlsl_high_n_u16): Likewise.
12098 (vmlsl_high_n_u32): Likewise.
12099 (vmlsl_high_s8): Likewise.
12100 (vmlsl_high_s16): Likewise.
12101 (vmlsl_high_s32): Likewise.
12102 (vmlsl_high_u8): Likewise.
12103 (vmlsl_high_u16): Likewise.
12104 (vmlsl_high_u32): Likewise.
12105 (vmlsl_n_s16): Likewise.
12106 (vmlsl_n_s32): Likewise.
12107 (vmlsl_n_u16): Likewise.
12108 (vmlsl_n_u32): Likewise.
12109 (vmlsl_s8): Likewise.
12110 (vmlsl_s16): Likewise.
12111 (vmlsl_s32): Likewise.
12112 (vmlsl_u8): Likewise.
12113 (vmlsl_u16): Likewise.
12114 (vmlsl_u32): Likewise.
12115 (vmlsq_n_f32): Likewise.
12116 (vmlsq_n_s16): Likewise.
12117 (vmlsq_n_s32): Likewise.
12118 (vmlsq_n_u16): Likewise.
12119 (vmlsq_n_u32): Likewise.
12120 (vmlsq_s8): Likewise.
12121 (vmlsq_s16): Likewise.
12122 (vmlsq_s32): Likewise.
12123 (vmlsq_u8): Likewise.
12124 (vmlsq_u16): Likewise.
12125 (vmlsq_u32): Likewise.
12126 (vmovl_high_s8): Likewise.
12127 (vmovl_high_s16): Likewise.
12128 (vmovl_high_s32): Likewise.
12129 (vmovl_high_u8): Likewise.
12130 (vmovl_high_u16): Likewise.
12131 (vmovl_high_u32): Likewise.
12132 (vmovl_s8): Likewise.
12133 (vmovl_s16): Likewise.
12134 (vmovl_s32): Likewise.
12135 (vmovl_u8): Likewise.
12136 (vmovl_u16): Likewise.
12137 (vmovl_u32): Likewise.
12138 (vmovn_high_s16): Likewise.
12139 (vmovn_high_s32): Likewise.
12140 (vmovn_high_s64): Likewise.
12141 (vmovn_high_u16): Likewise.
12142 (vmovn_high_u32): Likewise.
12143 (vmovn_high_u64): Likewise.
12144 (vmovn_s16): Likewise.
12145 (vmovn_s32): Likewise.
12146 (vmovn_s64): Likewise.
12147 (vmovn_u16): Likewise.
12148 (vmovn_u32): Likewise.
12149 (vmovn_u64): Likewise.
12150 (vmull_high_n_s16): Likewise.
12151 (vmull_high_n_s32): Likewise.
12152 (vmull_high_n_u16): Likewise.
12153 (vmull_high_n_u32): Likewise.
12154 (vmull_high_p8): Likewise.
12155 (vmull_high_s8): Likewise.
12156 (vmull_high_s16): Likewise.
12157 (vmull_high_s32): Likewise.
12158 (vmull_high_u8): Likewise.
12159 (vmull_high_u16): Likewise.
12160 (vmull_high_u32): Likewise.
12161 (vmull_n_s16): Likewise.
12162 (vmull_n_s32): Likewise.
12163 (vmull_n_u16): Likewise.
12164 (vmull_n_u32): Likewise.
12165 (vmull_p8): Likewise.
12166 (vmull_s8): Likewise.
12167 (vmull_s16): Likewise.
12168 (vmull_s32): Likewise.
12169 (vmull_u8): Likewise.
12170 (vmull_u16): Likewise.
12171 (vmull_u32): Likewise.
12172 (vpadal_s8): Likewise.
12173 (vpadal_s16): Likewise.
12174 (vpadal_s32): Likewise.
12175 (vpadal_u8): Likewise.
12176 (vpadal_u16): Likewise.
12177 (vpadal_u32): Likewise.
12178 (vpadalq_s8): Likewise.
12179 (vpadalq_s16): Likewise.
12180 (vpadalq_s32): Likewise.
12181 (vpadalq_u8): Likewise.
12182 (vpadalq_u16): Likewise.
12183 (vpadalq_u32): Likewise.
12184 (vpaddl_s8): Likewise.
12185 (vpaddl_s16): Likewise.
12186 (vpaddl_s32): Likewise.
12187 (vpaddl_u8): Likewise.
12188 (vpaddl_u16): Likewise.
12189 (vpaddl_u32): Likewise.
12190 (vpaddlq_s8): Likewise.
12191 (vpaddlq_s16): Likewise.
12192 (vpaddlq_s32): Likewise.
12193 (vpaddlq_u8): Likewise.
12194 (vpaddlq_u16): Likewise.
12195 (vpaddlq_u32): Likewise.
12196 (vpaddq_s8): Likewise.
12197 (vpaddq_s16): Likewise.
12198 (vpaddq_s32): Likewise.
12199 (vpaddq_s64): Likewise.
12200 (vpaddq_u8): Likewise.
12201 (vpaddq_u16): Likewise.
12202 (vpaddq_u32): Likewise.
12203 (vpaddq_u64): Likewise.
12204 (vqdmulh_n_s16): Likewise.
12205 (vqdmulh_n_s32): Likewise.
12206 (vqdmulhq_n_s16): Likewise.
12207 (vqdmulhq_n_s32): Likewise.
12208 (vqmovn_high_s16): Likewise.
12209 (vqmovn_high_s32): Likewise.
12210 (vqmovn_high_s64): Likewise.
12211 (vqmovn_high_u16): Likewise.
12212 (vqmovn_high_u32): Likewise.
12213 (vqmovn_high_u64): Likewise.
12214 (vqmovun_high_s16): Likewise.
12215 (vqmovun_high_s32): Likewise.
12216 (vqmovun_high_s64): Likewise.
12217 (vqrdmulh_n_s16): Likewise.
12218 (vqrdmulh_n_s32): Likewise.
12219 (vqrdmulhq_n_s16): Likewise.
12220 (vqrdmulhq_n_s32): Likewise.
12221 (vrsqrte_u32): Likewise.
12222 (vrsqrteq_u32): Likewise.
12223 (vtst_p8): Likewise.
12224 (vtst_p16): Likewise.
12225 (vtst_p64): Likewise.
12226 (vtstq_p8): Likewise.
12227 (vtstq_p16): Likewise.
12228 (vtstq_p64): Likewise.
12229 (vaddlv_s32): Likewise.
12230 (vaddlv_u32): Likewise.
12231 (vqtbl1_p8): Likewise.
12232 (vqtbl1_s8): Likewise.
12233 (vqtbl1_u8): Likewise.
12234 (vqtbl1q_p8): Likewise.
12235 (vqtbl1q_s8): Likewise.
12236 (vqtbl1q_u8): Likewise.
12237 (vqtbx1_s8): Likewise.
12238 (vqtbx1_u8): Likewise.
12239 (vqtbx1_p8): Likewise.
12240 (vqtbx1q_s8): Likewise.
12241 (vqtbx1q_u8): Likewise.
12242 (vqtbx1q_p8): Likewise.
12243 (vtbl1_s8): Likewise.
12244 (vtbl1_u8): Likewise.
12245 (vtbl1_p8): Likewise.
12246 (vtbl2_s8): Likewise.
12247 (vtbl2_u8): Likewise.
12248 (vtbl2_p8): Likewise.
12249 (vtbl3_s8): Likewise.
12250 (vtbl3_u8): Likewise.
12251 (vtbl3_p8): Likewise.
12252 (vtbl4_s8): Likewise.
12253 (vtbl4_u8): Likewise.
12254 (vtbl4_p8): Likewise.
12255 (vtbx2_s8): Likewise.
12256 (vtbx2_u8): Likewise.
12257 (vtbx2_p8): Likewise.
12258 (vld1_f32): Likewise.
12259 (vld1_f64): Likewise.
12260 (vld1_p8): Likewise.
12261 (vld1_p16): Likewise.
12262 (vld1_p64): Likewise.
12263 (vld1_s8): Likewise.
12264 (vld1_s16): Likewise.
12265 (vld1_s32): Likewise.
12266 (vld1_s64): Likewise.
12267 (vld1_u8): Likewise.
12268 (vld1_u16): Likewise.
12269 (vld1_u32): Likewise.
12270 (vld1_u64): Likewise.
12271 (vld1q_f32): Likewise.
12272 (vld1q_f64): Likewise.
12273 (vld1q_p8): Likewise.
12274 (vld1q_p16): Likewise.
12275 (vld1q_p64): Likewise.
12276 (vld1q_s8): Likewise.
12277 (vld1q_s16): Likewise.
12278 (vld1q_s32): Likewise.
12279 (vld1q_s64): Likewise.
12280 (vld1q_u8): Likewise.
12281 (vld1q_u16): Likewise.
12282 (vld1q_u32): Likewise.
12283 (vld1q_u64): Likewise.
12284 (vpmax_s8): Likewise.
12285 (vpmax_s16): Likewise.
12286 (vpmax_s32): Likewise.
12287 (vpmax_u8): Likewise.
12288 (vpmax_u16): Likewise.
12289 (vpmax_u32): Likewise.
12290 (vpmaxq_s8): Likewise.
12291 (vpmaxq_s16): Likewise.
12292 (vpmaxq_s32): Likewise.
12293 (vpmaxq_u8): Likewise.
12294 (vpmaxq_u16): Likewise.
12295 (vpmaxq_u32): Likewise.
12296 (vpmax_f32): Likewise.
12297 (vpmaxq_f32): Likewise.
12298 (vpmaxq_f64): Likewise.
12299 (vpmaxqd_f64): Likewise.
12300 (vpmaxs_f32): Likewise.
12301 (vpmaxnm_f32): Likewise.
12302 (vpmaxnmq_f32): Likewise.
12303 (vpmaxnmq_f64): Likewise.
12304 (vpmaxnmqd_f64): Likewise.
12305 (vpmaxnms_f32): Likewise.
12306 (vpmin_s8): Likewise.
12307 (vpmin_s16): Likewise.
12308 (vpmin_s32): Likewise.
12309 (vpmin_u8): Likewise.
12310 (vpmin_u16): Likewise.
12311 (vpmin_u32): Likewise.
12312 (vpminq_s8): Likewise.
12313 (vpminq_s16): Likewise.
12314 (vpminq_s32): Likewise.
12315 (vpminq_u8): Likewise.
12316 (vpminq_u16): Likewise.
12317 (vpminq_u32): Likewise.
12318 (vpmin_f32): Likewise.
12319 (vpminq_f32): Likewise.
12320 (vpminq_f64): Likewise.
12321 (vpminqd_f64): Likewise.
12322 (vpmins_f32): Likewise.
12323 (vpminnm_f32): Likewise.
12324 (vpminnmq_f32): Likewise.
12325 (vpminnmq_f64): Likewise.
12326 (vpminnmqd_f64): Likewise.
12327 (vpminnms_f32): Likewise.
12328 (vmla_f32): Likewise.
12329 (vmlaq_f32): Likewise.
12330 (vmlaq_f64): Likewise.
12331 (vmls_f32): Likewise.
12332 (vmlsq_f32): Likewise.
12333 (vmlsq_f64): Likewise.
12334 (vqtbl2_s8): Likewise.
12335 (vqtbl2_u8): Likewise.
12336 (vqtbl2_p8): Likewise.
12337 (vqtbl2q_s8): Likewise.
12338 (vqtbl2q_u8): Likewise.
12339 (vqtbl2q_p8): Likewise.
12340 (vqtbl3_s8): Likewise.
12341 (vqtbl3_u8): Likewise.
12342 (vqtbl3_p8): Likewise.
12343 (vqtbl3q_s8): Likewise.
12344 (vqtbl3q_u8): Likewise.
12345 (vqtbl3q_p8): Likewise.
12346 (vqtbl4_s8): Likewise.
12347 (vqtbl4_u8): Likewise.
12348 (vqtbl4_p8): Likewise.
12349 (vqtbl4q_s8): Likewise.
12350 (vqtbl4q_u8): Likewise.
12351 (vqtbl4q_p8): Likewise.
12352 (vqtbx2_s8): Likewise.
12353 (vqtbx2_u8): Likewise.
12354 (vqtbx2_p8): Likewise.
12355 (vqtbx2q_s8): Likewise.
12356 (vqtbx2q_u8): Likewise.
12357 (vqtbx2q_p8): Likewise.
12358 (vqtbx3_s8): Likewise.
12359 (vqtbx3_u8): Likewise.
12360 (vqtbx3_p8): Likewise.
12361 (vqtbx3q_s8): Likewise.
12362 (vqtbx3q_u8): Likewise.
12363 (vqtbx3q_p8): Likewise.
12364 (vqtbx4_s8): Likewise.
12365 (vqtbx4_u8): Likewise.
12366 (vqtbx4_p8): Likewise.
12367 (vqtbx4q_s8): Likewise.
12368 (vqtbx4q_u8): Likewise.
12369 (vqtbx4q_p8): Likewise.
12370 (vrev16_p8): Likewise.
12371 (vrev16_s8): Likewise.
12372 (vrev16_u8): Likewise.
12373 (vrev16q_p8): Likewise.
12374 (vrev16q_s8): Likewise.
12375 (vrev16q_u8): Likewise.
12376 (vrev32_p8): Likewise.
12377 (vrev32_p16): Likewise.
12378 (vrev32_s8): Likewise.
12379 (vrev32_s16): Likewise.
12380 (vrev32_u8): Likewise.
12381 (vrev32_u16): Likewise.
12382 (vrev32q_p8): Likewise.
12383 (vrev32q_p16): Likewise.
12384 (vrev32q_s8): Likewise.
12385 (vrev32q_s16): Likewise.
12386 (vrev32q_u8): Likewise.
12387 (vrev32q_u16): Likewise.
12388 (vrev64_f32): Likewise.
12389 (vrev64_p8): Likewise.
12390 (vrev64_p16): Likewise.
12391 (vrev64_s8): Likewise.
12392 (vrev64_s16): Likewise.
12393 (vrev64_s32): Likewise.
12394 (vrev64_u8): Likewise.
12395 (vrev64_u16): Likewise.
12396 (vrev64_u32): Likewise.
12397 (vrev64q_f32): Likewise.
12398 (vrev64q_p8): Likewise.
12399 (vrev64q_p16): Likewise.
12400 (vrev64q_s8): Likewise.
12401 (vrev64q_s16): Likewise.
12402 (vrev64q_s32): Likewise.
12403 (vrev64q_u8): Likewise.
12404 (vrev64q_u16): Likewise.
12405 (vrev64q_u32): Likewise.
12406 (vsha1cq_u32): Likewise.
12407 (vsha1mq_u32): Likewise.
12408 (vsha1pq_u32): Likewise.
12409 (vsha1h_u32): Likewise.
12410 (vsha1su0q_u32): Likewise.
12411 (vsha1su1q_u32): Likewise.
12412 (vsha256hq_u32): Likewise.
12413 (vsha256h2q_u32): Likewise.
12414 (vsha256su0q_u32): Likewise.
12415 (vsha256su1q_u32): Likewise.
12416 (vmull_p64): Likewise.
12417 (vmull_high_p64): Likewise.
12418 (vsqrt_f32): Likewise.
12419 (vsqrtq_f32): Likewise.
12420 (vsqrt_f64): Likewise.
12421 (vsqrtq_f64): Likewise.
12422 (vst1_f32): Likewise.
12423 (vst1_f64): Likewise.
12424 (vst1_p8): Likewise.
12425 (vst1_p16): Likewise.
12426 (vst1_p64): Likewise.
12427 (vst1_s8): Likewise.
12428 (vst1_s16): Likewise.
12429 (vst1_s32): Likewise.
12430 (vst1_s64): Likewise.
12431 (vst1_u8): Likewise.
12432 (vst1_u16): Likewise.
12433 (vst1_u32): Likewise.
12434 (vst1_u64): Likewise.
12435 (vst1q_f32): Likewise.
12436 (vst1q_f64): Likewise.
12437 (vst1q_p8): Likewise.
12438 (vst1q_p16): Likewise.
12439 (vst1q_p64): Likewise.
12440 (vst1q_s8): Likewise.
12441 (vst1q_s16): Likewise.
12442 (vst1q_s32): Likewise.
12443 (vst1q_s64): Likewise.
12444 (vst1q_u8): Likewise.
12445 (vst1q_u16): Likewise.
12446 (vst1q_u32): Likewise.
12447 (vst1q_u64): Likewise.
12448 (vst1_s64_x2): Likewise.
12449 (vst1_u64_x2): Likewise.
12450 (vst1_f64_x2): Likewise.
12451 (vst1_s8_x2): Likewise.
12452 (vst1_p8_x2): Likewise.
12453 (vst1_s16_x2): Likewise.
12454 (vst1_p16_x2): Likewise.
12455 (vst1_s32_x2): Likewise.
12456 (vst1_u8_x2): Likewise.
12457 (vst1_u16_x2): Likewise.
12458 (vst1_u32_x2): Likewise.
12459 (vst1_f16_x2): Likewise.
12460 (vst1_f32_x2): Likewise.
12461 (vst1_p64_x2): Likewise.
12462 (vst1q_s8_x2): Likewise.
12463 (vst1q_p8_x2): Likewise.
12464 (vst1q_s16_x2): Likewise.
12465 (vst1q_p16_x2): Likewise.
12466 (vst1q_s32_x2): Likewise.
12467 (vst1q_s64_x2): Likewise.
12468 (vst1q_u8_x2): Likewise.
12469 (vst1q_u16_x2): Likewise.
12470 (vst1q_u32_x2): Likewise.
12471 (vst1q_u64_x2): Likewise.
12472 (vst1q_f16_x2): Likewise.
12473 (vst1q_f32_x2): Likewise.
12474 (vst1q_f64_x2): Likewise.
12475 (vst1q_p64_x2): Likewise.
12476 (vst1_s64_x3): Likewise.
12477 (vst1_u64_x3): Likewise.
12478 (vst1_f64_x3): Likewise.
12479 (vst1_s8_x3): Likewise.
12480 (vst1_p8_x3): Likewise.
12481 (vst1_s16_x3): Likewise.
12482 (vst1_p16_x3): Likewise.
12483 (vst1_s32_x3): Likewise.
12484 (vst1_u8_x3): Likewise.
12485 (vst1_u16_x3): Likewise.
12486 (vst1_u32_x3): Likewise.
12487 (vst1_f16_x3): Likewise.
12488 (vst1_f32_x3): Likewise.
12489 (vst1_p64_x3): Likewise.
12490 (vst1q_s8_x3): Likewise.
12491 (vst1q_p8_x3): Likewise.
12492 (vst1q_s16_x3): Likewise.
12493 (vst1q_p16_x3): Likewise.
12494 (vst1q_s32_x3): Likewise.
12495 (vst1q_s64_x3): Likewise.
12496 (vst1q_u8_x3): Likewise.
12497 (vst1q_u16_x3): Likewise.
12498 (vst1q_u32_x3): Likewise.
12499 (vst1q_u64_x3): Likewise.
12500 (vst1q_f16_x3): Likewise.
12501 (vst1q_f32_x3): Likewise.
12502 (vst1q_f64_x3): Likewise.
12503 (vst1q_p64_x3): Likewise.
12504 (vst2_s64): Likewise.
12505 (vst2_u64): Likewise.
12506 (vst2_f64): Likewise.
12507 (vst2_s8): Likewise.
12508 (vst2_p8): Likewise.
12509 (vst2_s16): Likewise.
12510 (vst2_p16): Likewise.
12511 (vst2_s32): Likewise.
12512 (vst2_u8): Likewise.
12513 (vst2_u16): Likewise.
12514 (vst2_u32): Likewise.
12515 (vst2_f16): Likewise.
12516 (vst2_f32): Likewise.
12517 (vst2_p64): Likewise.
12518 (vst2q_s8): Likewise.
12519 (vst2q_p8): Likewise.
12520 (vst2q_s16): Likewise.
12521 (vst2q_p16): Likewise.
12522 (vst2q_s32): Likewise.
12523 (vst2q_s64): Likewise.
12524 (vst2q_u8): Likewise.
12525 (vst2q_u16): Likewise.
12526 (vst2q_u32): Likewise.
12527 (vst2q_u64): Likewise.
12528 (vst2q_f16): Likewise.
12529 (vst2q_f32): Likewise.
12530 (vst2q_f64): Likewise.
12531 (vst2q_p64): Likewise.
12532 (vst3_s64): Likewise.
12533 (vst3_u64): Likewise.
12534 (vst3_f64): Likewise.
12535 (vst3_s8): Likewise.
12536 (vst3_p8): Likewise.
12537 (vst3_s16): Likewise.
12538 (vst3_p16): Likewise.
12539 (vst3_s32): Likewise.
12540 (vst3_u8): Likewise.
12541 (vst3_u16): Likewise.
12542 (vst3_u32): Likewise.
12543 (vst3_f16): Likewise.
12544 (vst3_f32): Likewise.
12545 (vst3_p64): Likewise.
12546 (vst3q_s8): Likewise.
12547 (vst3q_p8): Likewise.
12548 (vst3q_s16): Likewise.
12549 (vst3q_p16): Likewise.
12550 (vst3q_s32): Likewise.
12551 (vst3q_s64): Likewise.
12552 (vst3q_u8): Likewise.
12553 (vst3q_u16): Likewise.
12554 (vst3q_u32): Likewise.
12555 (vst3q_u64): Likewise.
12556 (vst3q_f16): Likewise.
12557 (vst3q_f32): Likewise.
12558 (vst3q_f64): Likewise.
12559 (vst3q_p64): Likewise.
12560 (vst4_s64): Likewise.
12561 (vst4_u64): Likewise.
12562 (vst4_f64): Likewise.
12563 (vst4_s8): Likewise.
12564 (vst4_p8): Likewise.
12565 (vst4_s16): Likewise.
12566 (vst4_p16): Likewise.
12567 (vst4_s32): Likewise.
12568 (vst4_u8): Likewise.
12569 (vst4_u16): Likewise.
12570 (vst4_u32): Likewise.
12571 (vst4_f16): Likewise.
12572 (vst4_f32): Likewise.
12573 (vst4_p64): Likewise.
12574 (vst4q_s8): Likewise.
12575 (vst4q_p8): Likewise.
12576 (vst4q_s16): Likewise.
12577 (vst4q_p16): Likewise.
12578 (vst4q_s32): Likewise.
12579 (vst4q_s64): Likewise.
12580 (vst4q_u8): Likewise.
12581 (vst4q_u16): Likewise.
12582 (vst4q_u32): Likewise.
12583 (vst4q_u64): Likewise.
12584 (vst4q_f16): Likewise.
12585 (vst4q_f32): Likewise.
12586 (vst4q_f64): Likewise.
12587 (vst4q_p64): Likewise.
12588 (vtbx4_s8): Likewise.
12589 (vtbx4_u8): Likewise.
12590 (vtbx4_p8): Likewise.
12591 (vtrn_f32): Likewise.
12592 (vtrn_p8): Likewise.
12593 (vtrn_p16): Likewise.
12594 (vtrn_s8): Likewise.
12595 (vtrn_s16): Likewise.
12596 (vtrn_s32): Likewise.
12597 (vtrn_u8): Likewise.
12598 (vtrn_u16): Likewise.
12599 (vtrn_u32): Likewise.
12600 (vtrnq_f32): Likewise.
12601 (vtrnq_p8): Likewise.
12602 (vtrnq_p16): Likewise.
12603 (vtrnq_s8): Likewise.
12604 (vtrnq_s16): Likewise.
12605 (vtrnq_s32): Likewise.
12606 (vtrnq_u8): Likewise.
12607 (vtrnq_u16): Likewise.
12608 (vtrnq_u32): Likewise.
12609 (vrsqrte_f16): Likewise.
12610 (vrsqrteq_f16): Likewise.
12611 (vsqrt_f16): Likewise.
12612 (vsqrtq_f16): Likewise.
12613 (vabd_f16): Likewise.
12614 (vabdq_f16): Likewise.
12615 (vpadd_f16): Likewise.
12616 (vpaddq_f16): Likewise.
12617 (vpmax_f16): Likewise.
12618 (vpmaxq_f16): Likewise.
12619 (vpmaxnm_f16): Likewise.
12620 (vpmaxnmq_f16): Likewise.
12621 (vpmin_f16): Likewise.
12622 (vpminq_f16): Likewise.
12623 (vpminnm_f16): Likewise.
12624 (vpminnmq_f16): Likewise.
12625 (vrsqrts_f16): Likewise.
12626 (vrsqrtsq_f16): Likewise.
12627
12628 2019-09-25 Richard Biener <rguenther@suse.de>
12629
12630 PR tree-optimization/91896
12631 * tree-vect-loop.c (vectorizable_reduction): The single
12632 def-use cycle optimization cannot apply when there's more
12633 than one pattern stmt involved.
12634
12635 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12636
12637 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12638 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12639 (reload_macho_picbase_<mode>): Likewise.
12640
12641 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12642
12643 * config/rs6000/rs6000.md: Move darwin.md include until
12644 after the definition of the mode iterators.
12645
12646 2019-09-23 Martin Sebor <msebor@redhat.com>
12647
12648 PR tree-optimization/91570
12649 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12650 non-constant minlen, maxlen and maxbound.
12651
12652 2019-09-24 Richard Biener <rguenther@suse.de>
12653
12654 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12655 Rename to...
12656 (_stmt_vec_info::cond_reduc_code): ... this.
12657 (_stmt_vec_info::induc_cond_initial_val): Add.
12658 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12659 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12660 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12661 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12662 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12663 the reduction code.
12664 (vect_create_epilog_for_reduction): Drop special
12665 induction condition reduction params, pass in reduction code
12666 and simplify.
12667 (vectorizable_reduction): Perform condition reduction kind
12668 selection only at analysis time. Adjust passing on state.
12669
12670 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12671
12672 * config/aarch64/aarch64.md (mov<mode>): Don't call
12673 aarch64_split_dimode_const_store on volatile MEM.
12674
12675 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12676
12677 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12678 Update hwcap string for fp16fml.
12679
12680 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12681
12682 PR middle-end/91866
12683 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12684 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12685
12686 2019-09-24 Martin Liska <mliska@suse.cz>
12687
12688 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12689 instead of if-elseif-elseif-...
12690 * gimple-expr.c (extract_ops_from_tree): Likewise.
12691 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12692 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12693
12694 2019-09-24 Martin Jambor <mjambor@suse.cz>
12695
12696 PR ipa/91831
12697 * ipa-param-manipulation.c (carry_over_param): Make a method of
12698 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12699 in case of a context mismatch.
12700 (ipa_param_body_adjustments::common_initialization): Adjust call to
12701 carry_over_param.
12702 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12703 private method carry_over_param.
12704
12705 2019-09-24 Martin Jambor <mjambor@suse.cz>
12706
12707 PR ipa/91832
12708 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12709
12710 2019-09-24 Richard Biener <rguenther@suse.de>
12711
12712 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12713 base.
12714
12715 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12716
12717 * config/arm/t-arm (arm-builtins.o): Add dependency on
12718 arm_acle_builtins.def.
12719
12720 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12721
12722 PR target/91823
12723 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12724 canonical CONST_INTs. Use gen_rtvec.
12725
12726 2019-09-23 Richard Biener <rguenther@suse.de>
12727
12728 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12729 avoid adjusting by + 0 or * 1.
12730 (vect_create_epilog_for_reduction): Get reduction code only
12731 when necessary. Deal with adjustment_def only when necessary.
12732
12733 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12734
12735 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12736 memmodel index.
12737
12738 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12739
12740 PR ipa/91835
12741 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12742 "ipa-sra".
12743
12744 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12745
12746 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12747 code. Merge code blocks with common conditionals. Use declared
12748 macro instead of a magic number for PIC level.
12749
12750 2019-09-21 Martin Sebor <msebor@redhat.com>
12751
12752 PR middle-end/91830
12753 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12754 Simplify computation of the offset of the referenced subobject.
12755
12756 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12757
12758 * config/darwin.c (machopic_legitimize_pic_address): Check
12759 for lra not reload.
12760
12761 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12762
12763 * ira-conflicts.c (can_use_same_reg_p): New function.
12764 (process_reg_shuffles): Take an insn parameter. Ignore cases
12765 in which input operand op_num could seemingly never be allocated
12766 to the same register as the destination.
12767 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12768
12769 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12770
12771 * simplify-rtx.c (neg_const_int): Replace with...
12772 (neg_poly_int_rtx): ...this new function.
12773 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12774 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12775 (simplify_plus_minus): Likewise for constant terms here.
12776
12777 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12778
12779 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12780 HOST_WIDE_PRINT_UNSIGNED.
12781
12782 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12783
12784 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12785 character.
12786
12787 2019-09-20 Maya Rashish <coypu@sdf.org>
12788
12789 PR target/86811
12790 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12791 Define to speculation_safe_value_not_needed.
12792
12793 2019-09-20 Richard Biener <rguenther@suse.de>
12794 Uros Bizjak <ubizjak@gmail.com>
12795
12796 PR target/91814
12797 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12798 previous change.
12799 (general_scalar_chain::convert_op): Force not suitable memory
12800 operands to a register.
12801
12802 2019-09-20 Richard Biener <rguenther@suse.de>
12803
12804 PR tree-optimization/91821
12805 * tree-vect-loop.c (check_reduction_path): Check we can compute
12806 reduc_idx.
12807 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12808 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12809 operands in canonical order.
12810 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12811 STMT_VINFO_REDUC_IDX.
12812 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12813 (STMT_VINFO_REDUC_IDX): Likewise.
12814
12815 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12816
12817 PR target/91269
12818 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12819
12820 2019-09-20 Richard Biener <rguenther@suse.de>
12821
12822 PR tree-optimization/91822
12823 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12824 parameter.
12825 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12826 for reduc_index in nested cycles, adjust vectorizable_condition
12827 calls.
12828 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12829 parameter.
12830 (vect_analyze_stmt): Adjust.
12831 (vect_transform_stmt): Likewise.
12832
12833 2019-09-20 Richard Biener <rguenther@suse.de>
12834
12835 PR target/91767
12836 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12837 Ensure there's a sequence point between allocating the new register
12838 and passing a reference to a reg via regno_reg_rtx.
12839
12840 2019-09-20 Martin Jambor <mjambor@suse.cz>
12841
12842 * coretypes.h (cgraph_edge): Declare.
12843 * ipa-param-manipulation.c: Rewrite.
12844 * ipa-param-manipulation.h: Likewise.
12845 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12846 (OBJS): Added ipa-sra.o.
12847 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12848 and ref_p, added fields param_adjustments and performed_splits.
12849 (struct cgraph_clone_info): Remove ags_to_skip and
12850 combined_args_to_skip, new field param_adjustments.
12851 (cgraph_node::create_clone): Changed parameters to use
12852 ipa_param_adjustments.
12853 (cgraph_node::create_virtual_clone): Likewise.
12854 (cgraph_node::create_virtual_clone_with_body): Likewise.
12855 (tree_function_versioning): Likewise.
12856 (cgraph_build_function_type_skip_args): Removed.
12857 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12858 using ipa_param_adjustments.
12859 (clone_of_p): Likewise.
12860 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12861 (build_function_decl_skip_args): Likewise.
12862 (duplicate_thunk_for_node): Adjust parameters using
12863 ipa_param_body_adjustments, copy param_adjustments instead of
12864 args_to_skip.
12865 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12866 (cgraph_node::create_virtual_clone): Likewise.
12867 (cgraph_node::create_version_clone_with_body): Likewise.
12868 (cgraph_materialize_clone): Likewise.
12869 (symbol_table::materialize_all_clones): Likewise.
12870 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12871 ipa_replace_map check.
12872 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12873 (initialize_node_lattices): Make aware that some parameters might have
12874 already been removed.
12875 (want_remove_some_param_p): New function.
12876 (create_specialized_node): Convert to using ipa_param_adjustments and
12877 deal with possibly pre-existing adjustments.
12878 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12879 (output_node_opt_summary): Do not stream removed fields. Stream
12880 parameter adjustments instead of argumetns to skip.
12881 (input_node_opt_summary): Likewise.
12882 (input_node_opt_summary): Likewise.
12883 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12884 * lto-streamer.h (lto_section_type): Likewise.
12885 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12886 param_body_adjs.
12887 (copy_decl_to_var): Declare.
12888 * tree-inline.c (update_clone_info): Do not remap old_tree.
12889 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12890 statements, walk all extra generated statements and remap their
12891 operands.
12892 (redirect_all_calls): Add killed SSA names to a hash set.
12893 (remap_ssa_name): Do not remap killed SSA names.
12894 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12895 half of functionality moved to ipa_param_body_adjustments.
12896 (copy_decl_to_var): Make exported.
12897 (copy_body): Destroy killed_new_ssa_names hash set.
12898 (expand_call_inline): Remap performed splits.
12899 (update_clone_info): Likewise.
12900 (tree_function_versioning): Simplify tree_map processing. Updated to
12901 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12902 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12903 for the new interface.
12904 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12905 (simd_clone_compute_base_data_type): Likewise.
12906 (simd_clone_init_simd_arrays): Adjust for the new interface.
12907 (simd_clone_adjust_argument_types): Likewise.
12908 (struct modify_stmt_info): Likewise.
12909 (ipa_simd_modify_stmt_ops): Likewise.
12910 (ipa_simd_modify_function_body): Likewise.
12911 (simd_clone_adjust): Likewise.
12912 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12913 (type_internals_preclude_sra_p): Make public.
12914 * tree-sra.h: New file.
12915 * ipa-inline-transform.c (save_inline_function_body): Update to
12916 refelct new tree_function_versioning signature.
12917 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12918 ipa_param_adjustments to get current parameter indices.
12919 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12920 (ipcp_update_bits): Likewise.
12921 (ipcp_update_vr): Likewise.
12922 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12923 * ipa-sra.c: New file.
12924 * multiple_target.c (create_target_clone): Update to reflet new type
12925 of create_version_clone_with_body.
12926 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12927 tree_function_versioning.
12928 (modify_function): Update to reflect new type of
12929 tree_function_versioning.
12930 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12931 * passes.def: Remove old IPA-SRA and add new one.
12932 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12933 (make_pass_ipa_sra): Declare.
12934 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12935 ipa_sra_retvalues.
12936 * doc/invoke.texi (ipa-sra-max-replacements): New.
12937
12938 2019-09-19 Martin Sebor <msebor@redhat.com>
12939
12940 PR middle-end/91631
12941 * builtins.c (component_size): Correct trailing array computation,
12942 rename to component_ref_size and move...
12943 (compute_objsize): Adjust.
12944 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12945 (builtin_access::strict): Do not consider memmove.
12946 (builtin_access::write_off): New function.
12947 (builtin_memref::builtin_memref): Initialize refsize.
12948 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12949 refsize.
12950 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12951 Handle refsize.
12952 (builtin_access::builtin_access): Initialize dstoff to destination
12953 refeence offset here instead of in maybe_diag_overlap. Adjust
12954 referencess even to unrelated objects. Adjust sizrange of bounded
12955 string functions to reflect bound. For strcat, adjust destination
12956 sizrange by that of source.
12957 (builtin_access::strcat_overlap): Adjust offsets and sizes
12958 to reflect the increase in destination sizrange above.
12959 (builtin_access::overlap): Do not set dstoff here but instead
12960 in builtin_access::builtin_access.
12961 (check_bounds_or_overlap): Use builtin_access::write_off.
12962 (maybe_diag_access_bounds): Add argument. Add informational notes.
12963 (dump_builtin_memref, dump_builtin_access): New functions.
12964 * tree.c (component_ref_size): ...to here.
12965 * tree.h (component_ref_size): Declare.
12966 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12967 nul in the size of the source string.
12968
12969 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12970
12971 PR c/67224
12972 * doc/cpp.texi: Document support for extended characters in
12973 identifiers.
12974 * doc/cppopts.texi: Likewise.
12975
12976 2019-09-19 Richard Biener <rguenther@suse.de>
12977
12978 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12979 (check_reduction_path): New overload having the path as result.
12980 (vect_is_simple_reduction): From the detected reduction
12981 path build a SLP reduction chain if possible.
12982
12983 2019-09-19 Richard Biener <rguenther@suse.de>
12984
12985 PR target/91814
12986 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12987 Force operand to a register if it isn't nonimmediate_operand.
12988
12989 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12990
12991 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12992 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12993 (logical_op): Remove code attribute.
12994 (logical_OP): Likewise.
12995
12996 2019-09-19 Martin Liska <mliska@suse.cz>
12997
12998 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12999 Use proper casting.
13000
13001 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13002
13003 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13004 registers with %R.
13005
13006 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13007 for NE comparison of TImode values.
13008 (aarch64_emit_load_exclusive): Add support for TImode.
13009 (aarch64_emit_store_exclusive): Likewise.
13010 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13011 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13012 Change iterator from ALLI to ALLI_TI.
13013 (@atomic_compare_and_swap<JUST_TI>): New.
13014 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13015 (aarch64_load_exclusive_pair): New.
13016 (aarch64_store_exclusive_pair): New.
13017 * config/aarch64/iterators.md (JUST_TI): New.
13018
13019 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13020 strong_zero_p for aarch64_track_speculation; unify some code paths;
13021 use aarch64_gen_compare_reg instead of open-coding.
13022
13023 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13024 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13025 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13026 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13027 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13028 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13029 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13030 (atomic_<atomic_op><ALLI>): Likewise.
13031 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13032 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13033 * doc/invoke.texi: Document -moutline-atomics.
13034
13035 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13036
13037 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13038 trivial predicate for condition branch.
13039 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13040 for switch case.
13041 (compute_bb_predicates): Update predicate based on post-dominating
13042 relationship.
13043 (analyze_function_body): Calculate post-dominating information.
13044
13045 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13046
13047 * tree-vectorizer.h (vectorizable_condition): Take an int
13048 reduction index instead of a boolean flag.
13049 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13050 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13051 reductions if the reduction accumulator is the "then" rather
13052 than the "else" value.
13053 (vect_analyze_stmt): Update call accordingly.
13054 (vect_transform_stmt): Likewise.
13055 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13056 asserting that the index is > 0.
13057
13058 2019-09-19 Martin Liska <mliska@suse.cz>
13059
13060 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13061 (sort_congruence_classes_by_decl_uid): Likewise.
13062 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13063 easier sorting.
13064 (sem_item_optimizer::merge_classes): Likewise.
13065
13066 2019-09-19 Richard Biener <rguenther@suse.de>
13067
13068 PR tree-optimization/91812
13069 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13070 volatile loads.
13071
13072 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13073
13074 * defaults.h (TARGET_UNIT): New macro.
13075 (target_unit): New type.
13076 * rtl.h (native_encode_rtx, native_decode_rtx)
13077 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13078 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13079 * rtlanal.c (subreg_lsb_1): Delete.
13080 (subreg_size_lsb): New function.
13081 * simplify-rtx.c: Include rtx-vector-builder.h
13082 (simplify_immed_subreg): Delete.
13083 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13084 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13085 functions.
13086 (simplify_subreg): Use them.
13087 (test_vector_subregs_modes, test_vector_subregs_repeating)
13088 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13089 (test_vector_subregs): New functions.
13090 (test_vector_ops): Call test_vector_subregs for integer vector
13091 modes with at least 2 elements.
13092
13093 2019-09-19 Richard Biener <rguenther@suse.de>
13094
13095 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13096 LOOP_VINFO_OPERANDS_SWAPPED.
13097 (parloops_is_simple_reduction): Likewise.
13098 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13099 initialize operands_swapped.
13100 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13101 (vect_is_slp_reduction): Do not swap operands.
13102 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13103 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13104
13105 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13106
13107 PR target/87007
13108 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13109 Add avx_partial_xmm_update.
13110
13111 2019-09-18 Jim Wilson <jimw@sifive.com>
13112
13113 PR target/91683
13114 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13115 (riscv_move_integer): Likewise.
13116 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13117 riscv_move_integer arg.
13118 (riscv_legitimize_move): Likewise.
13119 (riscv_force_temporary): New parameter in_splitter. Don't call
13120 force_reg if true.
13121 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13122 arg.
13123 (riscv_add_offset): Likewise.
13124 (riscv_split_symbol): New parameter in_splitter. Pass to
13125 riscv_force_temporary.
13126 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13127 arg.
13128 (riscv_move_integer): New parameter in_splitter. New local
13129 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13130 in_splitter TRUE.
13131 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13132 riscv_split_symbol, and riscv_force_temporary args.
13133 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13134 riscv_move_integer arg.
13135 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13136
13137 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13138
13139 PR target/90878
13140 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13141 hard register store cost to 6.
13142
13143 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13144
13145 PR target/91446
13146 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13147 pseudo register store cost from 3 to 6 to make it the same as
13148 QImode and HImode.
13149
13150 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13151
13152 PR target/91738
13153 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13154 (one_cmpldi2): Likewise.
13155 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13156 of the constant parts is simple.
13157 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13158 (logical_op): Add new code attribute.
13159 (logical_OP): Likewise.
13160 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13161 (arm_iordi_operand): Add predicate.
13162 (arm_xordi_operand): Add predicate.
13163
13164 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13165
13166 * config/arm/arm.md (maddsidi4): Remove expander.
13167 (mulsidi3adddi): Remove pattern.
13168 (mulsidi3adddi_v6): Likewise.
13169 (mulsidi3_nov6): Likewise.
13170 (mulsidi3_v6): Likewise.
13171 (umulsidi3): Remove expander.
13172 (umulsidi3_nov6): Remove pattern.
13173 (umulsidi3_v6): Likewise.
13174 (umulsidi3adddi): Likewise.
13175 (umulsidi3adddi_v6): Likewise.
13176 (<Us>mulsidi3): Add combined expander.
13177 (<Us>maddsidi4): Likewise.
13178 (<US>mull): Add combined umull and smull pattern.
13179 (<US>mlal): Likewise.
13180 * config/arm/iterators.md (Us): Add new iterator.
13181
13182 2019-09-18 Richard Biener <rguenther@suse.de>
13183
13184 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13185 swapping.
13186 (vectorize_fold_left_reduction): Remove assert.
13187 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13188 operand in position 2. Remove assert.
13189
13190 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13191
13192 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13193 (smulsi3_highpart_nov6): Remove pattern.
13194 (smulsi3_highpart_v6): Likewise.
13195 (umulsi3_highpart): Likewise.
13196 (umulsi3_highpart_nov6): Likewise.
13197 (umulsi3_highpart_v6): Likewise.
13198 (<US>mull_high): Add new combined multiply pattern.
13199
13200 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13201
13202 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13203 (arm_mulsi3_v6): Likewise.
13204 (mulsi3addsi_v6): Likewise.
13205 (mulsi3subsi): Likewise.
13206 (mul): Add new multiply pattern.
13207 (mla): Likewise.
13208 (mls): Likewise.
13209
13210 2019-09-18 Richard Biener <rguenther@suse.de>
13211
13212 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13213 (parloops_valid_reduction_input_p): Copy from
13214 valid_reduction_input_p.
13215 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13216 (parloops_needs_fold_left_reduction_p): Copy from
13217 needs_fold_left_reduction_p.
13218 (parloops_is_simple_reduction): Copy from
13219 vect_is_simple_reduction.
13220 (parloops_force_simple_reduction): Copy from
13221 vect_force_simple_reduction.
13222 (gather_scalar_reductions): Adjust.
13223 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13224 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13225
13226 2019-09-18 Richard Biener <rguenther@suse.de>
13227
13228 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13229 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13230 static.
13231 (vect_create_epilog_for_reduction): Remove dead code.
13232
13233 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13234
13235 * varasm.c (assemble_real): Generate canonical const_ints.
13236
13237 2019-09-18 Richard Biener <rguenther@suse.de>
13238
13239 PR lto/91763
13240 * lto-streamer-in.c (input_eh_regions): Move EH init to
13241 lto_materialize_function.
13242 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13243 Likewise.
13244
13245 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13246
13247 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13248 are INTEGER_CSTs.
13249
13250 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13251
13252 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13253 of checking specifically for INTEGER_CST.
13254
13255 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13256
13257 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13258 sizes instead of uhwi sizes.
13259
13260 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13261
13262 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13263 (add_const_value_attribute): Handle CONST_POLY_INT.
13264
13265 2019-09-18 Martin Liska <mliska@suse.cz>
13266
13267 * dbgcnt.def (store_merging): New counter.
13268 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13269 Use it in store merging.
13270
13271 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13272
13273 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13274 function.
13275 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13276 * config/arm/arm.c (arm_sched_variable_issue): New function.
13277 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13278
13279 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13280
13281 * config/arm/types.md (no_reservation): New reservation.
13282 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13283 no_insn here.
13284 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13285 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13286 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13287 * config/arm/arm1020e.md (1020alu_op): Likewise.
13288 * config/arm/arm1026ejs.md (alu_op): Likewise.
13289 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13290 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13291 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13292 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13293 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13294 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13295 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13296 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13297 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13298 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13299 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13300 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13301 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13302 * config/arm/fa526.md (526_alu_op): Likewise.
13303 * config/arm/fa606te.md (606te_alu_op): Likewise.
13304 * config/arm/fa626te.md (626te_alu_op): Likewise.
13305 * config/arm/fa726te.md (726te_alu_op): Likewise.
13306 * config/arm/xgene1.md (xgene1_nop): Likewise.
13307
13308 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13309
13310 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13311 "no_insn" to "branch".
13312
13313 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13314
13315 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13316
13317 2019-09-17 Richard Biener <rguenther@suse.de>
13318
13319 PR debug/91772
13320 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13321 was missing generate locations only once.
13322
13323 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13324
13325 PR ipa/91089
13326 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13327 option.
13328 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13329 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13330 for switch default case using range analysis information.
13331
13332 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13333
13334 PR target/91749
13335 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13336 mode attributed is supported by FDPIC.
13337
13338 2019-09-17 Richard Biener <rguenther@suse.de>
13339
13340 PR tree-optimization/91790
13341 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13342 use the correct DR for setting up realignment.
13343
13344 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13345
13346 PR target/91719
13347 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13348 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13349 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13350 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13351
13352 2019-09-16 Jason Merrill <jason@redhat.com>
13353
13354 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13355
13356 2019-09-16 Martin Liska <mliska@suse.cz>
13357
13358 * gimple-fold.c (or_comparisons_1): Remove rules moved
13359 to ...
13360 * match.pd: ... here.
13361
13362 2019-09-16 Martin Liska <mliska@suse.cz>
13363
13364 * gimple-fold.c (or_comparisons_1): Remove rules
13365 moved to ...
13366 * match.pd: ... here.
13367
13368 2019-09-16 Martin Liska <mliska@suse.cz>
13369
13370 * genmatch.c (dt_node::append_simplify): Do not print
13371 warning when we have duplicate patterns belonging
13372 to a same simplify rule.
13373 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13374 (maybe_fold_comparisons_from_match_pd): Handle
13375 tcc_comparison as a results.
13376 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13377
13378 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13379 Qi Feng <ffengqi@linux.ibm.com>
13380
13381 PR middle-end/88784
13382 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13383 (x > y && x == XXX_MIN): Optimize into 'false'.
13384 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13385 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13386 (x < y && x == XXX_MAX): Optimize into 'false'.
13387 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13388 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13389 (x <= y || x != XXX_MIN): Optimize into 'true'.
13390 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13391 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13392 (x >= y || x != XXX_MAX): Optimize into 'true'.
13393 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13394
13395 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13396 Martin Liska <mliska@suse.cz>
13397
13398 * gimple-fold.c (and_comparisons_1): Add type as first
13399 argument.
13400 (and_var_with_comparison): Likewise.
13401 (and_var_with_comparison_1): Likewise.
13402 (or_comparisons_1): Likewise.
13403 (or_var_with_comparison): Likewise.
13404 (or_var_with_comparison_1): Likewise.
13405 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13406 (maybe_fold_or_comparisons): Likewise.
13407 (maybe_fold_comparisons_from_match_pd): New.
13408 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13409 (maybe_fold_or_comparisons): Likewise.
13410 * gimple.c (gimple_size): Make it public and add num_ops argument.
13411 (gimple_init): New function.
13412 (gimple_alloc): Call gimple_init.
13413 * gimple.h (gimple_size): New.
13414 (gimple_init): Likewise.
13415 * tree-if-conv.c (fold_or_predicates): Pass type.
13416 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13417 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13418 (optimize_vec_cond_expr): Likewise.
13419 (ovce_extract_ops): Return type of conditional expression.
13420 * tree-ssanames.c (init_ssa_name_imm_use): New.
13421 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13422 * tree-ssanames.h (init_ssa_name_imm_use): New.
13423
13424 2019-09-16 Richard Biener <rguenther@suse.de>
13425
13426 PR tree-optimization/91756
13427 PR tree-optimization/87132
13428 * tree-ssa-alias.h (enum translate_flags): New.
13429 (get_continuation_for_phi): Use it instead of simple bool flag.
13430 (walk_non_aliased_vuses): Likewise.
13431 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13432 (get_continuation_for_phi): When looking across backedges only
13433 disallow valueization.
13434 (walk_non_aliased_vuses): Adjust.
13435 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13436 if requested.
13437
13438 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13439
13440 PR middle-end/80791
13441 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13442 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13443 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13444 * target.def (have_count_reg_decr_p): New hook.
13445 (doloop_cost_for_generic): Likewise.
13446 (doloop_cost_for_address): Likewise.
13447 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13448 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13449 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13450 * doc/tm.texi: Regenerate.
13451 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13452 addend.
13453 (record_group): Init doloop_p.
13454 (add_candidate_1): Add optional argument doloop, change the handlings
13455 accordingly.
13456 (add_candidate): Likewise.
13457 (generic_predict_doloop_p): Update attribute.
13458 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13459 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13460 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13461 MIN_EXPR.
13462 (get_computation_cost): Update for doloop IV cand extra cost.
13463 (determine_group_iv_cost_cond): Update for doloop IV cand.
13464 (determine_iv_cost): Likewise.
13465 (ivopts_estimate_reg_pressure): Likewise.
13466 (may_eliminate_iv): Update handlings for doloop IV cand.
13467 (add_iv_candidate_for_doloop): New function.
13468 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13469 (iv_ca_set_no_cp): Update for doloop IV cand.
13470 (iv_ca_set_cp): Likewise.
13471 (iv_ca_dump): Dump register cost.
13472 (find_doloop_use): New function.
13473 (analyze_and_mark_doloop_use): Likewise.
13474 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13475
13476 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13477
13478 PR middle-end/91708
13479 * cse.c (cse_insn): Do not replace anything with a
13480 MEM.
13481
13482 2019-09-13 Ian Lance Taylor <iant@golang.org>
13483
13484 * doc/invoke.texi (Optimize Options): Fix typo.
13485
13486 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13487
13488 PR tree-optimization/89386
13489 * config/i386/sse.md (smulhrs<mode>3): New expander.
13490 (smulhrsv4hi3): Ditto.
13491
13492 2019-09-12 Richard Biener <rguenther@suse.de>
13493
13494 PR tree-optimization/91750
13495 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13496 in the type of the evolution.
13497
13498 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13499
13500 PR tree-optimization/89386
13501 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13502 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13503 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13504 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13505 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13506 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13507 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13508 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13509 (su, r): Handle the unspecs above.
13510 (bt): New int attribute.
13511 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13512 * internal-fn.c (first_commutative_argument): Commutativity info for
13513 above.
13514 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13515 (umulhrs_optab): New optabs.
13516 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13517 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13518 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13519 function.
13520 (vect_vect_recog_func_ptrs): Add it.
13521
13522 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13523
13524 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13525 code.
13526
13527 2019-09-11 Nathan Sidwell <nathan@acm.org>
13528
13529 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13530 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13531
13532 2019-09-11 Richard Biener <rguenther@suse.de>
13533
13534 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13535 * lto-wrapper.c (merge_and_complain): Pick up -g.
13536 (append_compiler_options): Likewise.
13537 (run_gcc): Re-instantiate handling -g0 at link-time.
13538 * doc/invoke.texi (flto): Document debug info generation.
13539
13540 2019-09-11 Richard Biener <rguenther@suse.de>
13541
13542 PR tree-optimization/90387
13543 * vr-values.c (vr_values::extract_range_basic): After inlining
13544 simplify non-constant __builtin_constant_p to false.
13545
13546 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13547
13548 PR rtl-optimization/89795
13549 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13550 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13551
13552 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13553
13554 PR tree-optimization/91723
13555 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13556 instead of pointer equality when checking if argument vectypes are
13557 the same.
13558
13559 PR middle-end/91725
13560 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13561 of get_nonzero_bits, only call it for integral types.
13562
13563 2019-09-11 Richard Biener <rguenther@suse.de>
13564
13565 Revert
13566 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13567
13568 * match.pd: Add flag_unsafe_math_optimizations check
13569 before deciding on the widest type in a binary math operation.
13570
13571 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13572
13573 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13574 and CALL_REALLY_USED_REGISTERS must be defined, and that
13575 CALL_REALLY_USED_REGISTERS is preferred.
13576 * doc/tm.texi: Regenerate.
13577 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13578 (call_really_used_regs): Likewise.
13579 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13580 CALL_REALLY_USED_REGISTERS are defined.
13581 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13582 initial value if defined.
13583 (initial_call_really_used_regs): Delete.
13584 (saved_call_really_used_regs): Likewise.
13585 (CALL_REALLY_USED_REGNO_P): Likewise.
13586 (init_reg_sets): Remove handling of call_really_used_regs.
13587 (save_register_info, restore_register_info, globalize_reg): Likewise.
13588 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13589 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13590 outside operand_reg_set.
13591 (fix_register): Don't change call_used_regs if
13592 CALL_REALLY_USED_REGISTERS is defined.
13593 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13594 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13595 instead of call_really_used_regs.
13596 (csky_conditional_register_usage): Remove the old handling of
13597 call_used_regs and change the handling of call_really_used_regs
13598 to use call_used_regs instead.
13599 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13600 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13601 making a register fixed.
13602 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13603 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13604 instead of call_really_used_regs.
13605 (m32r_conditional_register_usage): Don't set call_used_regs when
13606 making a register fixed.
13607 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13608 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13609 instead of call_really_used_regs.
13610 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13611 (mips_cfun_call_saved_reg_p): Likewise.
13612 (mips_swap_registers): Remove the old handling of call_used_regs
13613 and change the handling of call_really_used_regs to use call_used_regs
13614 instead.
13615 (mips_conditional_register_usage): Likewise.
13616 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13617 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13618 instead of call_really_used_regs.
13619 (mn10300_get_live_callee_saved_regs): Likewise.
13620 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13621 (mn10300_conditional_register_usage): Don't set call_used_regs when
13622 making a register fixed.
13623 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13624 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13625 Remove the old handling of call_used_regs and change the handling
13626 of call_really_used_regs to use call_used_regs instead.
13627 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13628 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13629 instead of call_really_used_regs.
13630 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13631 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13632 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13633 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13634 (s390_conditional_register_usage): Remove the old handling of
13635 call_used_regs and change the handling of call_really_used_regs
13636 to use call_used_regs instead.
13637 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13638 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13639 (sh_fix_range, reg_unused_after): Likewise.
13640 (sh_conditional_register_usage): Remove the old handling of
13641 call_used_regs and change the handling of call_really_used_regs
13642 to use call_used_regs instead.
13643 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13644 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13645 call_used_regs when making a register fixed.
13646 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13647 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13648 call_used_regs when making a register fixed.
13649 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13650 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13651 set call_used_regs when making a register fixed.
13652 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13653 * config/visium/visium.c (visium_conditional_register_usage): Remove
13654 the old handling of call_used_regs and change the handling of
13655 call_really_used_regs to use call_used_regs instead.
13656
13657 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13658
13659 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13660 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13661 * reginfo.c (call_used_regs): New macro.
13662
13663 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13664
13665 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13666 fixed_regs test.
13667 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13668 (bpf_expand_epilogue): Likewise.
13669 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13670 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13671 (ft32_expand_epilogue): Likewise.
13672 * config/i386/i386.c (ix86_save_reg): Likewise.
13673 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13674 (moxie_expand_epilogue): Likewise.
13675 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13676 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13677 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13678
13679 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13680
13681 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13682 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13683 instead of testing call_used_regs directly.
13684 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13685 (aarch64_components_for_bb): Likewise.
13686 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13687 * config/arc/arc.c (arc_must_save_register): Likewise.
13688 (arc_epilogue_uses): Likewise.
13689 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13690 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13691 (arm_compute_save_reg0_reg12_mask): Likewise.
13692 (arm_compute_save_core_reg_mask): Likewise.
13693 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13694 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13695 (cmse_nonsecure_entry_clear_before_return): Likewise.
13696 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13697 (arm_expand_epilogue): Likewise.
13698 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13699 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13700 (_reg_unused_after): Likewise.
13701 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13702 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13703 (add_to_reg, hwloop_optimize): Likewise.
13704 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13705 (bpf_expand_epilogue): Likewise.
13706 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13707 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13708 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13709 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13710 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13711 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13712 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13713 * config/frv/frv.c (frv_stack_info): Likewise.
13714 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13715 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13716 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13717 (move_callee_saved_registers): Likewise.
13718 * config/h8300/h8300.c (byte_reg): Likewise.
13719 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13720 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13721 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13722 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13723 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13724 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13725 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13726 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13727 * config/m32c/m32c.c (need_to_save): Likewise.
13728 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13729 * config/mcore/mcore.c (calc_live_regs): Likewise.
13730 * config/microblaze/microblaze.c (microblaze_must_save_register):
13731 Likewise.
13732 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13733 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13734 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13735 (mmix_expand_epilogue): Likewise.
13736 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13737 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13738 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13739 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13740 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13741 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13742 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13743 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13744 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13745 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13746 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13747 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13748 * config/rl78/rl78.c (need_to_save): Likewise.
13749 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13750 (rs6000_stack_info, generate_set_vrsave): Likewise.
13751 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13752 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13753 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13754 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13755 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13756 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13757 (save_local_or_in_reg_p): Likewise.
13758 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13759 (xstormy16_epilogue_uses): Likewise.
13760 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13761 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13762 * config/v850/v850.c (compute_register_save_size): Likewise.
13763 * config/vax/vax.c (vax_expand_prologue): Likewise.
13764 * config/visium/visium.c (visium_save_reg_p): Likewise.
13765 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13766 * cselib.c (cselib_process_insn): Likewise.
13767 * df-scan.c (df_get_entry_block_def_set): Likewise.
13768 * function.c (aggregate_value_p): Likewise.
13769 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13770 * ira-lives.c (process_bb_node_lives): Likewise.
13771 * ira.c (do_reload): Likewise.
13772 * lra-lives.c (process_bb_lives): Likewise.
13773 * lra-remat.c (lra_remat): Likewise.
13774 * lra.c (lra): Likewise.
13775 * postreload.c (reload_combine_recognize_pattern): Likewise.
13776 (reload_cse_move2add): Likewise.
13777 * recog.c (peep2_find_free_register): Likewise.
13778 * regrename.c (check_new_reg_p): Likewise.
13779 * reload.c (find_equiv_reg): Likewise.
13780 * reload1.c (reload, find_reg): Likewise.
13781 * sel-sched.c (init_hard_regs_data): Likewise.
13782
13783 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13784
13785 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13786 regs_invalidated_by_call & ~fixed_reg_set instead of
13787 call_used_or_fixed_regs & ~fixed_reg_set.
13788 * config/sh/sh.c (output_stack_adjust): Likewise.
13789
13790 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13791
13792 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13793 (call_used_reg_set): Delete.
13794 (call_used_or_fixed_regs): New macro.
13795 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13796 of call_used_reg_set.
13797 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13798 instead of call_used_regs.
13799 (save_call_clobbered_regs): Likewise.
13800 * cfgcleanup.c (old_insns_match_p): Likewise.
13801 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13802 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13803 Likewise.
13804 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13805 * config/sh/sh.c (output_stack_adjust): Likewise.
13806 * final.c (collect_fn_hard_reg_usage): Likewise.
13807 * ira-build.c (ira_build): Likewise.
13808 * ira-color.c (calculate_saved_nregs): Likewise.
13809 (allocno_reload_assign, calculate_spill_cost): Likewise.
13810 * ira-conflicts.c (ira_build_conflicts): Likewise.
13811 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13812 * ira-lives.c (process_bb_node_lives): Likewise.
13813 * ira.c (setup_reg_renumber): Likewise.
13814 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13815 * lra-constraints.c (need_for_call_save_p): Likewise.
13816 (need_for_split_p, inherit_in_ebb): Likewise.
13817 * lra-lives.c (process_bb_lives): Likewise.
13818 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13819 * postreload.c (reload_combine): Likewise.
13820 * regrename.c (find_rename_reg): Likewise.
13821 * reload1.c (reload_as_needed): Likewise.
13822 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13823 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13824 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13825
13826 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13827
13828 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13829 (no_caller_save_reg_set): Delete.
13830 * caller-save.c (init_caller_save): Don't initialize it.
13831 * ira-conflicts.c (ira_build_conflicts): Calculate
13832 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13833
13834 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13835
13836 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13837 (target_hard_regs::x_savable_regs): New field.
13838 (call_fixed_reg_set): Delete.
13839 (savable_regs): New macro,
13840 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13841 (init_reg_sets_1): Likewise. Initialize savable_regs.
13842 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13843 for all registers. Set savable_regs instead of call_fixed_reg_set.
13844 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13845 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13846 * config/sh/sh.c (output_stack_adjust): Likewise.
13847
13848 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13849
13850 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13851 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13852 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13853
13854 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13855
13856 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13857 * rtlanal.c (get_call_rtx_from): Likewise.
13858 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13859 than the pattern to get_call_rtx_from.
13860 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13861 an rtx_insn * instead of an rtx.
13862 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13863
13864 2019-09-10 Martin Liska <mliska@suse.cz>
13865
13866 * common.opt: Use newly added WarnRemoved.
13867 * config/aarch64/aarch64.opt: Likewise.
13868 * config/arm/arm.opt: Likewise.
13869 * config/i386/i386.opt: Likewise.
13870 * config/ia64/ia64.opt: Likewise.
13871 * config/rs6000/rs6000.opt: Likewise.
13872 * doc/options.texi: Document WarnRemoved properly.
13873 * dwarf2out.c (gen_producer_string): Handle renamed
13874 OPT_SPECIAL_warn_removed.
13875 * lto-opts.c (lto_write_options): Likewise.
13876 * lto-wrapper.c (merge_and_complain): Likewise.
13877 * opts-common.c (decode_cmdline_option): Likewise.
13878 (prune_options): Likewise.
13879 (read_cmdline_option): Likewise.
13880 (control_warning_option): Likewise.
13881 * opts.c (print_filtered_help): Likewise.
13882 * optc-gen.awk: Parse for WarnRemoved and make usage
13883 of Deprecated an error.
13884 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13885
13886 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13887
13888 * doc/install.texi: Fix syntax for html generation.
13889
13890 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13891
13892 PR middle-end/91680
13893 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13894 the shift type to type.
13895
13896 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13897
13898 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13899 FDPIC mode.
13900 (stack_protect_combined_test_insn): Likewise.
13901
13902 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13903 Mickaël Guêné <mickael.guene@st.com>
13904
13905 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13906 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13907 (load_tp_soft_fdpic): New pattern.
13908 (load_tp_soft): Disable in FDPIC mode.
13909
13910 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13911 Mickaël Guêné <mickael.guene@st.com>
13912
13913 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13914 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13915 (arm_call_tls_get_addr): Add FDPIC support.
13916 (legitimize_tls_address): Likewise.
13917 (arm_emit_tls_decoration): Likewise.
13918
13919 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13920 Mickaël Guêné <mickael.guene@st.com>
13921
13922 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13923 support.
13924 (arm_trampoline_init): Likewise.
13925 (arm_trampoline_adjust_address): Likewise.
13926 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13927
13928 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13929 Mickaël Guêné <mickael.guene@st.com>
13930
13931 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13932 (legitimize_pic_address): Enforce binding rules on function
13933 pointers in FDPIC mode.
13934 (arm_assemble_integer): Likewise.
13935
13936 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13937 Mickaël Guêné <mickael.guene@st.com>
13938
13939 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13940 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13941 FDPIC.
13942
13943 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13944 Mickaël Guêné <mickael.guene@st.com>
13945
13946 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13947 field.
13948
13949 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13950 Mickaël Guêné <mickael.guene@st.com>
13951
13952 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13953 in FDPIC mode.
13954 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13955 new function.
13956 * config/arm/arm.c (arm_option_override): Define pic register to
13957 FDPIC_REGNUM.
13958 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13959 have no decl or go through PLT.
13960 (calculate_pic_address_constant): New function.
13961 (legitimize_pic_address): Call calculate_pic_address_constant.
13962 (arm_load_pic_register): Handle TARGET_FDPIC.
13963 (arm_is_segment_info_known): New function.
13964 (arm_pic_static_addr): Add support for FDPIC.
13965 (arm_load_function_descriptor): New function.
13966 (arm_emit_call_insn): Add support for FDPIC.
13967 (arm_assemble_integer): Add support for FDPIC.
13968 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13969 Define. (FDPIC_REGNUM): New define.
13970 * config/arm/arm.md (call): Add support for FDPIC.
13971 (call_value): Likewise.
13972 (restore_pic_register_after_call): New pattern.
13973 (untyped_call): Disable if FDPIC.
13974 (untyped_return): Likewise.
13975 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13976
13977 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13978 Mickaël Guêné <mickael.guene@st.com>
13979
13980 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13981 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13982 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13983 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13984 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13985 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13986 * config/arm/uclinuxfdpiceabi.h: New file.
13987
13988 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13989
13990 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13991
13992 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13993 Mickaël Guêné <mickael.guene@st.com>
13994
13995 * config/arm/arm.opt: Add -mfdpic option.
13996 * doc/invoke.texi: Add documentation for -mfdpic.
13997
13998 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13999
14000 * expmed.c (extract_bit_field): Update function comment
14001 regarding alt_rtl.
14002 * expr.c (expand_expr_real): Update function comment
14003 regarding alt_rtl.
14004 (expand_misaligned_mem_ref): New helper function.
14005 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14006 Remove duplicate assignment to "base" at case MEM_REF.
14007 Remove a shadowed variable "unsignedp" at case VCE.
14008
14009 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14010
14011 * regset.h (regs_invalidated_by_call_regset): Delete.
14012 (fixed_reg_set_regset): Likewise.
14013 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14014 (fixed_reg_set_regset, persistent_obstack): Likewise.
14015 (init_reg_sets_1, globalize_reg): Update accordingly.
14016 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14017 instead of a bitmap.
14018 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14019 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14020 instead of regs_invalidated_by_call_regset.
14021 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14022 * df-scan.c (df_scan_start_dump): Likewise.
14023 * dse.c (copy_fixed_regs): Likewise.
14024 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14025
14026 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14027
14028 * array-traits.h: New file.
14029 * coretypes.h (array_traits, bitmap_view): New types.
14030 * bitmap.h: Include "array-traits.h"
14031 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14032 (base_bitmap_view, bitmap_view): New classes.
14033 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14034 * hard-reg-set.h: Include array-traits.h.
14035 (array_traits<HARD_REG_SET>): New struct.
14036 * regset.h (IOR_REG_SET_HRS): New macro.
14037 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14038 rather than iterating over each hard register.
14039 * sched-deps.c (sched_analyze_insn): Likewise.
14040 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14041
14042 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14043
14044 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14045 instead of a HARD_REG_SET *.
14046 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14047 (ira_build): Update call accordingly.
14048 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14049
14050 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14051
14052 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14053 (HARD_REG_SET::operator!=): Likewise.
14054 (hard_reg_set_equal_p): Delete.
14055 * cfgcleanup.c (old_insns_match_p): Use == instead of
14056 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14057 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14058 (add_allocno_hard_regs_to_forest): Likewise.
14059 (setup_allocno_available_regs_num): Likewise.
14060 * ira.c (setup_pressure_classes): Likewise.
14061 (setup_allocno_and_important_classes): Likewise.
14062 (setup_reg_class_relations): Likewise.
14063 * lra-lives.c (process_bb_lives): Likewise.
14064 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14065
14066 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14067
14068 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14069 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14070 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14071 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14072 Likewise.
14073 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14074 * ira.c (setup_reg_renumber): Likewise.
14075 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14076 * regrename.c (regrename_find_superclass): Likewise.
14077 * reload1.c (find_reg): Likewise.
14078
14079 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14080
14081 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14082 * caller-save.c (setup_save_areas): Use "&~" instead of
14083 AND_COMPL_HARD_REG_SET.
14084 (save_call_clobbered_regs): Likewise.
14085 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14086 Likewise.
14087 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14088 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14089 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14090 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14091 (mips_conditional_register_usage): Likewise.
14092 * config/sh/sh.c (output_stack_adjust): Likewise.
14093 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14094 (setup_profitable_hard_regs): Likewise.
14095 (get_conflict_and_start_profitable_regs): Likewise.
14096 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14097 (ira_build_conflicts): Likewise.
14098 * ira-costs.c (restrict_cost_classes): Likewise.
14099 (setup_regno_cost_classes_by_aclass): Likewise.
14100 * ira-lives.c (process_bb_node_lives): Likewise.
14101 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14102 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14103 (setup_allocno_and_important_classes, setup_class_translate_array)
14104 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14105 Likewise.
14106 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14107 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14108 (process_alt_operands, inherit_in_ebb): Likewise.
14109 * lra-eliminations.c (update_reg_eliminate): Likewise.
14110 * lra-lives.c (process_bb_lives): Likewise.
14111 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14112 * resource.c (find_dead_or_set_registers): Likewise.
14113 (mark_target_live_regs): Likewise.
14114 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14115 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14116 (implicit_clobber_conflict_p): Likewise.
14117 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14118 (try_shrink_wrapping): Likewise.
14119
14120 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14121
14122 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14123 (HARD_REG_SET::operator|=): Likewise.
14124 (IOR_HARD_REG_SET): Delete.
14125 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14126 IOR_HARD_REG_SET.
14127 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14128 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14129 * final.c (collect_fn_hard_reg_usage): Likewise.
14130 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14131 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14132 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14133 (propagate_some_info_from_allocno): Likewise.
14134 (copy_info_to_removed_store_destinations): Likewise.
14135 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14136 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14137 (fast_allocation): Likewise.
14138 * ira-conflicts.c (ira_build_conflicts): Likewise.
14139 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14140 (process_bb_node_lives): Likewise.
14141 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14142 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14143 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14144 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14145 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14146 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14147 (process_bb_lives): Likewise.
14148 * lra-spills.c (assign_spill_hard_regs): Likewise.
14149 * postreload.c (reload_combine): Likewise.
14150 * reginfo.c (init_reg_sets_1): Likewise.
14151 * regrename.c (merge_overlapping_regs, find_rename_reg)
14152 (merge_chains): Likewise.
14153 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14154 (find_reload_regs, finish_spills, choose_reload_regs_init)
14155 (emit_reload_insns): Likewise.
14156 * reorg.c (redundant_insn): Likewise.
14157 * resource.c (find_dead_or_set_registers, mark_set_resources)
14158 (mark_target_live_regs): Likewise.
14159 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14160 * sched-deps.c (sched_analyze_insn): Likewise.
14161 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14162 (find_best_reg_for_expr): Likewise.
14163 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14164
14165 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14166
14167 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14168 (HARD_REG_SET::operator&): Likewise.
14169 (AND_HARD_REG_SET): Delete.
14170 * caller-save.c (setup_save_areas): Use "&" instead of
14171 AND_HARD_REG_SET.
14172 (save_call_clobbered_regs): Likewise.
14173 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14174 * config/m32c/m32c.c (reduce_class): Likewise.
14175 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14176 * final.c (get_call_reg_set_usage): Likewise.
14177 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14178 (setup_left_conflict_sizes_p): Likewise.
14179 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14180 (ira_build_conflicts): Likewise.
14181 * ira-costs.c (restrict_cost_classes): Likewise.
14182 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14183 (setup_reg_class_relations): Likewise.
14184 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14185 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14186 * resource.c (find_dead_or_set_registers): Likewise.
14187 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14188
14189 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14190
14191 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14192 (COMPL_HARD_REG_SET): Delete.
14193 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14194 of COMPL_HARD_REG_SET.
14195 (try_rename_operands): Likewise.
14196 * config/sh/sh.c (push_regs): Likewise.
14197 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14198 * lra-constraints.c (contains_reg_p): Likewise.
14199 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14200
14201 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14202
14203 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14204 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14205 of COPY_HARD_REG_SET.
14206 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14207 (epiphany_conditional_register_usage): Likewise.
14208 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14209 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14210 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14211 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14212 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14213 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14214 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14215 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14216 * config/sh/sh.c (output_stack_adjust): Likewise.
14217 * final.c (collect_fn_hard_reg_usage): Likewise.
14218 (get_call_reg_set_usage): Likewise.
14219 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14220 (ira_flattening): Likewise.
14221 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14222 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14223 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14224 (ira_reassign_pseudos): Likewise.
14225 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14226 (ira_build_conflicts): Likewise.
14227 * ira-costs.c (restrict_cost_classes): Likewise.
14228 (setup_regno_cost_classes_by_aclass): Likewise.
14229 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14230 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14231 (setup_stack_reg_pressure_class, setup_pressure_classes)
14232 (setup_allocno_and_important_classes, setup_class_translate_array)
14233 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14234 (ira_setup_eliminable_regset): Likewise.
14235 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14236 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14237 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14238 (process_alt_operands, inherit_in_ebb): Likewise.
14239 * lra-lives.c (process_bb_lives): Likewise.
14240 * lra-spills.c (assign_spill_hard_regs): Likewise.
14241 * lra.c (lra): Likewise.
14242 * mode-switching.c (new_seginfo): Likewise.
14243 * postreload.c (reload_combine): Likewise.
14244 * reg-stack.c (straighten_stack): Likewise.
14245 * reginfo.c (save_register_info, restore_register_info): Likewise.
14246 (init_reg_sets_1, record_subregs_of_mode): Likewise
14247 * regrename.c (create_new_chain, rename_chains): Likewise.
14248 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14249 (find_reload_regs): Likewise.
14250 * resource.c (find_dead_or_set_registers): Likewise.
14251 (mark_target_live_regs): Likewise.
14252 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14253
14254 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14255
14256 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14257 (note_pattern_stores): Declare.
14258 (note_stores): Take an rtx_insn *.
14259 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14260 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14261 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14262 (note_stores): Take an rtx_insn * as argument and process
14263 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14264 (note_pattern_stores): ...this.
14265 (find_first_parameter_load): Pass the insn rather than
14266 its pattern to note_stores.
14267 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14268 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14269 (insert_one_insn): Likewise.
14270 * combine.c (combine_instructions): Likewise.
14271 (likely_spilled_retval_p): Likewise.
14272 (try_combine): Use note_pattern_stores instead of note_stores.
14273 (record_dead_and_set_regs): Pass the insn rather than its pattern
14274 to note_stores.
14275 (reg_dead_at_p): Likewise.
14276 * config/bfin/bfin.c (workaround_speculation): Likewise.
14277 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14278 rather than an rtx.
14279 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14280 instead of note_stores.
14281 (frv_optimize_membar_local): Pass the insn rather than its pattern
14282 to note_stores.
14283 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14284 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14285 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14286 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14287 (mips_reorg_process_insns): Likewise.
14288 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14289 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14290 rather than rtxes.
14291 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14292 its pattern to note_stores.
14293 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14294 of note_stores.
14295 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14296 the insn to note_stores.
14297 (prescan_insns_for_dce): Update call accordingly.
14298 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14299 to note_stores.
14300 * df-problems.c (can_move_insns_across): Likewise.
14301 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14302 * function.c (assign_parm_setup_reg): Likewise.
14303 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14304 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14305 (single_set_gcse): Likewise.
14306 * ira.c (validate_equiv_mem): Likewise.
14307 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14308 for no_equiv.
14309 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14310 pattern to note_stores.
14311 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14312 * loop-iv.c (simplify_using_initial_values): Likewise.
14313 * mode-switching.c (optimize_mode_switching): Likewise.
14314 * optabs.c (emit_libcall_block_1): Likewise.
14315 (expand_atomic_compare_and_swap): Likewise.
14316 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14317 (record_opr_changes): Likewise. Remove explicit handling of
14318 CALL_INSN_FUNCTION_USAGE.
14319 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14320 * regcprop.c (kill_clobbered_values): Likewise.
14321 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14322 to note_stores.
14323 * regrename.c (build_def_use): Likewise.
14324 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14325 for mark_not_eliminable.
14326 (reload_as_needed): Pass the insn rather than its pattern
14327 to note_stores.
14328 (emit_output_reload_insns): Likewise.
14329 * resource.c (mark_target_live_regs): Likewise.
14330 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14331 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14332 instead of note_stores.
14333 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14334 its pattern to note_stores.
14335 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14336 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14337
14338 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14339
14340 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14341 than a #define. Use a structure rather than an array as the
14342 fallback definition. Remove special cases for low array sizes.
14343 (const_hard_reg_set): New typedef.
14344 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14345 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14346 (hard_reg_set_empty_p): Likewise.
14347 (SET_HARD_REG_BIT): Use a function rather than a macro to
14348 handle the case in which HARD_REG_SET is a structure.
14349 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14350 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14351 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14352 (IOR_COMPL_HARD_REG_SET): Likewise.
14353 (hard_reg_set_iterator::pset): Constify the pointer target.
14354 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14355 of a "const HARD_REG_SET". Update the handling of non-integer
14356 HARD_REG_SETs.
14357 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14358 * reload.h: Likewise.
14359 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14360 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14361 of a "const HARD_REG_SET".
14362 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14363 (range_in_hard_reg_set_p): Likewise.
14364 * ira-costs.c (restrict_cost_classes): Likewise.
14365 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14366 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14367 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14368 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14369 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14370 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14371 take an unsigned int and open-code the HARD_REG_SET operations.
14372
14373 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14374
14375 * Makefile.in (OBJS): Remove bt-load.o.
14376 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14377 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14378 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14379 document that the option no longer does anything.
14380 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14381 * target.def (branch_target_register_class): Delete.
14382 (branch_target_register_callee_saved): Likewise.
14383 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14384 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14385 * doc/tm.texi: Regenerate.
14386 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14387 (make_pass_branch_target_load_optimize2): Likewise.
14388 * passes.def (pass_branch_target_load_optimize1): Likewise.
14389 (pass_branch_target_load_optimize2): Likewise.
14390 * targhooks.h (default_branch_target_register_class): Likewise.
14391 * targhooks.c (default_branch_target_register_class): Likewise.
14392 * opt-suggestions.c (test_completion_valid_options): Remove
14393 -fbtr-bb-exclusive from the list of test options.
14394 * bt-load.c: Remove.
14395
14396 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14397
14398 * match.pd: Add flag_unsafe_math_optimizations check
14399 before deciding on the widest type in a binary math operation.
14400
14401 2019-09-09 Martin Liska <mliska@suse.cz>
14402
14403 * config/i386/i386.opt: Update comment of removed
14404 options that are preserved only for backward
14405 compatibility.
14406
14407 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14408
14409 PR target/87853
14410 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14411 instead of __v16qs.
14412
14413 PR target/91704
14414 * config/i386/avxintrin.h (__v32qs): New typedef.
14415 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14416 instead of __v32qi.
14417
14418 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14419
14420 * doc/invoke.texi (Option Summary): Cover eBPF.
14421 (eBPF Options): New section.
14422 * doc/extend.texi (BPF Built-in Functions): Likewise.
14423 (BPF Kernel Helpers): Likewise.
14424
14425 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14426
14427 * config.gcc: Support for bpf-*-* targets.
14428 * common/config/bpf/bpf-common.c: New file.
14429 * config/bpf/t-bpf: Likewise.
14430 * config/bpf/predicates.md: Likewise.
14431 * config/bpf/constraints.md: Likewise.
14432 * config/bpf/bpf.opt: Likewise.
14433 * config/bpf/bpf.md: Likewise.
14434 * config/bpf/bpf.h: Likewise.
14435 * config/bpf/bpf.c: Likewise.
14436 * config/bpf/bpf-protos.h: Likewise.
14437 * config/bpf/bpf-opts.h: Likewise.
14438 * config/bpf/bpf-helpers.h: Likewise.
14439 * config/bpf/bpf-helpers.def: Likewise.
14440
14441 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14442
14443 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14444 indirect_calls.
14445
14446 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14447
14448 * opt-functions.awk (integer_range_info): Make sure values are in
14449 numeric context before operating with them.
14450
14451 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14452
14453 * genemit.c (gen_split): Print the filename and line number where the
14454 splitter (or peephole2) was defined, to the dump file.
14455
14456 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14457
14458 PR tree-optimization/91665
14459 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14460 incompatible with the type of PHI result.
14461
14462 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14463
14464 PR target/91684
14465 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14466 gen_unaligned_storedi for 4-byte aligned addresses.
14467
14468 2019-09-06 Jim Wilson <jimw@sifive.com>
14469
14470 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14471 change.
14472
14473 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14474
14475 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14476
14477 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14478
14479 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14480 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14481
14482 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14483
14484 PR target/91654
14485 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14486 cost of SSE->integer and integer->SSE moves from 2 to 6.
14487 (core_cost): Ditto.
14488
14489 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14490
14491 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14492 before testing TYPE_TRANSPARENT_AGGR.
14493 * calls.c (initialize_argument_information, load_register_parameters):
14494 Likewise.
14495
14496 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14497
14498 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14499 high regs.
14500 (cmp_ior): Likewise.
14501
14502 2019-09-06 Martin Liska <mliska@suse.cz>
14503
14504 * doc/match-and-simplify.texi: Separate tuples with ;.
14505
14506 2019-09-06 Martin Liska <mliska@suse.cz>
14507
14508 PR c++/91125
14509 * Makefile.in: Remove tlink.o.
14510 * collect2.c (do_link): New function isolated
14511 from do_tlink.
14512 (main): Use.
14513 * collect2.h (do_tlink): Remove declaration of do_tlink.
14514 * doc/extend.texi: Remove documentation of -frepo.
14515 * doc/invoke.texi: Likewise.
14516 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14517 * tlink.c: Remove.
14518
14519 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14520 Jim Wilson <jimw@sifive.com>
14521
14522 PR target/91635
14523 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14524 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14525 paradoxical_subreg_p (operands[0]).
14526 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14527 use as intermediate value.
14528
14529 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14530
14531 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14532 (sync_compare_and_swap<mode>_insn): Likewise.
14533
14534 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14535
14536 PR middle-end/91615
14537 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14538 without movmisalign optab.
14539
14540 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14541
14542 PR middle-end/91001
14543 PR middle-end/91105
14544 PR middle-end/91106
14545 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14546 types, use type of their first field instead of type of
14547 args[i].tree_value.
14548
14549 2019-09-05 Richard Biener <rguenther@suse.de>
14550
14551 PR rtl-optimization/91656
14552 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14553 of early out.
14554
14555 2019-09-05 Richard Biener <rguenther@suse.de>
14556
14557 PR middle-end/90501
14558 * tree-inline.c (declare_return_variable): Mark the return
14559 slot as addressable after building an address of it.
14560
14561 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14562
14563 * doc/install.texi: Update and clarify requirements to build GNAT.
14564
14565 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14566
14567 PR middle-end/91577
14568 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14569 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14570 call to be in memory.
14571 (pass_expand::execute): Call discover_nonconstant_array_refs before
14572 setting currently_expanding_to_rtl.
14573
14574 2019-09-04 Caroline Tice <cmtice@google.com>
14575
14576 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14577 specified together.
14578
14579 2019-09-04 Marek Polacek <polacek@redhat.com>
14580
14581 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14582
14583 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14584
14585 PR target/32413
14586 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14587 for QI and HImode moves between SSE and general registers.
14588
14589 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14590
14591 PR c/78736
14592 * doc/invoke.texi: Document -Wenum-conversion.
14593
14594 2019-09-04 Richard Biener <rguenther@suse.de>
14595
14596 PR rtl-optimization/36262
14597 * postreload-gcse.c: Include intl.h and gcse.h.
14598 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14599 to avoid linear list walk.
14600 (record_last_mem_set_info): Gate off if not computing transparentness.
14601 (get_bb_avail_insn): If transparentness isn't computed give up
14602 early.
14603 (gcse_after_reload_main): Skip compute_transp and extended PRE
14604 if gcse_or_cprop_is_too_expensive says so.
14605
14606 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14607
14608 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14609 noinit section.
14610 (msp430_select_section): Handle decls with the "noinit" attribute with
14611 default_elf_select_section.
14612 Handle SECCAT_RODATA_MERGE_* section types with
14613 default_elf_select_section.
14614 Add comments about handling of unsupported section types.
14615 (msp430_section_type_flags): Remove handling of the noinit section.
14616
14617 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14618
14619 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14620 conflicting msp430-specific attributes.
14621 (msp430_section_attr): Likewise.
14622 Add warnings about conflicts with generic "noinit" and "section"
14623 attributes.
14624 Fix grammar in -mlarge error message.
14625 (msp430_data_attr): Rename to msp430_persist_attr.
14626 Add warnings about conflicts with generic "noinit" and "section"
14627 attributes.
14628 Add warning for when variable is not initialized.
14629 Chain conditionals which prevent the attribute being added.
14630 (ATTR_EXCL): New helper.
14631 (attr_reent_exclusions): New exclusion table.
14632 (attr_naked_exclusions): Likewise.
14633 (attr_crit_exclusions): Likewise.
14634 (attr_lower_exclusions): Likewise.
14635 (attr_upper_exclusions): Likewise.
14636 (attr_either_exclusions): Likewise.
14637 (attr_persist_exclusions): Likewise.
14638 (msp430_attribute_table): Update with exclusion rules.
14639 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14640 has a section.
14641
14642 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14643
14644 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14645 (msp430_handle_generic_attribute): New function.
14646 * doc/tm.texi: Regenerate.
14647 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14648 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14649 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14650 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14651
14652 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14653
14654 PR tree-optimization/91504
14655 * match.pd: Add ((~a & b) ^a) --> (a | b).
14656
14657 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14658
14659 PR target/91604
14660 * config/i386/i386-expand.c (split_double_mode): If there is more than
14661 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14662 already split matching MEM operand instead of calling adjust_address
14663 again.
14664
14665 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14666
14667 * config.gcc: Obsolete spu target. Remove references to spu.
14668 * configure.ac: Remove references to spu.
14669 * configure: Regenerate.
14670 * config/spu/: Remove directory.
14671 * common/config/spu/: Remove directory.
14672
14673 * doc/extend.texi: Remove references to spu.
14674 * doc/invoke.texi: Likewise.
14675 * doc/md.texi: Likewise.
14676 * doc/sourcebuild.texi: Likewise.
14677
14678 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14679
14680 PR middle-end/91603
14681 PR middle-end/91612
14682 PR middle-end/91613
14683 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14684 and SSA_NAME referring to CONSTANT_P correctly.
14685
14686 2019-09-03 Richard Biener <rguenther@suse.de>
14687
14688 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14689 (vn_nary_op_insert): Likewise.
14690 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14691 (vn_nary_op_lookup): Likewise.
14692 (vn_nary_op_insert): Likewise.
14693
14694 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14695
14696 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14697 (*op0, 1) instead of XEXP (*op1, 0).
14698
14699 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14700
14701 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14702 (aarch64_fjcvtzs): New define_insn.
14703 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14704 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14705 Add AARCH64_JSCVT.
14706 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14707 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14708 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14709 __ARM_FEATURE_JCVT where appropriate.
14710 * config/aarch64/arm_acle.h (__jcvt): Define.
14711
14712 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14713
14714 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14715 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14716 (aarch64_<frintnzs_op><mode>): New define_insn.
14717 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14718 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14719 __ARM_FEATURE_FRINT when appropriate.
14720 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14721 frint32x, frint64z, frint64x.
14722 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14723 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14724 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14725 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14726 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14727 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14728 * config/aarch64/iterators.md (VSFDF): Define.
14729 (FRINTNZX): Likewise.
14730 (frintnzs_op): Likewise.
14731
14732 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14733
14734 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14735 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14736 Cortex-A34.
14737 * config/aarch64/aarch64-tune.md: Regenerated.
14738 * doc/invoke.texi: Document the new processors.
14739
14740 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14741
14742 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14743 string.
14744 (ssbs): Likewise.
14745 (sve2): Likewise.
14746 (sve2-sm4): Likewise.
14747 (sveaes): Likewise.
14748 (svesha3): Likewise.
14749 (svebitperm): Likewise.
14750
14751 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14752 Richard Biener <rguenther@suse.de>
14753
14754 PR tree-optimization/91597
14755 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14756 BIT_AND_EXPR optimization for pointers, even if both operand
14757 ranges don't include NULL, the result can be NULL.
14758
14759 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14760
14761 PR middle-end/91605
14762 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14763 (non_mem_decl_p): ...this.
14764 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14765 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14766 unconditionally as before.
14767
14768 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14769
14770 PR target/91323
14771 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14772 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14773 * tree.def (LTGT_EXPR): Likewise.
14774 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14775
14776 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14777
14778 PR go/91617
14779 * fold-const.c (range_check_type): For enumeral and boolean
14780 type, pass 1 to type_for_size langhook instead of
14781 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14782 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14783 (build_range_check): Don't call unsigned_type_for for pointer types.
14784 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14785 range_check_type result.
14786
14787 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14788
14789 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14790 (replace_ref): Do not replace a chain of only two candidates which are
14791 valid memory references.
14792
14793 2019-09-02 Martin Liska <mliska@suse.cz>
14794
14795 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14796 Bail out when we'll end up with the same number of clusters as
14797 at the beginning.
14798 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14799 (jump_table_cluster::can_be_handled): Remove the guard
14800 as it's already handled in ::is_enabled. Allocate output
14801 after early bail out.
14802
14803 2019-09-02 Martin Liska <mliska@suse.cz>
14804
14805 PR gcov-profile/91601
14806 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14807 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14808 also negative edges.
14809 (circuit): Handle also negative edges as they can happen
14810 in some situations.
14811
14812 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14813
14814 PR target/91472
14815 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14816 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14817 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14818
14819 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14820
14821 PR middle-end/91623
14822 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14823 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14824 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14825 zero vector.
14826
14827 PR lto/91572
14828 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14829 GIMPLE_ASM TREE_LIST operands.
14830
14831 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14832
14833 * doc/generic.texi (Unary and Binary Expressions): Mark up
14834 an instance of TYPE_MIN.
14835
14836 2019-08-31 Stafford Horne <shorne@gmail.com>
14837
14838 * config/or1k/constraints.md (t): New constraint.
14839 * config/or1k/or1k.h (GOT_REGS): New register class.
14840 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14841
14842 2019-08-30 Jim Wilson <jimw@sifive.com>
14843
14844 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14845 and -fpic and -mplt then disable -msave-restore and warn.
14846
14847 2019-08-30 Martin Sebor <msebor@redhat.com>
14848
14849 PR middle-end/91599
14850 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14851 the statement doesn't have one.
14852 * gimple-pretty-print.c (percent_G_format): Same.
14853
14854 PR middle-end/91584
14855 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14856 before using them to validate MEM_REF offset.
14857
14858 2019-08-30 Marek Polacek <polacek@redhat.com>
14859
14860 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14861
14862 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14863
14864 * config/arm/arm.md (unaligned_loaddi,
14865 unaligned_storedi): New unspec insn patterns.
14866 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14867 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14868 and unaligned_storedi for 4-byte aligned memory.
14869 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14870 4-byte aligned memory.
14871
14872 2019-08-30 Martin Jambor <mjambor@suse.cz>
14873
14874 tree-optimization/91579
14875 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14876 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14877 appropriate.
14878 (arg_needs_copy_p): Removed.
14879 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14880 arg_needs_copy_p.
14881 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14882
14883 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14884
14885 * config/i386/i386-features.c
14886 (general_scalar_chain::compute_convert_gain):
14887 Correct cost for double-word shifts.
14888 (general_scalar_to_vector_candidate_p): Reject count operands
14889 greater or equal to mode bitsize.
14890
14891 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14892
14893 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14894 for moves between SSE and non-general registers and between
14895 mask and non-general registers.
14896 (ix86_register_move_cost): Remove stalled comment.
14897
14898 2019-08-29 Richard Biener <rguenther@suse.de>
14899
14900 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14901 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14902
14903 2019-08-29 Richard Biener <rguenther@suse.de>
14904
14905 PR bootstrap/91580
14906 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14907 Do not emit scalar copies for debug-insns, instead replace
14908 their uses with the reg copy used in the chain or reset them
14909 if there is a reaching definition outside of the chain as well.
14910
14911 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14912
14913 PR target/91560
14914 * config/i386/i386-expand.c (expand_vec_perm_movs,
14915 expand_vec_perm_blend, expand_vec_perm_vpermil,
14916 expand_vec_perm_pshufb, expand_vec_perm_1,
14917 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14918 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14919 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14920 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14921 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14922 comments - replace ix86_expand_vec_perm_builtin_1 with
14923 ix86_expand_vec_perm_const_1.
14924 (expand_vec_perm2_vperm2f128_vblend): New function.
14925 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14926 expand_vec_perm2_vperm2f128_vblend as last resort.
14927 (canonicalize_perm): Formatting fix.
14928
14929 PR tree-optimization/91351
14930 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14931 unsigned_type_for.
14932 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14933 range_check_type returns NULL.
14934 * tree-switch-conversion.c (switch_conversion::build_one_array):
14935 Use range_check_type instead of unsigned_type_for, don't perform
14936 linear opt if it returns NULL.
14937 (bit_test_cluster::find_bit_tests): Formatting fix.
14938 (bit_test_cluster::emit): Use range_check_type instead of
14939 unsigned_type_for.
14940 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14941 returns NULL.
14942
14943 2019-08-29 Richard Biener <rguenther@suse.de>
14944
14945 PR tree-optimization/91568
14946 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14947 (vect_update_max_nunits): Add overload for poly_uint64.
14948 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14949 (vect_build_slp_tree): Record max_nunits into the subtree
14950 and merge it upwards.
14951 (vect_print_slp_tree): Print max_nunits.
14952
14953 2019-08-28 Marek Polacek <polacek@redhat.com>
14954
14955 Implement P1152R4: Deprecating some uses of volatile.
14956 PR c++/91361
14957 * doc/invoke.texi: Document -Wvolatile.
14958
14959 2019-08-28 Marek Polacek <polacek@redhat.com>
14960
14961 PR c++/91360 - Implement C++20 P1143R2: constinit.
14962 * doc/invoke.texi: Document -Wc++20-compat.
14963
14964 2019-08-28 Martin Sebor <msebor@redhat.com>
14965
14966 PR tree-optimization/91457
14967 * builtins.c (component_size): New function.
14968 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14969 * builtins.h (compute_objsize): Add argument.
14970 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14971 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14972 (vrp_prop::check_mem_ref): Same.
14973 (vrp_prop::search_for_addr_array): Set no-warning bit.
14974 (check_array_bounds): Same.
14975
14976 2019-08-28 Martin Sebor <msebor@redhat.com>
14977
14978 PR driver/80545
14979 * opts-common.c (option_enabled): Correct checking for language
14980 options.
14981
14982 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14983
14984 * config/i386/i386.c (ix86_register_move_cost): Do not
14985 limit the cost of moves to/from XMM register to minimum 8.
14986
14987 2019-08-28 Martin Jambor <mjambor@suse.cz>
14988
14989 PR ipa/91468
14990 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14991 checking assert a normal assert to test it really is redundant.
14992 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14993 redundant test.
14994 (update_jump_functions_after_inlining): Removed combining unary
14995 arithmetic operations with an ancestor jump function.
14996 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14997 instead of t.
14998
14999 2019-08-28 Richard Biener <rguenther@suse.de>
15000
15001 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15002 add the MD problem.
15003
15004 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15005 Richard Biener <rguenther@suse.de>
15006
15007 * expr.c (expand_assignment): Handle misaligned DECLs.
15008 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15009 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15010 too.
15011 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15012 * varasm.c (build_constant_desc): Align constants of misaligned types.
15013 * config/arm/predicates.md (aligned_operand): New predicate.
15014 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15015 aligned_operand to check restrictions on memory addresses.
15016 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15017 * config/arm/vec-common.md (mov<VALL>): Likewise.
15018
15019 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15020
15021 PR libgomp/91530
15022 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15023 V_128 iterator instead of VI_128.
15024
15025 2019-08-28 Martin Liska <mliska@suse.cz>
15026
15027 PR tree-optimization/90970
15028 * builtins.c (check_access): Remove assignment to maxread
15029 as it hasn't been used since when it was introduced in r255755.
15030
15031 2019-08-27 Martin Sebor <msebor@redhat.com>
15032
15033 PR tree-optimization/91567
15034 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15035 of unknown strings.
15036 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15037 to PTRDIFF_MAX - 2.
15038
15039 2019-08-27 Jeff Law <law@redhat.com>
15040
15041 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15042 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15043
15044 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15045
15046 PR target/91528
15047 * config/i386/i386-features.c (convert_scalars_to_vector):
15048 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15049 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15050 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15051 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15052
15053 2019-08-27 Richard Biener <rguenther@suse.de>
15054
15055 * config/i386/i386-features.h
15056 (general_scalar_chain::~general_scalar_chain): Add.
15057 (general_scalar_chain::insns_conv): New bitmap.
15058 (general_scalar_chain::n_sse_to_integer): New.
15059 (general_scalar_chain::n_integer_to_sse): Likewise.
15060 (general_scalar_chain::make_vector_copies): Adjust signature.
15061 * config/i386/i386-features.c
15062 (general_scalar_chain::general_scalar_chain): Outline,
15063 initialize new members.
15064 (general_scalar_chain::~general_scalar_chain): New.
15065 (general_scalar_chain::mark_dual_mode_def): Record insns
15066 we need to insert conversions at and count them.
15067 (general_scalar_chain::compute_convert_gain): Account
15068 for conversion instructions at chain boundary.
15069 (general_scalar_chain::make_vector_copies): Generate a single
15070 copy for a def by a specific insn.
15071 (general_scalar_chain::convert_registers): First populate
15072 defs_map, then make copies at out-of chain insns.
15073
15074 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15075
15076 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15077 comment.
15078 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15079
15080 2019-08-27 Martin Liska <mliska@suse.cz>
15081
15082 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15083 loop.
15084 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15085 Enclose in anonymous namespace.
15086 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15087 hard_register initialization in braces.
15088 * tree-vrp.h (value_range_base::supports_type_p): Return false
15089 for function with boolean return type.
15090
15091 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15092
15093 * config/i386/i386.c (emit_i387_cw_initialization)
15094 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15095
15096 2019-08-26 Martin Sebor <msebor@redhat.com>
15097
15098 PR c++/83431
15099 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15100 (sprintf_dom_walker): Remove class.
15101 (get_int_range): Make argument const.
15102 (directive::fmtfunc, directive::set_precision): Same.
15103 (format_none): Same.
15104 (build_intmax_type_nodes): Same.
15105 (adjust_range_for_overflow): Same.
15106 (format_floating): Same.
15107 (format_character): Same.
15108 (format_string): Same.
15109 (format_plain): Same.
15110 (get_int_range): Cast away constness.
15111 (format_integer): Same.
15112 (get_string_length): Call get_range_strlen_dynamic. Handle
15113 null lendata.maxbound.
15114 (should_warn_p): Adjust argument scope qualifier.
15115 (maybe_warn): Same.
15116 (format_directive): Same.
15117 (parse_directive): Same.
15118 (is_call_safe): Same.
15119 (try_substitute_return_value): Same.
15120 (sprintf_dom_walker::handle_printf_call): Rename...
15121 (handle_printf_call): ...to this. Initialize target to host charmap
15122 here instead of in pass_sprintf_length::execute.
15123 (struct call_info): Make global.
15124 (sprintf_dom_walker::compute_format_length): Make global.
15125 (sprintf_dom_walker::handle_gimple_call): Same.
15126 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15127 * print-rtl.c (print_pattern): Reduce the number of spaces to
15128 avoid -Wformat-truncation.
15129 * tree-pass.h (make_pass_warn_printf): New function.
15130 * tree-ssa-strlen.c (strlen_optimize): New variable.
15131 (get_string_length): Add comments.
15132 (get_range_strlen_dynamic): New function.
15133 (check_and_optimize_call): New function.
15134 (handle_integral_assign): New function.
15135 (strlen_check_and_optimize_stmt): Factor code out into
15136 strlen_check_and_optimize_call and handle_integral_assign.
15137 (strlen_dom_walker::evrp): New member.
15138 (strlen_dom_walker::before_dom_children): Use evrp member.
15139 (strlen_dom_walker::after_dom_children): Use evrp member.
15140 (printf_strlen_execute): New function.
15141 (pass_strlen::gate): Update to handle printf calls.
15142 (dump_strlen_info): New function.
15143 (pass_data_warn_printf): New variable.
15144 (pass_warn_printf): New class.
15145 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15146 (handle_printf_call): Same.
15147 * tree-vrp.c (value_range_base::type): Adjust assertion.
15148 * vr-values.c (vr_values::update_value_range): Use type of the first
15149 argument rather than the second.
15150
15151 2019-08-26 Richard Biener <rguenther@suse.de>
15152
15153 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15154 Remove.
15155 (convert_scalars_to_vector): Do not call it.
15156
15157 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15158 Uros Bizjak <ubizjak@gmail.com>
15159
15160 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15161 CASE_MATHFN_FLOATN for roundeven.
15162 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15163 I387_ROUNDEVEN.
15164 (ix86_mode_needed): Likewise.
15165 (ix86_mode_after): Likewise.
15166 (ix86_mode_entry): Likewise.
15167 (ix86_mode_exit): Likewise.
15168 (ix86_emit_mode_set): Likewise.
15169 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15170 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15171 (ix86_entity): Add I387_ROUNDEVEN.
15172 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15173 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15174 (define_int_iterator): Likewise.
15175 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15176 (define_constant): Define ROUND_ROUNDEVEN mode.
15177 (define_attr): Add roundeven mode for i387_cw.
15178 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15179 * internal-fn.def (ROUNDEVEN): New builtin function.
15180 * optabs.def (roundeven_optab): New optab.
15181
15182 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15183
15184 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15185 for ROUNDEVEN.
15186 * builtins.def: Added function definitions for roundeven function
15187 variants.
15188 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15189 function call. Adjust condition for floor, ceil, trunc and round.
15190 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15191 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15192 (integer_valued_real_call_p): Added case for roundeven function.
15193 * real.c (is_even): New function. Returns true if real number is even,
15194 otherwise returns false.
15195 (is_halfway_below): New function. Returns true if real number is
15196 halfway between two integers, else return false.
15197 (real_roundeven): New function. Round real number to nearest integer,
15198 rounding halfway cases towards even.
15199 * real.h (real_value): Added descriptive comments. Added function
15200 declaration for roundeven function.
15201 * doc/extend.texi (Other Builtins): List roundeven variants among
15202 functions which can be handled as builtins.
15203
15204 2019-08-26 Richard Biener <rguenther@suse.de>
15205
15206 PR target/91522
15207 PR target/91527
15208 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15209 New member.
15210 (general_scalar_chain::replace_with_subreg): Remove.
15211 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15212 (general_scalar_chain::convert_reg): Adjust signature.
15213 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15214 iterate over all defs of a reg.
15215 (general_scalar_chain::replace_with_subreg): Remove.
15216 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15217 (general_scalar_chain::make_vector_copies): Populate defs_map,
15218 place copy only after defs that are used as vectors in the chain.
15219 (general_scalar_chain::convert_reg): Emit a copy for a specific
15220 def in a specific instruction.
15221 (general_scalar_chain::convert_op): All reg uses are converted here.
15222 (general_scalar_chain::convert_insn): Emit copies for scalar
15223 uses of defs here. Replace uses with the copies we created.
15224 Replace and convert the def. Adjust REG_DEAD notes, remove
15225 REG_EQUIV/EQUAL notes.
15226 (general_scalar_chain::convert_registers): Only handle copies
15227 into the chain here.
15228
15229 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15230
15231 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15232
15233 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15234
15235 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15236 Add nop_convert case.
15237 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15238 Fold all statements if requested.
15239 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15240 Allow to fold all statements.
15241 * tree-vrp.c (class vrp_folder):
15242 Let substitute_and_fold_engine fold all statements.
15243
15244 2019-08-26 Richard Biener <rguenther@suse.de>
15245
15246 PR tree-optimization/91526
15247 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15248 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15249 TODO_update_address_taken.
15250
15251 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15252
15253 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15254 __STDC_HOSTED__.
15255
15256 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15257
15258 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15259 machine mode for unspec_volatile operand.
15260
15261 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15262
15263 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15264 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15265 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15266 (prefer_neon_for_64bits): Remove.
15267 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15268 (tune_params): Remove PREF_NEON_64_FALSE uses.
15269 (arm_option_override): Remove prefer_neon selection code.
15270 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15271 * config/arm/arm-protos.h (tune_params): Remove
15272 prefer_neon_for_64bits.
15273 (prefer_neon_for_64bits): Remove.
15274
15275 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15276
15277 PR pch/61250
15278 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15279 and issue any diagnostics needed before collecting the pre-PCH
15280 state.
15281
15282 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15283
15284 PR middle-end/91283
15285 * common.opt (fexcess-precision=): Add Optimization flag. Use
15286 flag_excess_precision variable instead of
15287 flag_excess_precision_cmdline.
15288 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15289 member.
15290 (flag_excess_precision): Don't define.
15291 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15292 flag_excess_precision_cmdline. Remove comment.
15293 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15294 and x_flag_excess_precision instead of
15295 frontend_set_flag_excess_precision_cmdline and
15296 x_flag_excess_precision_cmdline.
15297 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15298 x_flag_excess_precision_cmdline.
15299 * toplev.c (init_excess_precision): Remove.
15300 (lang_dependent_init_target): Don't call it.
15301
15302 2019-08-23 Martin Liska <mliska@suse.cz>
15303
15304 * lto-wrapper.c (run_gcc): When setting jobserver
15305 set also parallel to 1. This was done so before r273908.
15306
15307 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15308
15309 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15310 (cortex-a76ae): Likewise.
15311 (cortex-a77): Likewise
15312 * config/arm/arm-tables.opt: Regenerate.
15313 * config/arm/arm-tune.md: Likewise.
15314 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15315 cortex-a77 CPU options.
15316
15317 2019-08-23 Martin Liska <mliska@suse.cz>
15318
15319 * profile.c (instrument_values): Do not set
15320 0 as last argument.
15321 * tree-profile.c (gimple_gen_interval_profiler): Remove
15322 last argument.
15323 (gimple_gen_pow2_profiler): Likewise.
15324 (gimple_gen_topn_values_profiler): Likewise.
15325 (gimple_gen_ic_profiler): Likewise.
15326 (gimple_gen_time_profiler): Likewise.
15327 (gimple_gen_average_profiler): Likewise.
15328 (gimple_gen_ior_profiler): Likewise.
15329 * value-prof.c (dump_histogram_value): Use default
15330 in switch statement instead of HIST_TYPE_MAX.
15331 (stream_in_histogram_value): Likewise.
15332 (gimple_duplicate_stmt_histograms): Do not
15333 use NULL for implicitly set arguments.
15334 (gimple_divmod_values_to_profile): Do not use
15335 reserve+quick_push.
15336 (gimple_indirect_call_to_profile): Likewise.
15337 (gimple_find_values_to_profile): Use implicit
15338 function call arguments.
15339 * value-prof.h (gimple_alloc_histogram_value):
15340 Set default values.
15341 (gimple_gen_interval_profiler): Remove last argument.
15342 (gimple_gen_pow2_profiler): Likewise.
15343 (gimple_gen_topn_values_profiler): Likewise.
15344 (gimple_gen_ic_profiler): Likewise.
15345 (gimple_gen_time_profiler): Likewise.
15346 (gimple_gen_average_profiler): Likewise.
15347 (gimple_gen_ior_profiler): Likewise.
15348
15349 2019-08-22 Martin Sebor <msebor@redhat.com>
15350
15351 PR middle-end/91490
15352 * builtins.c (c_strlen): Rename argument and introduce new local.
15353 Set no-warning bit on original argument.
15354 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15355 Fold empty and zero constructors into empty strings.
15356 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15357 for missing initializers.
15358 * tree.c (build_string_literal): Handle optional argument.
15359 * tree.h (build_string_literal): Add defaulted argument.
15360 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15361 no-warning bit on original expression.
15362
15363 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15364
15365 PR target/91481
15366 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15367 and UNSPEC_DARN_RAW.
15368 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15369 UNSPECV_DARN_RAW.
15370 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15371 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15372 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15373
15374 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15375
15376 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15377 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15378 * config/rs6000/rs6000.md (unspec): ... here.
15379 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15380 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15381 cmpeqb, *cmpeqb_internal): Delete, move to...
15382 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15383 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15384 cmpeqb, *cmpeqb_internal): ... here.
15385
15386 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15387
15388 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15389 intrinsics if __ARM_FP.
15390 Use __ARM_FEATURE_CRC32 ifdef guard.
15391
15392 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15393
15394 * config/arm/arm.md (neon_for_64bits): Remove.
15395 (avoid_neon_for_64bits): Remove.
15396 (arm_adddi3): Always split early.
15397 (arm_subdi3): Always split early.
15398 (negdi2): Remove Neon expansion.
15399 (split zero_extend): Split before reload.
15400 (split sign_extend): Split before reload.
15401
15402 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15403
15404 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15405 (qhs_extenddi_cstr): Likewise.
15406 * config/arm/arm.md (ashldi3): Always expand early.
15407 (ashlsi3): Likewise.
15408 (ashrsi3): Likewise.
15409 (zero_extend<mode>di2): Remove Neon variants.
15410 (extend<mode>di2): Likewise.
15411 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15412 (signed_shift_di3_neon): Likewise.
15413 (unsigned_shift_di3_neon): Likewise.
15414 (ashrdi3_neon_imm_noclobber): Likewise.
15415 (lshrdi3_neon_imm_noclobber): Likewise.
15416 (<shift>di3_neon): Likewise.
15417 (split extend): Remove DI extend split patterns.
15418
15419 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15420
15421 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15422 (split not): Add DImode not splitter.
15423 (anddi3): Remove pattern.
15424 (anddi3_insn): Likewise.
15425 (anddi_zesidi_di): Likewise.
15426 (anddi_sesdi_di): Likewise.
15427 (anddi_notdi_di): Likewise.
15428 (anddi_notzesidi_di): Likewise.
15429 (anddi_notsesidi_di): Likewise.
15430 (iordi3): Likewise.
15431 (iordi3_insn): Likewise.
15432 (iordi_zesidi_di): Likewise.
15433 (iordi_sesidi_di): Likewise.
15434 (xordi3): Likewise.
15435 (xordi3_insn): Likewise.
15436 (xordi_sesidi_di): Likewise.
15437 (xordi_zesidi_di): Likewise.
15438 (one_cmpldi2): Likewise.
15439 (one_cmpldi2_insn): Likewise.
15440 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15441 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15442 alternative.
15443 (iwmmxt_xordi3): Likewise.
15444 (iwmmxt_anddi3): Likewise.
15445 * config/arm/neon.md (orndi3_neon): Remove pattern.
15446 (anddi_notdi_di): Likewise.
15447 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15448 (arm_iordi_operand_neon): Likewise.
15449 (arm_xordi_operand_neon): Likewise.
15450 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15451 (iordi_notzesidi_di): Likewise.
15452 (iordi_notdi_zesidi): Likewise.
15453 (iordi_notsesidi_di): Likewise.
15454
15455 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15456
15457 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15458 insn.
15459 (iorsi3_compare0_scratch): Likewise.
15460
15461 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15462
15463 * config/aarch64/aarch64-simd-builtins.def:
15464 (ld1x4): New.
15465 (st1x4): Likewise.
15466 * config/aarch64/aarch64-simd.md:
15467 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15468 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15469 (aarch64_ld1_x4_<mode>): Likewise.
15470 (aarch64_st1_x4_<mode>): Likewise.
15471 * config/aarch64/arm_neon.h:
15472 (vld1_s8_x4): New function.
15473 (vld1q_s8_x4): Likewise.
15474 (vld1_s16_x4): Likewise.
15475 (vld1q_s16_x4): Likewise.
15476 (vld1_s32_x4): Likewise.
15477 (vld1q_s32_x4): Likewise.
15478 (vld1_u8_x4): Likewise.
15479 (vld1q_u8_x4): Likewise.
15480 (vld1_u16_x4): Likewise.
15481 (vld1q_u16_x4): Likewise.
15482 (vld1_u32_x4): Likewise.
15483 (vld1q_u32_x4): Likewise.
15484 (vld1_f16_x4): Likewise.
15485 (vld1q_f16_x4): Likewise.
15486 (vld1_f32_x4): Likewise.
15487 (vld1q_f32_x4): Likewise.
15488 (vld1_p8_x4): Likewise.
15489 (vld1q_p8_x4): Likewise.
15490 (vld1_p16_x4): Likewise.
15491 (vld1q_p16_x4): Likewise.
15492 (vld1_s64_x4): Likewise.
15493 (vld1_u64_x4): Likewise.
15494 (vld1_p64_x4): Likewise.
15495 (vld1q_s64_x4): Likewise.
15496 (vld1q_u64_x4): Likewise.
15497 (vld1q_p64_x4): Likewise.
15498 (vld1_f64_x4): Likewise.
15499 (vld1q_f64_x4): Likewise.
15500 (vst1_s8_x4): Likewise.
15501 (vst1q_s8_x4): Likewise.
15502 (vst1_s16_x4): Likewise.
15503 (vst1q_s16_x4): Likewise.
15504 (vst1_s32_x4): Likewise.
15505 (vst1q_s32_x4): Likewise.
15506 (vst1_u8_x4): Likewise.
15507 (vst1q_u8_x4): Likewise.
15508 (vst1_u16_x4): Likewise.
15509 (vst1q_u16_x4): Likewise.
15510 (vst1_u32_x4): Likewise.
15511 (vst1q_u32_x4): Likewise.
15512 (vst1_f16_x4): Likewise.
15513 (vst1q_f16_x4): Likewise.
15514 (vst1_f32_x4): Likewise.
15515 (vst1q_f32_x4): Likewise.
15516 (vst1_p8_x4): Likewise.
15517 (vst1q_p8_x4): Likewise.
15518 (vst1_p16_x4): Likewise.
15519 (vst1q_p16_x4): Likewise.
15520 (vst1_s64_x4): Likewise.
15521 (vst1_u64_x4): Likewise.
15522 (vst1_p64_x4): Likewise.
15523 (vst1q_s64_x4): Likewise.
15524 (vst1q_u64_x4): Likewise.
15525 (vst1q_p64_x4): Likewise.
15526 (vst1_f64_x4): Likewise.
15527 (vst1q_f64_x4): Likewise.
15528
15529 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15530
15531 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15532
15533 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15534 Richard Sandiford <richard.sandiford@arm.com>
15535
15536 PR target/88839
15537 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15538 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15539
15540 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15541
15542 PR target/90724
15543 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15544 in reg if it fails aarch64_plus_operand predicate.
15545
15546 2019-08-21 Richard Biener <rguenther@suse.de>
15547
15548 PR tree-optimization/91482
15549 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15550 BUILT_IN_ASSUME_ALIGNED calls.
15551
15552 2019-08-21 Richard Biener <rguenther@suse.de>
15553
15554 PR target/91498
15555 PR target/91503
15556 * config/i386/i386-features.c
15557 (general_scalar_chain::make_vector_copies): Copy stack temporary
15558 rtx when using it multiple times.
15559 (general_scalar_chain::convert_reg): Likewise.
15560
15561 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15562
15563 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15564
15565 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15566
15567 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15568 catch more redundant zero initialization cases.
15569 (dse_dom_walker::dse_optimize_stmt): Likewise.
15570
15571 2019-08-20 Richard Biener <rguenther@suse.de>
15572
15573 PR lto/91307
15574 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15575 by collect2 when targetm.have_ctors_dtors which avoids dragging
15576 in temporary filenames from LTO input objects.
15577
15578 2019-08-20 Richard Biener <rguenther@suse.de>
15579
15580 PR tree-optimization/37242
15581 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15582 to (T)a + (T)b if we know that a + b does not overflow.
15583
15584 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15585
15586 PR rtl-optimization/91347
15587 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15588 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15589
15590 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15591
15592 * calls.h (function_arg_info): Add a pass_by_reference field,
15593 defaulting to false.
15594 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15595 when applying pass-by-reference semantics.
15596 (initialize_argument_information): Likewise.
15597 (emit_library_call_value_1): Likewise.
15598 * function.c (assign_parm_data_one): Remove passed_pointer field.
15599 (assign_parm_find_data_types): Don't set it.
15600 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15601 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15602 arg.pass_by_reference instead of passed_pointer.
15603
15604 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15605
15606 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15607 into a single function_arg_info, updating its fields when we
15608 apply pass-by-reference and promotion semantics. Use the
15609 function_arg_info to track the mode rather than keeping it in
15610 a separate local variable.
15611 (initialize_argument_information): Likewise. Base the final
15612 arg_to_skip on this new function_arg_info rather than creating
15613 a new one from scratch.
15614
15615 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15616
15617 * function.c (assign_parm_data_one): Replace passed_type,
15618 promoted_mode and named_arg with a function_arg_info field.
15619 (assign_parm_find_data_types): Remove local variables and
15620 assign directly to "data". Make data->passed_mode shadow
15621 data->arg.mode until promotion, then assign the promoted
15622 mode to data->arg.mode.
15623 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15624 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15625 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15626 (assign_parm_setup_block, assign_parm_setup_reg)
15627 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15628 arg.mode instead of promoted_mode, arg.type instead of passed_type
15629 and arg.named instead of named_arg. Use data->arg for
15630 function_arg_info structures that had the field values passed_type,
15631 promoted_mode and named_arg. Base other function_arg_infos on
15632 data->arg, changing the necessary properties.
15633
15634 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15635
15636 * calls.h (apply_pass_by_reference_rules): Declare.
15637 * calls.c (apply_pass_by_reference_rules): New function.
15638 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15639 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15640 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15641 * function.c (assign_parm_find_data_types): Likewise.
15642 * var-tracking.c (prepare_call_arguments): Likewise.
15643
15644 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15645
15646 * target.def (must_pass_in_stack): Take a function_arg_info instead
15647 of a mode and a type.
15648 * doc/tm.texi: Regenerate.
15649 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15650 instead of a mode and a type.
15651 (must_pass_in_stack_var_size_or_pad): Likewise.
15652 * calls.c (must_pass_in_stack_var_size): Likewise.
15653 (must_pass_in_stack_var_size_or_pad): Likewise.
15654 (initialize_argument_information): Update call to
15655 targetm.calls.must_pass_in_stack.
15656 (must_pass_va_arg_on_stack): Likewise.
15657 * function.c (assign_parm_find_entry_rtl): Likewise.
15658 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15659 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15660 (alpha_function_arg_advance): Likewise.
15661 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15662 (cr16_function_arg_advance): Likewise.
15663 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15664 (cris_arg_partial_bytes): Likewise.
15665 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15666 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15667 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15668 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15669 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15670 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15671 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15672 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15673 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15674 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15675 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15676 instead of a mode and a type.
15677 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15678 (fr30_num_arg_regs): Likewise.
15679 (fr30_setup_incoming_varargs): Update calls accordingly.
15680 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15681 (fr30_function_arg_advance): Likewise.
15682 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15683 instead of a mode and a type.
15684 * config/gcn/gcn.c (num_arg_regs): Likewise.
15685 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15686 num_arg_regs and targetm.calls.must_pass_in_stack.
15687 (gcn_arg_partial_bytes): Likewise.
15688 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15689 function_arg_info instead of a mode and a type.
15690 (classify_argument): Update call accordingly.
15691 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15692 function_arg_info instead of a mode and a type.
15693 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15694 Likewise.
15695 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15696 (rs6000_parm_needs_stack): Update call accordingly.
15697 (setup_incoming_varargs): Likewise.
15698
15699 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15700
15701 * target.def (callee_copies): Take a function_arg_info instead
15702 of a mode, type and named flag.
15703 * doc/tm.texi: Regenerate.
15704 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15705 instead of a mode, type and named flag.
15706 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15707 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15708 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15709 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15710 instead of a mode, type and named flag.
15711 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15712 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15713 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15714 * calls.h (reference_callee_copied): Take a function_arg_info
15715 instead of a mode, type and named flag.
15716 * calls.c (reference_callee_copied): Likewise.
15717 (initialize_argument_information): Update call accordingly.
15718 (emit_library_call_value_1): Likewise.
15719 * function.c (gimplify_parameters): Likewise.
15720 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15721 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15722 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15723 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15724 (TARGET_CALLEE_COPIES): Define to
15725 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15726 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15727 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15728 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15729 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15730 instead of a mode, type and named flag.
15731 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15732 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15733 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15734 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15735 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15736 (TARGET_CALLEE_COPIES): Define to
15737 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15738 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15739 instead of a mode, type and named flag.
15740 * config/sh/sh.c (sh_callee_copies): Likewise.
15741 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15742 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15743 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15744
15745 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15746
15747 * target.def (function_arg_advance): Take a function_arg_info instead
15748 of a mode, type and named flag.
15749 * doc/tm.texi: Regenerate.
15750 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15751 instead of a mode, type and named flag.
15752 * targhooks.c (default_function_arg_advance): Likewise.
15753 * calls.c (initialize_argument_information): Update call to
15754 targetm.calls.function_arg_advance.
15755 (emit_library_call_value_1): Likewise.
15756 * dse.c (get_call_args): Likewise.
15757 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15758 * function.c (assign_parms, gimplify_parameters): Likewise.
15759 * var-tracking.c (prepare_call_arguments): Likewise.
15760 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15761 function_arg_info instead of a mode, type and named flag.
15762 (aarch64_setup_incoming_varargs): Update call accordingly.
15763 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15764 function_arg_info instead of a mode, type and named flag.
15765 (alpha_setup_incoming_varargs): Update call accordingly.
15766 * config/arc/arc.c (arc_function_arg_advance): Take a
15767 function_arg_info instead of a mode, type and named flag.
15768 (arc_setup_incoming_varargs): Update call accordingly.
15769 * config/arm/arm.c (arm_function_arg_advance): Take a
15770 function_arg_info instead of a mode, type and named flag.
15771 (cmse_func_args_or_return_in_stack): Update call accordingly.
15772 (arm_function_ok_for_sibcall): Likewise.
15773 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15774 * config/avr/avr.c (avr_function_arg_advance): Take a
15775 function_arg_info instead of a mode, type and named flag.
15776 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15777 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15778 (c6x_call_saved_register_used): Update call accordingly.
15779 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15780 function_arg_info instead of a mode, type and named flag.
15781 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15782 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15783 (csky_setup_incoming_varargs): Update call accordingly.
15784 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15785 function_arg_info instead of a mode, type and named flag.
15786 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15787 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15788 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15789 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15790 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15791 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15792 (ix86_setup_incoming_varargs): Update call accordingly.
15793 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15794 function_arg_info instead of a mode, type and named flag.
15795 (ia64_setup_incoming_varargs): Update call accordingly.
15796 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15797 function_arg_info instead of a mode, type and named flag.
15798 (iq2000_expand_prologue): Update call accordingly.
15799 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15800 function_arg_info instead of a mode, type and named flag.
15801 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15802 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15803 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15804 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15805 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15806 Likewise.
15807 (microblaze_expand_prologue): Update call accordingly.
15808 * config/mips/mips.c (mips_function_arg_advance): Take a
15809 function_arg_info instead of a mode, type and named flag.
15810 (mips_setup_incoming_varargs): Update call accordingly.
15811 (mips_output_args_xfer): Likewise.
15812 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15813 function_arg_info instead of a mode, type and named flag.
15814 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15815 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15816 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15817 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15818 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15819 (nios2_setup_incoming_varargs): Update call accordingly.
15820 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15821 function_arg_info instead of a mode, type and named flag.
15822 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15823 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15824 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15825 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15826 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15827 (riscv_setup_incoming_varargs): Update call accordingly.
15828 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15829 function_arg_info instead of a mode, type and named flag.
15830 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15831 Likewise.
15832 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15833 (rs6000_parm_needs_stack): Update call accordingly.
15834 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15835 instead of a mode, type and named flag.
15836 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15837 (s390_call_saved_register_used): Update call accordingly.
15838 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15839 instead of a mode, type and named flag.
15840 (sh_output_mi_thunk): Update call accordingly.
15841 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15842 function_arg_info instead of a mode, type and named flag.
15843 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15844 (spu_setup_incoming_varargs): Update call accordingly.
15845 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15846 function_arg_info instead of a mode, type and named flag.
15847 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15848 (tilegx_setup_incoming_varargs): Update call accordingly.
15849 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15850 function_arg_info instead of a mode, type and named flag.
15851 (tilegx_setup_incoming_varargs): Update call accordingly.
15852 * config/v850/v850.c (v850_function_arg_advance): Take a
15853 function_arg_info instead of a mode, type and named flag.
15854 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15855 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15856 (visium_setup_incoming_varargs): Update call accordingly.
15857 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15858 function_arg_info instead of a mode, type and named flag.
15859
15860 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15861
15862 * target.def (function_arg, function_incoming_arg): Take a
15863 function_arg_info instead of a mode, tree and named flag.
15864 * doc/tm.texi: Regenerate.
15865 * targhooks.h (default_function_arg): Take a function_arg_info
15866 instead of a mode, tree and named flag.
15867 (default_function_incoming_arg): Likewise.
15868 * targhooks.c (default_function_arg): Likewise.
15869 (default_function_incoming_arg): Likewise.
15870 * calls.h (function_arg_info::end_marker_p): New function.
15871 (function_arg_info::end_marker): Likewise.
15872 * calls.c (prepare_call_address, initialize_argument_information)
15873 (expand_call, emit_library_call_value_1): Update calls to
15874 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15875 * dse.c: Include calls.h.
15876 (get_call_args): Update call to targetm.calls.function_arg.
15877 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15878 * var-tracking.c (prepare_call_arguments): Likewise.
15879 * function.c (assign_parm_find_entry_rtl): Update call to
15880 targetm.calls.function_incoming_arg.
15881 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15882 function_arg_info instead of a mode, tree and named flag.
15883 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15884 * config/arc/arc.c (arc_function_arg): Likewise.
15885 * config/arm/arm.c (arm_function_arg): Likewise.
15886 (cmse_func_args_or_return_in_stack): Update call accordingly.
15887 (arm_function_ok_for_sibcall): Likewise.
15888 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15889 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15890 instead of a mode, tree and named flag.
15891 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15892 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15893 (c6x_call_saved_register_used): Update call accordingly.
15894 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15895 instead of a mode, tree and named flag.
15896 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15897 (cris_function_arg_1): Likewise.
15898 * config/csky/csky.c (csky_function_arg): Likewise.
15899 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15900 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15901 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15902 (frv_function_arg_1): Likewise.
15903 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15904 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15905 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15906 * config/i386/i386.c (ix86_function_arg): Likewise.
15907 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15908 (ia64_function_arg_1): Likewise.
15909 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15910 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15911 accordingly.
15912 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15913 instead of a mode, tree and named flag.
15914 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15915 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15916 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15917 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15918 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15919 (microblaze_expand_prologue): Update call accordingly.
15920 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15921 instead of a mode, tree and named flag.
15922 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15923 (mmix_function_arg_1): Likewise.
15924 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15925 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15926 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15927 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15928 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15929 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15930 (nvptx_function_incoming_arg): Likewise.
15931 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15932 * config/pa/pa.c (pa_function_arg): Likewise.
15933 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15934 * config/pru/pru.c (pru_function_arg): Likewise.
15935 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15936 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15937 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15938 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15939 (rs6000_parm_needs_stack): Update call accordingly.
15940 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15941 instead of a mode, tree and named flag.
15942 * config/s390/s390.c (s390_function_arg): Likewise.
15943 (s390_call_saved_register_used): Update call accordingly.
15944 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15945 instead of a mode, tree and named flag.
15946 (sh_output_mi_thunk): Update call accordingly.
15947 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15948 (sparc_function_incoming_arg): Take a function_arg_info instead of
15949 a mode, tree and named flag.
15950 * config/spu/spu.c (spu_function_arg): Likewise.
15951 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15952 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15953 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15954 * config/v850/v850.c (v850_function_arg): Likewise.
15955 * config/vax/vax.c (vax_function_arg): Likewise.
15956 * config/visium/visium.c (visium_function_arg): Likewise.
15957 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15958 (xtensa_function_incoming_arg): Likewise.
15959
15960 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15961
15962 * target.def (setup_incoming_varargs): Take a function_arg_info
15963 instead of a mode and tree.
15964 * doc/tm.texi: Regenerate.
15965 * targhooks.h (default_setup_incoming_varargs): Take a
15966 function_arg_info instead of a mode and tree.
15967 * targhooks.c (default_setup_incoming_varargs): Likewise.
15968 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15969 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15970 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15971 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15972 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15973 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15974 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15975 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15976 Likewise.
15977 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15978 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15979 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15980 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15981 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15982 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15983 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15984 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15985 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15986 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15987 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15988 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15989 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15990 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15991 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15992 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15993 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15994 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15995 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15996 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15997 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15998 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15999 * function.c (assign_parms_setup_varargs): Update call to
16000 targetm.calls.setup_incoming_varargs.
16001
16002 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16003
16004 * target.def (pass_by_reference): Take a function_arg_info instead
16005 of a mode, type and named flag.
16006 * doc/tm.texi: Regenerate.
16007 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16008 accordingly.
16009 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16010 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16011 function_arg_info instead of a mode, type and named flag.
16012 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16013 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16014 mode, type and named flag.
16015 * calls.c (pass_by_reference): Likewise.
16016 (pass_va_arg_by_reference): Update call accordingly.
16017 (initialize_argument_information): Likewise.
16018 (emit_library_call_value_1): Likewise.
16019 * function.c (assign_parm_find_data_types): Likewise.
16020 * var-tracking.c (prepare_call_arguments): Likewise.
16021 * stor-layout.c: Include calls.h.
16022 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16023 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16024 function_arg_info instead of a mode, type and named flag.
16025 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16026 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16027 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16028 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16029 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16030 (c6x_call_saved_register_used): Update call to pass_by_reference.
16031 * config/cris/cris.c (cris_pass_by_reference): Take a
16032 function_arg_info instead of a mode, type and named flag.
16033 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16034 function_arg_info instead of a mode, type and named flag.
16035 (epiphany_arg_partial_bytes): Update call accordingly.
16036 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16037 function_arg_info instead of a mode, type and named flag.
16038 (ft32_arg_partial_bytes): Update call accordingly.
16039 * config/i386/i386.c (ix86_pass_by_reference): Take a
16040 function_arg_info instead of a mode, type and named flag.
16041 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16042 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16043 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16044 (m32r_return_in_memory): Update call accordingly.
16045 * config/mips/mips.c (mips_pass_by_reference): Take a
16046 function_arg_info instead of a mode, type and named flag.
16047 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16048 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16049 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16050 (moxie_arg_partial_bytes): Update call accordingly.
16051 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16052 function_arg_info instead of a mode, type and named flag.
16053 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16054 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16055 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16056 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16057 (riscv_return_in_memory): Update call accordingly.
16058 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16059 function_arg_info instead of a mode, type and named flag.
16060 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16061 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16062 * config/s390/s390.c (s390_pass_by_reference): Take a
16063 function_arg_info instead of a mode, type and named flag.
16064 (s390_call_saved_register_used): Update call accordingly.
16065 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16066 instead of a mode, type and named flag.
16067 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16068 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16069 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16070 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16071 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16072 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16073
16074 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16075
16076 * target.def (arg_partial_bytes): Take a function_arg_info instead
16077 of a mode, type and named flag.
16078 * doc/tm.texi: Regenerate.
16079 * target.h (function_arg_info): Declare.
16080 * calls.h (function_arg_info): New class.
16081 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16082 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16083 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16084 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16085 * calls.c (initialize_argument_information): Update call to
16086 targetm.calls.partial_bytes.
16087 (emit_library_call_value_1): Likewise.
16088 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16089 * function.c (assign_parm_find_entry_rtl): Likewise.
16090 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16091 function_arg_info instead of a mode, type and named flag.
16092 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16093 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16094 (cmse_func_args_or_return_in_stack): Update accordingly.
16095 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16096 function_arg_info instead of a mode, type and named flag.
16097 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16098 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16099 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16100 * config/fr30/fr30.c: Include calls.h.
16101 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16102 type and named flag.
16103 * config/frv/frv.c: Include calls.h.
16104 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16105 type and named flag.
16106 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16107 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16108 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16109 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16110 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16111 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16112 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16113 Likewise.
16114 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16115 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16116 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16117 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16118 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16119 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16120 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16121 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16122 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16123 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16124 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16125 (rs6000_parm_needs_stack): Update call accordingly.
16126 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16127 function_arg_info instead of a mode, type and named flag.
16128 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16129 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16130
16131 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16132
16133 * calls.h (must_pass_va_arg_in_stack): Declare.
16134 * calls.c (must_pass_va_arg_in_stack): New function.
16135 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16136 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16137 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16138 Likewise.
16139 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16140
16141 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16142
16143 * calls.h (pass_va_arg_by_reference): Declare.
16144 * calls.c (pass_va_arg_by_reference): New function.
16145 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16146 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16147 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16148 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16149 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16150 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16151 (mips_gimplify_va_arg_expr): Likewise.
16152 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16153 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16154 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16155 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16156 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16157 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16158 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16159 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16160 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16161 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16162 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16163
16164 2019-08-20 Richard Biener <rguenther@suse.de>
16165
16166 PR target/91498
16167 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16168 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16169 (convert_scalars_to_vector): Add timode_p parameter and use it
16170 to guard TImode-only operation.
16171 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16172 (pass_stv::execute): Pass down timode_p.
16173
16174 2019-08-20 Lili Cui <lili.cui@intel.com>
16175
16176 * common/config/i386/i386-common.c
16177 (processor_names): Add tigerlake and cooperlake.
16178 (processor_alias_table): Add tigerlake and cooperlake.
16179 * config.gcc: Add -march=tigerlake and cooperlake.
16180 * config/i386/driver-i386.c
16181 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16182 Add "has_avx" to classify processor.
16183 * config/i386/i386-builtins.c (processor_model) :
16184 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16185 (arch_names_table): Add tigerlake and cooperlake.
16186 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16187 and PROCESSOR_COOPERLAKE.
16188 * config/i386/i386-c.c
16189 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16190 * config/i386/i386-options.c
16191 (m_TIGERLAKE): Define.
16192 (m_COOPERLAKE): Ditto.
16193 (m_CORE_AVX512): Ditto.
16194 (processor_cost_table): Add cascadelake.
16195 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16196 * config/i386/i386.h
16197 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16198 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16199 (PTA_MOVDIRI): Ditto.
16200 (PTA_MOVDIR64B): Ditto.
16201 (PTA_COOPERLAKE): Ditto.
16202 (PTA_TIGERLAKE): Ditto.
16203 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16204 * doc/extend.texi: Add tigerlake and cooperlake.
16205 * doc/invoke.texi: Add tigerlake and cooperlake.
16206
16207 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16208
16209 * doc/install.texi (Specific, alpha): Remove note to use
16210 binutils 2.11.2 or later.
16211
16212 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16213
16214 PR middle-end/89544
16215 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16216 when possible.
16217
16218 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16219
16220 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16221 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16222 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16223 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16224 * config/aarch64/constraints.md (Dt): New constraint
16225 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16226
16227 2019-08-19 Richard Biener <rguenther@suse.de>
16228
16229 PR tree-optimization/91403
16230 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16231 cases we can handle with tail-recursion...
16232 (follow_ssa_edge_expr): ... here. Do so.
16233
16234 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16235
16236 PR target/91441
16237 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16238 implemented for -fsanitize=kernel-address, and merge check logic
16239 with -fsanitize=address.
16240
16241 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16242
16243 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16244 for cpu and machine. Factor 64/32b builtins.
16245
16246 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16247
16248 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16249 gone, point to sourceforge.net.
16250
16251 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16252
16253 * doc/ux.texi (User Experience Guidelines): Update reference.
16254
16255 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16256
16257 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16258 not LGPL".
16259
16260 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16261
16262 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16263 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16264
16265 2019-08-16 Martin Sebor <msebor@redhat.com>
16266
16267 * tree.def (TYPE_SIZE): Clarify.
16268 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16269
16270 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16271
16272 PR tree-optimization/91109
16273 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16274 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16275 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16276
16277 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16278
16279 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16280 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16281 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16282 (uavg<mode>3_ceil): New expander.
16283 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16284 mode iterator when creating CONST1_RTX.
16285 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16286 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16287 mode iterator for const1_operand predicate.
16288
16289 2019-08-16 Richard Biener <rguenther@suse.de>
16290
16291 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16292 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16293 follow_ssa_edge.
16294 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16295 (analyze_evolution_in_loop): Likewise.
16296 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16297 (follow_ssa_edge_expr): ... here. Refactor code.
16298
16299 2019-08-16 Richard Biener <rguenther@suse.de>
16300
16301 PR target/91469
16302 * config/i386/i386-features.c
16303 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16304
16305 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16306
16307 PR other/91255
16308 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16309 only if subst_name matches curr_attr string.
16310
16311 2019-08-16 Richard Biener <rguenther@suse.de>
16312
16313 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16314 stmt at gsi_p, instead replace it with a NOP removed later.
16315 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16316 that became dead because of that.
16317
16318 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16319
16320 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16321 for which we can't represent a range.
16322 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16323 set_varying.
16324 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16325 Set VR_UNDEFINED if type is not supported.
16326 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16327 * tree-vrp.c (value_range_base::check): Assert that a varying has
16328 min/max set.
16329 (value_range_base::equal_p): Early bail for undefines.
16330 (value_range_base::set_varying): Accept a type.
16331 (value_range::set_varying): Same.
16332 (value_range_base::type): VARYING can have a type, while UNDEFINE
16333 is typeless.
16334 (value_range_base::dump): Print type for VARYING nodes.
16335 (value_range_base::set): Add type to VARYING.
16336 (extract_range_from_multiplicative_op): Pass type to set_varying.
16337 (extract_range_from_binary_expr): Same.
16338 (value_range_base::intersect_helper): Same.
16339 (value_range_base::union_helper): Same.
16340 (value_range_base::normalize_symbolics): Same.
16341 (determine_value_range_1): Same.
16342 * tree-vrp.h (class value_range_base): Add type to set_varying.
16343 Add prototype for dump(void).
16344 Add prototype for supports_type_p.
16345 (class value_range): Add type to set_varying.
16346 Add prototype for dump(void).
16347 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16348 set_varying.
16349 (vr_values::get_lattice_entry): Set varying even if propagation
16350 finished.
16351 Pass type to set_varying.
16352 (vr_values::get_value_range): Remove vr_const_varying.
16353 Reallocate the lattice if needed.
16354 (vr_values::update_value_range): Pass type to set_varying.
16355 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16356 (vr_values::extract_range_from_binary_expr): Same.
16357 (vr_values::extract_range_from_unary_expr): Same.
16358 (vr_values::extract_range_from_cond_expr): Same.
16359 (vr_values::check_for_binary_op_overflow): Same.
16360 (vr_values::extract_range_basic): Same.
16361 (vr_values::extract_range_from_assignment): Same.
16362 (vr_values::vr_values): Increase size of num_vr_values.
16363 (vr_values::extract_range_from_phi_node): Pass type to
16364 set_varying.
16365
16366 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16367
16368 PR target/90878
16369 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16370 for costs of hard register moves.
16371 (ix86_register_move_cost): Likewise.
16372 * config/i386/i386.h (processor_costs): Move costs of hard
16373 register moves to hard_register. Add int_load, int_store,
16374 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16375 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16376 for costs of RTL expressions.
16377 * config/i386/x86-tune-costs.h: Move costs of hard register
16378 moves to hard_register. Duplicate int_load, int_store,
16379 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16380 sse_load, sse_store for costs of RTL expressions.
16381
16382 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16383
16384 * target.def (setup_incoming_vararg_bounds): Remove.
16385 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16386 * doc/tm.texi: Regenerate.
16387 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16388 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16389 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16390 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16391
16392 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16393
16394 MSP430: Fix lines over 80 characters long in
16395 config/msp430/*.{c,h} files
16396
16397 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16398 specifier in string.
16399 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16400 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16401 redundant old comment.
16402 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16403 Split line more than 80 characters long.
16404 * config/msp430/msp430.c (msp430_option_override): Likewise.
16405 (msp430_return_in_memory): Likewise.
16406 (msp430_gimplify_va_arg_expr): Likewise.
16407 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16408 (msp430_legitimate_constant): Likewise.
16409 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16410 (msp430_attr): Likewise.
16411 (msp430_data_attr): Likewise.
16412 (msp430_start_function): Likewise.
16413 (gen_prefix): Likewise.
16414 (msp430_init_sections): Likewise.
16415 (msp430_select_section): Likewise.
16416 (msp430_function_section): Likewise.
16417 (msp430_unique_section): Likewise.
16418 (msp430_output_aligned_decl_common): Likewise.
16419 (msp430_do_not_relax_short_jumps): Likewise.
16420 (msp430_init_builtins): Likewise.
16421 (msp430_expand_delay_cycles): Likewise.
16422 (msp430_expand_prologue): Likewise.
16423 (msp430_expand_epilogue): Likewise.
16424 (msp430_expand_helper): Likewise.
16425 (msp430_split_movsi): Likewise.
16426 (msp430_print_operand): Likewise.
16427 (msp430_return_addr_rtx): Likewise.
16428 (msp430x_extendhisi): Likewise.
16429 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16430 (ASM_SPEC): Likewise.
16431 Remove very obvious comments.
16432 (LIB_SPEC): Split line more than 80 characters long.
16433 (EH_RETURN_HANDLER_RTX): Likewise.
16434 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16435
16436 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16437
16438 MSP430: Fix whitespace errors and incorrect indentation in
16439 config/msp430/*.{c,h} files
16440
16441 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16442 (msp430_select_hwmult_lib): Likewise.
16443 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16444 (msp430_extract_mcu_data): Likewise.
16445 (struct t_msp430_mcu_data): Likewise.
16446 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16447 before left square bracket.
16448 (msp430_option_override): Fix indentation.
16449 (msp430_hard_regno_nregs_with_padding): Likewise.
16450 (msp430_initial_elimination_offset): Likewise.
16451 (msp430_special_register_convention_p): Remove whitespace before left
16452 square bracket and after exclamation mark.
16453 (msp430_evaluate_arg): Likewise.
16454 (msp430_callee_copies): Fix indentation.
16455 (msp430_gimplify_va_arg_expr): Likewise.
16456 (msp430_function_arg_advance): Remove whitespace before left square
16457 bracket.
16458 (reg_ok_for_addr): Likewise.
16459 (msp430_preserve_reg_p): Likewise.
16460 (msp430_compute_frame_info): Likewise.
16461 (msp430_asm_output_addr_const_extra): Add space between function name
16462 and open parenthesis.
16463 (has_section_name): Fix indentation.
16464 (msp430_attr): Remove trailing whitespace.
16465 (msp430_section_attr): Likewise.
16466 (msp430_data_attr): Likewise.
16467 (struct msp430_attribute_table): Fix comment and whitespace.
16468 (msp430_start_function): Remove whitespace before left square bracket.
16469 Add space between function name and open parenthesis.
16470 (msp430_select_section): Remove trailing whitespace.
16471 (msp430_section_type_flags): Remove trailing whitespace.
16472 (msp430_unique_section): Remove space before closing parenthesis.
16473 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16474 (msp430_builtins): Remove whitespace before left square bracket.
16475 (msp430_init_builtins): Fix indentation.
16476 (msp430_expand_prologue): Remove whitespace before left square bracket.
16477 Remove space before closing parenthesis.
16478 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16479 (msp430_split_movsi): Remove space before closing parenthesis.
16480 (helper_function_name_mappings): Fix indentation.
16481 (msp430_use_f5_series_hwmult): Fix whitespace.
16482 (use_32bit_hwmult): Likewise.
16483 (msp430_no_hwmult): Likewise.
16484 (msp430_output_labelref): Remove whitespace before left square bracket.
16485 (msp430_print_operand_raw): Likewise.
16486 (msp430_print_operand_addr): Likewise.
16487 (msp430_print_operand): Add two spaces after '.' in comment.
16488 Fix trailing whitespace.
16489 (msp430x_extendhisi): Fix indentation.
16490 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16491 tab.
16492 (PC_REGNUM): Likewise.
16493 (STACK_POINTER_REGNUM): Likewise.
16494 (CC_REGNUM): Likewise.
16495
16496 2019-08-15 Richard Biener <rguenther@suse.de>
16497
16498 PR target/91454
16499 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16500 helper.
16501 (general_scalar_chain::make_vector_copies): Use it.
16502
16503 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16504
16505 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16506
16507 2019-08-15 Martin Liska <mliska@suse.cz>
16508
16509 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16510 operators with no arguments.
16511 (eliminate_unnecessary_stmts): Likewise here.
16512
16513 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16514
16515 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16516 <case COMPARE>: Revert 2019-08-14 change.
16517 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16518 for (TARGET_64BIT || mode != DImode).
16519
16520 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16521
16522 * tree-vrp.c (value_range_base::set): Merge in code from
16523 value_range_base::set_and_canonicalize.
16524 Enforce canonicalization at set time.
16525 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16526 (value_range_base::set_undefined): Inline call to set().
16527 (value_range_base::set_varying): Same.
16528 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16529 (vrp_val_max): New argument handle_pointers.
16530 (vrp_val_min): Same.
16531 (ranges_from_anti_range): Same.
16532 (extract_range_into_wide_ints): Use tree argument instead of sign
16533 and precision.
16534 (extract_range_from_multiplicative_op): Take in tree type instead
16535 of precision and sign. Adapt function for canonicalized ranges.
16536 (extract_range_from_binary_expr): Pass type to
16537 extract_range_from_multiplicative_op.
16538 Adapt for canonicalized ranges.
16539 (extract_range_from_unary_expr): Same.
16540 (value_range_base::intersect_helper): Adjust for canonicalized
16541 ranges.
16542 (value_range_base::union_helper): Same.
16543 (value_range_base::normalize_symbolics): New.
16544 * tree-vrp.h (class value_range_base): Remove
16545 set_and_canonicalize.
16546 New prototype for normalize_symbolics.
16547 (class value_range): Remove set_and_canonicalize.
16548 (vrp_val_min): Adjust prototype.
16549 (vrp_val_max): Same.
16550 * vr-values.c
16551 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16552 instead of set_and_canonicalize.
16553
16554 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16555
16556 PR middle-end/91444
16557 * tree-vect-stmts.c (vectorizable_call): Check that the function
16558 is a BUILT_IN_MD function before passing it to
16559 targetm.vectorize.builtin_md_vectorized_function.
16560
16561 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16562
16563 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16564 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16565 (aarch64_select_early_remat_modes): Use it.
16566
16567 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16568
16569 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16570 16 for SVE predicates even if they are fixed-length.
16571
16572 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16573
16574 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16575 operand order match the MOV /Z alias.
16576
16577 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16578
16579 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16580 the vector pattern as an aarch64_svpattern argument. Update the
16581 overloaded caller accordingly.
16582 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16583 (aarch64_output_sve_vector_inc_dec): Likewise.
16584
16585 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16586
16587 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16588 multiplication case, try to compute VG * (lowest set bit) directly
16589 rather than always basing the multiplication on VG. Use
16590 expand_mult for the multiplication if we can.
16591
16592 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16593
16594 * config/aarch64/aarch64-protos.h
16595 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16596 (aarch64_sve_inc_dec_immediate_p): Rename to...
16597 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16598 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16599 (aarch64_output_sve_scalar_inc_dec): Declare.
16600 (aarch64_output_sve_inc_dec_immediate): Rename to...
16601 (aarch64_output_sve_vector_inc_dec): ...this.
16602 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16603 (aarch64_output_sve_scalar_inc_dec): New functions.
16604 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16605 arguments. Only handle true ADDVL and ADDPL instructions;
16606 don't emit an INC or DEC.
16607 (aarch64_sve_inc_dec_immediate_p): Rename to...
16608 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16609 (aarch64_output_sve_inc_dec_immediate): Rename to...
16610 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16611 aarch64_sve_vector_inc_dec_immediate_p.
16612 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16613 (aarch64_sve_plus_immediate): New predicates.
16614 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16615 rather than aarch64_sve_addvl_addpl_immediate.
16616 (aarch64_sve_inc_dec_immediate): Rename to...
16617 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16618 aarch64_sve_vector_inc_dec_immediate_p.
16619 (aarch64_sve_add_operand): Update accordingly.
16620 * config/aarch64/constraints.md (Uai): New constraint.
16621 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16622 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16623 operand into a register if it satisfies aarch64_sve_plus_immediate.
16624 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16625 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16626 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16627 aarch64_output_sve_vector_inc_dec instead of
16628 aarch64_output_sve_inc_dec_immediate.
16629
16630 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16631
16632 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16633 (UNSPEC_REVW): New constants.
16634 (elem_bits): New mode attribute.
16635 (SVE_INT_UNARY): New int iterator.
16636 (optab): Handle UNSPEC_REV[BHW].
16637 (sve_int_op): New int attribute.
16638 (min_elem_bits): Handle VNx16QI and the predicate modes.
16639 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16640 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16641 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16642 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16643 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16644 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16645 unspecs based on the total width of the reversed data.
16646 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16647 reinterpret followed by a subreg on big-endian targets.
16648
16649 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16650 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16651
16652 * config/aarch64/aarch64-sve.md
16653 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16654 alternatives in which one of the inputs is in the same register
16655 as the output.
16656
16657 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16658
16659 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16660 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16661
16662 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16663
16664 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16665 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16666
16667 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16668 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16669
16670 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16671 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16672 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16673
16674 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16675 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16676
16677 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16678 Add an alternative that uses reversed shifts.
16679
16680 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16681
16682 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16683 struct.
16684
16685 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16686
16687 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16688 a commutativity marker.
16689
16690 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16691 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16692
16693 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16694 (aarch64_prepare_sve_cond_int_fma): Declare.
16695 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16696 (aarch64_prepare_sve_int_fma): New functions.
16697 (aarch64_prepare_sve_cond_int_fma): Likewise.
16698 * config/aarch64/aarch64-sve.md
16699 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16700 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16701 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16702 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16703 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16704 (*madd<mode>): Rename to...
16705 (*fma<mode>4): ...this.
16706 (*msub<mode>): Rename to...
16707 (*fnma<mode>4): ...this.
16708
16709 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16710 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16711
16712 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16713 Print 2.0 naturally.
16714 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16715 * config/aarch64/predicates.md
16716 (aarch64_sve_float_negated_arith_immediate): New predicate,
16717 renamed from aarch64_sve_float_arith_with_sub_immediate.
16718 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16719 positive and negative constants.
16720 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16721 or an aarch64_sve_float_arith_with_sub_immediate.
16722 * config/aarch64/constraints.md (vsN): Use
16723 aarch64_sve_float_negated_arith_immediate.
16724 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16725 iterator.
16726 (sve_pred_fp_rhs2_immediate): New int attribute.
16727 * config/aarch64/aarch64-sve.md
16728 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16729 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16730 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16731 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16732 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16733 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16734
16735 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16736 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16737
16738 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16739 (*aarch64_cond_abd<SVE_F:mode>_3)
16740 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16741
16742 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16743 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16744
16745 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16746 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16747
16748 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16749 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16750
16751 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16752 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16753 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16754 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16755 optabs.
16756 * optabs.h (create_convert_operand_from): Expand comment.
16757 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16758 when mapping scalar rtxes to vector operands.
16759 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16760 ashiftrt and lshiftrt.
16761 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16762 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16763 (*cond_<optab><mode>_any_const): New patterns.
16764
16765 2019-08-15 Martin Liska <mliska@suse.cz>
16766
16767 PR ipa/91438
16768 * cgraph.c (cgraph_node::remove): When setting
16769 n->origin = NULL for all nested functions, reset
16770 also next_nested.
16771
16772 2019-08-15 Martin Liska <mliska@suse.cz>
16773
16774 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16775 and next_nested.
16776
16777 2019-08-15 Martin Liska <mliska@suse.cz>
16778
16779 PR ipa/91404
16780 * passes.c (order): Remove.
16781 (uid_hash_t): Likewise).
16782 (remove_cgraph_node_from_order): Remove from set
16783 of pointers (cgraph_node *).
16784 (insert_cgraph_node_to_order): New.
16785 (duplicate_cgraph_node_to_order): New.
16786 (do_per_function_toporder): Register all 3 cgraph hooks.
16787 Skip removed_nodes now as we know about all of them.
16788
16789 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16790
16791 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16792 <case E_V8QImode>: Use vector_set path for
16793 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16794 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16795 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16796
16797 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16798
16799 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16800
16801 2019-08-14 Martin Sebor <msebor@redhat.com>
16802
16803 PR tree-optimization/91294
16804 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16805 source length as exact.
16806
16807 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16808
16809 * doc/extend.texi: Add "noinit" attribute documentation.
16810 * doc/sourcebuild.texi: Add noinit effective target documentation.
16811 * varasm.c (default_section_type_flags): Add support for "noinit"
16812 section.
16813 (default_elf_select_section): Add support for "noinit" attribute.
16814 * config/msp430/msp430.c (msp430_attribute_table): Remove
16815 "noinit" entry.
16816
16817 2019-08-14 Richard Biener <rguenther@suse.de>
16818 Uroš Bizjak <ubizjak@gmail.com>
16819
16820 PR target/91154
16821 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16822 mode arguments.
16823 (scalar_chain::smode): New member.
16824 (scalar_chain::vmode): Likewise.
16825 (dimode_scalar_chain): Rename to...
16826 (general_scalar_chain): ... this.
16827 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16828 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16829 base with TImode and V1TImode.
16830 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16831 (general_scalar_chain::vector_const_cost): Adjust for SImode
16832 chains.
16833 (general_scalar_chain::compute_convert_gain): Likewise. Add
16834 {S,U}{MIN,MAX} support.
16835 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16836 (general_scalar_chain::make_vector_copies): Likewise. Handle
16837 non-DImode chains appropriately.
16838 (general_scalar_chain::convert_reg): Likewise.
16839 (general_scalar_chain::convert_op): Likewise.
16840 (general_scalar_chain::convert_insn): Likewise. Add
16841 fatal_insn_not_found if the result is not recognized.
16842 (convertible_comparison_p): Pass in the scalar mode and use that.
16843 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16844 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16845 (scalar_to_vector_candidate_p): Remove by inlining into single
16846 caller.
16847 (general_remove_non_convertible_regs): Rename from
16848 dimode_remove_non_convertible_regs.
16849 (remove_non_convertible_regs): Remove by inlining into single caller.
16850 (convert_scalars_to_vector): Handle SImode and DImode chains
16851 in addition to TImode chains.
16852 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16853 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16854 (*<maxmin>di3_doubleword): Likewise.
16855
16856 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16857 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16858
16859 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16860 (*cond_bic<mode>_any): New patterns.
16861
16862 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16863
16864 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16865 take the equivalent mask, as well as a bit count.
16866 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16867 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16868 (aarch64_sve_pred_and_operand): New predicates.
16869 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16870 code attribute.
16871 * config/aarch64/aarch64-sve.md
16872 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16873 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16874
16875 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16876
16877 * config/aarch64/aarch64-sve.md
16878 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16879 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16880 New patterns.
16881
16882 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16883 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16884
16885 * config/aarch64/aarch64-sve.md
16886 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16887 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16888
16889 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16890 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16891
16892 * config/aarch64/aarch64-sve.md
16893 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16894 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16895
16896 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16897
16898 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16899 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16900 New pattern.
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 (*aarch64_sel_dup<mode>): New pattern.
16906
16907 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16908 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16909
16910 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16911 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16912 (aarch64_print_operand): Add support for %I.
16913 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16914 Bitcast floating-point constants to the corresponding integer constant.
16915 (aarch64_float_const_representable_p): Handle vectors as well
16916 as scalars.
16917 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16918 for the new vcond_mask_<mode><vpred> expander.
16919 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16920 test aarch64_float_const_representable_p.
16921 (aarch64_sve_reg_or_dup_imm): New predicate.
16922 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16923 gen_vcond_mask_<mode><vpred> instead of
16924 gen_aarch64_sve_dup<mode>_const.
16925 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16926 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16927 for operands 1 and 2 respectively. Force operand 2 into a
16928 register if operand 1 is a register. Fold old define_insn...
16929 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16930 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16931 floating-point constants that can be moved as integers. Add
16932 alternatives for MOV /M and FMOV /M.
16933 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16934 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16935 1 and 2 respectively.
16936 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16937 as scalars.
16938 (vss): New constraint.
16939
16940 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16941
16942 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16943 (aarch64_sve_float_maxmin_operand): New predicates.
16944 * config/aarch64/constraints.md (vsB): New constraint.
16945 (vsM): Fix typo.
16946 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16947 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16948 UNSPEC_COND_FMINNM.
16949 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16950 Use aarch64_sve_float_maxmin_operand for operand 2.
16951 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16952 Add alternatives for the constant forms.
16953
16954 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16955
16956 * config/aarch64/constraints.md (vsb): New constraint.
16957 (vsm): Generalize description.
16958 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16959 iterator.
16960 (sve_imm_con): Handle smax, smin, umax and umin.
16961 (sve_imm_prefix): New code attribute.
16962 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16963 (aarch64_sve_vsb_operand): New predicates.
16964 (aarch64_sve_mul_immediate): Rename to...
16965 (aarch64_sve_vsm_immediate): ...this.
16966 (aarch64_sve_mul_operand): Rename to...
16967 (aarch64_sve_vsm_operand): ...this.
16968 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16969 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16970 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16971 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16972 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16973 add movprfx support for the immediate alternatives.
16974 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16975 of the above.
16976 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16977 for operand 3.
16978
16979 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16980
16981 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16982 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16983 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16984
16985 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16986
16987 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16988 (optab, sve_int_op): Handle them.
16989 * config/aarch64/aarch64-sve.md: Expand comment.
16990
16991 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16992
16993 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16994 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16995 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16996
16997 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16998
16999 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17000 (aarch64_expand_sve_const_pred_trn): New functions.
17001 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17002 use the above functions when the parameter is true.
17003 (aarch64_expand_sve_const_pred): Update call accordingly.
17004 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17005 Rename to...
17006 (@aarch64_sve_<perm_insn><mode>): ...this.
17007
17008 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17009
17010 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17011 Declare.
17012 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17013 (aarch64_sve_emit_int_cmp): New functions.
17014 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17015 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17016 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17017 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17018 (UNSPEC_PRED_Z): New unspec.
17019 (set_clobber_cc_nzc): Delete.
17020 * config/aarch64/aarch64-sve.md: Add a block comment about
17021 UNSPEC_PRED_Z.
17022 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17023 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17024 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17025 UNSPEC_MERGE_PTRUE.
17026 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17027 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17028 check for compatible predicates.
17029 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17030 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17031 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17032 comparisons above.
17033
17034 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17035
17036 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17037 * config/aarch64/aarch64-sve.md: Add a section describing it.
17038 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17039 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17040 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17041 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17042 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17043 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17044 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17045 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17046 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17047 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17048 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17049 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17050 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17051 (aarch64_evpc_rev_local): Update accordingly.
17052
17053 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17054
17055 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17056 iterators.
17057 (SVE_BHSI, SVE_SDI): Tweak comment.
17058 (SVE_HSDI): Likewise. Fix definition.
17059 (SVE_SDF): New mode iterator.
17060 (elem_bits): New mode attribute.
17061 (SVE_COND_FCVT): New int iterator.
17062 * config/aarch64/aarch64-sve.md
17063 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17064 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17065 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17066 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17067 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17068 ...these new patterns.
17069 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17070 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17071 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17072 Merge into...
17073 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17074 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17075 ...these new patterns.
17076 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17077 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17078 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17079 ...this new pattern.
17080 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17081 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17082 ...this new pattern.
17083 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17084
17085 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17086
17087 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17088 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17089 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17090 unspecs.
17091 (optab, su): Handle them.
17092 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17093 * config/aarch64/aarch64-sve.md
17094 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17095 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17096 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17097 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17098 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17099 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17100 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17101 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17102 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17103 FIXUORS.
17104 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17105 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17106 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17107 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17108 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17109 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17110 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17111 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17112 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17113 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17114 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17115 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17116 of UNSPEC_FLOAT_CONVERT.
17117 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17118 aarch64_sve_extend<mode><Vwide>2.
17119
17120 2019-08-14 Richard Biener <rguenther@suse.de>
17121
17122 PR target/91154
17123 * config/i386/i386-features.c
17124 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17125 individual instruction gain. Fix reg-reg copy GRP cost. Use
17126 ix86_cost->sse_op for vector instruction costs.
17127
17128 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17129
17130 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17131 (cmp_op): Handle it.
17132 (SVE_COND_FP_CMP): Rename to...
17133 (SVE_COND_FP_CMP_I0): ...this.
17134 (SVE_FP_CMP): Remove.
17135 * config/aarch64/aarch64-sve.md
17136 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17137 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17138 using unspecs to represent the comparison.
17139 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17140 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17141 accordingly.
17142 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17143 (aarch64_unspec_cond_code): Move after integer code. Handle
17144 UNORDERED.
17145 (aarch64_emit_sve_predicated_cond): Replace with...
17146 (aarch64_emit_sve_fp_cond): ...this new function.
17147 (aarch64_emit_sve_or_conds): Replace with...
17148 (aarch64_emit_sve_or_fp_conds): ...this new function.
17149 (aarch64_emit_sve_inverted_cond): Replace with...
17150 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17151 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17152
17153 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17154
17155 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17156 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17157 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17158 SVE_HSD instead of SVE_SD.
17159
17160 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17161 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17162
17163 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17164 iterator.
17165 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17166 attributes.
17167 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17168 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17169 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17170 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17171 (*div<SVE_F:mode>3): Generalize to...
17172 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17173
17174 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17175 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17176
17177 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17178 constants.
17179 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17180 predicate.
17181 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17182 Declare.
17183 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17184 function.
17185 * config/aarch64/aarch64-sve.md: Add a block comment about the
17186 handling of predicated FP operations.
17187 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17188 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17189 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17190 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17191 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17192 operand.
17193 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17194 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17195 operand.
17196 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17197 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17198 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17199 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17200 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17201 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17202 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17203 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17204 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17205 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17206 strictness operands. Use aarch64_sve_pred_dominates_p to check
17207 whether the predicate on the conditional operation is suitable
17208 for merging. Split patterns into the canonical equal-predicate form.
17209 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17210 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17211
17212 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17213 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17214
17215 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17216 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17217 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17218 rtx codes.
17219 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17220 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17221 unspecs.
17222
17223 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17224 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17225
17226 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17227 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17228 actually has, rather than relying on REG_EQUAL notes.
17229 Make the insn operand order match the SVE operand order.
17230 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17231 the SVE operand order.
17232
17233 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17234
17235 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17236 (aarch64_emit_set_immediate): Likewise.
17237 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17238 (aarch64_pfalse_reg): Likewise.
17239 (aarch64_convert_sve_data_to_pred): New function.
17240 (aarch64_sve_move_pred_via_while): Take an optional target register
17241 and the required register mode.
17242 (aarch64_expand_sve_const_pred_1): New function.
17243 (aarch64_expand_sve_const_pred): Likewise.
17244 (aarch64_expand_mov_immediate): Build an all-true predicate
17245 if the significant bits of the immediate are all true. Use
17246 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17247 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17248 before register allocation.
17249 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17250 a VNx16BI PTRUE when splitting the memory alternative.
17251 (vec_duplicate<mode>): Update accordingly.
17252 (*pred_cmp<cmp_op><mode>): Rename to...
17253 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17254
17255 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17256
17257 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17258 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17259 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17260 (UNSPEC_PTEST): New unspec.
17261 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17262 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17263 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17264 * config/aarch64/aarch64-sve.md: Add a new section describing the
17265 handling of UNSPEC_PTEST.
17266 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17267 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17268 (ptest_ptrue<mode>): Replace with...
17269 (aarch64_ptest<mode>): ...this new pattern.
17270 (cbranch<mode>4): Update after above changes.
17271 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17272 UNSPEC_PTEST_PTRUE.
17273 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17274 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17275 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17276
17277 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17278
17279 PR lto/91287
17280 * builtins.c (builtin_with_linkage_p): New function.
17281 * builtins.h (builtin_with_linkage_p): New function.
17282 * symtab.c (write_symbol): Remove redundant assert.
17283 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17284 Remove FIXME and use builtin_with_linkage_p.
17285
17286 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17287
17288 PR middle-end/91421
17289 * tree-core.h (function_decl::function_code): Change type to
17290 unsigned int.
17291 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17292 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17293 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17294 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17295 is BUILT_IN_NORMAL.
17296 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17297 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17298 (fndecl_built_in_p): Change the type of the "name" argument to
17299 unsigned int.
17300 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17301 after check for DECL_BUILT_IN_CLASS.
17302 * cgraphclones.c (build_function_decl_skip_args): Use
17303 set_decl_built_in_function.
17304 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17305 * ipa-split.c (split_function): Likewise.
17306 * langhooks.c (add_builtin_function_common): Likewise.
17307 * omp-simd-clone.c (simd_clone_create): Likewise.
17308 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17309 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17310 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17311 DECL_FUNCTION_CODE.
17312 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17313 instead of DECL_FUNCTION_CODE.
17314 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17315 instead of DECL_FUNCTION_CODE.
17316 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17317 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17318 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17319 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17320 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17321 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17322 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17323 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17324 (alpha_gimple_fold_builtin): Likewise.
17325 * config/arc/arc.c (arc_expand_builtin): Likewise.
17326 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17327 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17328 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17329 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17330 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17331 * config/frv/frv.c (frv_expand_builtin): Likewise.
17332 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17333 (gcn_expand_builtin): Likewise.
17334 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17335 (fold_builtin_cpu): Likewise.
17336 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17337 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17338 (ix86_gimple_fold_builtin): Likewise.
17339 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17340 (ia64_expand_builtin): Likewise.
17341 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17342 * config/mips/mips.c (mips_expand_builtin): Likewise.
17343 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17344 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17345 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17346 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17347 * config/pa/pa.c (pa_expand_builtin): Likewise.
17348 * config/pru/pru.c (pru_expand_builtin): Likewise.
17349 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17350 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17351 Likewise.
17352 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17353 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17354 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17355 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17356 (rs6000_builtin_reciprocal): Likewise.
17357 * config/rx/rx.c (rx_expand_builtin): Likewise.
17358 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17359 * config/s390/s390.c (s390_expand_builtin): Likewise.
17360 * config/sh/sh.c (sh_expand_builtin): Likewise.
17361 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17362 (sparc_fold_builtin): Likewise.
17363 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17364 * config/spu/spu.c (spu_expand_builtin): Likewise.
17365 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17366 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17367 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17368 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17369 (xtensa_expand_builtin): Likewise.
17370
17371 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17372
17373 PR middle-end/91421
17374 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17375 before the DECL_FUNCTION_CODE.
17376 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17377 to check for a BUILT_IN_ALLOCA call.
17378 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17379 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17380 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17381 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17382 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17383 for BUILT_IN_NORMAL functions.
17384 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17385 test for BUILT_IN_TM_ABORT.
17386 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17387 to check for a BUILT_IN_STACK_RESTORE call.
17388 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17389 * tree-ssa-threadedge.c
17390 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17391 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17392 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17393 test for a BUILT_IN_NORMAL call instead of a negative test for
17394 an internal function call.
17395
17396 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17397
17398 * tree.h (build_vector_a_then_b): Declare.
17399 * tree.c (build_vector_a_then_b): New function.
17400 * fold-const-call.c (fold_while_ult): Likewise.
17401 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17402 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17403 (aarch64_svpattern): New enum.
17404 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17405 constants through aarch64_expand_mov_immediate.
17406 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17407 than general_operand as the predicate for operand 1.
17408 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17409 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17410 insn_type.
17411 (simd_immediate_info::simd_immediate_info): New overload that
17412 takes a scalar_int_mode and an svpattern.
17413 (simd_immediate_info::u): Add a "pattern" field.
17414 (svpattern_token): New function.
17415 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17416 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17417 (aarch64_sve_move_pred_via_while): New functions.
17418 (aarch64_expand_mov_immediate): Try using
17419 aarch64_sve_move_pred_via_while for predicates that contain N ones
17420 followed by M zeros but that do not correspond to a VLnnn pattern.
17421 (aarch64_sve_pred_valid_immediate): New function.
17422 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17423 with PTRUE and PFALSE.
17424 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17425 forms.
17426
17427 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17428
17429 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17430 flag.
17431 (darwin_override_options): Likewise.
17432 * config/darwin.h: Likewise.
17433 * config/darwin.opt: Likewise.
17434 * config/i386/i386.c (output_pic_addr_const): Likewise.
17435 * config/rs6000/darwin.h: Likewise.
17436 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17437 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17438 ... this TARGET_MACHO_SYMBOL_STUBS.
17439 (FUNCTION_PROFILER):Likewise.
17440 * config/i386/i386.h: Likewise.
17441
17442 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17443
17444 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17445 <case E_V2SImode>: Use vec_extr path for
17446 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17447 <case E_V8QImode>: Ditto.
17448 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17449 Use SWI48 mode iterator. Use %k to output operand 0.
17450 (*mmx_pextrw): New insn pattern.
17451 (*mmx_pextrb): Ditto.
17452 (*mmx_pextrb_zext): Ditto.
17453
17454 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17455
17456 * target.def (libc_has_function, libc_has_fast_function): Improve
17457 documentation strings.
17458 * doc/tm.texi: Regenerate.
17459
17460 2019-08-13 Caroline Tice <cmtice@google.com>
17461
17462 PR other/91396
17463 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17464 vtv_end.o or vtv_end_preinit.o files if !static.
17465
17466 2019-08-13 Olivier Hainque <hainque@adacore.com>
17467
17468 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17469
17470 2019-08-13 Olivier Hainque <hainque@adacore.com>
17471
17472 * rtlanal.c (tablejump_casesi_pattern): New function, to
17473 determine if a tablejump insn is a casesi dispatcher. Extracted
17474 from patch_jump_insn.
17475 * rtl.h (tablejump_casesi_pattern): Declare.
17476 * cfgrtl.c (patch_jump_insn): Use it.
17477 * dwarf2cfi.c (create_trace_edges): Use it.
17478
17479 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17480
17481 PR target/81800
17482 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17483 operand is larger than a long int.
17484
17485 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17486
17487 * machmode.h (opt_mode::else_mode): New function.
17488 (opt_mode::else_blk): Use it.
17489 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17490 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17491 (aarch64_gen_stepped_int_parallel): Likewise.
17492 (aarch64_stepped_int_parallel_p): Likewise.
17493 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17494 argument.
17495 * config/aarch64/aarch64.c
17496 (aarch64_expand_sve_widened_duplicate): Delete.
17497 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17498 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17499 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17500 argument. Use early returns in the !CONST_INT_P handling.
17501 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17502 than handling some inline.
17503 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17504 from...
17505 (aarch64_simd_container_mode): ...here.
17506 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17507 (aarch64_sve_ld1rq_operand_p): New functions.
17508 * config/aarch64/predicates.md (descending_int_parallel)
17509 (aarch64_sve_ld1rq_operand): New predicates.
17510 * config/aarch64/constraints.md (UtQ): New constraint.
17511 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17512 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17513 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17514 (@aarch64_sve_reinterpret<mode>): New expander.
17515 (*aarch64_sve_reinterpret<mode>): New pattern.
17516 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17517 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17518 (*sve_ld1rq<Vesize>): Replace with...
17519 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17520
17521 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17522
17523 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17524 16:12.
17525
17526 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17527
17528 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17529 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17530 (msp430_check_path_for_devices): New.
17531 (parse_devices_csv_1): New.
17532 (parse_devices_csv): New.
17533 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17534 MCU data in devices.csv before using the hard-coded data.
17535 Warn if devices.csv isn't found and the MCU wasn't found in the
17536 hard-coded data either.
17537 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17538 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17539 Search for devices.csv on -I and -L paths.
17540 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17541 msp430_set_driver_var.
17542 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17543 -mdevices-csv-loc=.
17544 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17545 searched for devices.csv.
17546 (mwarn-devices-csv): Document option.
17547
17548 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17549
17550 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17551 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17552 Use a single Dn alternative instead of separate Dz and Dm
17553 alternatives. Use aarch64_output_sve_move_immediate.
17554 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17555 function.
17556 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17557 for predicates too.
17558 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17559 (aarch64_output_ptrue): Delete.
17560
17561 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17562
17563 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17564 INDEX.
17565 (simd_immediate_info::value, simd_immediate_info::step)
17566 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17567 with...
17568 (simd_immediate_info::u): ...this new union.
17569 (simd_immediate_info::simd_immediate_info): Update accordingly.
17570 (aarch64_output_simd_mov_immediate): Likewise.
17571 (aarch64_output_sve_mov_immediate): Likewise.
17572
17573 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17574
17575 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17576 extra_gcc_objs.
17577 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17578 (msp430_select_cpu): New spec function.
17579 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17580 MCU data.
17581 * config/msp430/msp430-devices.c: New file.
17582 * config/msp430/msp430-devices.h: New file.
17583 * config/msp430/msp430.c: Remove msp430_mcu_data.
17584 (msp430_option_override): Use msp430_extract_mcu_data to extract
17585 MCU data.
17586 (msp430_use_f5_series_hwmult): Likewise.
17587 (use_32bit_hwmult): Likewise.
17588 (msp430_no_hwmult): Likewise.
17589 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17590 assembler.
17591 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17592 and -mcpu option.
17593 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17594 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17595 Remove hard-coded MCU multilib data.
17596
17597 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17598
17599 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17600 based on the mode instead of testing properties of it.
17601
17602 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17603
17604 * doc/md.texi: Document the x and y constraints for AArch64.
17605 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17606 (FP_LO8_REGS): New reg_class.
17607 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17608 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17609 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17610 * config/aarch64/predicates.md (aarch64_simd_register): Use
17611 FP_REGNUM_P instead of checking the classes manually.
17612 * config/aarch64/constraints.md (y): New constraint.
17613
17614 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17615
17616 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17617 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17618 * config/aarch64/aarch64-simd.md
17619 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17620 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17621 from the asm template.
17622 * config/aarch64/aarch64-sve.md
17623 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17624 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17625 from the asm template.
17626 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17627 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17628 from the asm template.
17629 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17630
17631 2019-08-13 Martin Liska <mliska@suse.cz>
17632
17633 * value-prof.c (gimple_ic_transform): Add new line.
17634 Print details with MSG_NOTE.
17635
17636 2019-08-13 Martin Liska <mliska@suse.cz>
17637
17638 * doc/invoke.texi: Document automatic detection of jobserver.
17639 * lto-wrapper.c (run_gcc): Detect jobserver always.
17640
17641 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17642
17643 * config/i386/i386-expand.c (ix86_expand_vector_set)
17644 <case E_V2SImode>: Use vec_merge path for
17645 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17646 <case E_V8QImode>: Ditto.
17647 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17648 (*mmx_pinsrb): Ditto.
17649
17650 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17651
17652 PR target/83250
17653 PR target/91340
17654 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17655 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17656 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17657 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17658 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17659
17660 2019-08-12 Richard Biener <rguenther@suse.de>
17661
17662 PR lto/91375
17663 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17664 flag_devirtualize.
17665
17666 2019-08-12 Richard Biener <rguenther@suse.de>
17667
17668 PR driver/91130
17669 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17670 lang_mask option, always use CL_DRIVER.
17671 (get_options_from_collect_gcc_options): Adjust.
17672 (find_and_merge_options): Likewise.
17673 (run_gcc): Likewise.
17674
17675 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17676
17677 * ipa-predicate.c (add_condition): Restore inverted test.
17678
17679 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17680
17681 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17682 (enum omp_clause_device_type_kind): New enum.
17683 (struct tree_omp_clause): Add subcode.device_type_kind.
17684 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17685 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17686 for device_type clause.
17687 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17688 * tree-pretty-print.c (dump_omp_clause): Likewise.
17689
17690 PR target/91408
17691 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17692 vector_operand.
17693
17694 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17695
17696 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17697 handling spilled pseudos.
17698
17699 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17700
17701 PR target/91386
17702 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17703 to preserve the contents of the original insns.
17704
17705 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17706
17707 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17708 (addsi3_compare_op2): Likewise.
17709
17710 2019-08-09 Martin Liska <mliska@suse.cz>
17711
17712 * alias.c (alias_ptr_types_compatible_p): Strengten
17713 type comparison in LTO mode.
17714
17715 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17716
17717 PR middle-end/90313
17718 * tree-tailcall.c (find_tail_calls): Reject calls that might
17719 read from an escaped RESULT_DECL.
17720
17721 2019-08-09 Martin Liska <mliska@suse.cz>
17722
17723 * doc/invoke.texi: Document the option value.
17724 * lto-wrapper.c (run_gcc): Set auto_parallel
17725 only with -flto=auto.
17726
17727 2019-08-09 Martin Liska <mliska@suse.cz>
17728
17729 * opts.c (common_handle_option): Error for an invalid argument
17730 to -flto=.
17731
17732 2019-08-09 Martin Liska <mliska@suse.cz>
17733
17734 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17735 use dump_printf to report optimization.
17736 (sem_variable::merge): Likwise.
17737 (sem_item_optimizer::merge_classes): Use dump_printf to report
17738 ICF hits.
17739
17740 2019-08-09 Martin Liska <mliska@suse.cz>
17741
17742 * value-prof.c (gimple_divmod_fixed_value_transform):
17743 Use dump_printf_loc.
17744 (gimple_mod_pow2_value_transform): Likewise.
17745 (gimple_mod_subtract_transform): Likewise.
17746 (init_node_map): Likewise.
17747 (gimple_ic_transform): Likewise.
17748 (gimple_stringops_transform): Likewise.
17749
17750 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17751
17752 * doc/extend.texi: Add const qualifier to ld intrinsics.
17753
17754 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17755
17756 * config/rs6000/dfp.md (D64_D128): Rename to ...
17757 (DDTD): ... this, throughout.
17758 (dfp_suffix): Rename to ...
17759 (q): ... this, throughout.
17760
17761 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17762
17763 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17764 (dfp_suffix): Ditto.
17765 (adddd3, addtd3): Merge to ...
17766 (add<mode>3 for D64_D128): ... this.
17767 (subdd3, subtd3): Merge to ...
17768 (sub<mode>3 for D64_D128): ... this.
17769 (muldd3, multd3): Merge to ...
17770 (mul<mode>3 for D64_D128): ... this.
17771 (divdd3, divtd3): Merge to ...
17772 (div<mode>3 for D64_D128): ... this.
17773 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17774 (*cmp<mode>_internal1 for D64_D128): ... this.
17775 (ftruncdd2, ftrunctd2): Merge to ...
17776 (ftrunc<mode>2 for D64_D128): ... this.
17777 (fixdddi2, fixtddi2): Merge to ...
17778 (fix<mode>di2 for D64_D128): ... this.
17779
17780 2019-08-08 Jim Wilson <jimw@sifive.com>
17781
17782 PR target/91229
17783 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17784 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17785 Pass into recursive call.
17786 (riscv_flatten_aggregate_argument): New arg. Pass to
17787 riscv_flatten_aggregate_field.
17788 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17789 riscv_flatten_aggregate_argument twice, with false and true as last
17790 arg. Process result twice. Compare results and warn if different.
17791 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17792
17793 2019-08-08 Martin Liska <mliska@suse.cz>
17794
17795 PR bootstrap/91352
17796 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17797 * lto-wrapper.c (jobserver_active_p): Likewise.
17798
17799 2019-08-08 Martin Liska <mliska@suse.cz>
17800
17801 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17802 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17803 (create_version_clone_with_body): Likewise.
17804
17805 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17806
17807 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17808 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17809 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17810 GOVD_EXPLICIT flags.
17811 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17812 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17813 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17814 call install_var_field with mask 11 instead of 3.
17815 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17816 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17817
17818 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17819
17820 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17821 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17822
17823 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17824
17825 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17826 MOVPRFX alternatives. Make the GPR alternatives more expensive
17827 than the FPR ones.
17828
17829 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17830
17831 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17832 Disparage the GPR alternative relative to the FPR one.
17833 Fix handling of 8-bit and 16-bit FPR values.
17834
17835 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17836
17837 * config/aarch64/iterators.md (BITWISEV): Delete.
17838 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17839 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17840 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17841 UNSPEC_FMINNMV, UNSPEC_FMINV.
17842 (bit_reduc_op): Delete.
17843 (sve_int_op): New int attribute.
17844 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17845 UNSPEC_FMINNMV, UNSPEC_FMINV.
17846 * config/aarch64/aarch64-sve.md
17847 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17848 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17849 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17850 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17851 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17852 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17853 new patterns.
17854 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17855 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17856 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17857 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17858 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17859 new patterns.
17860
17861 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17862
17863 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17864 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17865 (fms<mode>4, *fms<mode>4): Replace with...
17866 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17867 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17868 Use unspecs instead of rtx codes.
17869 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17870 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17871
17872 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17873
17874 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17875 int iterator.
17876 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17877 * config/aarch64/aarch64-sve.md
17878 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17879 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17880 use a single unspec for the rhs.
17881 (*<su><maxmin><mode>3): Delete.
17882 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17883
17884 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17885
17886 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17887 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17888 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17889 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17890 (optab, sve_fp_op): Handle them.
17891 (SVE_FP_UNARY): Delete.
17892 (optab): Remove sqrt entry.
17893 (sve_fp_op): Remove neg, abs and sqrt entries.
17894 (SVE_COND_FP_UNARY): New int iterator.
17895 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17896 (*<frint_pattern><mode>2): Delete.
17897 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17898 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17899 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17900 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17901
17902 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17903
17904 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17905
17906 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17907
17908 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17909 (UNSPEC_COND_FADD): ...this.
17910 (UNSPEC_COND_SUB): Rename to...
17911 (UNSPEC_COND_FSUB): ...this.
17912 (UNSPEC_COND_MUL): Rename to...
17913 (UNSPEC_COND_FMUL): ...this.
17914 (UNSPEC_COND_DIV): Rename to...
17915 (UNSPEC_COND_FDIV): ...this.
17916 (UNSPEC_COND_MAX): Rename to...
17917 (UNSPEC_COND_FMAXNM): ...this.
17918 (UNSPEC_COND_MIN): Rename to...
17919 (UNSPEC_COND_FMINNM): ...this.
17920 (UNSPEC_COND_LT): Rename to...
17921 (UNSPEC_COND_FCMLT): ...this.
17922 (UNSPEC_COND_LE): Rename to...
17923 (UNSPEC_COND_FCMLE): ...this.
17924 (UNSPEC_COND_EQ): Rename to...
17925 (UNSPEC_COND_FCMEQ): ...this.
17926 (UNSPEC_COND_NE): Rename to...
17927 (UNSPEC_COND_FCMNE): ...this.
17928 (UNSPEC_COND_GE): Rename to...
17929 (UNSPEC_COND_FCMGE): ...this.
17930 (UNSPEC_COND_GT): Rename to...
17931 (UNSPEC_COND_FCMGT): ...this.
17932 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17933 (sve_fp_op_rev): Update accordingly.
17934 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17935
17936 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17937
17938 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17939 banner comments.
17940 * config/aarch64/check-sve-md.awk: New file.
17941 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17942 (insn-conditions.md): Depend on it.
17943
17944 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17945
17946 PR target/91385
17947 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17948 (*negsi2_cmpz_zext): Ditto.
17949
17950 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17951
17952 * config/aarch64/iterators.md (commutative): Remove.
17953
17954 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17955
17956 PR driver/91130
17957 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17958 processing COLLECT_GCC_OPTIONS.
17959 (run_gcc): Likewise.
17960
17961 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17962
17963 PR tree-optimization/91109
17964 * lra-remat.c (update_scratch_ops): Remove assignment of the
17965 hard register.
17966
17967 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17968
17969 * data-streamer.h (streamer_write_poly_uint64): Declare.
17970 (streamer_read_poly_uint64): Likewise.
17971 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17972 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17973 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17974 (add_condition): Take a poly_int64 size.
17975 * ipa-predicate.c (add_condition): Likewise.
17976 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17977 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17978 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17979 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17980 condition::size as a poly_int64.
17981 (unmodified_parm_1): Take a poly_int64 size pointer.
17982 (unmodified_parm): Likewise.
17983 (unmodified_parm_or_parm_agg_item): Likewise.
17984 (set_cond_stmt_execution_predicate): Update accordingly.
17985 (set_switch_stmt_execution_predicate): Likewise.
17986 (will_be_nonconstant_expr_predicate): Likewise.
17987 (will_be_nonconstant_predicate): Likewise.
17988 (inline_read_section): Stream condition::size as a poly_int.
17989 (ipa_fn_summary_write): Likewise.
17990
17991 2019-08-07 Martin Liska <mliska@suse.cz>
17992
17993 * fold-const.c (twoval_comparison_p): Replace int
17994 with bool as a return type.
17995 (simple_operand_p): Likewise.
17996 (operand_equal_p): Replace int with bool as a return type.
17997 * fold-const.h (operand_equal_p): Likewise.
17998
17999 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18000
18001 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18002 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18003 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18004 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18005 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18006 * tree-pretty-print.c (dump_omp_clause): Likewise.
18007 * tree-nested.c (convert_nonlocal_omp_clauses,
18008 convert_local_omp_clauses): Likewise.
18009 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18010 Likewise.
18011 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18012 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18013 clause with array or reference to array types, no matter what type
18014 except for reference it has.
18015
18016 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18017
18018 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18019
18020 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18021
18022 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18023 (arch_canonicalize): Support rv32g and rv64g and fix error
18024 handling.
18025
18026 2019-08-06 Martin Liska <mliska@suse.cz>
18027
18028 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18029 and DECL_IS_OPERATOR_DELETE_P.
18030
18031 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18032
18033 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18034 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18035 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18036 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18037 (gimplify_omp_for): Don't do C++ random access iterator clause
18038 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18039 don't predetermine the artificial iterator in case of C++ random
18040 access iterators as lastprivate, but private. For OMP_LOOP, force
18041 bind expr around simd body and force for_pre_body before the
18042 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18043 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18044 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18045 diff var of C++ random access iterators. Handle
18046 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18047 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18048 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18049 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18050 * omp-low.c (lower_rec_input_clauses): For
18051 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18052 variables instead of default constructing them.
18053 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18054 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18055 is_taskloop_ctx check from the assert to the guarding condition.
18056
18057 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18058
18059 * config/riscv/multilib-generator: (canonical_order): New.
18060 (arch_canonicalize): Dito.
18061 Apply arch_canonicalize for alts.
18062
18063 2019-08-05 Martin Sebor <msebor@redhat.com>
18064
18065 * doc/extend.texi (Common Variable Attributes): Document alias
18066 attribute.
18067
18068 2019-08-05 Marek Polacek <polacek@redhat.com>
18069
18070 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18071 * doc/invoke.texi: Document -Wcomma-subscript.
18072
18073 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18074
18075 * tree-core.h (tree_function_decl): Make function_code an
18076 independent field. Group the remaining bitfields into bytes
18077 and move decl_type so that it contines to be at a byte boundary.
18078 Leave 12 bits for future expansion.
18079
18080 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18081
18082 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18083 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18084 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18085 IFN_MASK_STORE.
18086
18087 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18088
18089 * gimple.h (gimple_move_vops): Declare.
18090 * gimple.c (gimple_move_vops): New function
18091 * gimple-fold.c (replace_call_with_call_and_fold)
18092 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18093 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18094 (gimple_fold_call): Use it.
18095 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18096 * tree-call-cdce.c (use_internal_fn): Likewise.
18097 * tree-if-conv.c (predicate_load_or_store): Likewise.
18098 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18099 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18100 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18101 (update_call_from_tree): Likewise.
18102 * tree-vect-stmts.c (vectorizable_load): Likewise.
18103 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18104
18105 2019-08-05 Martin Liska <mliska@suse.cz>
18106
18107 PR c++/91334
18108 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18109 with not arguments.
18110 (eliminate_unnecessary_stmts): Likewise.
18111
18112 2019-08-05 Richard Biener <rguenther@suse.de>
18113
18114 PR middle-end/91169
18115 * fold-const.c (get_array_ctor_element_at_index): Create
18116 offset_ints according to the sign of the index type and treat
18117 that as signed if it is obviously so.
18118
18119 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18120
18121 PR target/91341
18122 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18123 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18124 _mm256_storeu2_m128i): New function.
18125
18126 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18127
18128 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18129 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18130
18131 2019-08-05 Alan Modra <amodra@gmail.com>
18132
18133 PR target/91349
18134 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18135 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18136
18137 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18138
18139 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18140 bug that was fixed in Tcl 8.6.1.
18141
18142 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18143
18144 * config/rs6000/future.md: New file.
18145 * config/rs6000/rs6000.md: Include future.md.
18146 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18147
18148 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18149
18150 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18151 check to use targetm.slow_unaligned_access instead.
18152
18153 * function.c (assign_param_data_one): Remove unused data members.
18154
18155 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18156
18157 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18158 build_distinct_type_copy.
18159 (simd_clone_adjust_argument_types): Ditto.
18160 (simd_clone_adjust): Call build_distinct_type_copy here.
18161 (expand_simd_clones): Ditto.
18162
18163 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18164
18165 PR target/91201
18166 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18167
18168 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18169
18170 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18171 from 'const void *'.
18172 (sort_locs_in_loop_postorder_cmp): Likewise.
18173
18174 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18175
18176 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18177 (hot-bb-count-ws-permille): Likewise.
18178 (hot-bb-frequency-fraction): Likewise.
18179 (unlikely-bb-count-fraction): Likewise.
18180 * params.def (hot-bb-count-fraction): Rework description.
18181 (hot-bb-count-ws-permille): Likewise.
18182 (hot-bb-frequency-fraction): Likewise.
18183 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18184 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18185
18186 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18187
18188 PR target/91323
18189 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18190 Return false.
18191
18192 2019-08-02 Richard Biener <rguenther@suse.de>
18193
18194 * vec.h (vec::sort): Add gcc_qsort_r support.
18195 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18196 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18197 to gcc_qsort_r style callback.
18198 (sort_locs_in_loop_postorder_cmp): Likewise.
18199 (analyze_memory_references): Use gcc_sort_r interfaces.
18200 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18201
18202 2019-08-02 Martin Liska <mliska@suse.cz>
18203
18204 PR lto/91313
18205 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18206 to detect working job server.
18207 (driver::detect_jobserver): Test whether jobserver
18208 is active from GCC driver. That will prevent situation where
18209 GCC is invoked from a LD plugin and the linker already uses
18210 file descriptors suggested by make. That leads to a wrong
18211 detection.
18212 * gcc.h (driver): Add detect_jobserver.
18213 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18214 not scanning for --jobserver-auth prefix.
18215
18216 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18217
18218 PR tree-optimization/91201
18219 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18220 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18221 extraction.
18222
18223 2019-08-01 Martin Sebor <msebor@redhat.com>
18224
18225 PR c++/90947
18226 * tree.c (type_initializer_zero_p): Define.
18227 * tree.h (type_initializer_zero_p): New function.
18228
18229 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18230
18231 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18232
18233 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18234
18235 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18236 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18237 * predict.c (maybe_hot_count_p): Likewise.
18238 (maybe_hot_bb_p): Tweak comment.
18239 (maybe_hot_edge_p): Likewise.
18240 (probably_never_executed): Likewise. Minor tweak.
18241 (probably_never_executed_bb_p): Likewise.
18242 (unlikely_executed_edge_p): Likewise.
18243 (probably_never_executed_edge_p): Likewise.
18244 (optimize_function_for_size_p): Likewise.
18245 (optimize_function_for_speed_p): Likewise.
18246 (function_optimization_type): Likewise.
18247 (optimize_bb_for_size_p): Likewise.
18248 (optimize_bb_for_speed_p): Likewise.
18249 (bb_optimization_type): Likewise.
18250 (optimize_edge_for_size_p): Likewise.
18251 (optimize_edge_for_speed_p): Likewise.
18252 (optimize_insn_for_size_p): Likewise.
18253 (optimize_insn_for_speed_p): Likewise.
18254 (optimize_loop_for_size_p): Likewise.
18255 (optimize_loop_for_speed_p): Likewise.
18256 (optimize_loop_nest_for_speed_p): Likewise.
18257 (optimize_loop_nest_for_size_p): Likewise.
18258 (predictable_edge_p): Likewise.
18259 (handle_missing_profiles): Minor tweak.
18260
18261 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18262
18263 * config/rs6000/predicates.md (pcrel_external_address): Update
18264 comment.
18265
18266 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18267
18268 PR target/85693
18269 * config/i386/mmx.md (usadv8qi): New expander.
18270
18271 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18272
18273 PR c++/90590
18274 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18275 with reserved names that are in a system header.
18276
18277 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18278
18279 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18280 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18281 (*vec_extractv2si_0_zext): Ditto.
18282 (*vec_extractv2si_1): Add (rm,x) alternative.
18283 (*vec_extractv2si_1_zext): New insn pattern.
18284 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18285 insn constraint.
18286
18287 2019-08-01 Richard Biener <rguenther@suse.de>
18288
18289 * domwalk.c (bb_postorder): Remove static variable.
18290 (cmp_bb_postorder): Adjust.
18291 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18292 (dom_walker::walk): Adjust.
18293
18294 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18295
18296 * sort.cc (sort_r_ctx): New struct.
18297 (reorder23): Make templated on context type.
18298 (reorder45): Ditto.
18299 (cmp1): Ditto. Adjust signature.
18300 (netsort): Ditto.
18301 (mergesort): Ditto.
18302 [CHECKING_P] (cmp2to3): New static function. Use it...
18303 (gcc_qsort) [CHECKING_P]: ...here.
18304 (gcc_sort_r): New function.
18305 * system.h (sort_r_cmp_fn): New function typedef.
18306 (qsort_chk): Adjust signature.
18307 (gcc_sort_r): Declare.
18308 * vec.c (qsort_chk_error): Adjust.
18309 (qsort_chk): Adjust.
18310
18311 2019-08-01 Richard Biener <rguenther@suse.de>
18312
18313 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18314 (compute_antic): Localize it here.
18315
18316 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18317
18318 * common/config/riscv/riscv-common.c: Check -march string ends
18319 with null.
18320
18321 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18322
18323 * ipa-devirt.c (type_warning_cmp): Make static.
18324 (decl_warning_cmp): Ditto.
18325
18326 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18327
18328 PR target/91050
18329 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18330 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18331 use of deleted rs6000_dejagnu_cpu_index variable.
18332 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18333 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18334 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18335 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18336 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18337 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18338
18339 2019-07-31 Richard Biener <rguenther@suse.de>
18340
18341 PR tree-optimization/91280
18342 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18343 Decompose MEM_REF manually for offset handling.
18344
18345 2019-07-31 Richard Biener <rguenther@suse.de>
18346
18347 PR tree-optimization/91293
18348 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18349 of reduction stmts.
18350
18351 2019-07-31 Matt Thomas <matt@3am-software.com>
18352 Nick Hudson <nick@nthcliff.demon.co.uk>
18353 Matthew Green <mrg@eterna.com.au>
18354 Maya Rashish <coypu@sdf.org>
18355
18356 * config.gcc (hppa*-*-netbsd*): New target.
18357 * config/pa/pa-netbsd.h: New file.
18358 * config/pa/pa32-netbsd.h: New file.
18359
18360 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18361
18362 PR tree-optimization/91201
18363 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18364
18365 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18366
18367 * config/gcn/gcn-valu.md
18368 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18369 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18370 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18371 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18372 struct ilist. Add nops for delayeduse insns.
18373 * config/gcn/gcn.md (delayeduse): New attribute.
18374 (*movbi): Remove s_waitcnt from stores.
18375 (*mov<mode>_insn): Likewise.
18376 (*movti_insn): Likewise. Add delayeduse attribute.
18377 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18378 (atomic_store<mode>): Remove or adjust s_waitcnt.
18379
18380 2019-07-31 Richard Biener <rguenther@suse.de>
18381
18382 * vr-values.h (vr_values::swap_vr_value): New.
18383 (vr_values::free_value_range): likewise.
18384 * vr-values.c (vr_values::swap_vr_value): Implement.
18385 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18386 Do not return a range or take a var.
18387 (evrp_range_analyzer::stack): Change back to recording a non-const
18388 value_range *.
18389 * gimple-ssa-evrp-analyze.c
18390 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18391 value-range.
18392 (evrp_range_analyzer::pop_to_marker): Adjust.
18393 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18394 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18395 no longer needed value-range.
18396
18397 2019-07-31 Martin Liska <mliska@suse.cz>
18398
18399 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18400 have size and (or) alignment as 2nd and later arguments.
18401 Mark all of them as necessary.
18402
18403 2019-07-31 Richard Biener <rguenther@suse.de>
18404
18405 PR tree-optimization/91178
18406 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18407 Use tail-recursion.
18408
18409 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18410
18411 PR tree-optimization/91201
18412 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18413 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18414 TARGET_AVX512F.
18415 (reduc_plus_scal_<mode>): Improve formatting by introducing
18416 a temporary.
18417
18418 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18419
18420 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18421 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18422 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18423 (aarch64_init_tme_builtins): New.
18424 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18425 (aarch64_expand_builtin_tme): New.
18426 (aarch64_expand_builtin): Handle TME builtins.
18427 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18428 __ARM_FEATURE_TME when enabled.
18429 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18430 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18431 (TARGET_TME): New.
18432 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18433 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18434 UNSPECV_TCANCEL.
18435 (tstart, ttest, tcommit, tcancel): New instructions.
18436 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18437 (__tcancel, __ttest): New.
18438 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18439 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18440 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18441 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18442 * config/arm/types.md: Add new tme type attr.
18443 * doc/invoke.texi: Document "tme".
18444
18445 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18446
18447 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18448 warn_unused_result attribute.
18449 (cmse_check_address_range): Add warn_unused_result attribute.
18450
18451 2019-07-31 Richard Biener <rguenther@suse.de>
18452
18453 PR tree-optimization/91257
18454 * tree-vrp.c (union_ranges): Unify equality and less tests
18455 by using compare_values. Re-order cheap tests first.
18456
18457 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18458
18459 PR middle-end/91301
18460 * gimplify.c (gimplify_omp_for): If for class iterator on
18461 distribute parallel for there is no data sharing clause
18462 on inner_for_stmt, look for private clause on combined
18463 parallel too and if found, move it to inner_for_stmt.
18464
18465 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18466
18467 * lra-int.h (lra_operand_data): Remove early_clobber field.
18468 (lra_insn_reg): Likewise.
18469 * lra.c (debug_operand_data): Update accordingly.
18470 (setup_operand_alternative): Likewise.
18471 (new_insn_reg): Likewise. Remove early_clobber parameter.
18472 (collect_non_operand_hard_regs): Update call accordingly.
18473 Don't assign to lra_insn_reg::early_clobber.
18474 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18475 and update calls to new_insn_reg.
18476 (lra_update_insn_regno_info): Update calls accordingly.
18477 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18478 alternative number as a parameter and test whether the operand
18479 is earlyclobbered in that particular alternative.
18480 (process_alt_operands): Update call accordingly. Use per-alternative
18481 checks for earyclobber here too.
18482 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18483 against zero for IRA_UNKNOWN_ALT.
18484
18485 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18486
18487 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18488
18489 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18490
18491 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18492 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18493
18494 2019-07-30 Martin Liska <mliska@suse.cz>
18495
18496 PR ipa/89330
18497 * cgraph.c (cgraph_edge::make_direct): Use
18498 edge->indirect_unknown_callee as edge->resolve_speculation can
18499 deallocate edge which is this pointer.
18500
18501 2019-07-30 Richard Biener <rguenther@suse.de>
18502
18503 PR tree-optimization/91257
18504 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18505
18506 2019-07-30 Martin Liska <mliska@suse.cz>
18507
18508 * doc/invoke.texi: Document new behavior.
18509 * lto-wrapper.c (cpuset_popcount): New function
18510 is a copy of libgomp/config/linux/proc.c.
18511 (init_num_threads): Likewise.
18512 (run_gcc): Automatically detect core count for -flto.
18513 (jobserver_active_p): New function.
18514
18515 2019-07-30 Richard Biener <rguenther@suse.de>
18516
18517 PR tree-optimization/91257
18518 * bitmap.h (bitmap_ior_into_and_free): Declare.
18519 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18520 whether to add the unliked element to the freelist.
18521 (bitmap_list_insert_element_after): Add defaulted param for
18522 an already allocated element.
18523 (bitmap_ior_into_and_free): New function.
18524 * tree-ssa-structalias.c (condense_visit): Reduce the
18525 ponts-to and edge bitmaps of the SCC members in a
18526 logarithmic fashion rather than all to one.
18527
18528 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18529
18530 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18531 parameter. When nonnull, make sure that the addition or subtraction
18532 has the same condition.
18533 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18534 for CFN_COND_MUL too.
18535
18536 2019-07-30 Richard Biener <rguenther@suse.de>
18537
18538 PR tree-optimization/91291
18539 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18540 constant values.
18541
18542 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18543
18544 PR middle-end/91216
18545 * omp-low.c (global_nonaddressable_vars): New variable.
18546 (use_pointer_for_field): For global decls, if they are non-addressable,
18547 remember it in the global_nonaddressable_vars bitmap, if they are
18548 addressable and in the global_nonaddressable_vars bitmap, ignore their
18549 TREE_ADDRESSABLE bit.
18550 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18551 vars in global_nonaddressable_vars bitmap.
18552 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18553
18554 PR target/91150
18555 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18556 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18557 comparison to unsigned HOST_WIDE_INT before shifting it left.
18558
18559 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18560
18561 * config/i386/i386.md (movstrict<mode>): Use register_operand
18562 predicate for operand 0. Add expander condition. Assert that
18563 operand 0 is a SUBREG RTX.
18564 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18565 Update operand constraints and insn condition.
18566 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18567 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18568 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18569 Update operand 0 constraints.
18570 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18571
18572 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18573
18574 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18575 when -m{code,data}-region are used without -mlarge.
18576 * config/msp430/msp430.c (msp430_option_override): Error when a
18577 non-default code or data region is used without -mlarge.
18578 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18579 attributes when they are used without -mlarge.
18580
18581 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18582
18583 PR target/70320
18584 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18585
18586 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18587
18588 PR middle-end/91242
18589 * wide-int.h (generic_wide_int::sext_elt): New function.
18590 * inchash.h (hash::add_wide_int): Use it instead of elt.
18591
18592 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18593
18594 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18595 CODE_FOR_arm_##.
18596 * config/arm/arm.md (<crc_variant>): Rename to...
18597 (arm_<crc_variant>): ... This.
18598 (<cdp>): Rename to...
18599 (arm_<cdp>): ... This.
18600 (<ldc>): Rename to...
18601 (arm_<ldc>): ... This.
18602 (<stc>): Rename to...
18603 (arm_<stc>): ... This.
18604 (<mcr>): Rename to...
18605 (arm_<mcr>): ... This.
18606 (<mrc>): Rename to...
18607 (arm_<mrc>): ... This.
18608 (<mcrr>): Rename to...
18609 (arm_<mcrr>): ... This.
18610 (<mrrc>): Rename to...
18611 (arm_<mrrc>): ... This.
18612
18613 2019-07-29 Richard Biener <rguenther@suse.de>
18614
18615 PR tree-optimization/91257
18616 * tree-ssa-sccvn.h (struct vn_avail): New.
18617 (struct vn_ssa_aux): Add avail member.
18618 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18619 member, add m_avail_freelist one.
18620 (rpo_elim::~rpo_elim): Remove.
18621 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18622 data structure.
18623 (rpo_elim::eliminate_push_avail): Likewise.
18624 (do_unwind): Likewise.
18625 (do_rpo_vn): Likewise.
18626
18627 2019-07-29 Richard Biener <rguenther@suse.de>
18628
18629 PR tree-optimization/91257
18630 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18631 most cases, instead call compare_values which handles the
18632 symbolic ranges we handle specially.
18633 (compare_values_warnv): Do not call operand_less_p but open-code
18634 the effective fold calls. Avoid converting so much.
18635
18636 2019-07-29 Martin Liska <mliska@suse.cz>
18637
18638 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18639 remove LHS of operator new call. It's handled latter.
18640
18641 2019-07-29 Richard Biener <rguenther@suse.de>
18642
18643 PR tree-optimization/91267
18644 * vr-values.c (vr_values::update_value_range): Add early return
18645 for effectively VARYING lattice entry.
18646
18647 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18648
18649 PR debug/86638
18650 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18651 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18652 necessary if keep_all_vdefs_p is true.
18653 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18654 that keep_all_vdefs_p is false.
18655 (mark_all_reaching_defs_necessary): Likewise.
18656 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18657
18658 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18659
18660 * common.opt (Og): Change the initial value of flag_dse to 0.
18661 * opts.c (default_options_table): Move OPT_ftree_dse from
18662 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18663 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18664 entry before the OPT_ftree_sra entry.
18665 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18666 of flags disabled by Og.
18667
18668 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18669
18670 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18671 variables for -Og.
18672
18673 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18674
18675 * doc/sourcebuild.texi (check-function-bodies): Document.
18676
18677 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18678
18679 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18680 VEC_DUPLICATE of a fixed-length vector even if the result
18681 is variable-length. Likewise fold a duplicate of a
18682 variable-length vector if the variable-length vector is
18683 itself a duplicate of a fixed-length sequence.
18684 (test_vector_ops_duplicate): Test more cases.
18685
18686 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18687
18688 * vector-builder.h (vector_builder): Add a shape template parameter.
18689 (vector_builder::new_unary_operation): New function, generalizing
18690 the old tree_vector_builder function.
18691 (vector_builder::new_binary_operation): Likewise.
18692 (vector_builder::binary_encoded_nelts): Likewise.
18693 * int-vector-builder.h (int_vector_builder): Update template
18694 parameters to vector_builder.
18695 (int_vector_builder::shape_nelts): New function.
18696 * rtx-vector-builder.h (rtx_vector_builder): Update template
18697 parameters to vector_builder.
18698 (rtx_vector_builder::shape_nelts): New function.
18699 (rtx_vector_builder::nelts_of): Likewise.
18700 (rtx_vector_builder::npatterns_of): Likewise.
18701 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18702 * tree-vector-builder.h (tree_vector_builder): Update template
18703 parameters to vector_builder.
18704 (tree_vector_builder::shape_nelts): New function.
18705 (tree_vector_builder::nelts_of): Likewise.
18706 (tree_vector_builder::npatterns_of): Likewise.
18707 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18708 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18709 (tree_vector_builder::new_binary_operation): Delete.
18710 (tree_vector_builder::binary_encoded_nelts): Likewise.
18711 * simplify-rtx.c: Include rtx-vector-builder.h.
18712 (distributes_over_addition_p): New function.
18713 (simplify_const_unary_operation)
18714 (simplify_const_binary_operation): Generalize handling of vector
18715 constants to include variable-length vectors.
18716 (test_vector_ops_series): Add more tests.
18717
18718 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18719
18720 PR lto/91222
18721 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18722 than INDENTIFIER_POINTER.
18723
18724 2019-07-28 Martin Liska <mliska@suse.cz>
18725
18726 PR ipa/89330
18727 * cgraph.c (symbol_table::create_edge): Always allocate
18728 a cgraph_edge.
18729 (symbol_table::free_edge): Store summary_id to
18730 edge_released_summary_ids if != -1;
18731 * cgraph.h (NEXT_FREE_NODE): Remove.
18732 (SET_NEXT_FREE_NODE): Likewise.
18733 (NEXT_FREE_EDGE): Likewise.
18734 (symbol_table::release_symbol): Store summary_id to
18735 cgraph_released_summary_ids if != -1;
18736 (symbol_table::allocate_cgraph_symbol): Always allocate
18737 a cgraph_node.
18738
18739 2019-07-28 Alan Modra <amodra@gmail.com>
18740
18741 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18742 gen_sibcall.
18743
18744 2019-07-28 Alan Modra <amodra@gmail.com>
18745
18746 PR target/91135
18747 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18748 define.
18749 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18750 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18751 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18752
18753 2019-07-28 Alan Modra <amodra@gmail.com>
18754
18755 PR target/91050
18756 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18757 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18758 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18759 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18760 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18761 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18762 in asm_default spec.
18763 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18764 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18765
18766 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18767
18768 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18769
18770 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18771
18772 PR target/89517
18773 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18774 * config/aarch64/aarch64-option-extensions.def: Add new comments
18775 and restore easier to read options.
18776
18777 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18778
18779 * convert.c (convert_to_real_1): Move part of conversion code...
18780 * match.pd: ...To here.
18781
18782 2019-07-26 Martin Jambor <mjambor@suse.cz>
18783
18784 PR ipa/89330
18785 * ipa-inline-transform.c (check_speculations_1): New function.
18786 (push_all_edges_in_set_to_vec): Likewise.
18787 (check_speculations): Use check_speculations_1, new parameter
18788 new_edges.
18789 (inline_call): Pass new_edges to check_speculations.
18790 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18791 NULL.
18792 (speculation_useful_p): Early return true if edge is inlined, remove
18793 later checks for inline_failed.
18794
18795 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18796
18797 PR rtl-optimization/91223
18798 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18799 matching with INOUT operand.
18800
18801 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18802
18803 * stmt.c (expand_case): Try to narrow the index type if it's larger
18804 than a word. Tidy up.
18805
18806 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18807
18808 * cif-code.def (NEVER_CALL): New code.
18809 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18810 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18811
18812 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18813
18814 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18815 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18816
18817 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18818
18819 * ipa-devirt.c (add_type_duplicate): Fix return value.
18820
18821 2019-07-25 Richard Biener <rguenther@suse.de>
18822
18823 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18824 type parameter and use it instead of guessing expression
18825 type from the first operand.
18826 (extract_range_from_binary_expr): Pass expr_type down.
18827
18828 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18829
18830 * config/arm/arm.md (SATrev): Change to code attribute.
18831 (*satsi_<SAT:code>): Adjust for the above.
18832 (*satsi_<SAT:code>_shift): Likewise.
18833
18834 2019-07-25 Richard Biener <rguenther@suse.de>
18835
18836 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18837 Make value_range * temporary const.
18838 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18839 Likewise.
18840 (evrp_range_analyzer::record_ranges_from_): Likewise.
18841 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18842 deal with having recorded a const one.
18843 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18844 Return a const value_range *.
18845 (evrp_range_analyzer::pop_value_range): Likewise.
18846 (evrp_range_analyzer::stack): Record const value_range *s.
18847 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18848 Adjust.
18849 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18850 (format_integer): Likewise.
18851 (sprintf_dom_walker::handle_gimple_call): Likewise.
18852 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18853 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18854 (vrp_prop::get_value_range): Adjust.
18855 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18856 modifying the lattice in-place.
18857 (vrp_prop::visit_stmt): Likewise.
18858 * vr-values.c (vr_values::get_lattice_entry): New private method.
18859 (vr_values::get_value_range): Wrap it and return a const
18860 value_range *.
18861 (vr_values::set_def_to_varying): New.
18862 (vr_values::set_defs_to_varying): Use it.
18863 (vr_values::update_value_range): Likewise.
18864 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18865 (values::op_with_constant_singleton_va): Likewise.
18866 (vr_values::extract_range_for_var_from_co): Likewise.
18867 (vr_values::extract_range_from_ssa_name): Likewise.
18868 (vr_values::extract_range_from_cond_expr): Likewise.
18869 (vr_values::extract_range_basic): Likewise.
18870 (compare_ranges): Take const value_range *, adjust.
18871 (compare_range_with_value): Likewise.
18872 (vrp_valueize): Adjust.
18873 (vrp_valueize_1): Likewise.
18874 (vr_values::get_vr_for_comparison): Return a const value_range *.
18875 (vr_values::compare_name_with_value): Adjust.
18876 (vr_values::compare_names): Likewise.
18877 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18878 Likewise.
18879 (vr_values::vrp_evaluate_conditional): Likewise.
18880 (find_case_label_ranges): Take a const value_range *.
18881 (vr_values::vrp_visit_switch_stmt): Adjust.
18882 (vr_values::extract_range_from_phi_node): Likewise.
18883 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18884 (vr_values::simplify_abs_using_ranges): Likewise.
18885 (test_for_singularity): Take a const value_range *.
18886 (range_fits_type_p): Likewise.
18887 (vr_values::simplify_cond_using_ranges_1): Adjust.
18888 (vr_values::simplify_cond_using_ranges_2): Likewise.
18889 (vr_values::simplify_switch_using_ranges): Likewise.
18890 (vr_values::simplify_float_conversion_usi): Likewise.
18891 (vr_values::two_valued_val_range_p): Likewise.
18892 * vr-values.h (vr_values::get_value_range): Return a const
18893 value_range *.
18894 (vr_values::set_def_to_varying): New.
18895 (vr_values::get_lattice_entry): New private method.
18896 (vr_values::get_vr_for_comparison): Return a const value_range *.
18897
18898 2019-07-25 Martin Liska <mliska@suse.cz>
18899 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18900
18901 PR c++/23383
18902 * common.opt: Add -fallocation-dce
18903 * gimple.c (gimple_call_operator_delete_p): New.
18904 * gimple.h (gimple_call_operator_delete_p): Likewise.
18905 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18906 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18907 DECL_IS_OPERATOR_DELETE_P.
18908 (mark_all_reaching_defs_necessary_1): Likewise.
18909 (propagate_necessity): Likewise.
18910 (eliminate_unnecessary_stmts): Handle
18911 gimple_call_operator_delete_p.
18912 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18913 Add packing of OPERATOR_DELETE.
18914 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18915 Similarly here.
18916 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18917 (DECL_SET_IS_OPERATOR_DELETE): New.
18918 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18919
18920 2019-07-25 Martin Liska <mliska@suse.cz>
18921
18922 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18923 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18924 * coverage.c (coverage_begin_function): Likewise.
18925 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18926 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18927 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18928 (sem_item::hash_referenced_symbol_properties): Likewise.
18929 * lto-streamer-out.c (hash_tree): Likewise.
18930 * predict.c (expr_expected_value_1): Likewise.
18931 * tree-inline.c (expand_call_inline): Likewise.
18932 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18933 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18934 * tree-core.h (enum function_decl_type): New enum.
18935 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18936 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18937 (set_function_decl_type): Likewise.
18938 (DECL_IS_OPERATOR_NEW_P): New.
18939 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18940 (DECL_LAMBDA_FUNCTION): Likewise.
18941 (DECL_LAMBDA_FUNCTION_P): Likewise.
18942 (DECL_IS_OPERATOR_NEW): Remove.
18943 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18944
18945 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18946
18947 * ipa-profile.c (get_most_common_single_value): Use
18948 get_nth_most_common_value.
18949 * profile.c (sort_hist_value): New function.
18950 (compute_value_histograms): Call sort_hist_value to sort the
18951 values after loading from disk.
18952 * value-prof.c (get_most_common_single_value): Rename to ...
18953 get_nth_most_common_value. Add input params n, return
18954 the n_th value and count.
18955 (gimple_divmod_fixed_value_transform): Use
18956 get_nth_most_common_value.
18957 (gimple_ic_transform): Likewise.
18958 (gimple_stringops_transform): Likewise.
18959 * value-prof.h (get_most_common_single_value): Add input params
18960 n, default to 0.
18961
18962 2019-07-25 Richard Biener <rguenther@suse.de>
18963
18964 PR tree-optimization/91236
18965 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18966 size of CONSTRUCTOR write. Fix buffer size we pass to
18967 native_encode_expr.
18968
18969 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18970
18971 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18972 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18973 r273773.
18974
18975 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18976
18977 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18978 explicitly disabled with --disable-initfini-array.
18979
18980 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18981
18982 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18983 if-exists.
18984
18985 2019-07-24 Martin Sebor <msebor@redhat.com>
18986
18987 PR tree-optimization/91183
18988 PR tree-optimization/86688
18989 * builtins.c (compute_objsize): Handle MEM_REF.
18990 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18991 (get_min_string_length): Remove.
18992 (count_nonzero_bytes): New function.
18993 (handle_char_store): Rename...
18994 (handle_store): to this. Handle multibyte stores via integer types.
18995 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18996 function name.
18997
18998 2019-07-24 Martin Sebor <msebor@redhat.com>
18999
19000 PR driver/80545
19001 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19002 (diagnostic_report_diagnostic): Same.
19003 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19004 (diagnostic_context::lang_mask): New data member.
19005 * ipa-pure-const.c (suggest_attribute): Use
19006 lang_hooks.option_lang_mask ().
19007 * opts-common.c (option_enabled): Handle new argument.
19008 (get_option_state): Pass an additional argument.
19009 * opts.c (print_filtered_help): Print supported languages for
19010 unsupported options. Adjust printing of current state.
19011 * opts.h (option_enabled): Add argument.
19012 * toplev.c (print_switch_values): Use lang_mask.
19013 (general_init): Set global_dc->lang_mask.
19014
19015 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19016
19017 PR bootstrap/87030
19018 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19019
19020 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19021
19022 * cgraphunit.c (symbol_table::compile): Start and stop
19023 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19024 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19025
19026 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19027
19028 * gimplify.c (flag_instrument_functions_exclude_p): Include
19029 namespace/class information in the printable name.
19030 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19031 to tokens entered into the vector.
19032
19033 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19034
19035 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19036 (get_static_chain): Call it instead of build_simple_mem_ref.
19037 (get_frame_field): Likewise.
19038 (get_nonlocal_debug_decl): Likewise.
19039 (convert_nonlocal_reference_op): Likewise.
19040
19041 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19042
19043 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19044 declaration.
19045 (arc_compute_frame_size): Millicode is disabled when compiling
19046 ISR.
19047 (arc_return_address_register): Likewise.
19048 (arc_compute_function_type): Likewise.
19049 (arc_compute_frame_size): Likewise.
19050 (secondary_reload_info): Likewise.
19051 (arc_get_unalign): Likewise.
19052 (arc_can_use_return_insn): Declare.
19053 * config/arc/arc.c (AUX_LP_START): Define
19054 (AUX_LP_END): Likewise.
19055 (arc_frame_info): Update gmask member to 64-bit datum.
19056 (GMASK_LEN): Update.
19057 (arc_compute_function_type): Make it static, move it forward.
19058 (arc_must_save_register): Update, consider the extra regs.
19059 (arc_compute_millicode_save_restore_regs): Update to use the 64
19060 bit gmask.
19061 (arc_compute_frame_size): Likewise.
19062 (arc_enter_leave_p): Likewise.
19063 (arc_save_callee_saves): Likewise.
19064 (arc_restore_callee_saves): Likewise.
19065 (arc_save_callee_enter): Likewise.
19066 (arc_restore_callee_leave): Likewise.
19067 (arc_save_callee_milli): Likewise.
19068 (arc_restore_callee_milli): Likewise.
19069 (arc_expand_prologue): Add new interrupt handling.
19070 (arc_return_address_register): Make it static, move it forward.
19071 (arc_expand_epilogue): Add new interrupt handling.
19072 (arc_get_unalign): Delete.
19073 (arc_epilogue_uses): Make sure we do not remove the extra
19074 saved/restored registers when interrupt.
19075 (arc_can_use_return_insn): New function.
19076 (push_reg): Likewise.
19077 (pop_reg): Likewise.
19078 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19079 procedures.
19080 (arc_restore_callee_saves): Likewise, but restoring.
19081 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19082 (R33_REG): Likewise.
19083 (R34_REG): Likewise.
19084 (R35_REG): Likewise.
19085 (R36_REG): Likewise.
19086 (R37_REG): Likewise.
19087 (R38_REG): Likewise.
19088 (R39_REG): Likewise.
19089 (R45_REG): Likewise.
19090 (R46_REG): Likewise.
19091 (R47_REG): Likewise.
19092 (R48_REG): Likewise.
19093 (R49_REG): Likewise.
19094 (R50_REG): Likewise.
19095 (R51_REG): Likewise.
19096 (R52_REG): Likewise.
19097 (R53_REG): Likewise.
19098 (R54_REG): Likewise.
19099 (R55_REG): Likewise.
19100 (R56_REG): Likewise.
19101 (R58_REG): Likewise.
19102 (type): Add rtie attribute.
19103 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19104 (movsi_insn): Accept moves to lp_count.
19105 (rtie): Update pattern.
19106 (simple_return): Simplify it, don't use this pattern as a return
19107 from an interrupt.
19108 (arc600_rtie): New pattern.
19109 (p_return_i): Clean up.
19110 (return): Likewise.
19111 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19112 family CPUs.
19113 * config/arc/predicates.md (move_src_operand): Consider lp_count
19114 as a register.
19115
19116 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19117
19118 * config/s390/predicates.md (addv_const_operand): New predicate.
19119 * config/s390/s390-modes.def (CCO): New condition code mode.
19120 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19121 (s390_branch_condition_mask): Likewise.
19122 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19123 ("mulv<mode>4"): New expanders.
19124 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19125 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19126 pattern definitions.
19127
19128 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19129
19130 PR middle-end/91166
19131 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19132 (define_predicates): Add entry for uniform_vector_p.
19133 (vec_same_elem_p): New match pattern.
19134
19135 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19136
19137 PR bootstrap/87030
19138 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19139 * config/i386/darwin32-biarch.h .. to here.
19140 * config/i386/darwin64-biarch.h: Adjust comments.
19141 * config/rs6000/darwin32-biarch.h: Likewise.
19142 * config/rs6000/darwin64-biarch.h: Likewise.
19143 * config.gcc: Missed commit from r273746
19144 (*-*-darwin*): Don't include CPU t-darwin here.
19145 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19146 an error message if i686-darwin configuration is attempted for
19147 Darwin >= 18.
19148
19149 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19150
19151 PR bootstrap/87030
19152 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19153 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19154 an error message if i686-darwin configuration is attempted for
19155 Darwin >= 18.
19156 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19157 (powerpc-*-darwin*): Use biarch files where needed.
19158 (powerpc64-*-darwin*): Likewise.
19159 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19160 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19161 arch case.
19162 * config/i386/darwin32-biarch.h: New.
19163 * config/i386/darwin64.h: Rename.
19164 * config/i386/darwin64-biarch.h: To this.
19165 * config/i386/t-darwin: Rename.
19166 * config/i386/t-darwin32-biarch: To this.
19167 * config/i386/t-darwin64: Rename.
19168 * config/i386/t-darwin64-biarch: To this.
19169 * config/rs6000/darwin32-biarch.h: New.
19170 * config/rs6000/darwin64.h: Rename.
19171 * config/rs6000/darwin64-biarch.h: To this.
19172 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19173 arch case.
19174 * config/rs6000/t-darwin8: Rename.
19175 * config/rs6000/t-darwin32-biarch: To this.
19176 * config/rs6000/t-darwin64 Rename.
19177 * config/rs6000/t-darwin64-biarch: To this.
19178
19179 2019-07-23 Martin Sebor <msebor@redhat.com>
19180
19181 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19182
19183 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19184
19185 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19186 (rh): New alias for it.
19187
19188 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19189
19190 * gdbhooks.py: Pass replace=True to
19191 gdb.printing.register_pretty_printer.
19192
19193 2019-07-23 Richard Biener <rguenther@suse.de>
19194
19195 PR debug/91231
19196 * lto-streamer-in.c (input_function): Drop inline-entry markers
19197 that ended up with an unknown location block.
19198
19199 2019-07-23 Richard Biener <rguenther@suse.de>
19200
19201 PR tree-optimization/83518
19202 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19203 init from a constant even when partial defs are already recorded.
19204
19205 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19206
19207 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19208 * config/i386/znver1.md: Enable patterns for znver2 and add store
19209 variants which use extra AGU unit.
19210
19211 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19212
19213 * config/i386/i386-options.c (ix86_option_override_internal): Default
19214 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19215 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19216 for ZNVER2.
19217
19218 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19219
19220 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19221 (znver2_costs): Update 256 bit SSE costs and multiplication.
19222
19223 2019-07-23 Jan Beulich <jbeulich@suse.com>
19224
19225 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19226 Require only AVX512F.
19227 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19228 alternative expanding to vpternlog.
19229
19230 2019-07-23 Martin Liska <mliska@suse.cz>
19231
19232 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19233 to -flto in dwarf producer string.
19234
19235 2019-07-23 Richard Biener <rguenther@suse.de>
19236
19237 * tree-cfg.c (label_for_bb): Remove global var.
19238 (main_block_label): Take label_for_bb as argument.
19239 (cleanup_dead_labels_eh): Likewise, adjust.
19240 (cleanup_dead_labels): Adjust.
19241
19242 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19243
19244 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19245 Configurations): Add documentation for __builtin_mtfsf.
19246
19247 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19248
19249 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19250 * config/riscv/riscv.c (riscv_constant_alignment): Use
19251 riscv_align_data_type.
19252 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19253 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19254 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19255 * config/riscv/riscv.opt (malign-data): New.
19256 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19257
19258 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19259
19260 * cgraph.c (dump_graphviz): New function.
19261 * cgraph.h (dump_graphviz): New function.
19262 * symtab.c (dump_graphviz): New function.
19263
19264 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19265
19266 * config/aarch64/aarch64-simd.md
19267 (*aarch64_simd_sra<mode>): New.
19268 * config/aarch64/iterators.md
19269 (SHIFTRT): New iterator.
19270 (sra_op): New attribute.
19271
19272 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19273
19274 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19275 callee-saved regs R4->R10 in an interrupt function that calls another
19276 function.
19277
19278 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19279
19280 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19281 (_mm_blendv_epi8): New.
19282
19283 2019-07-22 Richard Biener <rguenther@suse.de>
19284
19285 PR tree-optimization/91221
19286 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19287 restrict partial-def handling of empty constructors and
19288 memset to refs with known offset.
19289
19290 2019-07-22 Jan Beulich <jbeulich@suse.com>
19291
19292 * config/i386/sse.md (ternlogsuffix): New.
19293 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19294 AVX512F is in use.
19295 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19296
19297 2019-07-22 Martin Liska <mliska@suse.cz>
19298
19299 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19300 comment.
19301 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19302
19303 2019-07-22 Martin Liska <mliska@suse.cz>
19304
19305 * lto-section-in.c (lto_get_section_data):
19306 Use new function get_compression.
19307 * lto-streamer-out.c (produce_lto_section): Use
19308 set_compression to encode compression algorithm.
19309 * lto-streamer.h (struct lto_section): Do not
19310 use bitfields in the format.
19311
19312 2019-07-22 Martin Liska <mliska@suse.cz>
19313
19314 PR driver/91172
19315 * opts-common.c (decode_cmdline_option): Decode
19316 argument of -Werror and check it for a wrong language.
19317 * opts-global.c (complain_wrong_lang): Remove such case.
19318
19319 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19320
19321 * config/arc/arc.c (prepare_move_operands): Always use an
19322 intermediate register when storing a TLS symbols.
19323
19324 2019-07-22 Stafford Horne <shorne@gmail.com>
19325
19326 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19327 force_reg.
19328
19329 2019-07-22 Stafford Horne <shorne@gmail.com>
19330
19331 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19332 and munordered-float validations.
19333 * config/or1k/constraints.md (d): New register constraint.
19334 * config/or1k/predicates.md (fp_comparison_operator): New.
19335 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19336 operands.
19337 (or1k_expand_compare): Normalize unordered comparisons.
19338 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19339 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19340 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19341 * config/or1k/or1k.md (type): Add fpu.
19342 (fpu): New instruction reservation.
19343 (F, f, fr, fi, FI, FOP, fop): New.
19344 (<fop><F:mode>3): New ALU instruction definition.
19345 (float<fi><F:mode>2): New conversion instruction definition.
19346 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19347 (fpcmpcc): New code iterator.
19348 (*sf_fp_insn): New instruction definition.
19349 (cstore<F:mode>4): New expand definition.
19350 (cbranch<F:mode>4): New expand definition.
19351 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19352 munordered-float): New options.
19353 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19354 munordered-float.
19355
19356 2019-07-22 Stafford Horne <shorne@gmail.com>
19357
19358 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19359 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19360 documenation to be more clear.
19361 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19362 more clear.
19363 * config/or1k/or1k.opt (mrori): New option.
19364 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19365 msfimm, mshftimm): Rewrite documentation to be more clear.
19366 * config/or1k/or1k.md (insn_support): Add ror and rori.
19367 (enabled): Add conditions for ror and rori.
19368 (rotrsi3): Replace condition for shftimm with ror and rori.
19369
19370 2019-07-22 Stafford Horne <shorne@gmail.com>
19371
19372 PR target/90363
19373 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19374 (extend<mode>si2): Update predicate.
19375 * config/or1k/predicates.md (volatile_mem_operand): New.
19376 (reg_or_mem_operand): New.
19377
19378 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19379
19380 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19381 * config/rs6000/rs6000-call.c: ... to here.
19382
19383 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19384
19385 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19386 memory.
19387
19388 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19389
19390 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19391
19392 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19393
19394 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19395
19396 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19397
19398 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19399 (any_memory_operand): New predicate.
19400 (reg_or_mem_operand): Use it.
19401
19402 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19403
19404 PR target/91204
19405 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19406
19407 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19408
19409 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19410 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19411
19412 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19413
19414 * tree.def (OMP_LOOP): New tree code.
19415 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19416 (enum omp_clause_bind_kind): New enum.
19417 (struct tree_omp_clause): Add subcode.bind_kind.
19418 * tree.h (OMP_LOOP_CHECK): Rename to ...
19419 (OMP_LOOPING_CHECK): ... this.
19420 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19421 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19422 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19423 (OMP_CLAUSE_BIND_KIND): Define.
19424 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19425 bind clause entries.
19426 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19427 * tree-pretty-print.c (dump_omp_clause): Likewise.
19428 (dump_generic_node): Handle OMP_LOOP.
19429 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19430 (in_omp_construct): New variable.
19431 (is_gimple_stmt): Handle OMP_LOOP.
19432 (gimplify_scan_omp_clauses): For lastprivate don't set
19433 check_non_private if code == OMP_LOOP. For reduction clause
19434 on OMP_LOOP combined with parallel or teams propagate as shared
19435 on the combined construct. Handle OMP_CLAUSE_BIND.
19436 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19437 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19438 for constructs from a loop construct to gimplify_scan_omp_clauses.
19439 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19440 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19441 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19442 to match the implicit ORT_TARGET construct around whole body.
19443 Temporarily clear in_omp_construct when processing body.
19444 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19445 etc. temporarily set in_omp_construct when processing body.
19446 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19447 * omp-low.c (struct omp_context): Add loop_p.
19448 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19449 in that the original var might be private.
19450 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19451 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19452 addition of loop construct.
19453 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19454
19455 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19456 lastprivate non-addressable iterator of a collapse(1) simd.
19457
19458 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19459
19460 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19461 as in rs6000.c.
19462
19463 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19464
19465 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19466 refer to default conditions. Warn for the 'y' spec which is ignored
19467 by current linkers.
19468
19469 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19470
19471 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19472 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19473 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19474 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19475 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19476 init_cumulative_args, rs6000_promote_function_mode,
19477 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19478 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19479 rs6000_function_arg_boundary, rs6000_parm_offset,
19480 rs6000_parm_start, rs6000_arg_size,
19481 rs6000_darwin64_record_arg_advance_flush,
19482 rs6000_darwin64_record_arg_advance_recurse,
19483 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19484 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19485 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19486 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19487 rs6000_finish_function_arg, rs6000_function_arg,
19488 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19489 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19490 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19491 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19492 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19493 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19494 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19495 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19496 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19497 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19498 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19499 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19500 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19501 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19502 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19503 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19504 get_element_number, altivec_expand_vec_set_builtin,
19505 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19506 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19507 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19508 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19509 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19510 rs6000_expand_builtin, rs6000_vector_type,
19511 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19512 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19513 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19514 to rs6000-call.c.
19515 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19516 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19517 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19518 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19519 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19520 init_cumulative_args, rs6000_promote_function_mode,
19521 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19522 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19523 rs6000_function_arg_boundary, rs6000_parm_offset,
19524 rs6000_parm_start, rs6000_arg_size,
19525 rs6000_darwin64_record_arg_advance_flush,
19526 rs6000_darwin64_record_arg_advance_recurse,
19527 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19528 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19529 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19530 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19531 rs6000_finish_function_arg, rs6000_function_arg,
19532 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19533 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19534 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19535 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19536 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19537 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19538 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19539 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19540 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19541 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19542 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19543 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19544 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19545 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19546 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19547 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19548 get_element_number, altivec_expand_vec_set_builtin,
19549 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19550 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19551 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19552 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19553 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19554 rs6000_expand_builtin, rs6000_vector_type,
19555 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19556 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19557 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19558 to here from rs6000.c.
19559 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19560 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19561 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19562 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19563 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19564 rs6000_return_in_memory, rs6000_return_in_msb,
19565 rs6000_pass_by_reference, setup_incoming_varargs,
19566 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19567 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19568 rs6000_function_arg_padding, rs6000_function_arg,
19569 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19570 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19571 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19572 rs6000_passes_long_double, rs6000_passes_vector,
19573 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19574 altivec_builtin_mask_for_load) Add declarations.
19575 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19576 * config/config.gcc: Add new source file rs6000-call.c to garbage
19577 collector and extra_objs.
19578
19579 2019-07-19 Jeff Law <law@redhat.com>
19580
19581 PR tree-optimization/86061
19582 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19583 strncpy. Drop some trivial dead code.
19584 (maybe_trim_memstar_call): Handle strncpy.
19585
19586 2019-07-19 Richard Biener <rguenther@suse.de>
19587
19588 PR tree-optimization/91211
19589 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19590 memset encoding size.
19591
19592 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19593
19594 PR target/91204
19595 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19596
19597 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19598
19599 PR ipa/91194
19600 * ipa-inline.c (recursive_inlining): Fix limits check.
19601
19602 2019-07-19 Richard Biener <rguenther@suse.de>
19603
19604 PR tree-optimization/91200
19605 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19606 no PHI nodes in middle-bb.
19607
19608 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19609
19610 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19611 to +sve-bitperm.
19612 * config/aarch64/aarch64-option-extensions.def: Likewise.
19613
19614 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19615
19616 PR middle-end/91190
19617 * function.c (insert_temp_slot_address): Store into the hash table
19618 a copy of address to avoid RTL sharing issues.
19619
19620 2019-07-19 Richard Biener <rguenther@suse.de>
19621
19622 PR tree-optimization/91207
19623 Revert
19624 2019-07-17 Richard Biener <rguenther@suse.de>
19625
19626 PR tree-optimization/91178
19627 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19628 loads with a gap larger than the vector size always use
19629 VMAT_STRIDED_SLP.
19630 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19631 avoid loading vectors that are only contained in the gap
19632 and thus are not needed.
19633
19634 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19635
19636 * config/i386/i386.md (*addqi_2_slp): Remove.
19637 (*<code>qi_2_slp): Ditto.
19638
19639 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19640
19641 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19642 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19643 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19644 Rename function from rs6000_prefixed_address.
19645 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19646 TARGET_HAS_TOC.
19647 (TARGET_TOC): Likewise.
19648 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19649 rs6000.h.
19650 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19651 TARGET_HAS_TOC.
19652 (TARGET_TOC): Likewise.
19653 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19654 rs6000.h.
19655 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19656 TARGET_HAS_TOC.
19657 (TARGET_TOC): Likewise.
19658 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19659 check to require -mcmodel=medium for pc-relative addressing.
19660 (create_TOC_reference): Add assertion for TARGET_TOC.
19661 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19662 TARGET_NO_TOC.
19663 (rs6000_emit_move): Likewise.
19664 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19665 to 'TOC_alias_set'.
19666 (get_TOC_alias_set): Likewise.
19667 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19668 TARGET_NO_TOC.
19669 (rs6000_can_eliminate): Likewise.
19670 (rs6000_prefixed_address_mode_p): Rename function from
19671 rs6000_prefixed_address.
19672 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19673 TARGET_HAS_TOC and not pc-relative.
19674 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19675 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19676 TARGET_HAS_TOC.
19677 (TARGET_TOC): Likewise.
19678 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19679 rs6000.h.
19680
19681 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19682
19683 PR target/91188
19684 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19685 for operand 0. Do not use (match_dup) to match operand 1 with
19686 operand 0. Add check in insn constraint that either input operand
19687 matches operand 0. Use SWI12 mode iterator to also handle
19688 HImode operands.
19689 (*and<mode>_1_slp): Ditto.
19690 (*<code>qi_1_slp): Ditto.
19691 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19692 Do not use (match_dup) to match operand 1 with operand 0. Add
19693 check in insn constraint that operand 1 matches operand 0.
19694 Use SWI12 mode iterator to also handle HImode operands.
19695 (*ashl<mode>3_1_slp): Ditto.
19696 (*<shift_insn><mode>3_1_slp): Ditto.
19697 (*<rotate_insn><mode>3_1_slp): Ditto.
19698
19699 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19700
19701 * config/arm/arm-builtins.c
19702 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19703 (arm_expand_unop_builtin): Likewise.
19704 * config/arm/crypto.md
19705 (crypto_sha1h): Convert from define_insn to define_expand.
19706 (crypto_<crypto_pattern>): Likewise.
19707 (crypto_sha1h_lb): New define_insn.
19708 (crypto_<crypto_pattern>_lb): Likewise.
19709
19710 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19711
19712 PR target/90317
19713 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19714 (vsha1cq_u32): Likewise.
19715 (vsha1pq_u32): Likewise.
19716 (vsha1mq_u32): Likewise.
19717 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19718 vec select.
19719 (crypto_sha1c): Correct vec select.
19720 (crypto_sha1m): Likewise.
19721 (crypto_sha1p): Likewise.
19722
19723 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19724
19725 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19726 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19727 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19728 (subdi_zesidi_zesidi): Likewise.
19729 (negdi2_compare, negdi2_insn): Likewise.
19730 (negdi_extensidi): Likewise.
19731 (negdi_zero_extendsidi): Likewise.
19732 (arm_cmpdi_insn): Likewise.
19733 (subsi3_carryin): Use arm_borrow_operation.
19734 (subsi3_carryin_const): Likewise.
19735 (subsi3_carryin_const0): Likewise.
19736 (subsi3_carryin_compare): Likewise.
19737 (subsi3_carryin_compare_const): Likewise.
19738 (subsi3_carryin_compare_const0): Likewise.
19739 (subsi3_carryin_shift): Likewise.
19740 (rsbsi3_carryin_shift): Likewise.
19741 (negsi2_carryin_compare): Likewise.
19742
19743 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19744
19745 PR tree-optimization/91137
19746 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19747 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19748 Init, use and fini the above new field.
19749 (determine_base_object_1): New function.
19750 (determine_base_object): Reimplement using walk_tree.
19751
19752 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19753
19754 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19755 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19756 CLEANUP_FORCE_FAST_DCE is set.
19757 * ifcvt.c (rest_of_handle_if_conversion): Pass
19758 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19759 if-conversion succeeded.
19760
19761 2019-07-18 Richard Biener <rguenther@suse.de>
19762
19763 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19764 branches to make code less indented.
19765
19766 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19767
19768 PR middle-end/81824
19769 * attribs.c (decls_mismatched_attributes): Simplify the logic
19770 that avoids duplicates and false positives.
19771
19772 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19773
19774 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19775 data into data section when generating PIC code.
19776 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19777 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19778 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19779 return 2 for SOM and 0 for other targets.
19780
19781 2019-07-17 Jeff Law <law@redhat.com>
19782
19783 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19784 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19785 avoid unexpected switch statement fallthru.
19786
19787 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19788
19789 * config/i386/i386.md (*add<dwi>3_doubleword):
19790 Remove redundant constraints.
19791 (*add<mode>_1): Ditto.
19792 (*addhi_1): Ditto.
19793 (*addqi_1): Ditto.
19794 (*addqi_1_slp): Ditto.
19795 (*add<mode>_2): Ditto.
19796 (*addv<mode>4): Ditto.
19797 (*sub<dwi>3_doubleword): Ditto.
19798 (*sub<mode>_1): Ditto.
19799 (*subqi_1_slp): Ditto.
19800 (*sub<mode>_2): Ditto.
19801 (*subv<mode>4): Ditto.
19802 (*sub<mode>_3): Ditto.
19803 (@add<mode>3_carry): Ditto.
19804 (@sub<mode>3_carry): Ditto.
19805 (*add<mode>3_cc_overflow_1): Ditto.
19806 (*add<mode>3_zext_cc_overflow_2): Ditto.
19807 (*anddi_1): Ditto.
19808 (*and<mode>_1): Ditto.
19809 (*andqi_1): Ditto.
19810 (*andqi_1_slp): Ditto.
19811 (*anddi_2): Ditto.
19812 (*andqi_2_maybe_si): Ditto.
19813 (*and<mode>_2): Ditto.
19814 (*andqi_2_slp): Ditto.
19815 (*<code><mode>_1): Ditto.
19816 (*<code>qi_1): Ditto.
19817 (*<code>qi_1_slp): Ditto.
19818 (*<code><mode>_2): Ditto.
19819 (*<code>qi_2_slp): Ditto.
19820
19821 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19822
19823 * alias.c (record_component_aliases): Do not simplify pointed-to
19824 types of ODR types.
19825
19826 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19827
19828 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19829 partial reg stall on alternative 2.
19830
19831 2019-07-17 Richard Biener <rguenther@suse.de>
19832
19833 PR tree-optimization/91178
19834 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19835 lower SSA names to avoid quadratic behavior in the common case.
19836 * tree-data-ref.c (split_constant_offset): Add limit argument
19837 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19838 (split_constant_offset_1): Add limit argument and use it to
19839 limit SSA def walking. Optimize the common plus/minus case.
19840
19841 2019-07-17 Richard Biener <rguenther@suse.de>
19842
19843 PR tree-optimization/91178
19844 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19845 loads with a gap larger than the vector size always use
19846 VMAT_STRIDED_SLP.
19847 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19848 avoid loading vectors that are only contained in the gap
19849 and thus are not needed.
19850
19851 2019-07-17 Richard Biener <rguenther@suse.de>
19852
19853 PR tree-optimization/91180
19854 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19855 computation for memset partial defs.
19856
19857 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19858
19859 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19860 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19861 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19862 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19863 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19864 * omp-grid.c (grid_process_grid_body,
19865 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19866 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19867 == GF_OMP_FOR_KIND_SIMD.
19868 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19869 check_omp_nesting_restrictions, scan_omp_1_stmt,
19870 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19871 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19872 omp_find_scan): Likewise.
19873 * omp-expand.c (expand_omp_for): Likewise.
19874 * omp-general.c (omp_extract_for_data): Likewise.
19875
19876 PR tree-optimization/91157
19877 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19878 a vector boolean with scalar mode.
19879 (expand_vector_condition): Handle first operand being a vector boolean
19880 with scalar mode.
19881 (expand_vector_operations_1): For comparisons, don't bail out early
19882 if the return type is vector boolean with scalar mode, but comparison
19883 operand type is not.
19884
19885 2019-07-17 Richard Biener <rguenther@suse.de>
19886
19887 PR tree-optimization/91181
19888 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19889 IFN_LOADs as calls.
19890
19891 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19892
19893 * config/i386/i386.md (*testdi_1): Match CCZmode for
19894 constants that might have the SImode sign bit set.
19895 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19896 Use correct constraints for pentium pairing.
19897 (*test<mode>_1): Ditto.
19898
19899 2019-07-16 Jeff Law <law@redhat.com>
19900
19901 PR rtl-optimization/91173
19902 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19903 SSA_NAME with a constant value, fold its value into the offset
19904 and clear the base before calling gen_addr_rtx.
19905
19906 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19907
19908 PR rtl-optimization/91164
19909 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19910 invalidate dominance info.
19911
19912 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19913
19914 * read-md.h (md_reader::record_potential_iterator_use): Add a
19915 file_location parameter.
19916 * read-rtl.c (attribute_use::loc): New field.
19917 (map_attr_string): Take a file_location parameter. Report cases
19918 in which attributes map to multiple distinct values.
19919 (apply_attribute_uses): Update call accordingly.
19920 (md_reader::handle_overloaded_name): Likewise.
19921 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19922 nonnull strings.
19923 (record_attribute_use): Take a file_location parameter.
19924 Initialize attribute_use::loc.
19925 (md_reader::record_potential_iterator_use): Take a file_location
19926 parameter. Update call to record_attribute_use.
19927 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19928 (rtx_reader::read_rtx_code): Likewise.
19929 (rtx_reader::read_rtx_operand): Likewise. Record a location
19930 for implicitly-expanded empty strings.
19931
19932 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19933
19934 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19935 Use file_location instead of separate fields.
19936 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19937 separate filename and line number.
19938 * read-md.c (ptr_loc): As above.
19939 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19940 (md_reader::fprint_md_ptr_loc): Likewise.
19941 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19942 instead of a separate filename and line number.
19943 (md_reader::read_string): Update call accordingly.
19944
19945 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19946
19947 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19948 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19949 leaving the choice between SFDF and P implicit.
19950 (*mov<mode>_update2): Likewise.
19951 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19952 rather than leaving the choice betweem IBM128 and GPR implicit.
19953 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19954 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19955 QHSI implicit.
19956 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19957 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19958 * config/rs6000/vsx.md
19959 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19960 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19961 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19962 and VSX_EXTRACT_I implicit.
19963
19964 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19965
19966 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19967 Explicitly use <MOVEP1:MODE> for the mode attribute.
19968
19969 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19970
19971 PR bootstrap/91176
19972 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19973
19974 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19975
19976 PR target/91050
19977 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19978 .machine directive.
19979
19980 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19981
19982 * config/i386/i386.md (@test<mode>_ccno_1):
19983 Rename from test<mode>_ccno_1.
19984 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19985 (*testqi_1_maybe_si): Remove modrm attribute.
19986 (*test<mode>_1): Ditto.
19987 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19988 gen_test_ccno_1 and gen_extend_insn.
19989
19990 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19991
19992 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19993 to 0.
19994
19995 2019-07-15 Richard Biener <rguenther@suse.de>
19996
19997 PR middle-end/91162
19998 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19999 node make sure to replace all uses with something valid.
20000
20001 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20002
20003 PR tree-optimization/88497
20004 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20005 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20006 function undistribute_bitref_for_vector.
20007 (undistribute_bitref_for_vector): New function.
20008 (cleanup_vinfo_map): Likewise.
20009 (sort_by_mach_mode): Likewise.
20010
20011 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20012
20013 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20014 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20015 and testdi_ccno_1 using SWI48 mode attribute.
20016 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20017 x86_64_szext_general_operand.
20018 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20019 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20020 instead of genera_operand mode attribute.
20021
20022 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20023
20024 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20025 fopen and fclose to their respective types.
20026 (DotFn.invoke): Ditto.
20027
20028 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20029
20030 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20031 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20032 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20033 (array_index_predicate): Remove.
20034 (analyze_function_body): Account cost for variable ofsetted array
20035 indexing.
20036 (estimate_node_size_and_time): Do not compute array index hint.
20037 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20038 (inline_read_section): Do not read array index hint.
20039 (ipa_fn_summary_write): Do not write array index hint.
20040 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20041 * ipa-cp.c (hint_time_bonus): Remove.
20042 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20043 (ipa_fnsummary): Remove array_index.
20044 * ipa-inline.c (want_inline_small_function_p): Do not use
20045 array_index.
20046 (edge_badness): Likewise.
20047 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20048
20049 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20050
20051 PR target/91148
20052 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20053 superfluous "builtin function" phrasing.
20054
20055 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20056
20057 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20058 Break out from ...
20059 (aliasing_component_refs_walk): Break out from ...
20060 (aliasing_component_refs_p): ... here.
20061
20062 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20063
20064 PR target/91148
20065 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20066 "builtin function" phrasing.
20067
20068 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20069
20070 PR target/90723
20071 * recog.h (temporary_volatile_ok): New class.
20072 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20073 volatile_ok temporarily to true using temporary_volatile_ok.
20074 * expr.c (emit_block_move_via_cpymem): Likewise.
20075 * optabs.c (maybe_legitimize_operand): Likewise.
20076
20077 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20078
20079 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20080 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20081 uses inside of order(concurrent) constructs.
20082 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20083 OMP_CLAUSE_ORDER is seen.
20084 * omp-low.c (struct omp_context): Add order_concurrent member.
20085 (scan_sharing_clauses): Set ctx->order_concurrent if
20086 OMP_CLAUSE_ORDER is seen.
20087 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20088 of simd order(concurrent). Diagnose constructs not allowed inside of
20089 for order(concurrent).
20090 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20091 complaining about static double setjmp (double); or class static
20092 methods or non-global namespace setjmps.
20093 (omp_runtime_api_call): New function.
20094 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20095 order(concurrent) loops.
20096
20097 2019-07-12 Martin Sebor <msebor@redhat.com>
20098
20099 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20100 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20101 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20102 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20103
20104 2019-07-12 Jan Hubicka <jh@suse.cz>
20105
20106 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20107 (indirect_refs_may_alias_p): ... here.
20108 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20109 mem refs in the access paths.
20110
20111 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20112
20113 PR tree-optimization/89430
20114 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20115 store elimination for local variable without address escape.
20116
20117 2019-07-12 Jeff Law <law@redhat.com>
20118
20119 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20120 for the ".far" section.
20121
20122 2019-07-12 Richard Biener <rguenther@suse.de>
20123
20124 PR tree-optimization/91145
20125 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20126 chain check.
20127
20128 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20129
20130 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20131 rather than this_state as the lowering context for the ELSE
20132 seq in a GIMPLE_EH_ELSE.
20133
20134 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20135
20136 * vector-builder.h (vector_builder::elt): Allow already-supplied
20137 elements to be read back before building is complete.
20138
20139 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20140
20141 PR rtl-optimization/91136
20142 * df-core.c (ACCESSING REFS): Fix typos in comment.
20143 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20144 the beginning of the block to the initial set of live registers.
20145
20146 2019-07-12 Richard Biener <rguenther@suse.de>
20147
20148 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20149 * fold-const.c (get_array_ctor_element_at_index): Add
20150 ctor_idx output parameter informing the caller where in
20151 the constructor the element was (not) found. Add early exit
20152 for when the ctor is sorted.
20153 * gimple-fold.c (fold_array_ctor_reference): Support constant
20154 folding across multiple array elements.
20155
20156 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20157
20158 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20159 doesn't have location, set the current location to the function's end.
20160
20161 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20162
20163 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20164 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20165 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20166 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20167 * config/aarch64/aarch64-simd.md
20168 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20169 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20170 * config/aarch64/aarch64-sve.md
20171 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20172 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20173
20174 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20175
20176 * doc/md.texi: Document that @ patterns can have different
20177 numbers of operands.
20178 * genemit.c (handle_overloaded_gen): Handle this case.
20179 * genopinit.c (handle_overloaded_gen): Likewise.
20180 * gensupport.c (replace_operands_with_dups): Iterate over
20181 the new rtx's format rather than the old one's.
20182
20183 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20184
20185 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20186 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20187 order clause entries.
20188 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20189 * tree-pretty-print.c (dump_omp_clause): Likewise.
20190 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20191 Likewise.
20192 * omp-low.c (scan_sharing_clauses): Likewise.
20193 * tree-nested.c (convert_nonlocal_omp_clauses,
20194 convert_local_omp_clauses): Likewise.
20195
20196 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20197
20198 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20199 fallthrough target of current basic block isn't the placed
20200 right next.
20201
20202 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20203
20204 PR target/90980
20205 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20206 (_mm512_storeu_epi64): Likewise.
20207 (_mm512_loadu_epi32): Likewise.
20208 (_mm512_storeu_epi32): Likewise.
20209 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20210 (_mm_storeu_epi64): Likewise.
20211 (_mm256_storeu_epi32): Likewise.
20212 (_mm_storeu_epi32): Likewise.
20213
20214 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20215
20216 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20217
20218 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20219
20220 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20221 Handle Modula-2.
20222
20223 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20224
20225 PR target/91124
20226 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20227 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20228 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20229 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20230 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20231 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20232 define_insns.
20233 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20234 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20235 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20236 define_insns.
20237 (sse2_cvttpd2dq<mask_name>): Change into ...
20238 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20239 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20240 (*sse2_cvtpd2dq<mask_name>): Change into ...
20241 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20242 Add "C" constraint to const0_operand.
20243 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20244 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20245 changes.
20246
20247 PR target/91124
20248 * config/i386/i386-builtin-types.def
20249 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20250 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20251 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20252 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20253 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20254 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20255 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20256 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20257 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20258 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20259 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20260 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20261 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20262 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20263 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20264 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20265 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20266 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20267 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20268 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20269 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20270 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20271 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20272 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20273 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20274 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20275 __builtin_ia32_vpdpbusd_v4si_maskz,
20276 __builtin_ia32_vpdpbusds_v16si_mask,
20277 __builtin_ia32_vpdpbusds_v16si_maskz,
20278 __builtin_ia32_vpdpbusds_v8si_mask,
20279 __builtin_ia32_vpdpbusds_v8si_maskz,
20280 __builtin_ia32_vpdpbusds_v4si_mask,
20281 __builtin_ia32_vpdpbusds_v4si_maskz,
20282 __builtin_ia32_vpdpwssd_v16si_mask,
20283 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20284 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20285 __builtin_ia32_vpdpwssd_v4si_maskz,
20286 __builtin_ia32_vpdpwssds_v16si_mask,
20287 __builtin_ia32_vpdpwssds_v16si_maskz,
20288 __builtin_ia32_vpdpwssds_v8si_mask,
20289 __builtin_ia32_vpdpwssds_v8si_maskz,
20290 __builtin_ia32_vpdpwssds_v4si_mask,
20291 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20292 suffixed types rather than *_INT.
20293 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20294 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20295 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20296 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20297 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20298 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20299
20300 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20301
20302 * tree-vrp.c (intersect_ranges): If we know the intersection is
20303 empty, there is no need to conservatively add anything else to
20304 the set.
20305
20306 2019-07-11 Richard Biener <rguenther@suse.de>
20307
20308 PR middle-end/91131
20309 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20310 when the object is volatile and we have not cleared it even though
20311 there are no nonzero elements.
20312
20313 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20314
20315 * config/rs6000/predicates.md (cint34_operand): Update
20316 SIGNED_34BIT_OFFSET_P call.
20317 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20318 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20319 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20320 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20321 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20322 argument.
20323 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20324 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20325 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20326 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20327 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20328
20329 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20330
20331 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20332 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20333 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20334 (DEF_MIN_OSX_VERSION): New.
20335
20336 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20337
20338 * fold-const.c (fold_relational_const): Fix folding of
20339 vector-to-scalar NE_EXPRs.
20340 (test_vector_folding): Add more tests.
20341
20342 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20343
20344 PR target/91060
20345 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20346 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20347 (vec_setv2di_internal): Reexpress as...
20348 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20349 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20350 rather than gen_neon_vset_lane<mode>.
20351
20352 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20353
20354 PR target/91102
20355 * lra-constraints.c (process_alt_operands): Don't match user
20356 defined regs only if they are early clobbers.
20357
20358 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20359
20360 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20361
20362 2019-07-10 Richard Biener <rguenther@suse.de>
20363
20364 PR tree-optimization/91126
20365 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20366 native encoding offset for BYTES_BIG_ENDIAN.
20367 (vn_reference_lookup_3): Likewise.
20368
20369 2019-07-10 Richard Biener <rguenther@suse.de>
20370
20371 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20372 LHS whenever possible.
20373
20374 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20375
20376 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20377 from ...; work also on duplicated types.
20378 (nonoverlapping_component_refs_since_match): ... here
20379 (ncr_type_uid): Break out from ...
20380 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20381 available.
20382 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20383 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20384
20385 2019-07-09 Martin Sebor <msebor@redhat.com>
20386
20387 PR tree-optimization/90989
20388 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20389 optimization to just single character stores.
20390
20391 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20392
20393 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20394 Swap operands only once.
20395
20396 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20397
20398 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20399 for both call instructions.
20400
20401 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20402
20403 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20404 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20405
20406 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20407
20408 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20409 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20410 function from rs6000-logue.c back to rs6000.c.
20411 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20412
20413 2019-07-09 Martin Sebor <msebor@redhat.com>
20414
20415 PR c++/61339
20416 * auto-profile.c: Change class-key of PODs to struct and others
20417 to class.
20418 * basic-block.h: Same.
20419 * bitmap.c (bitmap_alloc): Same.
20420 * bitmap.h: Same.
20421 * builtins.c (expand_builtin_prefetch): Same.
20422 (expand_builtin_interclass_mathfn): Same.
20423 (expand_builtin_strlen): Same.
20424 (expand_builtin_mempcpy_args): Same.
20425 (expand_cmpstr): Same.
20426 (expand_builtin___clear_cache): Same.
20427 (expand_ifn_atomic_bit_test_and): Same.
20428 (expand_builtin_thread_pointer): Same.
20429 (expand_builtin_set_thread_pointer): Same.
20430 * caller-save.c (setup_save_areas): Same.
20431 (replace_reg_with_saved_mem): Same.
20432 (insert_restore): Same.
20433 (insert_save): Same.
20434 (add_used_regs): Same.
20435 * cfg.c (get_bb_copy): Same.
20436 (set_loop_copy): Same.
20437 * cfg.h: Same.
20438 * cfganal.h: Same.
20439 * cfgexpand.c (alloc_stack_frame_space): Same.
20440 (add_stack_var): Same.
20441 (add_stack_var_conflict): Same.
20442 (add_scope_conflicts_1): Same.
20443 (update_alias_info_with_stack_vars): Same.
20444 (expand_used_vars): Same.
20445 * cfghooks.c (redirect_edge_and_branch_force): Same.
20446 (delete_basic_block): Same.
20447 (split_edge): Same.
20448 (make_forwarder_block): Same.
20449 (force_nonfallthru): Same.
20450 (duplicate_block): Same.
20451 (lv_flush_pending_stmts): Same.
20452 * cfghooks.h: Same.
20453 * cfgloop.c (flow_loops_cfg_dump): Same.
20454 (flow_loop_nested_p): Same.
20455 (superloop_at_depth): Same.
20456 (get_loop_latch_edges): Same.
20457 (flow_loop_dump): Same.
20458 (flow_loops_dump): Same.
20459 (flow_loops_free): Same.
20460 (flow_loop_nodes_find): Same.
20461 (establish_preds): Same.
20462 (flow_loop_tree_node_add): Same.
20463 (flow_loop_tree_node_remove): Same.
20464 (flow_loops_find): Same.
20465 (find_subloop_latch_edge_by_profile): Same.
20466 (find_subloop_latch_edge_by_ivs): Same.
20467 (mfb_redirect_edges_in_set): Same.
20468 (form_subloop): Same.
20469 (merge_latch_edges): Same.
20470 (disambiguate_multiple_latches): Same.
20471 (disambiguate_loops_with_multiple_latches): Same.
20472 (flow_bb_inside_loop_p): Same.
20473 (glb_enum_p): Same.
20474 (get_loop_body_with_size): Same.
20475 (get_loop_body): Same.
20476 (fill_sons_in_loop): Same.
20477 (get_loop_body_in_dom_order): Same.
20478 (get_loop_body_in_custom_order): Same.
20479 (release_recorded_exits): Same.
20480 (get_loop_exit_edges): Same.
20481 (num_loop_branches): Same.
20482 (remove_bb_from_loops): Same.
20483 (find_common_loop): Same.
20484 (delete_loop): Same.
20485 (cancel_loop): Same.
20486 (verify_loop_structure): Same.
20487 (loop_preheader_edge): Same.
20488 (loop_exit_edge_p): Same.
20489 (single_exit): Same.
20490 (loop_exits_to_bb_p): Same.
20491 (loop_exits_from_bb_p): Same.
20492 (get_loop_location): Same.
20493 (record_niter_bound): Same.
20494 (get_estimated_loop_iterations_int): Same.
20495 (max_stmt_executions_int): Same.
20496 (likely_max_stmt_executions_int): Same.
20497 (get_estimated_loop_iterations): Same.
20498 (get_max_loop_iterations): Same.
20499 (get_max_loop_iterations_int): Same.
20500 (get_likely_max_loop_iterations): Same.
20501 * cfgloop.h (simple_loop_desc): Same.
20502 (get_loop): Same.
20503 (loop_depth): Same.
20504 (loop_outer): Same.
20505 (loop_iterator::next): Same.
20506 (loop_outermost): Same.
20507 * cfgloopanal.c (mark_irreducible_loops): Same.
20508 (num_loop_insns): Same.
20509 (average_num_loop_insns): Same.
20510 (expected_loop_iterations_unbounded): Same.
20511 (expected_loop_iterations): Same.
20512 (mark_loop_exit_edges): Same.
20513 (single_likely_exit): Same.
20514 * cfgloopmanip.c (fix_bb_placement): Same.
20515 (fix_bb_placements): Same.
20516 (remove_path): Same.
20517 (place_new_loop): Same.
20518 (add_loop): Same.
20519 (scale_loop_frequencies): Same.
20520 (scale_loop_profile): Same.
20521 (create_empty_if_region_on_edge): Same.
20522 (create_empty_loop_on_edge): Same.
20523 (loopify): Same.
20524 (unloop): Same.
20525 (fix_loop_placements): Same.
20526 (copy_loop_info): Same.
20527 (duplicate_loop): Same.
20528 (duplicate_subloops): Same.
20529 (loop_redirect_edge): Same.
20530 (can_duplicate_loop_p): Same.
20531 (duplicate_loop_to_header_edge): Same.
20532 (mfb_keep_just): Same.
20533 (has_preds_from_loop): Same.
20534 (create_preheader): Same.
20535 (create_preheaders): Same.
20536 (lv_adjust_loop_entry_edge): Same.
20537 (loop_version): Same.
20538 * cfgloopmanip.h: Same.
20539 * cgraph.h: Same.
20540 * cgraphbuild.c: Same.
20541 * combine.c (make_extraction): Same.
20542 * config/i386/i386-features.c: Same.
20543 * config/i386/i386-features.h: Same.
20544 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20545 (ix86_emit_outlined_ms2sysv_restore): Same.
20546 (ix86_noce_conversion_profitable_p): Same.
20547 (ix86_init_cost): Same.
20548 (ix86_simd_clone_usable): Same.
20549 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20550 Wstruct-not-pod.
20551 * coretypes.h: Same.
20552 * data-streamer-in.c (string_for_index): Change class-key of PODs
20553 to struct and others to class.
20554 (streamer_read_indexed_string): Same.
20555 (streamer_read_string): Same.
20556 (bp_unpack_indexed_string): Same.
20557 (bp_unpack_string): Same.
20558 (streamer_read_uhwi): Same.
20559 (streamer_read_hwi): Same.
20560 (streamer_read_gcov_count): Same.
20561 (streamer_read_wide_int): Same.
20562 * data-streamer.h (streamer_write_bitpack): Same.
20563 (bp_unpack_value): Same.
20564 (streamer_write_char_stream): Same.
20565 (streamer_write_hwi_in_range): Same.
20566 (streamer_write_record_start): Same.
20567 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20568 (add_cross_iteration_register_deps): Same.
20569 (build_intra_loop_deps): Same.
20570 * df-core.c (df_analyze): Same.
20571 (loop_post_order_compute): Same.
20572 (loop_inverted_post_order_compute): Same.
20573 * df-problems.c (df_rd_alloc): Same.
20574 (df_rd_simulate_one_insn): Same.
20575 (df_rd_local_compute): Same.
20576 (df_rd_init_solution): Same.
20577 (df_rd_confluence_n): Same.
20578 (df_rd_transfer_function): Same.
20579 (df_rd_free): Same.
20580 (df_rd_dump_defs_set): Same.
20581 (df_rd_top_dump): Same.
20582 (df_lr_alloc): Same.
20583 (df_lr_reset): Same.
20584 (df_lr_local_compute): Same.
20585 (df_lr_init): Same.
20586 (df_lr_confluence_n): Same.
20587 (df_lr_free): Same.
20588 (df_lr_top_dump): Same.
20589 (df_lr_verify_transfer_functions): Same.
20590 (df_live_alloc): Same.
20591 (df_live_reset): Same.
20592 (df_live_init): Same.
20593 (df_live_confluence_n): Same.
20594 (df_live_finalize): Same.
20595 (df_live_free): Same.
20596 (df_live_top_dump): Same.
20597 (df_live_verify_transfer_functions): Same.
20598 (df_mir_alloc): Same.
20599 (df_mir_reset): Same.
20600 (df_mir_init): Same.
20601 (df_mir_confluence_n): Same.
20602 (df_mir_free): Same.
20603 (df_mir_top_dump): Same.
20604 (df_word_lr_alloc): Same.
20605 (df_word_lr_reset): Same.
20606 (df_word_lr_init): Same.
20607 (df_word_lr_confluence_n): Same.
20608 (df_word_lr_free): Same.
20609 (df_word_lr_top_dump): Same.
20610 (df_md_alloc): Same.
20611 (df_md_simulate_one_insn): Same.
20612 (df_md_reset): Same.
20613 (df_md_init): Same.
20614 (df_md_free): Same.
20615 (df_md_top_dump): Same.
20616 * df-scan.c (df_insn_delete): Same.
20617 (df_insn_rescan): Same.
20618 (df_notes_rescan): Same.
20619 (df_sort_and_compress_mws): Same.
20620 (df_install_mws): Same.
20621 (df_refs_add_to_chains): Same.
20622 (df_ref_create_structure): Same.
20623 (df_ref_record): Same.
20624 (df_def_record_1): Same.
20625 (df_find_hard_reg_defs): Same.
20626 (df_uses_record): Same.
20627 (df_get_conditional_uses): Same.
20628 (df_get_call_refs): Same.
20629 (df_recompute_luids): Same.
20630 (df_get_entry_block_def_set): Same.
20631 (df_entry_block_defs_collect): Same.
20632 (df_get_exit_block_use_set): Same.
20633 (df_exit_block_uses_collect): Same.
20634 (df_mws_verify): Same.
20635 (df_bb_verify): Same.
20636 * df.h (df_scan_get_bb_info): Same.
20637 * doc/tm.texi: Same.
20638 * dse.c (record_store): Same.
20639 * dumpfile.h: Same.
20640 * emit-rtl.c (const_fixed_hasher::equal): Same.
20641 (set_mem_attributes_minus_bitpos): Same.
20642 (change_address): Same.
20643 (adjust_address_1): Same.
20644 (offset_address): Same.
20645 * emit-rtl.h: Same.
20646 * except.c (dw2_build_landing_pads): Same.
20647 (sjlj_emit_dispatch_table): Same.
20648 * explow.c (allocate_dynamic_stack_space): Same.
20649 (emit_stack_probe): Same.
20650 (probe_stack_range): Same.
20651 * expmed.c (store_bit_field_using_insv): Same.
20652 (store_bit_field_1): Same.
20653 (store_integral_bit_field): Same.
20654 (extract_bit_field_using_extv): Same.
20655 (extract_bit_field_1): Same.
20656 (emit_cstore): Same.
20657 * expr.c (emit_block_move_via_cpymem): Same.
20658 (expand_cmpstrn_or_cmpmem): Same.
20659 (set_storage_via_setmem): Same.
20660 (emit_single_push_insn_1): Same.
20661 (expand_assignment): Same.
20662 (store_constructor): Same.
20663 (expand_expr_real_2): Same.
20664 (expand_expr_real_1): Same.
20665 (try_casesi): Same.
20666 * flags.h: Same.
20667 * function.c (try_fit_stack_local): Same.
20668 (assign_stack_local_1): Same.
20669 (assign_stack_local): Same.
20670 (cut_slot_from_list): Same.
20671 (insert_slot_to_list): Same.
20672 (max_slot_level): Same.
20673 (move_slot_to_level): Same.
20674 (temp_address_hasher::equal): Same.
20675 (remove_unused_temp_slot_addresses): Same.
20676 (assign_temp): Same.
20677 (combine_temp_slots): Same.
20678 (update_temp_slot_address): Same.
20679 (preserve_temp_slots): Same.
20680 * function.h: Same.
20681 * fwprop.c: Same.
20682 * gcc-rich-location.h: Same.
20683 * gcov.c: Same.
20684 * genattrtab.c (check_attr_test): Same.
20685 (check_attr_value): Same.
20686 (convert_set_attr_alternative): Same.
20687 (convert_set_attr): Same.
20688 (check_defs): Same.
20689 (copy_boolean): Same.
20690 (get_attr_value): Same.
20691 (expand_delays): Same.
20692 (make_length_attrs): Same.
20693 (min_fn): Same.
20694 (make_alternative_compare): Same.
20695 (simplify_test_exp): Same.
20696 (tests_attr_p): Same.
20697 (get_attr_order): Same.
20698 (clear_struct_flag): Same.
20699 (gen_attr): Same.
20700 (compares_alternatives_p): Same.
20701 (gen_insn): Same.
20702 (gen_delay): Same.
20703 (find_attrs_to_cache): Same.
20704 (write_test_expr): Same.
20705 (walk_attr_value): Same.
20706 (write_attr_get): Same.
20707 (eliminate_known_true): Same.
20708 (write_insn_cases): Same.
20709 (write_attr_case): Same.
20710 (write_attr_valueq): Same.
20711 (write_attr_value): Same.
20712 (write_dummy_eligible_delay): Same.
20713 (next_comma_elt): Same.
20714 (find_attr): Same.
20715 (make_internal_attr): Same.
20716 (copy_rtx_unchanging): Same.
20717 (gen_insn_reserv): Same.
20718 (check_tune_attr): Same.
20719 (make_automaton_attrs): Same.
20720 (handle_arg): Same.
20721 * genextract.c (gen_insn): Same.
20722 (VEC_char_to_string): Same.
20723 * genmatch.c (print_operand): Same.
20724 (lower): Same.
20725 (parser::parse_operation): Same.
20726 (parser::parse_capture): Same.
20727 (parser::parse_c_expr): Same.
20728 (parser::parse_simplify): Same.
20729 (main): Same.
20730 * genoutput.c (output_operand_data): Same.
20731 (output_get_insn_name): Same.
20732 (compare_operands): Same.
20733 (place_operands): Same.
20734 (process_template): Same.
20735 (validate_insn_alternatives): Same.
20736 (validate_insn_operands): Same.
20737 (gen_expand): Same.
20738 (note_constraint): Same.
20739 * genpreds.c (write_one_predicate_function): Same.
20740 (add_constraint): Same.
20741 (process_define_register_constraint): Same.
20742 (write_lookup_constraint_1): Same.
20743 (write_lookup_constraint_array): Same.
20744 (write_insn_constraint_len): Same.
20745 (write_reg_class_for_constraint_1): Same.
20746 (write_constraint_satisfied_p_array): Same.
20747 * genrecog.c (optimize_subroutine_group): Same.
20748 * gensupport.c (process_define_predicate): Same.
20749 (queue_pattern): Same.
20750 (remove_from_queue): Same.
20751 (process_rtx): Same.
20752 (is_predicable): Same.
20753 (change_subst_attribute): Same.
20754 (subst_pattern_match): Same.
20755 (alter_constraints): Same.
20756 (alter_attrs_for_insn): Same.
20757 (shift_output_template): Same.
20758 (alter_output_for_subst_insn): Same.
20759 (process_one_cond_exec): Same.
20760 (subst_dup): Same.
20761 (process_define_cond_exec): Same.
20762 (mnemonic_htab_callback): Same.
20763 (gen_mnemonic_attr): Same.
20764 (read_md_rtx): Same.
20765 * ggc-page.c: Same.
20766 * gimple-loop-interchange.cc (dump_reduction): Same.
20767 (dump_induction): Same.
20768 (loop_cand::~loop_cand): Same.
20769 (free_data_refs_with_aux): Same.
20770 (tree_loop_interchange::interchange_loops): Same.
20771 (tree_loop_interchange::map_inductions_to_loop): Same.
20772 (tree_loop_interchange::move_code_to_inner_loop): Same.
20773 (compute_access_stride): Same.
20774 (compute_access_strides): Same.
20775 (proper_loop_form_for_interchange): Same.
20776 (tree_loop_interchange_compute_ddrs): Same.
20777 (prune_datarefs_not_in_loop): Same.
20778 (prepare_data_references): Same.
20779 (pass_linterchange::execute): Same.
20780 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20781 (unroll_jam_possible_p): Same.
20782 (fuse_loops): Same.
20783 (adjust_unroll_factor): Same.
20784 (tree_loop_unroll_and_jam): Same.
20785 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20786 (loop_versioning::expensive_stmt_p): Same.
20787 (loop_versioning::version_for_unity): Same.
20788 (loop_versioning::dump_inner_likelihood): Same.
20789 (loop_versioning::find_per_loop_multiplication): Same.
20790 (loop_versioning::analyze_term_using_scevs): Same.
20791 (loop_versioning::record_address_fragment): Same.
20792 (loop_versioning::analyze_expr): Same.
20793 (loop_versioning::analyze_blocks): Same.
20794 (loop_versioning::prune_conditions): Same.
20795 (loop_versioning::merge_loop_info): Same.
20796 (loop_versioning::add_loop_to_queue): Same.
20797 (loop_versioning::decide_whether_loop_is_versionable): Same.
20798 (loop_versioning::make_versioning_decisions): Same.
20799 (loop_versioning::implement_versioning_decisions): Same.
20800 * gimple-ssa-evrp-analyze.c
20801 (evrp_range_analyzer::record_ranges_from_phis): Same.
20802 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20803 (count_multiple_uses): Same.
20804 (split_group): Same.
20805 (imm_store_chain_info::output_merged_store): Same.
20806 (pass_store_merging::process_store): Same.
20807 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20808 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20809 (is_max): Same.
20810 (alloca_call_type): Same.
20811 (pass_walloca::execute): Same.
20812 * gimple-streamer-in.c (input_phi): Same.
20813 (input_gimple_stmt): Same.
20814 * gimple-streamer.h: Same.
20815 * godump.c (go_force_record_alignment): Same.
20816 (go_format_type): Same.
20817 (go_output_type): Same.
20818 (go_output_fndecl): Same.
20819 (go_output_typedef): Same.
20820 (keyword_hash_init): Same.
20821 (find_dummy_types): Same.
20822 * graph.c (draw_cfg_nodes_no_loops): Same.
20823 (draw_cfg_nodes_for_loop): Same.
20824 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20825 * hsa-brig.c: Same.
20826 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20827 * hsa-dump.c (dump_hsa_cfun): Same.
20828 * hsa-gen.c (gen_function_def_parameters): Same.
20829 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20830 * input.c (dump_line_table_statistics): Same.
20831 (test_lexer): Same.
20832 * input.h: Same.
20833 * internal-fn.c (get_multi_vector_move): Same.
20834 (expand_load_lanes_optab_fn): Same.
20835 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20836 (expand_GOMP_SIMT_EXIT): Same.
20837 (expand_GOMP_SIMT_LAST_LANE): Same.
20838 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20839 (expand_GOMP_SIMT_VOTE_ANY): Same.
20840 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20841 (expand_GOMP_SIMT_XCHG_IDX): Same.
20842 (expand_addsub_overflow): Same.
20843 (expand_neg_overflow): Same.
20844 (expand_mul_overflow): Same.
20845 (expand_call_mem_ref): Same.
20846 (expand_mask_load_optab_fn): Same.
20847 (expand_scatter_store_optab_fn): Same.
20848 (expand_gather_load_optab_fn): Same.
20849 * ipa-cp.c (ipa_get_parm_lattices): Same.
20850 (print_all_lattices): Same.
20851 (ignore_edge_p): Same.
20852 (build_toporder_info): Same.
20853 (free_toporder_info): Same.
20854 (push_node_to_stack): Same.
20855 (ipcp_lattice<valtype>::set_contains_variable): Same.
20856 (set_agg_lats_to_bottom): Same.
20857 (ipcp_bits_lattice::meet_with): Same.
20858 (set_single_call_flag): Same.
20859 (initialize_node_lattices): Same.
20860 (ipa_get_jf_ancestor_result): Same.
20861 (ipcp_verify_propagated_values): Same.
20862 (propagate_scalar_across_jump_function): Same.
20863 (propagate_context_across_jump_function): Same.
20864 (propagate_bits_across_jump_function): Same.
20865 (ipa_vr_operation_and_type_effects): Same.
20866 (propagate_vr_across_jump_function): Same.
20867 (set_check_aggs_by_ref): Same.
20868 (set_chain_of_aglats_contains_variable): Same.
20869 (merge_aggregate_lattices): Same.
20870 (agg_pass_through_permissible_p): Same.
20871 (propagate_aggs_across_jump_function): Same.
20872 (call_passes_through_thunk_p): Same.
20873 (propagate_constants_across_call): Same.
20874 (devirtualization_time_bonus): Same.
20875 (good_cloning_opportunity_p): Same.
20876 (context_independent_aggregate_values): Same.
20877 (gather_context_independent_values): Same.
20878 (perform_estimation_of_a_value): Same.
20879 (estimate_local_effects): Same.
20880 (value_topo_info<valtype>::add_val): Same.
20881 (add_all_node_vals_to_toposort): Same.
20882 (value_topo_info<valtype>::propagate_effects): Same.
20883 (ipcp_propagate_stage): Same.
20884 (ipcp_discover_new_direct_edges): Same.
20885 (same_node_or_its_all_contexts_clone_p): Same.
20886 (cgraph_edge_brings_value_p): Same.
20887 (gather_edges_for_value): Same.
20888 (create_specialized_node): Same.
20889 (find_more_scalar_values_for_callers_subset): Same.
20890 (find_more_contexts_for_caller_subset): Same.
20891 (copy_plats_to_inter): Same.
20892 (intersect_aggregates_with_edge): Same.
20893 (find_aggregate_values_for_callers_subset): Same.
20894 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20895 (decide_about_value): Same.
20896 (decide_whether_version_node): Same.
20897 (spread_undeadness): Same.
20898 (identify_dead_nodes): Same.
20899 (ipcp_store_vr_results): Same.
20900 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20901 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20902 (redirect_to_unreachable): Same.
20903 (edge_set_predicate): Same.
20904 (evaluate_conditions_for_known_args): Same.
20905 (evaluate_properties_for_edge): Same.
20906 (ipa_fn_summary_t::duplicate): Same.
20907 (ipa_call_summary_t::duplicate): Same.
20908 (dump_ipa_call_summary): Same.
20909 (ipa_dump_fn_summary): Same.
20910 (eliminated_by_inlining_prob): Same.
20911 (set_cond_stmt_execution_predicate): Same.
20912 (set_switch_stmt_execution_predicate): Same.
20913 (compute_bb_predicates): Same.
20914 (will_be_nonconstant_expr_predicate): Same.
20915 (phi_result_unknown_predicate): Same.
20916 (analyze_function_body): Same.
20917 (compute_fn_summary): Same.
20918 (estimate_edge_devirt_benefit): Same.
20919 (estimate_edge_size_and_time): Same.
20920 (estimate_calls_size_and_time): Same.
20921 (estimate_node_size_and_time): Same.
20922 (remap_edge_change_prob): Same.
20923 (remap_edge_summaries): Same.
20924 (ipa_merge_fn_summary_after_inlining): Same.
20925 (ipa_fn_summary_generate): Same.
20926 (inline_read_section): Same.
20927 (ipa_fn_summary_read): Same.
20928 (ipa_fn_summary_write): Same.
20929 * ipa-fnsummary.h: Same.
20930 * ipa-hsa.c (ipa_hsa_read_section): Same.
20931 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20932 * ipa-icf.c (sem_function::param_used_p): Same.
20933 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20934 * ipa-inline.c (edge_badness): Same.
20935 (inline_small_functions): Same.
20936 * ipa-polymorphic-call.c
20937 (ipa_polymorphic_call_context::stream_out): Same.
20938 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20939 (predicate::remap_after_inlining): Same.
20940 (predicate::stream_out): Same.
20941 * ipa-predicate.h: Same.
20942 * ipa-profile.c (ipa_profile_read_summary): Same.
20943 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20944 (count_formal_params): Same.
20945 (ipa_dump_param): Same.
20946 (ipa_alloc_node_params): Same.
20947 (ipa_print_node_jump_functions_for_edge): Same.
20948 (ipa_print_node_jump_functions): Same.
20949 (ipa_load_from_parm_agg): Same.
20950 (get_ancestor_addr_info): Same.
20951 (ipa_compute_jump_functions_for_edge): Same.
20952 (ipa_analyze_virtual_call_uses): Same.
20953 (ipa_analyze_stmt_uses): Same.
20954 (ipa_analyze_params_uses_in_bb): Same.
20955 (update_jump_functions_after_inlining): Same.
20956 (try_decrement_rdesc_refcount): Same.
20957 (ipa_impossible_devirt_target): Same.
20958 (update_indirect_edges_after_inlining): Same.
20959 (combine_controlled_uses_counters): Same.
20960 (ipa_edge_args_sum_t::duplicate): Same.
20961 (ipa_write_jump_function): Same.
20962 (ipa_write_indirect_edge_info): Same.
20963 (ipa_write_node_info): Same.
20964 (ipa_read_edge_info): Same.
20965 (ipa_prop_read_section): Same.
20966 (read_replacements_section): Same.
20967 * ipa-prop.h (ipa_get_param_count): Same.
20968 (ipa_get_param): Same.
20969 (ipa_get_type): Same.
20970 (ipa_get_param_move_cost): Same.
20971 (ipa_set_param_used): Same.
20972 (ipa_get_controlled_uses): Same.
20973 (ipa_set_controlled_uses): Same.
20974 (ipa_get_cs_argument_count): Same.
20975 * ipa-pure-const.c (analyze_function): Same.
20976 (pure_const_read_summary): Same.
20977 * ipa-ref.h: Same.
20978 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20979 * ipa-split.c (test_nonssa_use): Same.
20980 (dump_split_point): Same.
20981 (dominated_by_forbidden): Same.
20982 (split_part_set_ssa_name_p): Same.
20983 (find_split_points): Same.
20984 * ira-build.c (finish_loop_tree_nodes): Same.
20985 (low_pressure_loop_node_p): Same.
20986 * ira-color.c (ira_reuse_stack_slot): Same.
20987 * ira-int.h: Same.
20988 * ira.c (setup_reg_equiv): Same.
20989 (print_insn_chain): Same.
20990 (ira): Same.
20991 * loop-doloop.c (doloop_condition_get): Same.
20992 (add_test): Same.
20993 (record_reg_sets): Same.
20994 (doloop_optimize): Same.
20995 * loop-init.c (loop_optimizer_init): Same.
20996 (fix_loop_structure): Same.
20997 * loop-invariant.c (merge_identical_invariants): Same.
20998 (compute_always_reached): Same.
20999 (find_exits): Same.
21000 (may_assign_reg_p): Same.
21001 (find_invariants_bb): Same.
21002 (find_invariants_body): Same.
21003 (replace_uses): Same.
21004 (can_move_invariant_reg): Same.
21005 (free_inv_motion_data): Same.
21006 (move_single_loop_invariants): Same.
21007 (change_pressure): Same.
21008 (mark_ref_regs): Same.
21009 (calculate_loop_reg_pressure): Same.
21010 * loop-iv.c (biv_entry_hasher::equal): Same.
21011 (iv_extend_to_rtx_code): Same.
21012 (check_iv_ref_table_size): Same.
21013 (clear_iv_info): Same.
21014 (latch_dominating_def): Same.
21015 (iv_get_reaching_def): Same.
21016 (iv_constant): Same.
21017 (iv_subreg): Same.
21018 (iv_extend): Same.
21019 (iv_neg): Same.
21020 (iv_add): Same.
21021 (iv_mult): Same.
21022 (get_biv_step): Same.
21023 (record_iv): Same.
21024 (analyzed_for_bivness_p): Same.
21025 (record_biv): Same.
21026 (iv_analyze_biv): Same.
21027 (iv_analyze_expr): Same.
21028 (iv_analyze_def): Same.
21029 (iv_analyze_op): Same.
21030 (iv_analyze): Same.
21031 (iv_analyze_result): Same.
21032 (biv_p): Same.
21033 (eliminate_implied_conditions): Same.
21034 (simplify_using_initial_values): Same.
21035 (shorten_into_mode): Same.
21036 (canonicalize_iv_subregs): Same.
21037 (determine_max_iter): Same.
21038 (check_simple_exit): Same.
21039 (find_simple_exit): Same.
21040 (get_simple_loop_desc): Same.
21041 * loop-unroll.c (report_unroll): Same.
21042 (decide_unrolling): Same.
21043 (unroll_loops): Same.
21044 (loop_exit_at_end_p): Same.
21045 (decide_unroll_constant_iterations): Same.
21046 (unroll_loop_constant_iterations): Same.
21047 (compare_and_jump_seq): Same.
21048 (unroll_loop_runtime_iterations): Same.
21049 (decide_unroll_stupid): Same.
21050 (unroll_loop_stupid): Same.
21051 (referenced_in_one_insn_in_loop_p): Same.
21052 (reset_debug_uses_in_loop): Same.
21053 (analyze_iv_to_split_insn): Same.
21054 * lra-eliminations.c (lra_debug_elim_table): Same.
21055 (setup_can_eliminate): Same.
21056 (form_sum): Same.
21057 (lra_get_elimination_hard_regno): Same.
21058 (lra_eliminate_regs_1): Same.
21059 (eliminate_regs_in_insn): Same.
21060 (update_reg_eliminate): Same.
21061 (init_elimination): Same.
21062 (lra_eliminate): Same.
21063 * lra-int.h: Same.
21064 * lra-lives.c (initiate_live_solver): Same.
21065 * lra-remat.c (create_remat_bb_data): Same.
21066 * lra-spills.c (lra_spill): Same.
21067 * lra.c (lra_set_insn_recog_data): Same.
21068 (lra_set_used_insn_alternative_by_uid): Same.
21069 (init_reg_info): Same.
21070 (expand_reg_info): Same.
21071 * lto-cgraph.c (output_symtab): Same.
21072 (read_identifier): Same.
21073 (get_alias_symbol): Same.
21074 (input_node): Same.
21075 (input_varpool_node): Same.
21076 (input_ref): Same.
21077 (input_edge): Same.
21078 (input_cgraph_1): Same.
21079 (input_refs): Same.
21080 (input_symtab): Same.
21081 (input_offload_tables): Same.
21082 (output_cgraph_opt_summary): Same.
21083 (input_edge_opt_summary): Same.
21084 (input_cgraph_opt_section): Same.
21085 * lto-section-in.c (lto_free_raw_section_data): Same.
21086 (lto_create_simple_input_block): Same.
21087 (lto_free_function_in_decl_state_for_node): Same.
21088 * lto-streamer-in.c (lto_tag_check_set): Same.
21089 (lto_location_cache::revert_location_cache): Same.
21090 (lto_location_cache::input_location): Same.
21091 (lto_input_location): Same.
21092 (stream_input_location_now): Same.
21093 (lto_input_tree_ref): Same.
21094 (lto_input_eh_catch_list): Same.
21095 (input_eh_region): Same.
21096 (lto_init_eh): Same.
21097 (make_new_block): Same.
21098 (input_cfg): Same.
21099 (fixup_call_stmt_edges): Same.
21100 (input_struct_function_base): Same.
21101 (input_function): Same.
21102 (lto_read_body_or_constructor): Same.
21103 (lto_read_tree_1): Same.
21104 (lto_read_tree): Same.
21105 (lto_input_scc): Same.
21106 (lto_input_tree_1): Same.
21107 (lto_input_toplevel_asms): Same.
21108 (lto_input_mode_table): Same.
21109 (lto_reader_init): Same.
21110 (lto_data_in_create): Same.
21111 * lto-streamer-out.c (output_cfg): Same.
21112 * lto-streamer.h: Same.
21113 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21114 (generate_prolog_epilog): Same.
21115 (mark_loop_unsched): Same.
21116 (dump_insn_location): Same.
21117 (loop_canon_p): Same.
21118 (sms_schedule): Same.
21119 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21120 (expand_omp_for_generic): Same.
21121 (expand_omp_for_static_nochunk): Same.
21122 (expand_omp_for_static_chunk): Same.
21123 (expand_omp_simd): Same.
21124 (expand_omp_taskloop_for_inner): Same.
21125 (expand_oacc_for): Same.
21126 (expand_omp_atomic_pipeline): Same.
21127 (mark_loops_in_oacc_kernels_region): Same.
21128 * omp-offload.c (oacc_xform_loop): Same.
21129 * omp-simd-clone.c (simd_clone_adjust): Same.
21130 * optabs-query.c (get_traditional_extraction_insn): Same.
21131 * optabs.c (expand_vector_broadcast): Same.
21132 (expand_binop_directly): Same.
21133 (expand_twoval_unop): Same.
21134 (expand_twoval_binop): Same.
21135 (expand_unop_direct): Same.
21136 (emit_indirect_jump): Same.
21137 (emit_conditional_move): Same.
21138 (emit_conditional_neg_or_complement): Same.
21139 (emit_conditional_add): Same.
21140 (vector_compare_rtx): Same.
21141 (expand_vec_perm_1): Same.
21142 (expand_vec_perm_const): Same.
21143 (expand_vec_cond_expr): Same.
21144 (expand_vec_series_expr): Same.
21145 (maybe_emit_atomic_exchange): Same.
21146 (maybe_emit_sync_lock_test_and_set): Same.
21147 (expand_atomic_compare_and_swap): Same.
21148 (expand_atomic_load): Same.
21149 (expand_atomic_store): Same.
21150 (maybe_emit_op): Same.
21151 (valid_multiword_target_p): Same.
21152 (create_integer_operand): Same.
21153 (maybe_legitimize_operand_same_code): Same.
21154 (maybe_legitimize_operand): Same.
21155 (create_convert_operand_from_type): Same.
21156 (can_reuse_operands_p): Same.
21157 (maybe_legitimize_operands): Same.
21158 (maybe_gen_insn): Same.
21159 (maybe_expand_insn): Same.
21160 (maybe_expand_jump_insn): Same.
21161 (expand_insn): Same.
21162 * optabs.h (create_expand_operand): Same.
21163 (create_fixed_operand): Same.
21164 (create_output_operand): Same.
21165 (create_input_operand): Same.
21166 (create_convert_operand_to): Same.
21167 (create_convert_operand_from): Same.
21168 * optinfo.h: Same.
21169 * poly-int.h: Same.
21170 * predict.c (optimize_insn_for_speed_p): Same.
21171 (optimize_loop_for_size_p): Same.
21172 (optimize_loop_for_speed_p): Same.
21173 (optimize_loop_nest_for_speed_p): Same.
21174 (get_base_value): Same.
21175 (predicted_by_loop_heuristics_p): Same.
21176 (predict_extra_loop_exits): Same.
21177 (predict_loops): Same.
21178 (predict_paths_for_bb): Same.
21179 (predict_paths_leading_to): Same.
21180 (propagate_freq): Same.
21181 (pass_profile::execute): Same.
21182 * predict.h: Same.
21183 * profile-count.c (profile_count::differs_from_p): Same.
21184 (profile_probability::differs_lot_from_p): Same.
21185 * profile-count.h: Same.
21186 * profile.c (branch_prob): Same.
21187 * regrename.c (free_chain_data): Same.
21188 (mark_conflict): Same.
21189 (create_new_chain): Same.
21190 (merge_overlapping_regs): Same.
21191 (init_rename_info): Same.
21192 (merge_chains): Same.
21193 (regrename_analyze): Same.
21194 (regrename_do_replace): Same.
21195 (scan_rtx_reg): Same.
21196 (record_out_operands): Same.
21197 (build_def_use): Same.
21198 * regrename.h: Same.
21199 * reload.h: Same.
21200 * reload1.c (init_reload): Same.
21201 (maybe_fix_stack_asms): Same.
21202 (copy_reloads): Same.
21203 (count_pseudo): Same.
21204 (count_spilled_pseudo): Same.
21205 (find_reg): Same.
21206 (find_reload_regs): Same.
21207 (select_reload_regs): Same.
21208 (spill_hard_reg): Same.
21209 (fixup_eh_region_note): Same.
21210 (set_reload_reg): Same.
21211 (allocate_reload_reg): Same.
21212 (compute_reload_subreg_offset): Same.
21213 (reload_adjust_reg_for_icode): Same.
21214 (emit_input_reload_insns): Same.
21215 (emit_output_reload_insns): Same.
21216 (do_input_reload): Same.
21217 (inherit_piecemeal_p): Same.
21218 * rtl.h: Same.
21219 * sanopt.c (maybe_get_dominating_check): Same.
21220 (maybe_optimize_ubsan_ptr_ifn): Same.
21221 (can_remove_asan_check): Same.
21222 (maybe_optimize_asan_check_ifn): Same.
21223 (sanopt_optimize_walker): Same.
21224 * sched-deps.c (add_dependence_list): Same.
21225 (chain_to_prev_insn): Same.
21226 (add_insn_mem_dependence): Same.
21227 (create_insn_reg_set): Same.
21228 (maybe_extend_reg_info_p): Same.
21229 (sched_analyze_reg): Same.
21230 (sched_analyze_1): Same.
21231 (get_implicit_reg_pending_clobbers): Same.
21232 (chain_to_prev_insn_p): Same.
21233 (deps_analyze_insn): Same.
21234 (deps_start_bb): Same.
21235 (sched_free_deps): Same.
21236 (init_deps): Same.
21237 (init_deps_reg_last): Same.
21238 (free_deps): Same.
21239 * sched-ebb.c: Same.
21240 * sched-int.h: Same.
21241 * sched-rgn.c (add_branch_dependences): Same.
21242 (concat_insn_mem_list): Same.
21243 (deps_join): Same.
21244 (sched_rgn_compute_dependencies): Same.
21245 * sel-sched-ir.c (reset_target_context): Same.
21246 (copy_deps_context): Same.
21247 (init_id_from_df): Same.
21248 (has_dependence_p): Same.
21249 (change_loops_latches): Same.
21250 (bb_top_order_comparator): Same.
21251 (make_region_from_loop_preheader): Same.
21252 (sel_init_pipelining): Same.
21253 (get_loop_nest_for_rgn): Same.
21254 (make_regions_from_the_rest): Same.
21255 (sel_is_loop_preheader_p): Same.
21256 * sel-sched-ir.h (inner_loop_header_p): Same.
21257 (get_all_loop_exits): Same.
21258 * selftest.h: Same.
21259 * sese.c (sese_build_liveouts): Same.
21260 (sese_insert_phis_for_liveouts): Same.
21261 * sese.h (defined_in_sese_p): Same.
21262 * sreal.c (sreal::stream_out): Same.
21263 * sreal.h: Same.
21264 * streamer-hooks.h: Same.
21265 * target-globals.c (save_target_globals): Same.
21266 * target-globals.h: Same.
21267 * target.def: Same.
21268 * target.h: Same.
21269 * targhooks.c (default_has_ifunc_p): Same.
21270 (default_empty_mask_is_expensive): Same.
21271 (default_init_cost): Same.
21272 * targhooks.h: Same.
21273 * toplev.c: Same.
21274 * tree-affine.c (aff_combination_mult): Same.
21275 (aff_combination_expand): Same.
21276 (aff_combination_constant_multiple_p): Same.
21277 * tree-affine.h: Same.
21278 * tree-cfg.c (build_gimple_cfg): Same.
21279 (replace_loop_annotate_in_block): Same.
21280 (replace_uses_by): Same.
21281 (remove_bb): Same.
21282 (dump_cfg_stats): Same.
21283 (gimple_duplicate_sese_region): Same.
21284 (gimple_duplicate_sese_tail): Same.
21285 (move_block_to_fn): Same.
21286 (replace_block_vars_by_duplicates): Same.
21287 (move_sese_region_to_fn): Same.
21288 (print_loops_bb): Same.
21289 (print_loop): Same.
21290 (print_loops): Same.
21291 (debug): Same.
21292 (debug_loops): Same.
21293 * tree-cfg.h: Same.
21294 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21295 (chrec_fold_multiply_poly_poly): Same.
21296 (chrec_evaluate): Same.
21297 (chrec_component_in_loop_num): Same.
21298 (reset_evolution_in_loop): Same.
21299 (is_multivariate_chrec): Same.
21300 (chrec_contains_symbols): Same.
21301 (nb_vars_in_chrec): Same.
21302 (chrec_convert_1): Same.
21303 (chrec_convert_aggressive): Same.
21304 * tree-chrec.h: Same.
21305 * tree-core.h: Same.
21306 * tree-data-ref.c (dump_data_dependence_relation): Same.
21307 (canonicalize_base_object_address): Same.
21308 (data_ref_compare_tree): Same.
21309 (prune_runtime_alias_test_list): Same.
21310 (get_segment_min_max): Same.
21311 (create_intersect_range_checks): Same.
21312 (conflict_fn_no_dependence): Same.
21313 (object_address_invariant_in_loop_p): Same.
21314 (analyze_ziv_subscript): Same.
21315 (analyze_siv_subscript_cst_affine): Same.
21316 (analyze_miv_subscript): Same.
21317 (analyze_overlapping_iterations): Same.
21318 (build_classic_dist_vector_1): Same.
21319 (add_other_self_distances): Same.
21320 (same_access_functions): Same.
21321 (build_classic_dir_vector): Same.
21322 (subscript_dependence_tester_1): Same.
21323 (subscript_dependence_tester): Same.
21324 (access_functions_are_affine_or_constant_p): Same.
21325 (get_references_in_stmt): Same.
21326 (loop_nest_has_data_refs): Same.
21327 (graphite_find_data_references_in_stmt): Same.
21328 (find_data_references_in_bb): Same.
21329 (get_base_for_alignment): Same.
21330 (find_loop_nest_1): Same.
21331 (find_loop_nest): Same.
21332 * tree-data-ref.h (dr_alignment): Same.
21333 (ddr_dependence_level): Same.
21334 * tree-if-conv.c (fold_build_cond_expr): Same.
21335 (add_to_predicate_list): Same.
21336 (add_to_dst_predicate_list): Same.
21337 (phi_convertible_by_degenerating_args): Same.
21338 (idx_within_array_bound): Same.
21339 (all_preds_critical_p): Same.
21340 (pred_blocks_visited_p): Same.
21341 (predicate_bbs): Same.
21342 (build_region): Same.
21343 (if_convertible_loop_p_1): Same.
21344 (is_cond_scalar_reduction): Same.
21345 (predicate_scalar_phi): Same.
21346 (remove_conditions_and_labels): Same.
21347 (combine_blocks): Same.
21348 (version_loop_for_if_conversion): Same.
21349 (versionable_outer_loop_p): Same.
21350 (ifcvt_local_dce): Same.
21351 (tree_if_conversion): Same.
21352 (pass_if_conversion::gate): Same.
21353 * tree-if-conv.h: Same.
21354 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21355 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21356 (free_rdg): Same.
21357 (stmt_has_scalar_dependences_outside_loop): Same.
21358 (copy_loop_before): Same.
21359 (create_bb_after_loop): Same.
21360 (const_with_all_bytes_same): Same.
21361 (generate_memset_builtin): Same.
21362 (generate_memcpy_builtin): Same.
21363 (destroy_loop): Same.
21364 (build_rdg_partition_for_vertex): Same.
21365 (compute_access_range): Same.
21366 (data_ref_segment_size): Same.
21367 (latch_dominated_by_data_ref): Same.
21368 (compute_alias_check_pairs): Same.
21369 (fuse_memset_builtins): Same.
21370 (finalize_partitions): Same.
21371 (find_seed_stmts_for_distribution): Same.
21372 (prepare_perfect_loop_nest): Same.
21373 * tree-parloops.c (lambda_transform_legal_p): Same.
21374 (loop_parallel_p): Same.
21375 (reduc_stmt_res): Same.
21376 (add_field_for_name): Same.
21377 (create_call_for_reduction_1): Same.
21378 (replace_uses_in_bb_by): Same.
21379 (transform_to_exit_first_loop_alt): Same.
21380 (try_transform_to_exit_first_loop_alt): Same.
21381 (transform_to_exit_first_loop): Same.
21382 (num_phis): Same.
21383 (gen_parallel_loop): Same.
21384 (gather_scalar_reductions): Same.
21385 (get_omp_data_i_param): Same.
21386 (try_create_reduction_list): Same.
21387 (oacc_entry_exit_single_gang): Same.
21388 (parallelize_loops): Same.
21389 * tree-pass.h: Same.
21390 * tree-predcom.c (determine_offset): Same.
21391 (last_always_executed_block): Same.
21392 (split_data_refs_to_components): Same.
21393 (suitable_component_p): Same.
21394 (valid_initializer_p): Same.
21395 (find_looparound_phi): Same.
21396 (insert_looparound_copy): Same.
21397 (add_looparound_copies): Same.
21398 (determine_roots_comp): Same.
21399 (predcom_tmp_var): Same.
21400 (initialize_root_vars): Same.
21401 (initialize_root_vars_store_elim_1): Same.
21402 (initialize_root_vars_store_elim_2): Same.
21403 (finalize_eliminated_stores): Same.
21404 (initialize_root_vars_lm): Same.
21405 (remove_stmt): Same.
21406 (determine_unroll_factor): Same.
21407 (execute_pred_commoning_cbck): Same.
21408 (base_names_in_chain_on): Same.
21409 (combine_chains): Same.
21410 (pcom_stmt_dominates_stmt_p): Same.
21411 (try_combine_chains): Same.
21412 (prepare_initializers_chain_store_elim): Same.
21413 (prepare_initializers_chain): Same.
21414 (prepare_initializers): Same.
21415 (prepare_finalizers_chain): Same.
21416 (prepare_finalizers): Same.
21417 (insert_init_seqs): Same.
21418 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21419 (compute_overall_effect_of_inner_loop): Same.
21420 (add_to_evolution_1): Same.
21421 (add_to_evolution): Same.
21422 (follow_ssa_edge_binary): Same.
21423 (follow_ssa_edge_expr): Same.
21424 (backedge_phi_arg_p): Same.
21425 (follow_ssa_edge_in_condition_phi_branch): Same.
21426 (follow_ssa_edge_in_condition_phi): Same.
21427 (follow_ssa_edge_inner_loop_phi): Same.
21428 (follow_ssa_edge): Same.
21429 (analyze_evolution_in_loop): Same.
21430 (analyze_initial_condition): Same.
21431 (interpret_loop_phi): Same.
21432 (interpret_condition_phi): Same.
21433 (interpret_rhs_expr): Same.
21434 (interpret_expr): Same.
21435 (interpret_gimple_assign): Same.
21436 (analyze_scalar_evolution_1): Same.
21437 (analyze_scalar_evolution): Same.
21438 (analyze_scalar_evolution_for_address_of): Same.
21439 (get_instantiated_value_entry): Same.
21440 (loop_closed_phi_def): Same.
21441 (instantiate_scev_name): Same.
21442 (instantiate_scev_poly): Same.
21443 (instantiate_scev_binary): Same.
21444 (instantiate_scev_convert): Same.
21445 (instantiate_scev_not): Same.
21446 (instantiate_scev_r): Same.
21447 (instantiate_scev): Same.
21448 (resolve_mixers): Same.
21449 (initialize_scalar_evolutions_analyzer): Same.
21450 (scev_reset_htab): Same.
21451 (scev_reset): Same.
21452 (derive_simple_iv_with_niters): Same.
21453 (simple_iv_with_niters): Same.
21454 (expression_expensive_p): Same.
21455 (final_value_replacement_loop): Same.
21456 * tree-scalar-evolution.h (block_before_loop): Same.
21457 * tree-ssa-address.h: Same.
21458 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21459 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21460 (record_edge_info): Same.
21461 * tree-ssa-live.c (var_map_base_fini): Same.
21462 (remove_unused_locals): Same.
21463 * tree-ssa-live.h: Same.
21464 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21465 (pass_ch_vect::execute): Same.
21466 (pass_ch::process_loop_p): Same.
21467 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21468 (movement_possibility): Same.
21469 (outermost_invariant_loop): Same.
21470 (stmt_cost): Same.
21471 (determine_max_movement): Same.
21472 (invariantness_dom_walker::before_dom_children): Same.
21473 (move_computations): Same.
21474 (may_move_till): Same.
21475 (force_move_till_op): Same.
21476 (force_move_till): Same.
21477 (memref_free): Same.
21478 (record_mem_ref_loc): Same.
21479 (set_ref_stored_in_loop): Same.
21480 (mark_ref_stored): Same.
21481 (sort_bbs_in_loop_postorder_cmp): Same.
21482 (sort_locs_in_loop_postorder_cmp): Same.
21483 (analyze_memory_references): Same.
21484 (mem_refs_may_alias_p): Same.
21485 (find_ref_loc_in_loop_cmp): Same.
21486 (rewrite_mem_ref_loc::operator): Same.
21487 (first_mem_ref_loc_1::operator): Same.
21488 (sm_set_flag_if_changed::operator): Same.
21489 (execute_sm_if_changed_flag_set): Same.
21490 (execute_sm): Same.
21491 (hoist_memory_references): Same.
21492 (ref_always_accessed::operator): Same.
21493 (refs_independent_p): Same.
21494 (record_dep_loop): Same.
21495 (ref_indep_loop_p_1): Same.
21496 (ref_indep_loop_p): Same.
21497 (can_sm_ref_p): Same.
21498 (find_refs_for_sm): Same.
21499 (loop_suitable_for_sm): Same.
21500 (store_motion_loop): Same.
21501 (store_motion): Same.
21502 (fill_always_executed_in): Same.
21503 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21504 (estimated_unrolled_size): Same.
21505 (loop_edge_to_cancel): Same.
21506 (remove_exits_and_undefined_stmts): Same.
21507 (remove_redundant_iv_tests): Same.
21508 (unloop_loops): Same.
21509 (estimated_peeled_sequence_size): Same.
21510 (try_peel_loop): Same.
21511 (canonicalize_loop_induction_variables): Same.
21512 (canonicalize_induction_variables): Same.
21513 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21514 (name_info): Same.
21515 (stmt_after_inc_pos): Same.
21516 (contains_abnormal_ssa_name_p): Same.
21517 (niter_for_exit): Same.
21518 (find_bivs): Same.
21519 (mark_bivs): Same.
21520 (find_givs_in_bb): Same.
21521 (find_induction_variables): Same.
21522 (find_interesting_uses_cond): Same.
21523 (outermost_invariant_loop_for_expr): Same.
21524 (idx_find_step): Same.
21525 (add_candidate_1): Same.
21526 (add_iv_candidate_derived_from_uses): Same.
21527 (alloc_use_cost_map): Same.
21528 (prepare_decl_rtl): Same.
21529 (generic_predict_doloop_p): Same.
21530 (computation_cost): Same.
21531 (determine_common_wider_type): Same.
21532 (get_computation_aff_1): Same.
21533 (get_use_type): Same.
21534 (determine_group_iv_cost_address): Same.
21535 (iv_period): Same.
21536 (difference_cannot_overflow_p): Same.
21537 (may_eliminate_iv): Same.
21538 (determine_set_costs): Same.
21539 (cheaper_cost_pair): Same.
21540 (compare_cost_pair): Same.
21541 (iv_ca_cand_for_group): Same.
21542 (iv_ca_recount_cost): Same.
21543 (iv_ca_set_remove_invs): Same.
21544 (iv_ca_set_no_cp): Same.
21545 (iv_ca_set_add_invs): Same.
21546 (iv_ca_set_cp): Same.
21547 (iv_ca_add_group): Same.
21548 (iv_ca_cost): Same.
21549 (iv_ca_compare_deps): Same.
21550 (iv_ca_delta_reverse): Same.
21551 (iv_ca_delta_commit): Same.
21552 (iv_ca_cand_used_p): Same.
21553 (iv_ca_delta_free): Same.
21554 (iv_ca_new): Same.
21555 (iv_ca_free): Same.
21556 (iv_ca_dump): Same.
21557 (iv_ca_extend): Same.
21558 (iv_ca_narrow): Same.
21559 (iv_ca_prune): Same.
21560 (cheaper_cost_with_cand): Same.
21561 (iv_ca_replace): Same.
21562 (try_add_cand_for): Same.
21563 (get_initial_solution): Same.
21564 (try_improve_iv_set): Same.
21565 (find_optimal_iv_set_1): Same.
21566 (create_new_iv): Same.
21567 (rewrite_use_compare): Same.
21568 (remove_unused_ivs): Same.
21569 (determine_scaling_factor): Same.
21570 * tree-ssa-loop-ivopts.h: Same.
21571 * tree-ssa-loop-manip.c (create_iv): Same.
21572 (compute_live_loop_exits): Same.
21573 (add_exit_phi): Same.
21574 (add_exit_phis): Same.
21575 (find_uses_to_rename_use): Same.
21576 (find_uses_to_rename_def): Same.
21577 (find_uses_to_rename_in_loop): Same.
21578 (rewrite_into_loop_closed_ssa): Same.
21579 (check_loop_closed_ssa_bb): Same.
21580 (split_loop_exit_edge): Same.
21581 (ip_end_pos): Same.
21582 (ip_normal_pos): Same.
21583 (copy_phi_node_args): Same.
21584 (gimple_duplicate_loop_to_header_edge): Same.
21585 (can_unroll_loop_p): Same.
21586 (determine_exit_conditions): Same.
21587 (scale_dominated_blocks_in_loop): Same.
21588 (niter_for_unrolled_loop): Same.
21589 (tree_transform_and_unroll_loop): Same.
21590 (rewrite_all_phi_nodes_with_iv): Same.
21591 * tree-ssa-loop-manip.h: Same.
21592 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21593 (number_of_iterations_ne): Same.
21594 (assert_no_overflow_lt): Same.
21595 (assert_loop_rolls_lt): Same.
21596 (number_of_iterations_lt): Same.
21597 (adjust_cond_for_loop_until_wrap): Same.
21598 (tree_simplify_using_condition): Same.
21599 (simplify_using_initial_conditions): Same.
21600 (simplify_using_outer_evolutions): Same.
21601 (loop_only_exit_p): Same.
21602 (ssa_defined_by_minus_one_stmt_p): Same.
21603 (number_of_iterations_popcount): Same.
21604 (number_of_iterations_exit): Same.
21605 (find_loop_niter): Same.
21606 (finite_loop_p): Same.
21607 (chain_of_csts_start): Same.
21608 (get_val_for): Same.
21609 (loop_niter_by_eval): Same.
21610 (derive_constant_upper_bound_ops): Same.
21611 (do_warn_aggressive_loop_optimizations): Same.
21612 (record_estimate): Same.
21613 (get_cst_init_from_scev): Same.
21614 (record_nonwrapping_iv): Same.
21615 (idx_infer_loop_bounds): Same.
21616 (infer_loop_bounds_from_ref): Same.
21617 (infer_loop_bounds_from_array): Same.
21618 (infer_loop_bounds_from_pointer_arith): Same.
21619 (infer_loop_bounds_from_signedness): Same.
21620 (bound_index): Same.
21621 (discover_iteration_bound_by_body_walk): Same.
21622 (maybe_lower_iteration_bound): Same.
21623 (estimate_numbers_of_iterations): Same.
21624 (estimated_loop_iterations): Same.
21625 (estimated_loop_iterations_int): Same.
21626 (max_loop_iterations): Same.
21627 (max_loop_iterations_int): Same.
21628 (likely_max_loop_iterations): Same.
21629 (likely_max_loop_iterations_int): Same.
21630 (estimated_stmt_executions_int): Same.
21631 (max_stmt_executions): Same.
21632 (likely_max_stmt_executions): Same.
21633 (estimated_stmt_executions): Same.
21634 (stmt_dominates_stmt_p): Same.
21635 (nowrap_type_p): Same.
21636 (loop_exits_before_overflow): Same.
21637 (scev_var_range_cant_overflow): Same.
21638 (scev_probably_wraps_p): Same.
21639 (free_numbers_of_iterations_estimates): Same.
21640 * tree-ssa-loop-niter.h: Same.
21641 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21642 (idx_analyze_ref): Same.
21643 (analyze_ref): Same.
21644 (gather_memory_references_ref): Same.
21645 (mark_nontemporal_store): Same.
21646 (emit_mfence_after_loop): Same.
21647 (may_use_storent_in_loop_p): Same.
21648 (mark_nontemporal_stores): Same.
21649 (should_unroll_loop_p): Same.
21650 (volume_of_dist_vector): Same.
21651 (add_subscript_strides): Same.
21652 (self_reuse_distance): Same.
21653 (insn_to_prefetch_ratio_too_small_p): Same.
21654 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21655 (patch_loop_exit): Same.
21656 (find_or_create_guard_phi): Same.
21657 (easy_exit_values): Same.
21658 (connect_loop_phis): Same.
21659 (connect_loops): Same.
21660 (compute_new_first_bound): Same.
21661 (split_loop): Same.
21662 (tree_ssa_split_loops): Same.
21663 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21664 (is_maybe_undefined): Same.
21665 (tree_may_unswitch_on): Same.
21666 (simplify_using_entry_checks): Same.
21667 (tree_unswitch_single_loop): Same.
21668 (tree_unswitch_loop): Same.
21669 (tree_unswitch_outer_loop): Same.
21670 (empty_bb_without_guard_p): Same.
21671 (used_outside_loop_p): Same.
21672 (get_vop_from_header): Same.
21673 (hoist_guard): Same.
21674 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21675 (get_lsm_tmp_name): Same.
21676 * tree-ssa-loop.h: Same.
21677 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21678 (build_and_add_sum): Same.
21679 (no_side_effect_bb): Same.
21680 (get_ops): Same.
21681 (linearize_expr): Same.
21682 (should_break_up_subtract): Same.
21683 (linearize_expr_tree): Same.
21684 * tree-ssa-scopedtables.c: Same.
21685 * tree-ssa-scopedtables.h: Same.
21686 * tree-ssa-structalias.c (condense_visit): Same.
21687 (label_visit): Same.
21688 (dump_pred_graph): Same.
21689 (perform_var_substitution): Same.
21690 (move_complex_constraints): Same.
21691 (remove_preds_and_fake_succs): Same.
21692 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21693 (determine_bb_domination_status): Same.
21694 (duplicate_thread_path): Same.
21695 (thread_through_all_blocks): Same.
21696 * tree-ssa-threadupdate.h: Same.
21697 * tree-streamer-in.c (streamer_read_string_cst): Same.
21698 (input_identifier): Same.
21699 (unpack_ts_type_common_value_fields): Same.
21700 (unpack_ts_block_value_fields): Same.
21701 (unpack_ts_translation_unit_decl_value_fields): Same.
21702 (unpack_ts_omp_clause_value_fields): Same.
21703 (streamer_read_tree_bitfields): Same.
21704 (streamer_alloc_tree): Same.
21705 (lto_input_ts_common_tree_pointers): Same.
21706 (lto_input_ts_vector_tree_pointers): Same.
21707 (lto_input_ts_poly_tree_pointers): Same.
21708 (lto_input_ts_complex_tree_pointers): Same.
21709 (lto_input_ts_decl_minimal_tree_pointers): Same.
21710 (lto_input_ts_decl_common_tree_pointers): Same.
21711 (lto_input_ts_decl_non_common_tree_pointers): Same.
21712 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21713 (lto_input_ts_field_decl_tree_pointers): Same.
21714 (lto_input_ts_function_decl_tree_pointers): Same.
21715 (lto_input_ts_type_common_tree_pointers): Same.
21716 (lto_input_ts_type_non_common_tree_pointers): Same.
21717 (lto_input_ts_list_tree_pointers): Same.
21718 (lto_input_ts_vec_tree_pointers): Same.
21719 (lto_input_ts_exp_tree_pointers): Same.
21720 (lto_input_ts_block_tree_pointers): Same.
21721 (lto_input_ts_binfo_tree_pointers): Same.
21722 (lto_input_ts_constructor_tree_pointers): Same.
21723 (lto_input_ts_omp_clause_tree_pointers): Same.
21724 (streamer_read_tree_body): Same.
21725 * tree-streamer.h: Same.
21726 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21727 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21728 (vect_analyze_possibly_independent_ddr): Same.
21729 (vect_analyze_data_ref_dependence): Same.
21730 (vect_compute_data_ref_alignment): Same.
21731 (vect_enhance_data_refs_alignment): Same.
21732 (vect_analyze_data_ref_access): Same.
21733 (vect_check_gather_scatter): Same.
21734 (vect_find_stmt_data_reference): Same.
21735 (vect_create_addr_base_for_vector_ref): Same.
21736 (vect_setup_realignment): Same.
21737 (vect_supportable_dr_alignment): Same.
21738 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21739 (adjust_phi_and_debug_stmts): Same.
21740 (vect_set_loop_mask): Same.
21741 (add_preheader_seq): Same.
21742 (vect_maybe_permute_loop_masks): Same.
21743 (vect_set_loop_masks_directly): Same.
21744 (vect_set_loop_condition_masked): Same.
21745 (vect_set_loop_condition_unmasked): Same.
21746 (slpeel_duplicate_current_defs_from_edges): Same.
21747 (slpeel_add_loop_guard): Same.
21748 (slpeel_can_duplicate_loop_p): Same.
21749 (create_lcssa_for_virtual_phi): Same.
21750 (iv_phi_p): Same.
21751 (vect_update_ivs_after_vectorizer): Same.
21752 (vect_gen_vector_loop_niters_mult_vf): Same.
21753 (slpeel_update_phi_nodes_for_loops): Same.
21754 (slpeel_update_phi_nodes_for_guard1): Same.
21755 (find_guard_arg): Same.
21756 (slpeel_update_phi_nodes_for_guard2): Same.
21757 (slpeel_update_phi_nodes_for_lcssa): Same.
21758 (vect_do_peeling): Same.
21759 (vect_create_cond_for_alias_checks): Same.
21760 (vect_loop_versioning): Same.
21761 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21762 (vect_inner_phi_in_double_reduction_p): Same.
21763 (vect_analyze_scalar_cycles_1): Same.
21764 (vect_fixup_scalar_cycles_with_patterns): Same.
21765 (vect_get_loop_niters): Same.
21766 (bb_in_loop_p): Same.
21767 (vect_get_max_nscalars_per_iter): Same.
21768 (vect_verify_full_masking): Same.
21769 (vect_compute_single_scalar_iteration_cost): Same.
21770 (vect_analyze_loop_form_1): Same.
21771 (vect_analyze_loop_form): Same.
21772 (vect_active_double_reduction_p): Same.
21773 (vect_analyze_loop_operations): Same.
21774 (neutral_op_for_slp_reduction): Same.
21775 (vect_is_simple_reduction): Same.
21776 (vect_model_reduction_cost): Same.
21777 (get_initial_def_for_reduction): Same.
21778 (get_initial_defs_for_reduction): Same.
21779 (vect_create_epilog_for_reduction): Same.
21780 (vectorize_fold_left_reduction): Same.
21781 (vectorizable_reduction): Same.
21782 (vectorizable_induction): Same.
21783 (vectorizable_live_operation): Same.
21784 (loop_niters_no_overflow): Same.
21785 (vect_get_loop_mask): Same.
21786 (vect_transform_loop_stmt): Same.
21787 (vect_transform_loop): Same.
21788 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21789 (vect_determine_precisions): Same.
21790 (vect_pattern_recog_1): Same.
21791 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21792 * tree-vect-stmts.c (stmt_vectype): Same.
21793 (process_use): Same.
21794 (vect_init_vector_1): Same.
21795 (vect_truncate_gather_scatter_offset): Same.
21796 (get_group_load_store_type): Same.
21797 (vect_build_gather_load_calls): Same.
21798 (vect_get_strided_load_store_ops): Same.
21799 (vectorizable_simd_clone_call): Same.
21800 (vectorizable_store): Same.
21801 (permute_vec_elements): Same.
21802 (vectorizable_load): Same.
21803 (vect_transform_stmt): Same.
21804 (supportable_widening_operation): Same.
21805 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21806 (vec_info::free_stmt_vec_info): Same.
21807 (vect_free_loop_info_assumptions): Same.
21808 (vect_loop_vectorized_call): Same.
21809 (set_uid_loop_bbs): Same.
21810 (vectorize_loops): Same.
21811 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21812 * tree.c (add_tree_to_fld_list): Same.
21813 (fld_type_variant_equal_p): Same.
21814 (fld_decl_context): Same.
21815 (fld_incomplete_type_of): Same.
21816 (free_lang_data_in_binfo): Same.
21817 (need_assembler_name_p): Same.
21818 (find_decls_types_r): Same.
21819 (get_eh_types_for_runtime): Same.
21820 (find_decls_types_in_eh_region): Same.
21821 (find_decls_types_in_node): Same.
21822 (assign_assembler_name_if_needed): Same.
21823 * value-prof.c (stream_out_histogram_value): Same.
21824 * value-prof.h: Same.
21825 * var-tracking.c (use_narrower_mode): Same.
21826 (prepare_call_arguments): Same.
21827 (vt_expand_loc_callback): Same.
21828 (resolve_expansions_pending_recursion): Same.
21829 (vt_expand_loc): Same.
21830 * varasm.c (const_hash_1): Same.
21831 (compare_constant): Same.
21832 (tree_output_constant_def): Same.
21833 (simplify_subtraction): Same.
21834 (get_pool_constant): Same.
21835 (output_constant_pool_2): Same.
21836 (output_constant_pool_1): Same.
21837 (mark_constants_in_pattern): Same.
21838 (mark_constant_pool): Same.
21839 (get_section_anchor): Same.
21840 * vr-values.c (compare_range_with_value): Same.
21841 (vr_values::extract_range_from_phi_node): Same.
21842 * vr-values.h: Same.
21843 * web.c (unionfind_union): Same.
21844 * wide-int.h: Same.
21845
21846 2019-07-09 Martin Sebor <msebor@redhat.com>
21847
21848 PR c++/61339
21849 * align.h: Change class-key from class to struct and vice versa
21850 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21851 * alloc-pool.h: Same.
21852 * asan.c (shadow_mem_size): Same.
21853 * auto-profile.c: Same.
21854 * basic-block.h: Same.
21855 * bitmap.h: Same.
21856 * cfgexpand.c (set_rtl): Same.
21857 (expand_one_stack_var_at): Same.
21858 * cfghooks.h: Same.
21859 * cfgloop.h: Same.
21860 * cgraph.h: Same.
21861 * config/i386/i386.h: Same.
21862 * df-problems.c (df_print_bb_index): Same.
21863 * df-scan.c: Same.
21864 * df.h (df_single_use): Same.
21865 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21866 (layout::annotation_line_showed_range_p): Same.
21867 (get_printed_columns): Same.
21868 (correction::ensure_terminated): Same.
21869 (line_corrections::~line_corrections): Same.
21870 * dojump.h: Same.
21871 * dse.c: Same.
21872 * dump-context.h: Same.
21873 * dumpfile.h: Same.
21874 * dwarf2out.c: Same.
21875 * edit-context.c: Same.
21876 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21877 * flags.h: Same.
21878 * function.c (assign_stack_local): Same.
21879 * function.h: Same.
21880 * gcc.c: Same.
21881 * gcov.c (block_info::block_info): Same.
21882 * genattrtab.c: Same.
21883 * genextract.c: Same.
21884 * genmatch.c (comparison_code_p): Same.
21885 (id_base::id_base): Same.
21886 (decision_tree::print): Same.
21887 * genoutput.c: Same.
21888 * genpreds.c (write_one_predicate_function): Same.
21889 * genrecog.c (validate_pattern): Same.
21890 (find_operand_positions): Same.
21891 (optimize_subroutine_group): Same.
21892 (merge_pattern_transition::merge_pattern_transition): Same.
21893 (merge_pattern_info::merge_pattern_info): Same.
21894 (merge_state_result::merge_state_result): Same.
21895 (merge_into_state): Same.
21896 * gensupport.c: Same.
21897 * gensupport.h: Same.
21898 * ggc-common.c (init_ggc_heuristics): Same.
21899 * ggc-tests.c (test_union): Same.
21900 * gimple-loop-interchange.cc (dump_induction): Same.
21901 * gimple-loop-versioning.cc: Same.
21902 * gimple-match.h (gimple_match_cond::any_else): Same.
21903 * gimple-ssa-backprop.c: Same.
21904 * gimple-ssa-sprintf.c: Same.
21905 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21906 Same.
21907 (store_immediate_info::store_immediate_info): Same.
21908 (merged_store_group::apply_stores): Same.
21909 (get_location_for_stmts): Same.
21910 * gimple-ssa-strength-reduction.c: Same.
21911 * gimple-ssa-warn-alloca.c: Same.
21912 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21913 * godump.c (go_type_decl): Same.
21914 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21915 * hash-map.h: Same.
21916 * hash-set-tests.c (test_set_of_strings): Same.
21917 * hsa-brig.c: Same.
21918 * hsa-common.h: Same.
21919 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21920 * input.c (assert_loceq): Same.
21921 * input.h: Same.
21922 * ipa-cp.c: Same.
21923 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21924 * ipa-fnsummary.h: Same.
21925 * ipa-inline.h: Same.
21926 * ipa-prop.h: Same.
21927 * ipa-split.c (visit_bb): Same.
21928 * ira-int.h (minmax_set_iter_next): Same.
21929 * loop-invariant.c: Same.
21930 * loop-iv.c: Same.
21931 * lra-eliminations.c: Same.
21932 * lra-int.h: Same.
21933 * lra-lives.c (mark_regno_dead): Same.
21934 * lra-remat.c: Same.
21935 * lra-spills.c: Same.
21936 * lto-streamer.h: Same.
21937 * mem-stats.h: Same.
21938 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21939 * omp-low.c (omp_clause_aligned_alignment): Same.
21940 * optabs-query.h (get_vcond_eq_icode): Same.
21941 * optabs.h: Same.
21942 * opts.c (wrap_help): Same.
21943 * poly-int.h: Same.
21944 * predict.c (predict_paths_leading_to_edge): Same.
21945 * pretty-print.h: Same.
21946 * profile-count.h: Same.
21947 * read-md.h: Same.
21948 * read-rtl-function.c: Same.
21949 * ree.c: Same.
21950 * reginfo.c: Same.
21951 * regrename.c: Same.
21952 * regrename.h: Same.
21953 * reload.h: Same.
21954 * rtl-iter.h: Same.
21955 * rtl.h (costs_add_n_insns): Same.
21956 * sanopt.c: Same.
21957 * sched-int.h: Same.
21958 * sel-sched-ir.h: Same.
21959 * selftest.h: Same.
21960 * sese.h (vec_find): Same.
21961 * stmt.c: Same.
21962 * target-globals.h: Same.
21963 * tree-affine.c (aff_combination_find_elt): Same.
21964 * tree-affine.h: Same.
21965 * tree-data-ref.h: Same.
21966 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21967 * tree-predcom.c: Same.
21968 * tree-scalar-evolution.c (find_var_scev_info): Same.
21969 * tree-ssa-alias.h: Same.
21970 * tree-ssa-ccp.c: Same.
21971 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21972 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21973 (rewrite_mem_refs): Same.
21974 (execute_sm_if_changed): Same.
21975 (hoist_memory_references): Same.
21976 * tree-ssa-loop-ivopts.c (operator<=): Same.
21977 * tree-ssa-loop.h: Same.
21978 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21979 * tree-ssa-structalias.c: Same.
21980 * tree-switch-conversion.h (cluster::cluster): Same.
21981 (simple_cluster::simple_cluster): Same.
21982 * tree-vect-patterns.c (type_conversion_p): Same.
21983 * tree-vectorizer.c (dump_stmt_cost): Same.
21984 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21985 * tree.c (protected_set_expr_location): Same.
21986 * tree.h (desired_pro_or_demotion_p): Same.
21987 (fndecl_built_in_p): Same.
21988 * unique-ptr-tests.cc: Same.
21989 * var-tracking.c (delete_variable_part): Same.
21990 * varasm.c (assemble_real): Same.
21991 (tree_output_constant_def): Same.
21992 * vec.c: Same.
21993 * wide-int-bitmask.h: Same.
21994 * wide-int.h (decompose): Same.
21995
21996 2019-07-09 Richard Biener <rguenther@suse.de>
21997
21998 PR tree-optimization/91114
21999 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22000 find a vector type isn't fatal.
22001
22002 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22003
22004 * config/aarch64/aarch64-simd.md
22005 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22006 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22007 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22008 (*aarch64_crypto_aese_fused,
22009 *aarch64_crypto_aesd_fused): Update to new definition.
22010 * config/aarch64/aarch64.c
22011 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22012
22013 2019-07-09 Richard Biener <rguenther@suse.de>
22014
22015 * gimple-match.h (gimple_match_op::resimplify): New.
22016 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22017 gimple_resimplify4, gimple_resimplify5): Remove.
22018 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22019 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22020 Make static.
22021 (gimple_match_op::resimplify): New.
22022 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22023 according to availability. Use gimple_match_op::resimplify.
22024
22025 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22026
22027 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22028
22029 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22030
22031 * config/arm/crypto.md:
22032 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22033 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22034 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22035 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22036 * config/arm/arm.c
22037 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22038 * config/arm/aarch-common-protos.h
22039 (aarch_crypto_can_dual_issue): Remove.
22040 * config/arm/aarch-common.c
22041 (aarch_crypto_can_dual_issue): Likewise.
22042 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22043 * config/arm/cortex-a53.md: Likewise.
22044 * config/arm/cortex-a57.md: Likewise.
22045 * config/arm/iterators.md:
22046 (CRYPTO_BINARY): Redefine.
22047 (CRYPTO_UNARY): Removed.
22048 (CRYPTO_AES, CRYPTO_AESMC): New.
22049
22050 2019-07-09 Richard Biener <rguenther@suse.de>
22051
22052 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22053 (vn_reference_lookup_3): If the main ref has no access path recorded
22054 but orig_ref has use it to do access-path based disambiguation.
22055 (vn_reference_lookup_pieces): Adjust.
22056 (vn_reference_lookup): Pass down original ref if we valueized.
22057
22058 2019-07-09 Martin Liska <mliska@suse.cz>
22059
22060 * doc/extend.texi: Document influence on loop
22061 optimizers.
22062
22063 2019-07-09 Martin Liska <mliska@suse.cz>
22064
22065 * lto-compress.c (lto_normalized_zstd_level): Do not use
22066 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22067 of libzstd. One can use 0 as a default compression level.
22068
22069 2019-07-09 Martin Liska <mliska@suse.cz>
22070
22071 * doc/invoke.texi: Add link from -fprofile-dir option.
22072 Use better wording for 'gcno filename'.
22073
22074 2019-07-08 Martin Sebor <msebor@redhat.com>
22075
22076 PR middle-end/71924
22077 PR middle-end/90549
22078 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22079 comment.
22080 (args_loc_t): New type.
22081 (args_loc_t, locmap_t): same.
22082 (diag_returned_locals): New function.
22083 (is_addr_local): Same.
22084 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22085 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22086 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22087
22088 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22089
22090 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22091 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22092 and casts in offset when different, both through gimple stmts
22093 and through trees. Rewritten using loops to minimize code duplication
22094 for each operand.
22095
22096 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22097
22098 * emit-rtl.c (set_insn_locations): New function moved from...
22099 * function.c (set_insn_locations): ...here.
22100 * ira-emit.c (emit_moves): Propagate location of the first instruction
22101 to the inserted move instructions.
22102 * reg-stack.c (compensate_edge): Set the location if the sequence is
22103 inserted on the edge.
22104 * rtl.h (set_insn_locations): Declare.
22105
22106 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22107
22108 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22109 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22110 .machine string.
22111
22112 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22113
22114 PR rtl-optimization/88233
22115 * common.opt (fsplit-wide-types-early): New option.
22116 * common/config/rs6000/rs6000-common.c
22117 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22118 OPT_LEVELS_ALL.
22119 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22120 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22121 flag_split_wide_types_early.
22122 (pass_data_lower_subreg3): New.
22123 (pass_lower_subreg3): New.
22124 (make_pass_lower_subreg3): New.
22125 * passes.def (pass_lower_subreg2): Move after the loop passes.
22126 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22127 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22128 the pass pipeline; its previous place is taken by ...
22129 (make_pass_lower_subreg3): ... this.
22130
22131 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22132
22133 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22134 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22135
22136 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22137
22138 * config/s390/constraints.md: Add new jsc constraint.
22139 * config/s390/predicates.md: New predicates.
22140 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22141 * config/s390/s390.c (s390_valid_shift_count): New function.
22142 (print_shift_count_operand): Use s390_valid_shift_count.
22143 (print_operand): Likewise.
22144 * config/s390/s390.md: Use new predicate.
22145 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22146 * config/s390/vector.md: Use new predicate.
22147
22148 2019-07-08 Andrew Waterman <andrew@sifive.com>
22149 Jim Wilson <jimw@sifive.com>
22150
22151 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22152 bitsize instead of BITS_PER_WORD.
22153
22154 2019-07-08 Martin Liska <mliska@suse.cz>
22155
22156 * collect2.c (defined): Revert to before r254460.
22157 (scan_prog_file): Revert to before r254460.
22158
22159 2019-07-08 Richard Biener <rguenther@suse.de>
22160
22161 PR tree-optimization/83518
22162 * tree-ssa-sccvn.c: Include splay-tree.h.
22163 (struct pd_range, struct pd_data): New.
22164 (struct vn_walk_cb_data): Add data to track partial definitions.
22165 (vn_walk_cb_data::~vn_walk_cb_data): New.
22166 (vn_walk_cb_data::push_partial_def): New.
22167 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22168 (vn_reference_lookup_2): When partial defs are registered give up.
22169 (vn_reference_lookup_3): Track partial defs for memset and
22170 constructor zeroing and for defs from constants.
22171
22172 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22173
22174 * doc/install.texi (bootstrap-Og): Document.
22175
22176 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22177
22178 * config/riscv/pic.md (*local_pic_load_s<mode>)
22179 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22180 referenced by <mode>, giving...
22181 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22182 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22183 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22184 use <X:MODE> for the mode attribute.
22185
22186 2019-07-07 Jeff Law <law@redhat.com>
22187
22188 PR tree-optimization/91090
22189 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22190 in handling of ranges to simplify switch statements.
22191
22192 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22193
22194 * config/darwin.c (darwin_override_options): Make a final check on PIC
22195 options.
22196
22197 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22198
22199 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22200 on for kernel code.
22201
22202 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22203
22204 PR target/91068
22205 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22206 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22207 instead of matching them to "l" output operands.
22208
22209 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22210
22211 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22212 and check whether addr.reg is nonnull before using it.
22213
22214 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22215
22216 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22217 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22218 variable(s). For conditional lastprivate look through outer
22219 GIMPLE_OMP_SCAN context.
22220 (lower_omp_1): For conditional lastprivate look through outer
22221 GIMPLE_OMP_SCAN context.
22222
22223 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22224 member to combined_into_simd_safelen1.
22225 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22226 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22227 clauses if ctx->combined_into_simd_safelen1 put statements after the
22228 predicate conditionalized block rather than into it.
22229
22230 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22231
22232 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22233 operand 1.
22234 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22235 Make the choice of <mode> explicit, giving...
22236 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22237
22238 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22239
22240 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22241 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22242 of .md attributes.
22243 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22244 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22245 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22246 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22247 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22248 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22249 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22250 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22251 (*avx512f_scatterdi<mode>): Likewise.
22252 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22253
22254 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22255
22256 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22257 specify the mode iterator referenced by <mode>, giving...
22258 (*push1_h8300hs_<QHI:mode>): ...this.
22259
22260 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22261
22262 * config/gcn/gcn-valu.md
22263 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22264 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22265 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22266 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22267 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22268 but using the _exec comparison patterns.
22269 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22270 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22271 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22272 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22273 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22274 but using the _exec comparison patterns.
22275
22276 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22277
22278 * config/arm/sync.md
22279 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22280 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22281 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22282 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22283 <SIDI:cas_cmp_str>.
22284
22285 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22286
22287 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22288 (maybe_lookup_ctx): Add forward declaration.
22289 (omp_find_scan): Likewise. Walk into body of simd if composited
22290 with worksharing loop.
22291 (scan_omp_simd_scan): New function.
22292 (scan_omp_1_stmt): Call it.
22293 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22294 ctx->for_simd_scan_phase.
22295 (lower_rec_input_clauses): Do much less work for inscan reductions
22296 in ctx->for_simd_scan_phase is_simd regions.
22297 (lower_omp_scan): Set is_simd also on simd constructs composited
22298 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22299 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22300 emit their body after in simd constructs composited with worksharing
22301 loop.
22302 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22303
22304 * omp-low.c (omp_find_scan): Make static.
22305 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22306 the second loop, var2 represents the first partial sum and so needs
22307 to go before rprivb[ivar].
22308
22309 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22310
22311 * config/rs6000/rs6000-logue.c: Remove unused code.
22312
22313 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22314
22315 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22316
22317 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22318
22319 PR target/90712
22320 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22321 check with a frame laid out check.
22322
22323 2019-07-05 Richard Biener <rguenther@suse.de>
22324
22325 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22326 when comparing against a store with possibly the same value.
22327
22328 2019-07-05 Richard Biener <rguenther@suse.de>
22329
22330 PR tree-optimization/91091
22331 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22332 (walk_non_aliased_vuses): Likewise.
22333 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22334 (get_continuation_for_phi): New tbaa_p parameter and pass
22335 it down.
22336 (walk_non_aliased_vuses): Likewise.
22337 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22338 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22339 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22340 Likewise.
22341 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22342 (adjust_offsets_for_equal_base_address): New function.
22343 (vn_reference_lookup_3): Use it to catch more base equivalences.
22344 Handle and pass down tbaa_p flag.
22345 (vn_reference_lookup_pieces): Adjust.
22346 (vn_reference_lookup): Remove alias-set altering, instead pass
22347 down false as tbaa_p.
22348
22349 2019-07-05 Richard Biener <rguenther@suse.de>
22350
22351 PR tree-optimization/91091
22352 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22353 accesses can happen with -fno-strict-aliasing.
22354
22355 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22356
22357 * tree-ssa-alias.c (alias_stats): Add
22358 nonoverlapping_component_refs_since_match_p_must_overlap.
22359 (dump_alias_stats): Print it.
22360 (nonoverlapping_component_refs_since_match_p): Add early exit.
22361 (nonoverlapping_component_refs_p): Do not account early exit.
22362
22363 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22364
22365 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22366 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22367 (emit_eh_dispatch): Delete.
22368 (lower_catch): Emit the eh_dispatch manually and set the location of
22369 the first catch statement onto it.
22370 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22371 (lower_eh_dispatch): Propagate location.
22372 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22373 (eliminate_build): Likewise.
22374
22375 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22376
22377 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22378 phi nodes if possible.
22379 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22380 location info on the newly created statement.
22381 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22382 newly created increment if needed.
22383
22384 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22385
22386 PR middle-end/78884
22387 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22388 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22389 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22390 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22391 ctx->add_safelen1 is set.
22392
22393 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22394 GOMP_loop_start at the start of second worksharing loop in a scan.
22395 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22396 worksharing loop in a scan even if there are conditional lastprivates,
22397 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22398
22399 2019-07-04 Jan Hubicka <jh@suse.cz>
22400
22401 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22402 Fix check for match in the ref walk.
22403
22404 2019-07-04 Martin Liska <mliska@suse.cz>
22405
22406 * tree-ssa-loop-niter.c
22407 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22408 (estimate_numbers_of_iterations):
22409 Support __builtin_expect_with_probability for analysis
22410 of # of loop iterations.
22411
22412 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22413
22414 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22415 * except.c: Likewise.
22416 * expr.c (expand_expr_real_1): Reject it.
22417 * gimplify.c (gimplify_expr): Gimplify it, within
22418 TRY_FINALLY_EXPR.
22419 * tree-dump.c (dequeue_and_dump): Dump it.
22420 * tree-pretty-print.c (dump_generic_node): Likewise.
22421 * tree.c (block_may_fallthru): Handle it.
22422 * tree.def (EH_ELSE_EXPR): Introduce it.
22423 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22424 with GIMPLE_EH_ELSE as try/finally/else.
22425
22426 2019-07-04 Richard Biener <rguenther@suse.de>
22427
22428 PR ipa/91062
22429 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22430 parameter whether to disable GC collection.
22431 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22432 honor it.
22433 (execute_all_ipa_transforms): Likewise and pass it down.
22434 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22435 collection from applying IPA transforms.
22436 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22437 from applying IPA transforms.
22438
22439 2019-07-04 Richard Biener <rguenther@suse.de>
22440
22441 PR tree-optimization/90911
22442 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22443 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22444 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22445 scalar_loop_scaling.
22446 (vect_transform_loop): Scale scalar loop profile if needed.
22447 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22448 the loop copy from if-conversion adjust edge probabilities
22449 and scale the vectorized loop body profile, queue the scalar
22450 profile for updating after peeling.
22451
22452 2019-07-04 Jan Hubicka <jh@suse.cz>
22453
22454 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22455 parameters; return early for must-alias.
22456 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22457 outer types match, try nonoverlapping_component_refs
22458 if must-alias is not obvious.
22459 (indirect_refs_may_alias_p): Likewise.
22460 (refs_may_alias_p_2): Likewise.
22461
22462 2019-07-04 Richard Biener <rguenther@suse.de>
22463
22464 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22465 argument.
22466 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22467 globals into...
22468 (struct vn_walk_cb_data): New callback data struct.
22469 (vn_reference_lookup_2): Adjust.
22470 (vn_reference_lookup_3): Likewise.
22471 (vn_reference_lookup_pieces): Likewise.
22472 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22473 (visit_reference_op_load): Adjust.
22474
22475 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22476
22477 PR tree-optimization/91063
22478 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22479 stmt from stmts sequence before calling vect_init_vector_1.
22480 Formatting fix.
22481
22482 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22483
22484 PR target/88833
22485 * fwprop.c (reg_single_def_p): New function.
22486 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22487 (forward_propagate_into): New parameter reg_prop_only
22488 with default value false.
22489 Propagate def's src into loop only if SET_SRC and SET_DEST
22490 of def_set have single definitions.
22491 Likewise if reg_prop_only is set to true.
22492 (fwprop): New param fwprop_addr_p.
22493 Integrate fwprop_addr into fwprop.
22494 (fwprop_addr): Remove.
22495 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22496 to true.
22497 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22498 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22499 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22500
22501 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22502
22503 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22504 in worksharing loop scans.
22505
22506 PR tree-optimization/91074
22507 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22508 temporary.
22509
22510 PR rtl-optimization/90756
22511 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22512 for VECTOR_TYPE_P.
22513
22514 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22515
22516 * config/aarch64/aarch64.md: Remove redundant constraints from
22517 define_expand but keep some patterns untouched if they are
22518 specially selected by TARGET_SECONDARY_RELOAD hook.
22519 * config/aarch64/aarch64-sve.md: Likewise.
22520 * config/aarch64/atomics.md: Remove redundant constraints from
22521 define_expand.
22522 * config/aarch64/aarch64-simd.md: Likewise.
22523
22524 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22525
22526 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22527 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22528 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22529 clauses.
22530 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22531 DARWIN_NOPIE_SPEC.
22532
22533 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22534
22535 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22536 (STARTFILE_SPEC): Split crt3 into a separate spec.
22537 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22538 (DARWIN_CRT2_SPEC): New.
22539 (DARWIN_CRT3_SPEC): New.
22540 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22541 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22542 (DARWIN_CRT3_SPEC): New.
22543
22544 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22545
22546 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22547 Change the RTL attribute "length" from "4" to "*" to allow the
22548 length attribute to be adjusted automatically for prefixed load,
22549 store, and add immediate instructions.
22550 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22551 Likewise.
22552 (extendsi<mode>2, EXTSI iterator): Likewise.
22553 (movsi_internal1): Likewise.
22554 (movsi_from_sf): Likewise.
22555 (movdi_from_sf_zero_ext): Likewise.
22556 (mov<mode>_internal): Likewise.
22557 (movcc_internal1, QHI iterator): Likewise.
22558 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22559 (movsf_from_si): Likewise.
22560 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22561 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22562 (mov<mode>, FMOVE128 iterator): Likewise.
22563 (movdi_internal64): Likewise.
22564 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22565 Likewise.
22566 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22567 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22568 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22569 (vsx_splat_v4sf): Likewise.
22570
22571 2019-07-03 Mark Wielaard <mark@klomp.org>
22572
22573 PR debug/90981
22574 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22575 DW_AT_addr_base if there is actually a .debug_addr section with
22576 addresses.
22577 (output_addr_table): Add DWARF5 table header generation here after
22578 checking there are actually any addresses from...
22579 (dwarf2out_finish): ...here.
22580
22581 2019-07-03 Richard Biener <rguenther@suse.de>
22582
22583 PR middle-end/91069
22584 * match.pd (vec_perm -> bit_insert): Fix element read from
22585 first vector.
22586
22587 2019-07-03 Martin Liska <mliska@suse.cz>
22588
22589 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22590 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22591 condition.
22592 * generic-match-head.c: Include dbgcnt.h.
22593 * gimple-match-head.c: Likewise.
22594
22595 2019-07-03 Martin Liska <mliska@suse.cz>
22596
22597 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22598 (GCOV_COUNTER_V_TOPN): New.
22599 (GCOV_COUNTER_V_INDIR): Use _topn.
22600 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22601 (GCOV_TOPN_VALUES): New.
22602 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22603 (GCOV_TOPN_VALUES_COUNTERS): New.
22604 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22605 * tree-profile.c:
22606 (gimple_init_gcov_profiler): Rename variables from one_value
22607 to topn_values.
22608 (gimple_gen_one_value_profiler): Remove.
22609 (gimple_gen_topn_values_profiler): New function.
22610 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22611 names instead of SINGLE_VALUE.
22612 (stream_out_histogram_value): Likewise.
22613 (stream_in_histogram_value): Likewise.
22614 (get_most_common_single_value): Likewise.
22615 (gimple_divmod_fixed_value_transform): Likewise.
22616 (gimple_stringops_transform): Likewise.
22617 (gimple_divmod_values_to_profile): Likewise.
22618 (gimple_stringops_values_to_profile): Likewise.
22619 (gimple_find_values_to_profile): Likewise.
22620 * value-prof.h (enum hist_type): Rename to TOPN.
22621 (gimple_gen_one_value_profiler): Remove.
22622 (gimple_gen_topn_values_profiler): New.
22623
22624 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22625
22626 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22627 if it has the DW_AT_data_member_location attribute.
22628
22629 2019-07-03 Richard Biener <rguenther@suse.de>
22630
22631 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22632 dumping.
22633
22634 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22635
22636 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22637 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22638 (tlsdesc_small_sve_<mode>): Likewise.
22639
22640 2019-07-03 Martin Liska <mliska@suse.cz>
22641
22642 * Makefile.in: Define ZSTD_LIB.
22643 * common.opt: Adjust compression level
22644 to support also zstd levels.
22645 * config.in: Regenerate.
22646 * configure: Likewise.
22647 * configure.ac: Add --with-zstd and --with-zstd-include options
22648 and detect ZSTD.
22649 * doc/install.texi: Mention zstd dependency.
22650 * gcc.c: Print supported LTO compression algorithms.
22651 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22652 (lto_compression_zstd): Likewise.
22653 (lto_uncompression_zstd): Likewise.
22654 (lto_end_compression): Dispatch in between zlib and zstd.
22655 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22656 (lto_uncompression_zlib): Make it static.
22657 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22658 * lto-section-in.c (lto_get_section_data): Pass info
22659 about used compression.
22660 * lto-streamer-out.c: By default use zstd when possible.
22661 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22662 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22663
22664 2019-07-03 Martin Liska <mliska@suse.cz>
22665
22666 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22667 * lto-section-out.c (lto_destroy_simple_output_block): Never
22668 compress LTO_section_lto section.
22669 * lto-streamer-out.c (produce_asm): Do not set major_version
22670 and minor_version.
22671 (lto_output_toplevel_asms): Likewise.
22672 (produce_lto_section): New function.
22673 (lto_output): Call produce_lto_section.
22674 (lto_write_mode_table): Do not set major_version and
22675 minor_version.
22676 (produce_asm_for_decls): Likewise.
22677 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22678 type.
22679 (struct lto_header): Remove.
22680 (struct lto_section): New struct.
22681 (struct lto_simple_header): Do not inherit from lto_header.
22682 (struct lto_file_decl_data): Add lto_section_header field.
22683
22684 2019-07-03 Martin Liska <mliska@suse.cz>
22685
22686 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22687 dead assignemts.
22688 * reg-stack.c (check_asm_stack_operands): Likewise.
22689 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22690 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22691 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22692 force_expand_binop.
22693
22694 2019-07-03 Martin Liska <mliska@suse.cz>
22695
22696 PR tree-optimization/90892
22697 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22698 in string constants.
22699
22700 2019-07-03 Martin Liska <mliska@suse.cz>
22701
22702 PR middle-end/90899
22703 * multiple_target.c (create_dispatcher_calls): Add to comdat
22704 group only if set for ifunc.
22705
22706 2019-07-03 Martin Liska <mliska@suse.cz>
22707
22708 PR target/88056
22709 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22710 Define local_object_name in outer scope in order to handle
22711 use-after-scope issue.
22712
22713 2019-07-03 Martin Liska <mliska@suse.cz>
22714
22715 * common.opt: Add fprofile-note.
22716 * coverage.c (coverage_init): Append the option
22717 to bbg_file_name.
22718 * doc/invoke.texi: Document -fprofile-note.
22719
22720 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22721
22722 PR tree-optimization/91033
22723 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22724 vect_analyze_data_refs): Add bool * arguments.
22725 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22726 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22727 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22728 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22729 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22730 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22731 vect_analyze_data_refs caller.
22732
22733 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22734 clause.
22735 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22736 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22737 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22738 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22739 OMP_CLAUSE__SCANTEMP_ entry.
22740 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22741 * tree-pretty-print.c (dump_omp_clause): Likewise.
22742 * tree-nested.c (convert_nonlocal_omp_clauses,
22743 convert_local_omp_clauses): Likewise.
22744 * omp-general.h (struct omp_for_data): Add have_scantemp and
22745 have_nonctrl_scantemp members.
22746 * omp-general.c (omp_extract_for_data): Initialize them.
22747 * omp-low.c (struct omp_context): Add scan_exclusive member.
22748 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22749 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22750 ctx->scan_exclusive.
22751 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22752 of !ctx->scan_inclusive.
22753 (lower_rec_input_clauses): Simplify gimplification of dtors using
22754 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22755 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22756 loops. Don't add barrier for reduction_omp_orig_ref if
22757 ctx->scan_??xclusive.
22758 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22759 (lower_omp_scan): Use ctx->scan_exclusive instead
22760 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22761 reductions. Use new_vard != new_var instead of repeated
22762 omp_is_reference calls.
22763 (omp_find_scan, lower_omp_for_scan): New functions.
22764 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22765 inscan reductions.
22766 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22767 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22768 and fd->have_scantemp.
22769
22770 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22771 on worksharing loop propagate it as shared clause to containing
22772 combined parallel.
22773
22774 * omp-expand.c (expand_omp_for_static_nochunk,
22775 expand_omp_for_static_chunk): For nowait worksharing loop with
22776 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22777 at the end.
22778
22779 2019-07-02 qing zhao <qing.zhao@oracle.com>
22780
22781 PR preprocessor/90581
22782 * doc/cppopts.texi: Add document for -fmax-include-depth.
22783 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22784
22785 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22786
22787 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22788 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22789 (mmx_packssdw): Ditto.
22790 (mmx_punpckhbw): Ditto.
22791 (mmx_punpcklbw): Ditto.
22792 (mmx_punpckhwd): Ditto.
22793 (mmx_punpcklwd): Ditto.
22794 (mmx_punpckhdq): Ditto.
22795 (mmx_punpckldq): Ditto.
22796 (*vec_dupv4hi): Ditto.
22797 (*vec_dupv2si): Ditto.
22798 (mmx_pmovmskb): Ditto.
22799 * config/i386/sse.md (sse_cvtpi2ps): Use
22800 TARGET_SSE2 && SSE_REG_P in split condition.
22801 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22802 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22803 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22804 (ssse3_pshufbv8qi3): Ditto.
22805 (ssse3_palignrdi): Ditto.
22806
22807 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22808
22809 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22810 with inlined save and restore.
22811
22812 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22813
22814 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22815 to be inserted on single successor edge of the entry block. Then call
22816 commit_edge_insertions instead of inserting the instructions manually.
22817 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22818 RTL expansion and rebuild jump labels chain.
22819
22820 2019-07-02 Richard Biener <rguenther@suse.de>
22821
22822 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22823 TI_CHREC_KNOWN.
22824 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22825 Define here.
22826 * tree.c (build_common_tree_nodes): Initialize them.
22827 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22828 Make declarations comments.
22829 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22830 chrec_known): Remove definitions.
22831 (initialize_scalar_evolutions_analyzer): Remove.
22832 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22833 * tree-streamer.c (preload_common_nodes): Do not preload
22834 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22835
22836 2019-07-02 Jan Hubicka <jh@suse.cz>
22837
22838 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22839 sanity check.
22840
22841 2019-07-02 Jan Hubicka <jh@suse.cz>
22842
22843 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22844 to ..
22845 (nonoverlapping_component_refs_since_match_p): ... this one;
22846 handle also non-decl bases; return -1 if search gave up.
22847 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22848 nonoverlapping_component_refs_of_decl_p_no_alias to
22849 nonoverlapping_component_refs_since_match_p_may_alias,
22850 nonoverlapping_component_refs_since_match_p_no_alias.
22851 (dump_alias_stats): Update dumping.
22852 (aliasing_matching_component_refs_p): Break out from ...;
22853 dispatch to nonoverlapping_component_refs_for_decl_p
22854 and nonoverlapping_component_refs_since_match_p.
22855 (aliasing_component_refs_p): ... here; call
22856 nonoverlapping_component_refs_p in scenarios where we can not
22857 precisely determine base match.
22858 (decl_refs_may_alias_p): Use
22859 nonoverlapping_component_refs_since_match_p.
22860 (indirect_ref_may_alias_decl_p): Do not call
22861 nonoverlapping_component_refs_p.
22862 (indirect_refs_may_alias_p): Likewise.
22863
22864 2019-07-02 Jan Hubicka <jh@suse.cz>
22865
22866 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22867 to clobber of return value.
22868
22869 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22870
22871 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22872 for is_neon_type instructions that have not already been categorized.
22873
22874 2019-07-02 Richard Biener <rguenther@suse.de>
22875
22876 PR tree-optimization/58483
22877 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22878 for MEM_REF base hashing.
22879 (equal_mem_array_ref_p): Likewise for base comparison.
22880
22881 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22882
22883 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22884 parameterized name.
22885 (signbit<mode>2): Use that name. Simplify.
22886
22887 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22888
22889 PR middle-end/66726
22890 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22891 Tune heuristic from PR71016 to allow MIN / MAX.
22892
22893 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22894
22895 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22896 parameterized name.
22897 (abs<mode>2): Use that name. Simplify.
22898
22899 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22900
22901 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22902 parameterized name.
22903 (neg<mode>2): Use that name. Simplify.
22904
22905 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22906
22907 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22908 name.
22909 (abs<mode>2): Use that name. Simplify.
22910
22911 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22912
22913 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22914 name.
22915 (neg<mode>2): Use that name. Simplify.
22916
22917 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22918
22919 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22920 ("enabled" attribute): Handle sse_noavx isa attribute.
22921 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22922 Use TARGET_SSE && SSE_REGNO_P in split condition.
22923 (*vec_dupv2sf): Ditto.
22924
22925 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22926
22927 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22928 name.
22929 (floatsi<mode>2): Use that name. Simplify.
22930
22931 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22932
22933 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22934 parameterized name.
22935 (extenddf<mode>2_vsx): Make this a parameterized name.
22936 (extenddf<mode>2): Use those names. Simplify.
22937
22938 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22939
22940 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22941 name.
22942 (eh_return): Use that name. Simplify.
22943
22944 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22945
22946 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22947 (doloop_end): Use that name. Simplify.
22948
22949 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22950
22951 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22952 parameterized name.
22953 (indirect_jump): Use that name. Simplify.
22954
22955 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22956
22957 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22958 parameterized name.
22959 (abs<mode>2): Use that name. Simplify.
22960
22961 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22962
22963 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22964 parameterized name.
22965 (fix_trunc<mode>si2): Use that name. Simplify.
22966
22967 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22968
22969 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22970 (allocate_stack): Use that name. Simplify.
22971
22972 2019-07-01 Martin Sebor <msebor@redhat.com>
22973
22974 PR middle-end/90923
22975 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22976 (hash_map::get_or_insert): Same. Reformat comment.
22977 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22978 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22979 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22980 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22981 (hash_table::hash_table (const hash_table&)): Use copy ctor
22982 instead of assignment to copy elements.
22983
22984 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22985 John David Anglin <danglin@gcc.gnu.org>
22986
22987 PR target/90963
22988 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22989 using saved frame pointer.
22990
22991 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22992
22993 PR middle-end/64242
22994 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22995 Add frame clobber and schedule blockage.
22996
22997 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22998
22999 * doc/invoke.texi (Link Options): Further editorial changes to
23000 -flinker-output docs.
23001
23002 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23003
23004 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23005 Load both operands of a PLUS into registers separately.
23006
23007 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23008
23009 * config/s390/vector.md: Fix shift count operand printing.
23010
23011 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23012
23013 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23014
23015 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23016
23017 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23018 Use recog_data to test for an output operand.
23019
23020 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23021
23022 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23023 exclude any others that are disparaged or that are bound to need
23024 a reload or spill.
23025 (ira_get_dup_out_num): Expand comment.
23026
23027 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23028
23029 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23030 constraint string for each operand/alternative combo. Only handle
23031 '%' at the start of constraint strings, and look for it outside
23032 the main loop.
23033
23034 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23035
23036 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23037 alternative_mask instead of HARD_REG_SET to represent a
23038 bitmask of alternatives.
23039 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23040 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23041
23042 2019-07-01 Martin Liska <mliska@suse.cz>
23043
23044 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23045 use () for a constructor call.
23046 (test_applying_fixits_line_out_of_range): Likewise.
23047 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23048 argument.
23049 (free_page): Likewise.
23050
23051 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23052
23053 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23054 parameter names to match usage (no functional change).
23055 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23056
23057 2019-07-01 Richard Biener <rguenther@suse.de>
23058
23059 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23060 pass parameter.
23061 (pass_fre::execute): Honor it.
23062 * passes.def: Adjust pass_fre invocations to allow iterating,
23063 add non-iterating pass_fre before late threading/dom.
23064
23065 2019-07-01 Richard Biener <rguenther@suse.de>
23066
23067 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23068 TARGET_MEM_REF handling to also handle address-taken ones.
23069
23070 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23071
23072 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23073 hardware attributes): Document avx512vp2intersect.
23074
23075 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23076
23077 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23078 (abs<mode>2): New expander.
23079 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23080 Use CODE_FOR_ssse3_absv8qi2.
23081 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23082 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23083
23084 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23085
23086 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23087 to sse, sse_noavx and avx. Update all uses.
23088
23089 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23090
23091 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23092 (*mmx_<plusminus_insn><mode>3): Ditto.
23093 (*mmx_mulv4hi3"): Ditto.
23094 (*mmx_smulv4hi3_highpart): Ditto.
23095 (*mmx_umulv4hi3_highpart): Ditto.
23096 (*mmx_pmaddwd): Ditto.
23097 (*sse2_umulv1siv1di3): Ditto.
23098 (*mmx_<code>v4hi3): Ditto.
23099 (*mmx_<code>v8qi3): Ditto.
23100 (mmx_ashr<mode>3): Ditto.
23101 ("mmx_<shift_insn><mode>3): Ditto.
23102 (*mmx_eq<mode>3): Ditto.
23103 (mmx_gt<mode>3): Ditto.
23104 (mmx_andnot<mode>3): Ditto.
23105 (*mmx_<code><mode>3): Ditto.
23106 (*mmx_pinsrw): Ditto.
23107 (*mmx_pextrw): Ditto.
23108 (mmx_pshufw_1): Ditto.
23109 (*mmx_uavgv8qi3): Ditto.
23110 (*mmx_uavgv4hi3): Ditto.
23111 ("mmx_psadbw): Ditto.
23112 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23113 (sse_cvttps2pi): Ditto.
23114 (ssse3_pmaddubsw): Ditto.
23115 (*ssse3_pmulhrswv4hi3): Ditto.
23116 (ssse3_psign<mode>3): Ditto.
23117
23118 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23119
23120 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23121 adjustment for bit-fields to all aggregate types.
23122
23123 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23124
23125 * config/rs6000/predicates.md (pcrel_address): Use
23126 SYMBOL_REF_LOCAL_P to determine if a label is local.
23127 (pcrel_external_address): New predicate.
23128 (non_prefixed_mem_operand): Delete, predicate not used.
23129 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23130 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23131 addressing.
23132 (SYMBOL_REF_PCREL_P): Likewise.
23133
23134 PR target/91009
23135 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23136 alternative.
23137 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23138 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23139 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23140
23141 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23142
23143 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23144 override on extra_headers.
23145
23146 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23147
23148 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23149 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23150 from warning.
23151 (darwin_driver_init): Likewise.
23152
23153 2019-06-28 Jan Beulich <jbeulich@suse.com>
23154
23155 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23156 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23157 Eliminate redundant alternative.
23158
23159 2019-06-28 Jan Beulich <jbeulich@suse.com>
23160
23161 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23162 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23163 Use vector_operand.
23164
23165 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23166
23167 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23168 having a lower cost regardless of the speed option.
23169
23170 2019-06-28 Jan Beulich <jbeulich@suse.com>
23171
23172 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23173 vector_operand plus, on both alternatives, "Bm" constraint.
23174
23175 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23176
23177 * config/arm/arm.md: Remove redundant constraints from
23178 define_expand but leave reload_inm and reload_outm patterns
23179 untouched since they need special constraints to work.
23180 * config/arm/arm-fixed.md: Remove redundant constraints from
23181 define_expand.
23182 * config/arm/iwmmxt.md: Likewise.
23183 * config/arm/neon.md: Likewise.
23184 * config/arm/sync.md: Likewise.
23185 * config/arm/thumb1.md: Likewise.
23186 * config/arm/vec-common.md: Likewise.
23187
23188 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23189
23190 * doc/install.texi: Document --disable-tm-clone-registry.
23191
23192 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23193
23194 PR c++/91024
23195 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23196 statements.
23197
23198 PR tree-optimization/91010
23199 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23200 return true. Otherwise, don't call operand_equal_p if offset1 or
23201 offset2 is NULL and just return false.
23202
23203 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23204
23205 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23206 user-specified float mode choice for kernel mode code.
23207
23208 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23209
23210 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23211 spec.
23212
23213 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23214
23215 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23216 use longcall for 64b code.
23217
23218 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23219
23220 * builtins.c (get_memory_rtx): Fix comment.
23221 * optabs.def (movmem_optab): Change to cpymem_optab.
23222 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23223 (emit_block_move_hints): Change movmem to cpymem.
23224 * defaults.h: Change movmem to cpymem.
23225 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23226 (default_use_by_pieces_infrastructure_p): Ditto.
23227 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23228 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23229 to cpymem.
23230 * config/aarch64/aarch64.h: Change movmem to cpymem.
23231 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23232 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23233 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23234 movmem to cpymem.
23235 * config/arc/arc-protos.h: Change movmem to cpymem.
23236 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23237 * config/arc/arc.h: Change movmem to cpymem in comment.
23238 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23239 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23240 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23241 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23242 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23243 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23244 * config/avr/avr-protos.h: Change movmem to cpymem.
23245 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23246 avr_out_movmem): Change movmem to cpymem.
23247 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23248 Change movmem to cpymem.
23249 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23250 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23251 Change movmem to cpymem.
23252 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23253 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23254 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23255 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23256 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23257 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23258 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23259 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23260 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23261 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23262 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23263 expand_small_cpymem_or_setmem,
23264 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23265 expand_set_or_cpymem_constant_prologue,
23266 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23267 * config/i386/i386-protos.h: Change movmem to cpymem.
23268 * config/i386/i386.h: Change movmem to cpymem in comment.
23269 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23270 (setmem<mode>): Change expansion function name.
23271 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23272 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23273 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23274 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23275 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23276 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23277 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23278 to cpymem.
23279 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23280 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23281 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23282 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23283 Change movmem to cpymem.
23284 * config/mips/mips.h: Change movmem to cpymem.
23285 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23286 * config/nds32/nds32-memory-manipulation.c
23287 (nds32_expand_movmemsi_loop_unknown_size,
23288 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23289 nds32_expand_movmemsi_unroll,
23290 nds32_expand_movmemsi): Change movmem to cpymem.
23291 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23292 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23293 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23294 (pa_adjust_insn_length): Change call to compute_movmem_length.
23295 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23296 movmemdi, movmemdi_prereload,
23297 movmemdi_postreload): Change movmem to cpymem.
23298 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23299 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23300 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23301 * config/riscv/riscv.h: Change movmem to cpymem.
23302 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23303 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23304 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23305 movmem to cpymem.
23306 * config/s390/s390-protos.h: Change movmem to cpymem.
23307 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23308 s390_expand_insv): Change movmem to cpymem.
23309 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23310 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23311 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23312 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23313 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23314 for nonexistent function.
23315 * config/vax/vax.h: Change movmem to cpymem in comment.
23316 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23317 * config/visium/visium.h: Change movmem to cpymem in comment.
23318 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23319 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23320 * doc/md.texi: Change movmem to cpymem and update description to match.
23321 * doc/rtl.texi: Change movmem to cpymem.
23322 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23323 * doc/tm.texi: Regenerate.
23324
23325 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23326
23327 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23328 -fvariable-expansion-in-unroller by default.
23329 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23330 default for Power.
23331
23332 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23333
23334 Revert
23335 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23336 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23337
23338 * config.gcc(rs6000-*-*): Define target_gtfiles.
23339
23340 2019-06-27 Jan Hubicka <jh@suse.cz>
23341
23342 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23343 (add_type_duplicate): When odr hash is not allocated, to nothing.
23344 (odr_based_tbaa_p): New function.
23345 (set_type_canonical_for_odr_type): New function.
23346 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23347 set_type_canonical_for_odr_type): New.
23348 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23349 ODR based TBAA are not equivalent to non-ODR types.
23350
23351 2019-06-27 Martin Liska <mliska@suse.cz>
23352
23353 PR tree-optimization/90974
23354 PR rtl-optimization/90975
23355 PR rtl-optimization/90976
23356 PR target/91016
23357 PR tree-optimization/91017
23358 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23359 unused tmp.
23360 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23361 initial commit of IRA.
23362 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23363 of op0 and op1.
23364 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23365 Remove unused mode1.
23366 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23367 to new_stmt_info.
23368
23369 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23370
23371 PR target/90991
23372 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23373 instead of register_operand for operands[1], add m to its constraints
23374 if operands[2] uses "C" constraint. Ensure in condition that if
23375 operands[2] is not 0, then operands[1] is not a MEM. For last two
23376 alternatives, use unaligned loads instead of aligned if operands[1] is
23377 misaligned_operand.
23378
23379 2019-06-27 Martin Liska <mliska@suse.cz>
23380
23381 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23382 dead assignments.
23383 * bt-load.c (move_btr_def): Likewise.
23384 * builtins.c (expand_builtin_apply_args_1): Likewise.
23385 (expand_builtin_apply): Likewise.
23386 * cfgexpand.c (expand_asm_stmt): Likewise.
23387 (construct_init_block): Likewise.
23388 * cfghooks.c (verify_flow_info): Likewise.
23389 * cfgloopmanip.c (remove_path): Likewise.
23390 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23391 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23392 * combine.c (simplify_if_then_else): Likewise.
23393 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23394 (choose_basereg): Likewise.
23395 (ix86_expand_prologue): Likewise.
23396 (ix86_preferred_output_reload_class): Likewise.
23397 * cselib.c (cselib_record_sets): Likewise.
23398 * df-scan.c (df_scan_alloc): Likewise.
23399 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23400 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23401 * emit-rtl.c (try_split): Likewise.
23402 * graphite-scop-detection.c (assign_parameter_index_in_region):
23403 Likewise.
23404 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23405 * ira-color.c (setup_profitable_hard_regs): Likewise.
23406 * ira.c (rtx_moveable_p): Likewise.
23407 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23408 * read-rtl.c (read_subst_mapping): Likewise.
23409 * regrename.c (scan_rtx): Likewise.
23410 * reorg.c (fill_slots_from_thread): Likewise.
23411 * tree-inline.c (tree_function_versioning): Likewise.
23412 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23413 * tree-ssa-sink.c (statement_sink_location): Likewise.
23414 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23415 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23416 (vect_create_epilog_for_reduction): Likewise.
23417 * tree.c (build_nonstandard_integer_type): Likewise.
23418
23419 2019-06-27 Richard Biener <rguenther@suse.de>
23420
23421 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23422
23423 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23424
23425 PR tree-optimization/89772
23426 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23427 out-of-bound accesses checking.
23428
23429 2019-06-27 Martin Liska <mliska@suse.cz>
23430
23431 PR tree-optimization/91014
23432 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23433 when LHS is NULL_TREE.
23434
23435 2019-06-27 Martin Liska <mliska@suse.cz>
23436
23437 * symbol-summary.h (traverse): Pass
23438 argument a to the call of callback.
23439 (gt_ggc_mx): Mark arguments as unused.
23440 (gt_pch_nx): Likewise.
23441
23442 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23443
23444 PR target/62147
23445 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23446 finiteness.
23447
23448 2019-06-26 Jeff Law <law@redhat.com>
23449
23450 PR tree-optimization/90883
23451 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23452 (delete_dead_or_redundant_assignment): Likewise.
23453
23454 PR tree-optimization/90883
23455 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23456 * tree-ssa-dse.c: Update various comments to distinguish between
23457 dead and redundant stores.
23458 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23459 (dse_optimize_redundant_stores): New function.
23460 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23461 Distinguish between dead and redundant calls in dump output. All
23462 callers updated.
23463 (delete_dead_or_redundant_assignment): Similarly for assignments.
23464 (dse_optimize_stmt): Handle _CHK variants. For statements which
23465 store 0 into multiple memory locations, try to prove a subsequent
23466 store is redundant.
23467
23468 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23469
23470 PR target/89021
23471 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23472 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23473
23474 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23475
23476 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23477 (branch_islands): New extern.
23478 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23479 * config/rs6000/rs6000.c: .. here.
23480
23481 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23482
23483 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23484 (powerpc*-*-*) ... to here.
23485
23486 2019-06-26 Jeff Law <law@redhat.com>
23487
23488 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23489 memcpy, memmove and memset builtins.
23490 (maybe_trim_memstar_call): Likewise.
23491
23492 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23493
23494 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23495
23496 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23497
23498 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23499
23500 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23501
23502 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23503 declaration.
23504 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23505 "static".
23506 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23507 declaration.
23508
23509 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23510
23511 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23512
23513 2019-06-26 Richard Biener <rguenther@suse.de>
23514
23515 PR ipa/90982
23516 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23517
23518 2019-06-26 Richard Biener <rguenther@suse.de>
23519
23520 * lto-streamer.h (lto_bitmap_alloc): Remove.
23521 (lto_bitmap_free): Likewise.
23522 * lto-streamer.c (lto_bitmap_alloc): Remove.
23523 (lto_bitmap_free): Likewise.
23524 (lto_obstack): Likewise.
23525 (lto_obstack_initialized): Likewise.
23526 * lto-streamer-out.c (lto_output): Use own obstack for local
23527 bitmap, free it consistently.
23528
23529 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23530
23531 PR target/90991
23532 * config/i386/sse.md
23533 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23534 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23535 insns if operands[2] is misaligned_operand.
23536
23537 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23538
23539 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23540 TARGET_POWERPC64.
23541 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23542 to GPR.
23543
23544 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23545
23546 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23547
23548 2019-06-26 Martin Liska <mliska@suse.cz>
23549
23550 PR tree-optimization/90973
23551 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23552 epilogue_cost_vec instead of prologue_cost_vec for
23553 a epilogue cost.
23554
23555 2019-06-26 Martin Liska <mliska@suse.cz>
23556
23557 * bb-reorder.c (connect_better_edge_p): Add missing else
23558 statement in the middle of if-else statements.
23559
23560 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23561 H.J. Lu <hongjiu.lu@intel.com>
23562 Olga Makhotina <olga.makhotina@intel.com>
23563
23564 * common/config/i386/i386-common.c
23565 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23566 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23567 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23568 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23569 (ix86_handle_option): Handle -mavx512vp2intersect.
23570 * config/i386/avx512vp2intersectintrin.h: New.
23571 * config/i386/avx512vp2intersectvlintrin.h: New.
23572 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23573 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23574 AVX512VP2INTERSECT.
23575 * config/i386/i386-builtin-types.def: Add new types.
23576 * config/i386/i386-builtin.def: Add new builtins.
23577 * config/i386/i386-builtins.c: (enum processor_features): Add
23578 F_AVX512VP2INTERSECT.
23579 (static const _isa_names_table isa_names_table): Ditto.
23580 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23581 __AVX512VP2INTERSECT__.
23582 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23583 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23584 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23585 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23586 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23587 * config/i386/i386-options.c (ix86_target_string): Add
23588 -mavx512vp2intersect.
23589 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23590 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23591 P2HImode and P2QImode.
23592 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23593 number for P2QImode and P2HImode.
23594 (ix86_regmode_natural_size): New function.
23595 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23596 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23597 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23598 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23599 * config/i386/i386.opt: Add -mavx512vp2intersect.
23600 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23601 avx512vp2intersectvlintrin.h.
23602 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23603 (define_mode_iterator VI48_AVX512VP2VL): New.
23604 (avx512vp2intersect_2intersect<mode>,
23605 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23606 * config.gcc: Add avx512vp2intersectvlintrin.h and
23607 avx512vp2intersectintrin.h to extra_headers.
23608 * doc/invoke.texi: Document -mavx512vp2intersect.
23609
23610 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23611
23612 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23613
23614 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23615
23616 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23617 savres_routine_syms, savres_routine_name, morestack_ref,
23618 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23619 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23620 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23621 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23622 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23623 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23624 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23625 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23626 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23627 get_stack_clash_protection_probe_interval,
23628 get_stack_clash_protection_guard_size,
23629 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23630 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23631 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23632 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23633 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23634 gen_frame_mem_offset, rs6000_savres_routine_name,
23635 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23636 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23637 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23638 rs6000_global_entry_point_prologue_needed_p,
23639 rs6000_get_separate_components, rs6000_components_for_bb,
23640 rs6000_disqualify_components, rs6000_emit_prologue_components,
23641 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23642 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23643 rs6000_output_savres_externs, rs6000_output_function_prologue,
23644 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23645 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23646 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23647 rs6000_output_function_epilogue, gen_add3_const,
23648 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23649 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23650 to rs6000-logue.c.
23651 (machine_function): Moved to rs6000.h.
23652 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23653 rs6000-internal.h.
23654 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23655 savres_routine_syms, savres_routine_name, morestack_ref,
23656 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23657 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23658 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23659 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23660 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23661 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23662 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23663 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23664 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23665 get_stack_clash_protection_probe_interval,
23666 get_stack_clash_protection_guard_size,
23667 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23668 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23669 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23670 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23671 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23672 gen_frame_mem_offset, rs6000_savres_routine_name,
23673 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23674 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23675 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23676 rs6000_global_entry_point_prologue_needed_p,
23677 rs6000_get_separate_components, rs6000_components_for_bb,
23678 rs6000_disqualify_components, rs6000_emit_prologue_components,
23679 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23680 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23681 rs6000_output_savres_externs, rs6000_output_function_prologue,
23682 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23683 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23684 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23685 rs6000_output_function_epilogue, gen_add3_const,
23686 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23687 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23688 to here from rs6000.c.
23689 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23690 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23691 quad_address_offset_p) Moved to here from rs6000.c.
23692 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23693 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23694 collector.
23695
23696 2019-06-25 Martin Liska <mliska@suse.cz>
23697
23698 * hash-table.c (hashtab_chk_error): Move here from ...
23699 * hash-table.h (hashtab_chk_error): ... here.
23700
23701 2019-06-25 Martin Liska <mliska@suse.cz>
23702
23703 PR tree-optimization/90978
23704 * df-scan.c (df_update_entry_block_defs): Remove dead else
23705 branch.
23706 (df_update_exit_block_uses): Likewise.
23707
23708 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23709 Andrew Stubbs <ams@codesourcery.com>
23710
23711 * config.gcc (thread_file): Set to gcn for AMD GCN.
23712 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23713 (TARGET_EMUTLS_VAR_INIT): New hook.
23714
23715 2019-06-25 Martin Jambor <mjambor@suse.cz>
23716
23717 PR ipa/90939
23718 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23719
23720 2019-06-25 Richard Biener <rguenther@suse.de>
23721
23722 PR tree-optimization/90930
23723 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23724 into parallel form in the last pass instance.
23725
23726 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23727
23728 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23729 (arc_legitimize_pic_address): Simplify and cleanup the function.
23730 (SYMBOLIC_CONST): Remove.
23731 (prepare_pic_move): Likewise.
23732 (prepare_move_operands): Handle complex mov cases here.
23733 (arc_legitimize_address_0): Remove call to
23734 arc_legitimize_pic_address.
23735 (arc_legitimize_address): Remove call to
23736 arc_legitimize_tls_address.
23737 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23738 (movhi_insn): Likewise.
23739
23740 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23741
23742 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23743 PTRDIFF_TYPE.
23744 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23745 format of "__intN" types for UINTMAX_TYPE.
23746 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23747 format of "__intN" types for SIZETYPE.
23748 * tree.c (build_common_tree_nodes): Accept "__intN__"
23749 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23750 * doc/invoke.texi: Document that __intN__ disables pedantic
23751 warnings.
23752
23753 2019-06-25 Jan Hubicka <jh@suse.cz>
23754
23755 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23756 base2_alias_set is non-zero before doing TBAA based disambiguation.
23757
23758 2019-06-25 Martin Liska <mliska@suse.cz>
23759
23760 PR tree-optimization/90973
23761 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23762 of prologue and epilogue.
23763
23764 2019-06-24 Jan Hubicka <jh@suse.cz>
23765
23766 * ipa-utils.h (type_with_linkage_p): Verify that type is
23767 CXX_ODR_P.
23768 (odr_type_p): Remove extra return.
23769 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23770 hash STRING_FLAG only for arrays and integers.
23771 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23772 Update analogously.
23773 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23774 Likewise.
23775 * print-tree.c (print_node): Print cxx-odr-p
23776 and string-flag.
23777 * tree.c (need_assembler_name_p): Also check that type
23778 is CXX_ODR_TYPE_P
23779 (verify_type_variant): Update verification of SRING_FLAG;
23780 also check CXX_ODR_P.
23781 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23782 (TYPE_STRING_FLAG): Use it.
23783 (TYPE_CXX_ODR_P): New macro.
23784 * dwarf2out.c (gen_array_type_die): First check that type
23785 is an array and then test string flag.
23786
23787 2019-06-24 Richard Biener <rguenther@suse.de>
23788
23789 PR tree-optimization/90972
23790 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23791 in common code, dealing with STRING_CST properly.
23792
23793 2019-06-24 Richard Biener <rguenther@suse.de>
23794
23795 PR tree-optimization/90930
23796 PR tree-optimization/90316
23797 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23798 decrement of limit.
23799
23800 2019-06-24 Martin Sebor <msebor@redhat.com>
23801
23802 * tree-pretty-print.h: Remove unnecessary punctuation characters
23803 from a diagnostic.
23804 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23805
23806 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23807
23808 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23809 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23810 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23811
23812 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23813
23814 * config/rs6000/darwin.h: Handle GCC target pragma.
23815
23816 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23817
23818 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23819
23820 2019-06-22 Jeff Law <law@redhat.com>
23821
23822 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23823
23824 2019-06-22 Jan Hubicka <jh@suse.cz>
23825
23826 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23827 give up on bitfields; continue searching for different refs
23828 appearing later.
23829
23830 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23831
23832 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23833 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23834 containing the offset as possible simd lane access. Look through
23835 widening conversion. Move the
23836 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23837
23838 2019-06-21 Richard Biener <rguenther@suse.de>
23839
23840 PR tree-optimization/90930
23841 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23842 flag on new stmts to avoid re-processing them.
23843
23844 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23845
23846 PR c++/90875 - added -Wswitch-outside-range option
23847 * doc/invoke.texi (Wswitch-outside-range): Document.
23848
23849 2019-06-21 Jeff Law <law@redhat.com>
23850
23851 PR tree-optimization/90949
23852 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23853 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23854
23855 2019-06-21 Richard Biener <rguenther@suse.de>
23856
23857 PR debug/90914
23858 * dwarf2out.c (prune_unused_types_walk): Always consider
23859 function-local extern declarations as used.
23860
23861 2019-06-21 Richard Biener <rguenther@suse.de>
23862
23863 PR tree-optimization/90913
23864 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23865 the scalar variant of if-conversion versioning.
23866
23867 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23868
23869 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23870 create another "omp scan inscan exclusive" array if
23871 !ctx->scan_inclusive.
23872 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23873 (lower_omp_scan): Likewise.
23874 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23875 2-bit bitfield for simd_lane_access_p member.
23876 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23877 aux == (void *)-4 as simd lane access.
23878 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23879 comment with permutations to show the canonical permutation order.
23880 (vectorizable_scan_store): Handle exclusive scan.
23881 (vectorizable_store): Call vectorizable_scan_store even for
23882 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23883
23884 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23885 "omp simd array" arrays with one byte elements.
23886
23887 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23888
23889 * config/alpha/alpha.md (@unaligned_store<mode>):
23890 Rename from unaligned_store<mode>.
23891 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23892 * config/alpha/sync.md (@load_locked_<mode>): Rename
23893 from load_locked_<mode>.
23894 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23895 (@atomic_compare_and_swap<mode>_1): Rename
23896 from atomic_compare_and_swap<mode>_1.
23897 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23898 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23899 Use gen_reload_in_aligned and gen_unaligned_store.
23900 (emit_load_locked): Remove.
23901 (emit_store_conditional): Ditto.
23902 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23903 (alpha_split_compare_and_swap): Ditto.
23904 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23905 (alpha_split_compare_and_swap_12): Use gen_load_locked
23906 and gen_store_conditional.
23907 (alpha_split_atomic_exchange): Ditto.
23908 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23909 (alpha_split_atomic_exchange_12): Use gen_load_locked
23910 and gen_store_conditional.
23911
23912 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23913
23914 * config/aarch64/aarch64-errata.h: New file.
23915 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23916 (CA53_ERR_843419_SPEC): Delete.
23917 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23918 * config/aarch64/aarch64-linux.h: Likewise.
23919 * config/aarch64/aarch64-netbsd.h: Likewise.
23920 * config/aarch64/aarch64-freebsd.h: Likewise.
23921
23922 2019-06-20 Marek Polacek <polacek@redhat.com>
23923
23924 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23925
23926 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23927
23928 * config/rs6000/rs6000.md (isa attribute): Add support for
23929 for a future processor.
23930
23931 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23932
23933 PR target/54855
23934 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23935 standard scalar operation pattern for V2DF.
23936 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23937 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23938 (*ieee_<ieee_maxmin><mode>3): Likewise.
23939 (vec_setv2df_0): Likewise.
23940
23941 2019-06-20 Jan Hubicka <jh@suse.cz>
23942
23943 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23944 parameter; it has no use in gimple memory model.
23945 (indirect_ref_may_alias_decl_p): Update.
23946
23947 2019-06-20 Martin Liska <mliska@suse.cz>
23948
23949 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23950 to 10.
23951
23952 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23953
23954 * tree-vect-stmts.c (enum scan_store_kind): New type.
23955 (scan_store_can_perm_p): Change last argument from int * to
23956 vec<enum scan_store_kind> *, record precisely which permutations
23957 need whole vector left shift or that plus VEC_COND_EXPR.
23958 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23959 and additional VEC_COND_EXPR only for those iterations that need it.
23960
23961 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23962
23963 * config.gcc: Fix ARM --with-fpu checking and error message.
23964
23965 2019-06-19 Marek Polacek <polacek@redhat.com>
23966
23967 PR c++/60364 - noreturn after first decl not diagnosed.
23968 * attribs.c (get_attribute_namespace): No longer static.
23969 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23970 attributes.
23971 (attr_noreturn_exclusions): Make it extern.
23972 * attribs.h (get_attribute_namespace): Declare.
23973 * tree-inline.c (function_attribute_inlinable_p): Use
23974 get_attribute_name.
23975
23976 2019-06-19 Martin Sebor <msebor@redhat.com>
23977
23978 PR tree-optimization/90626
23979 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23980
23981 PR tree-optimization/90626
23982 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23983 (handle_builtin_string_cmp): Call it.
23984
23985 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23986
23987 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23988 and DARWIN_NOPIE_SPEC.
23989 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23990 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23991 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23992 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23993 (DARWIN_EXPORT_DYNAMIC): Delete.
23994 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23995 and pie options processing to darwin.h.
23996 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23997
23998 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23999
24000 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24001 in computing the number of options to be moved.
24002
24003 2019-06-19 Maya Rashish <coypu@sdf.org>
24004
24005 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24006 (CLEAR_INSN_CACHE) Use it.
24007
24008 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24009
24010 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24011
24012 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24013
24014 PR middle-end/84521
24015 * builtins.c (expand_builtin_setjmp_setup): Save
24016 hard_frame_pointer_rtx.
24017 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24018 restore fp.
24019 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24020 non-local goto.
24021 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24022 elimination code.
24023 (remove_reg_equal_offset_note): Remove unused function.
24024 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24025 code.
24026 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24027 (arc_builtin_setjmp_frame_value): Remove function.
24028 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24029 (avr_builtin_setjmp_frame_value): Remove function.
24030 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24031 (ix86_builtin_setjmp_frame_value): Remove function.
24032 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24033 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24034 (sparc_builtin_setjmp_frame_value): Remove function.
24035 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24036 (vax_builtin_setjmp_frame_value): Remove function.
24037 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24038 pointer if has_nonlocal_label.
24039
24040 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24041
24042 * doc/md.texi: Document vec_shl_<mode> pattern.
24043 * optabs.def (vec_shl_optab): New optab.
24044 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24045 argument, if == vec_shl_optab, check for left whole vector shift
24046 pattern rather than right shift.
24047 (expand_vec_perm_const): Add vec_shl_optab support.
24048 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24049 in the comment.
24050 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24051 can be handled by vec_shl_optab.
24052 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24053 (check_scan_store): Use it.
24054 (vectorizable_scan_store): If target can't do normal permutations,
24055 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24056 after it.
24057 * config/i386/sse.md (vec_shl_<mode>): New expander.
24058
24059 * omp-low.c (lower_rec_input_clauses): Handle references properly
24060 in inscan clauses.
24061 (lower_omp_scan): Likewise.
24062
24063 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24064
24065 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24066 mem_mode is BLKmode.
24067
24068 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24069
24070 PR target/90922
24071 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24072 pointer adjustment for the case of no callee-saved registers and
24073 stack frame bigger than 128 bytes.
24074
24075 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24076
24077 PR middle-end/90862
24078 * omp-low.c (check_omp_nesting_restrictions): Handle
24079 GF_OMP_TARGET_KIND_OACC_DECLARE.
24080
24081 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24082
24083 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24084 (@add<mode>3_carry): Rename from add<mode>3_carry.
24085 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24086 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24087 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24088 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24089 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24090 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24091 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24092 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24093 (cmpstrnsi): Use gen_cmp_1.
24094 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24095 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24096 (@umonitor_<mode>): Rename from umonitor_<mode>.
24097 * config/i386/i386-expand.c (ix86_expand_copysign):
24098 Use gen_copysign3_const and gen_copysign3_var.
24099 (ix86_expand_xorsign): Use gen_xorsign3_1.
24100 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24101 gen_sub3_carry_ccgz and gen_cmp1.
24102 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24103 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24104 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24105 (ix86_split_lshr): Ditto.
24106 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24107
24108 2019-06-18 Jason Merrill <jason@redhat.com>
24109
24110 * tree.c (build_constructor): Add MEM_STAT_DECL.
24111
24112 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24113
24114 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24115 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24116 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24117 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24118 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24119 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24120 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24121 Use CC_NZC instead of CC.
24122 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24123 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24124 (aarch64_print_operand): Handle E_CC_NZCmode.
24125 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24126 of gen_set_clobber_cc.
24127
24128 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24129
24130 * config/aarch64/aarch64-sve.md: Tabify file.
24131
24132 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24133
24134 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24135 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24136 * config/aarch64/aarch64-sve.md: Use it.
24137
24138 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24139
24140 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24141 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24142 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24143 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24144 (aarch64_expand_sve_vec_cmp_int): Use it.
24145 (aarch64_expand_sve_vec_cmp_float): Likewise.
24146 * config/aarch64/aarch64-sve.md: Likewise throughout.
24147
24148 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24149 Kugan Vivekanandarajah <kuganv@linaro.org>
24150
24151 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24152 (*cond_<optab><mode>_z): Fold into...
24153 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24154 operand 4 can be tied to operand 0 (either inherently or via RA).
24155
24156 2019-06-18 Richard Biener <rguenther@suse.de>
24157
24158 PR debug/90900
24159 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24160 as if optimized away.
24161
24162 2019-06-18 Tom de Vries <tdevries@suse.de>
24163
24164 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24165 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24166 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24167 Rename to ...
24168 (define_insn "@set_softstack_<mode>"): ... this.
24169 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24170 (define_insn "@omp_simt_enter_<mode>"): ... this.
24171 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24172 (define_insn "@omp_simt_exit_<mode>"): ... this.
24173
24174 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24175
24176 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24177 vf parameter. Restore the previous iv step of nscalars_step,
24178 but give it iv_type rather than compare_type. Tweak code order
24179 to match the comments.
24180 (vect_set_loop_condition_masked): Update accordingly.
24181 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24182 for iv_precision. Tweak comment formatting.
24183
24184 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24185
24186 * config/darwin.c: Strip trailing whitespace.
24187
24188 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24189
24190 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24191 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24192
24193 2019-06-18 Martin Jambor <mjambor@suse.cz>
24194
24195 PR ipa/90889
24196 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24197 caller does not have flag_ipa_cp set.
24198
24199 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24200
24201 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24202 from "*fold_left_plus_<mode>", updated operands order.
24203 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24204 * internal-fn.c (mask_fold_left_direct): New define.
24205 (expand_mask_fold_left_optab_fn): Likewise.
24206 (direct_mask_fold_left_optab_supported_p): Likewise.
24207 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24208 * optabs.def (mask_fold_left_plus_optab): New optab.
24209 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24210 masked internal_fn for a reduction ifn.
24211 (vectorize_fold_left_reduction): Add support for masking reductions.
24212
24213 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24214
24215 PR middle-end/80791
24216 * target.def (predict_doloop_p): New hook.
24217 * targhooks.h (default_predict_doloop_p): New declaration.
24218 * targhooks.c (default_predict_doloop_p): New function.
24219 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24220 * doc/tm.texi: Regenerate.
24221 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24222 (TARGET_PREDICT_DOLOOP_P): New macro.
24223 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24224
24225 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24226
24227 * omp-low.c (struct omp_context): Add scan_inclusive field.
24228 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24229 if inclusive scan.
24230 (struct omplow_simd_context): Add lastlane member.
24231 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24232 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24233 1 or 2 argument.
24234 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24235 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24236 (lower_omp_scan): New function.
24237 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24238 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24239 check 3rd argument if present rather than 2nd.
24240 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24241 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24242 2-bit bitfield.
24243 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24244 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24245 than 2nd.
24246 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24247 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24248 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24249 init.
24250 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24251 IFN_GOMP_SIMD_LANE argument.
24252 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24253 encoded ->aux value.
24254 * tree-vect-stmts.c: Include attribs.h.
24255 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24256 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24257 functions.
24258 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24259 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24260
24261 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24262
24263 PR target/62055
24264 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24265 (*nabs<mode>2_1): Ditto.
24266 (nabs sse-reg splitter): New splitter.
24267 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24268
24269 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24270
24271 PR bootstrap/90873.
24272 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24273 TMR index check.
24274
24275 2019-06-17 Tom de Vries <tdevries@suse.de>
24276
24277 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24278 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24279 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24280 ...
24281 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24282 match_operand 0.
24283 (define_insn "omp_simt_enter_insn"): Rename to ...
24284 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24285 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24286 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24287 gen_omp_simt_enter_si.
24288 (define_expand "omp_simt_exit"): New.
24289 (define_insn "omp_simt_exit"): Rename to ...
24290 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24291 match_operand 0.
24292
24293 2019-06-17 Matthew Green <mrg@eterna.com.au>
24294 Maya Rashish <coypu@sdf.org>
24295
24296 * config.gcc (aarch64*-*-netbsd*): New target.
24297 * config/aarch64/aarch64-netbsd.h: New file.
24298 * config/aarch64/t-aarch64-netbsd: Likewise.
24299
24300 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24301
24302 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24303 the access path from base to first VIEW_CONVERT_EXPR or
24304 BIT_FIELD_REF.
24305
24306 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24307
24308 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24309 access path on BIT_FIELD_REFs.
24310
24311 2019-06-17 Martin Liska <mliska@suse.cz>
24312
24313 PR ipa/90874
24314 * ipa-utils.h (odr_type_p): Remove dead code.
24315
24316 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24317
24318 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24319 alternative Solaris 11.4 format.
24320 * configure: Regenerate.
24321
24322 2019-06-17 Tom de Vries <tdevries@suse.de>
24323
24324 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24325 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24326 match_operand 0.
24327 (define_insn "call_value_insn"): Rename to ...
24328 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24329 match_operand 0.
24330 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24331 DI.
24332
24333 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24334
24335 PR middle-end/64242
24336 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24337 frame clobbers and schedule block.
24338 (builtin_longjmp): Likewise.
24339
24340 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24341
24342 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24343 describe how to perform MSPABI compliant 64-bit shift.
24344 * config/msp430/msp430.md (ashldi3): New define_expand.
24345 (ashrdi3): New define_expand.
24346 (lshrdi3): New define_expand.
24347
24348 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24349
24350 * doc/sourcebuild.texi: Document new effective target keyword
24351 longlong64.
24352
24353 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24354
24355 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24356 indirect_refs_may_alias_p): Revert accidental commits.
24357
24358 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24359 at the end of structures.
24360
24361 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24362
24363 * config/darwin.c (machopic_indirect_call_target): Use renamed
24364 darwin_picsymbol_stubs to decide on output.
24365 (darwin_override_options): Handle darwin_picsymbol_stubs.
24366 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24367 (LD64_VERSION): Revise default.
24368 * config/darwin.opt: (mpic-symbol-stubs): New option.
24369 (darwin_picsymbol_stubs): New variable.
24370 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24371 rename to TARGET_MACHO_PICSYM_STUBS.
24372 * config/i386/i386.c (output_pic_addr_const): Likewise.
24373 * config/i386/i386.h Likewise.
24374 * config/rs6000/darwin.h: Likewise.
24375 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24376 darwin_picsymbol_stubs.
24377
24378 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24379
24380 * config/darwin.opt (prebind, noprebind, seglinkedit,
24381 noseglinkedit): Add RejectNegative.
24382
24383 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24384
24385 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24386 in my previous patch.
24387
24388 2019-06-16 Tom de Vries <tdevries@suse.de>
24389
24390 PR tree-optimization/89376
24391 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24392
24393 2019-06-15 Maya Rashish <coypu@sdf.org>
24394
24395 * doc/invoke.texi (Spec Files): Update location of the
24396 Fortran spec file.
24397
24398 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24399
24400 * doc/extend.texi (Common Function Attributes): Clarify
24401 no_sanitize. Fix grammar.
24402
24403 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24404
24405 * tree-ssa-alias.c (alias_stats): Add
24406 nonoverlapping_component_refs_p_may_alias,
24407 nonoverlapping_component_refs_p_no_alias,
24408 nonoverlapping_component_refs_of_decl_p_may_alias,
24409 nonoverlapping_component_refs_of_decl_p_no_alias.
24410 (dump_alias_stats): Dump them.
24411 (nonoverlapping_component_refs_of_decl_p): Add stats.
24412 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24413 ARRAY_REF.
24414
24415 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24416
24417 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24418 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24419 only.
24420 (*anddi3_doubleword): Split before reload. Merge with
24421 anddi->zext pre-reload splitter.
24422 (*andndi3_doubleword): Split before reload.
24423 (*<code>di3_doubleword): Ditto.
24424 (*one_cmpldi2_doubleword): Ditto.
24425
24426 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24427
24428 PR middle-end/90779
24429 * gimplify.c: Include omp-offload.h and context.h.
24430 (gimplify_bind_expr): Add "omp declare target" attributes
24431 to static block scope variables inside of target region or target
24432 functions.
24433
24434 2019-06-15 Tom de Vries <tdevries@suse.de>
24435
24436 PR tree-optimization/90009
24437 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24438 Return NULL if bb contains IFN_UNIQUE.
24439
24440 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24441
24442 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24443 (un): New define_mode_attr.
24444 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24445 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24446 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24447 merge into ...
24448 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24449
24450 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24451
24452 * config/darwin.opt: Add RejectNegative where needed, reorder
24453 and add minimal functional descriptions.
24454
24455 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24456
24457 PR rtl-optimization/90765
24458 * calls.c (update_stack_alignment_for_call): New function.
24459 (expand_call): Call update_stack_alignment_for_call when
24460 outgoing parameter is passed in the stack.
24461 (emit_library_call_value_1): Likewise.
24462 * function.c (locate_and_pad_parm): Don't update
24463 stack_alignment_needed and preferred_stack_boundary.
24464
24465 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24466
24467 PR target/90877
24468 * config/i386/i386-features.c
24469 (dimode_scalar_chain::compute_convert_gain): Replace
24470 mmxsse_to_integer with sse_to_integer.
24471 * config/i386/i386.c (ix86_register_move_cost): Verify that
24472 moves between MMX and non-MMX units require secondary memory.
24473 Correct costs of moves between SSE and integer units.
24474 * config/i386/i386.h (processor_costs): Rename cost of moving
24475 SSE register to integer to sse_to_integer. Rename cost of
24476
24477 2019-06-14 Matt Thomas <matt@3am-software.com>
24478 Matthew Green <mrg@eterna.com.au>
24479 Nick Hudson <skrll@netbsd.org>
24480 Maya Rashish <coypu@sdf.org>
24481 Richard Earnshaw <rearnsha@arm.com>
24482
24483 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24484 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24485 * config/arm/netbsd-eabi.h: New file.
24486 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24487 redefining.
24488 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24489 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24490 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24491 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24492
24493 2019-06-14 Richard Biener <rguenther@suse.de>
24494
24495 * tree-loop-distribution.c (classify_partition): Return
24496 whether a reduction appeared in all partitions and do not
24497 stop builtin detection because of this.
24498 (distribute_loop): Sort a non-builtin partition last if
24499 there's a reduction in all partitions and make sure the
24500 partition prevailing as last is not a builtin.
24501
24502 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24503
24504 PR ipa/90401
24505 * ipa-prop.c (add_to_agg_contents_list): New function.
24506 (clobber_by_agg_contents_list_p): Likewise.
24507 (extract_mem_content): Likewise.
24508 (get_place_in_agg_contents_list): Delete.
24509 (determine_known_aggregate_parts): Renamed from
24510 determine_locally_known_aggregate_parts. New parameter
24511 aa_walk_budget_p.
24512
24513 2019-06-13 Martin Sebor <msebor@redhat.com>
24514
24515 PR tree-optimization/90662
24516 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24517 to the same type.
24518
24519 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24520
24521 PR bootstrap/90873
24522 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24523 dbase is not TARGET_MEM_REF.
24524
24525 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24526
24527 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24528 Update all uses.
24529 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24530 Do not generate DImode extends for 32bit targets.
24531 (and->zext post-reload splitter): Use gen_extend_insn
24532 instead of indirect functions.
24533 (anddi->zext pre-reload splitter): New.
24534 (*zext<mode>_doubleword_and): Remove.
24535 (*zext<mode>_doubleword): Ditto.
24536 (*zextsi_doubleword): Dittto.
24537
24538 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24539
24540 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24541 Use gen_sub3_insn instead of indirect function.
24542 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24543 indirect function.
24544 (ix86_adjust_counter): Ditto.
24545
24546 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24547 Lijia He <helijia@linux.ibm.com>
24548
24549 PR tree-optimization/77820
24550 * tree-ssa-threadedge.c
24551 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24552 function.
24553 (thread_across_edge): Add call to
24554 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24555
24556 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24557
24558 * config/darwin-driver.c (validate_macosx_version_min): New.
24559 (darwin_default_min_version): Cleanup and validate supplied version.
24560 (darwin_driver_init): Likewise and push cleaned version into opts.
24561
24562 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24563
24564 PR tree-optimization/90869
24565 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24566 converts in MEM_REF referencing decl rather than view converts
24567 from decl type to MEM_REF type.
24568
24569 2019-06-13 Richard Biener <rguenther@suse.de>
24570
24571 PR tree-optimization/90856
24572 * tree-sra.c (build_ref_for_model): Only use
24573 build_reconstructed_reference when address-spaces are the same.
24574
24575 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24576
24577 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24578 wrap ei variable name in the declaration in ()s.
24579 (nvptx_single): Actually use mode_label variable. Formatting fix.
24580
24581 2019-06-13 Richard Biener <rguenther@suse.de>
24582
24583 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24584 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24585 also return the condition stmt.
24586 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24587 loop we can version and version that, reusing the loop version
24588 created by if-conversion instead of versioning again.
24589
24590 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24591
24592 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24593 may_contain_p.
24594 * tree-vrp (value_range_base::may_contain_p): Call into
24595 value_inside_range.
24596 (value_inside_range): Make private inside value_range_base class.
24597 Take min/max from *this.
24598 (range_includes_p): Remove.
24599 * tree-vrp.h (value_range_base): Add value_inside_range.
24600 (range_includes_p): Remove.
24601 (range_includes_zero_p): Call may_contain_p.
24602 * vr-values.c (compare_range_with_value): Same.
24603
24604 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24605
24606 * doc/extend.texi (ARC Function Attributes): Update info.
24607
24608 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24609
24610 PR tree-optimization/89713
24611 * doc/invoke.texi (-ffinite-loops): Document new option.
24612 * common.opt (-ffinite-loops): New option.
24613 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24614 IFN_GOACC_LOOP calls as necessary.
24615 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24616 is finite.
24617 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24618 IFN_GOACC_LOOP call is not used.
24619 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24620
24621 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24622
24623 PR target/88838
24624 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24625 compare_type is not with Pmode size, we will create an IV with
24626 Pmode size with truncated use (i.e. converted to the correct type).
24627 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24628 (vect_iv_limit_for_full_masking): New. Factored out of
24629 vect_set_loop_condition_masked.
24630 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24631 (vect_iv_limit_for_full_masking): Declare.
24632
24633 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24634
24635 PR target/88834
24636 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24637 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24638 (get_alias_ptr_type_for_ptr_address): Likewise.
24639 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24640 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24641 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24642 allow_reg_index_p.
24643
24644 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24645
24646 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24647
24648 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24649
24650 * common/config/pru/pru-common.c: New file.
24651 * config.gcc: Add PRU target.
24652 * config/pru/alu-zext.md: New file.
24653 * config/pru/constraints.md: New file.
24654 * config/pru/predicates.md: New file.
24655 * config/pru/pru-opts.h: New file.
24656 * config/pru/pru-passes.c: New file.
24657 * config/pru/pru-pragma.c: New file.
24658 * config/pru/pru-protos.h: New file.
24659 * config/pru/pru.c: New file.
24660 * config/pru/pru.h: New file.
24661 * config/pru/pru.md: New file.
24662 * config/pru/pru.opt: New file.
24663 * config/pru/t-pru: New file.
24664 * doc/extend.texi: Document PRU pragmas.
24665 * doc/invoke.texi: Document PRU-specific options.
24666 * doc/md.texi: Document PRU asm constraints.
24667
24668 2019-06-12 Martin Sebor <msebor@redhat.com>
24669
24670 PR middle-end/90676
24671 * tree-pretty-print.c (dump_mem_ref): New function. Include
24672 MEM_REF type in output when different size than operand.
24673 (dump_generic_node): Move code to dump_mem_ref and call it.
24674
24675 2019-06-12 Martin Sebor <msebor@redhat.com>
24676
24677 PR tree-optimization/90662
24678 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24679 to arrays.
24680
24681 2019-06-12 Tom de Vries <tdevries@suse.de>
24682
24683 PR tree-optimization/90009
24684 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24685
24686 2019-06-12 Martin Liska <mliska@suse.cz>
24687
24688 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24689 the created map.
24690 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24691 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24692 Do not sanitize created maps.
24693
24694 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24695
24696 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24697 value_range::singleton_p.
24698 * tree-vrp.c (value_range_constant_singleton): Remove.
24699 * tree-vrp.h (value_range_constant_singleton): Remove.
24700 * vr-values.c (vr_values::singleton): Use
24701 value_range::singleton_p.
24702
24703 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24704
24705 PR target/90811
24706 * cfgexpand.c (align_local_variable): Add really_expand argument,
24707 don't SET_DECL_ALIGN if it is false.
24708 (add_stack_var): Add really_expand argument, pass it through to
24709 align_local_variable.
24710 (expand_one_stack_var_1): Pass true as really_expand to
24711 align_local_variable.
24712 (expand_one_ssa_partition): Pass true as really_expand to
24713 add_stack_var.
24714 (expand_one_var): Pass really_expand through to add_stack_var.
24715
24716 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24717
24718 * config/arm/iterators.md (VABAL): New int iterator.
24719 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24720 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24721 UNSPEC_VABAL_U values.
24722
24723 2019-06-12 Martin Liska <mliska@suse.cz>
24724
24725 * value-prof.c (stream_out_histogram_value): Only first value
24726 can't be negative.
24727
24728 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24729
24730 PR c/90760
24731 * symtab.c (symtab_node::set_section): Allow being called on aliases
24732 as long as they aren't analyzed yet.
24733
24734 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24735
24736 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24737 to `mips_set_text_contents_type' to indicate whether a
24738 non-debug insn follows.
24739
24740 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24741
24742 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24743 enabling -mpcrel by default.
24744 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24745 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24746 that the test against -mcpu=future is done first. Then test if
24747 -mprefixed-addr is on for -mpcrel.
24748 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24749
24750 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24751
24752 PR target/90811
24753 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24754 instead of and.u%d.
24755
24756 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24757
24758 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24759
24760 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24761
24762 PR c++/90449 - add -Winaccessible-base option.
24763 * doc/invoke.texi (Winaccessible-base): Document.
24764
24765 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24766
24767 PR tree-optimization/62041
24768 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24769
24770 2019-06-11 Jason Merrill <jason@redhat.com>
24771
24772 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24773 * tree.c (get_tree_code_name): Likewise.
24774 * print-tree.c (print_node): Only briefly print a node with an
24775 invalid code.
24776
24777 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24778
24779 PR bootstrap/90819
24780 * trans-mem.c (tm_memopt_compute_available): Add assertion
24781 that blocks is not empty. Formatting fix.
24782
24783 2019-06-11 Martin Liska <mliska@suse.cz>
24784
24785 PR c++/87847
24786 * hash-table.h: Extend create_gcc, add one parameter
24787 that is passed into hash_table::hash_table.
24788
24789 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24790
24791 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24792 New prototype.
24793 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24794 Emit clobber also for non-sse operations.
24795 (ix86_split_fp_absneg_operator): New function.
24796 * config/i386/i386.md (SSEMODEF): New mode iterator.
24797 (ssevecmodef): New mode attribute.
24798 (<code>tf2): Use absneg code iterator.
24799 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24800 Add three-operand AVX alternatives.
24801 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24802 Use absneg code iterator and X87MODEF mode iterator.
24803 (absneg fp_reg non-sse splitter): Call absneg code iterator
24804 and X87MODEF mode iterator.
24805 (absneg general_reg non-sse splitter): Use absneg code iterator
24806 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24807 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24808 code iterator. Add three-operand AVX alternative.
24809 (absneg sse_reg splitter): Use absneg code iterator
24810 and SSEMODEF mode iterator. Handle AVX operands.
24811 (absneg fp_reg splitter): Use absneg code iterator
24812 and MODEF mode iterator.
24813 (absneg general_reg splitter): Merge splitters using MODEF mode
24814 iterator. Use absneg code iterator. Call
24815 ix86_split_fp_absneg_operator.
24816 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24817 Do not enable for non-sse modes before reload.
24818 (CSGNMODE): Remove.
24819 (CSGNVMODE): Ditto.
24820 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24821 ssevecmodef mode attribute instaed of CSGNVMODE.
24822 (copysign<mode>3_const): Ditto.
24823 (copysign<mode>3_var): Ditto.
24824 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24825 Use absneg code iterator. Simplify code using std::swap.
24826 * config/i386/predicates.md (absneg_operator): Remove.
24827
24828 2019-06-10 Martin Sebor <msebor@redhat.com>
24829
24830 * gimple-fold.c (get_range_strlen): Update comment that didn't
24831 make it into r267503 or related commits.
24832
24833 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24834
24835 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24836 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24837
24838 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24839
24840 * tree.def (OMP_SCAN): New tree code.
24841 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24842 OMP_CLAUSE_EXCLUSIVE.
24843 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24844 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24845 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24846 OMP_CLAUSE_{IN,EX}CLUSIVE.
24847 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24848 * tree-nested.c (convert_nonlocal_reference_stmt,
24849 convert_local_reference_stmt, convert_gimple_call): Handle
24850 GIMPLE_OMP_SCAN.
24851 * tree-pretty-print.c (dump_omp_clause): Handle
24852 OMP_CLAUSE_{IN,EX}CLUSIVE.
24853 (dump_generic_node): Handle OMP_SCAN.
24854 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24855 * gimple.h (gomp_scan): New type.
24856 (is_a_helper <gomp_scan *>::test,
24857 is_a_helper <const gomp_scan *>::test): New templates.
24858 (gimple_build_omp_scan): Declare.
24859 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24860 gimple_omp_scan_set_clauses): New inline functions.
24861 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24862 * gimple.c (gimple_build_omp_scan): New function.
24863 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24864 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24865 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24866 GIMPLE_OMP_TASKGROUP.
24867 (dump_gimple_omp_scan): New function.
24868 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24869 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24870 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24871 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24872 (is_gimple_stmt): Handle OMP_SCAN.
24873 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24874 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24875 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24876 mentioned in nested #pragma omp scan. Handle
24877 OMP_CLAUSE_{IN,EX}CLUSIVE.
24878 (gimplify_expr): Handle OMP_SCAN.
24879 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24880 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24881 simd constructs.
24882 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24883 GIMPLE_OMP_SCAN.
24884
24885 2019-06-10 Martin Liska <mliska@suse.cz>
24886
24887 * ipa-cp.c (ignore_edge_p): New function.
24888 (build_toporder_info): Use it.
24889 * ipa-inline.c (ignore_edge_p): New function.
24890 (inline_small_functions): Use it.
24891 * ipa-pure-const.c (ignore_edge_for_nothrow):
24892 Verify opt_for_fn for caller and callee.
24893 (ignore_edge_for_pure_const): Likewise.
24894 * ipa-reference.c (ignore_edge_p): Extend to check
24895 for opt_for_fn.
24896 * ipa-utils.c (searchc): Refactor.
24897 * ipa-utils.h: Fix coding style.
24898
24899 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24900
24901 * config/arc/arc.c (arc_rtx_costs): Update costs.
24902
24903 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24904
24905 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24906 (arc_split_ior): Likewise.
24907 (arc_check_mov_const): Likewise.
24908 (arc_split_mov_const): Likewise.
24909 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24910 (arc_rtx_costs): Replace check Crr with Cax constraint.
24911 (prepare_move_operands): Cleanup, remove unused code.
24912 (arc_split_ior): New function.
24913 (arc_check_ior_const): Likewise.
24914 (arc_split_mov_const): Likewise.
24915 (arc_check_mov_const): Likewise.
24916 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24917 in define_insn_and_split pattern.
24918 (iorsi3): Likewise.
24919 (mulsi3_v2): Add new matching variant.
24920 (andsi3_i): Cleanup pattern.
24921 (rotrsi3_cnt1): Update pattern.
24922 (rotrsi3_cnt8): New pattern.
24923 (ashlsi2_cnt8): Likewise.
24924 (ashlsi2_cnt16): Likewise.
24925 * config/arc/constraints.md (C0p): Update constraint.
24926 (Crr): Remove it.
24927 (C0x): New pattern.
24928 (Cax): New pattern.
24929
24930 2019-06-10 Martin Liska <mliska@suse.cz>
24931
24932 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24933 Update coding style.
24934 (sem_item_optimizer::dump_cong_classes):
24935 Print how many items are in a non-singular class. Improve
24936 coding style.
24937
24938 2019-06-10 Martin Liska <mliska@suse.cz>
24939
24940 * value-prof.c (dump_histogram_value): Change dump format.
24941 (gimple_mod_subtract_transform): Remove legacy comment.
24942
24943 2019-06-10 Martin Liska <mliska@suse.cz>
24944
24945 * value-prof.c (dump_histogram_value): Print histogram values
24946 only if present.
24947
24948 2019-06-10 Martin Liska <mliska@suse.cz>
24949
24950 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24951 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24952 * ipa-profile.c (ipa_profile_generate_summary):
24953 Use get_most_common_single_value.
24954 * tree-profile.c (gimple_init_gcov_profiler):
24955 Instrument with __gcov_one_value_profiler_v2
24956 and __gcov_indirect_call_profiler_v4.
24957 * value-prof.c (dump_histogram_value):
24958 Print all values for HIST_TYPE_SINGLE_VALUE.
24959 (stream_out_histogram_value): Update assert for
24960 N values.
24961 (stream_in_histogram_value): Set number of
24962 counters for HIST_TYPE_SINGLE_VALUE.
24963 (get_most_common_single_value): New.
24964 (gimple_divmod_fixed_value_transform):
24965 Use get_most_common_single_value.
24966 (gimple_ic_transform): Likewise.
24967 (gimple_stringops_transform): Likewise.
24968 (gimple_find_values_to_profile): Set number
24969 of counters for HIST_TYPE_SINGLE_VALUE.
24970 * value-prof.h (get_most_common_single_value): New.
24971
24972 2019-06-10 Martin Liska <mliska@suse.cz>
24973
24974 * hash-map.h: Pass default value to hash_table ctor.
24975 * hash-table.h: Add default value to call of a ctor.
24976
24977 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24978
24979 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24980 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24981
24982 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24983
24984 PR target/90751
24985 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24986 Call pa_output_function_label.
24987 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24988 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24989 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24990 to declaration.
24991 (pa_linux_output_function_prologue): Declare.
24992 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24993 (pa_output_function_label): New.
24994 (pa_output_function_prologue): Revise to use pa_output_function_label.
24995 (pa_linux_output_function_prologue): New.
24996 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24997
24998 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24999
25000 * tree-vrp.h (value_range_base::intersect): New.
25001 (value_range::intersect_helper): Move from here...
25002 (value_range_base::intersect_helper): ...to here.
25003 * tree-vrp.c (value_range::intersect_helper): Rename to...
25004 (value_range_base::intersect_helper): ...this, and rewrite to
25005 return a value instead of modifying THIS in place.
25006 Also, move equivalence handling...
25007 (value_range::intersect): ...here, while calling intersect_helper.
25008 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25009 calling intersect.
25010 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25011 Same.
25012 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25013
25014 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25015
25016 * Makefile.in (genprogerr): Add condmd.
25017 (genprog): Remove it here.
25018
25019 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25020
25021 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25022
25023 2019-06-07 Richard Biener <rguenther@suse.de>
25024
25025 PR debug/90574
25026 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25027 that appear after user labels.
25028
25029 2019-06-07 Martin Liska <mliska@suse.cz>
25030
25031 * cselib.c (cselib_init): Disable hash table
25032 sanitization.
25033 * hash-set.h: Pass new default argument to m_table.
25034 * hash-table.c: Add global variable with hash table
25035 sanitization limit.
25036 * hash-table.h (Allocator>::hash_table): Add new argument
25037 to ctor.
25038 (hashtab_chk_error): New.
25039 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25040 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25041 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25042
25043 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25044
25045 * common.opt (flto-odr-type-merging): Ignore.
25046 * invoke.texi (-flto-odr-type-merging): Remove.
25047 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25048 (can_be_vtable_hashed_p): Remove.
25049 (hash_odr_vtable): Remove.
25050 (odr_vtable_hasher::hash): Remove.
25051 (types_same_for_odr): Remove.
25052 (types_odr_comparable): Remove.
25053 (odr_vtable_hasher::equal): Remove.
25054 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25055 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25056 (get_odr_type): Do not use vtable hash.
25057 (dump_odr_type): Remove commented out code.
25058 (build_type_inheritance_graph): Do not allocate vtable hash.
25059 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25060 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25061 (odr_type_p): Likewise.
25062 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25063 test.
25064
25065 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25066
25067 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25068 immediately after same_types_for_tbaa_p returns -1 and continue
25069 looking for possible exact match; if matching types are arrays
25070 watch for partial overlaps.
25071 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25072 (indirect_refs_may_alias_p): Do type based disambiguation first;
25073 update comment.
25074
25075 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25076
25077 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25078
25079 2019-06-07 Martin Liska <mliska@suse.cz>
25080
25081 * doc/invoke.texi: Remove param.
25082 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25083 Remove.
25084 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25085 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25086 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25087 * profile.c (instrument_values): Remove
25088 HIST_TYPE_INDIR_CALL_TOPN.
25089 * tree-profile.c (init_ic_make_global_vars):
25090 Always build __gcov_indirect_call only.
25091 (gimple_init_gcov_profiler): Remove usage
25092 of PARAM_INDIR_CALL_TOPN_PROFILE.
25093 (gimple_gen_ic_profiler): Likewise.
25094 * value-prof.c (dump_histogram_value): Likewise.
25095 (stream_in_histogram_value): Likewise.
25096 (gimple_indirect_call_to_profile): Likewise.
25097 (gimple_find_values_to_profile): Likewise.
25098 * value-prof.h (enum hist_type): Likewise.
25099
25100 2019-06-07 Martin Liska <mliska@suse.cz>
25101
25102 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25103 function.
25104
25105 2019-06-07 Martin Liska <mliska@suse.cz>
25106
25107 PR tree-optimization/78902
25108 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25109 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25110 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25111 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25112 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25113 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25114 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25115 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25116 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25117 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25118 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25119 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25120 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25121 New.
25122 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25123 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25124 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25125 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25126 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25127 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25128 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25129 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25130 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25131 warn_unused_result attribute.
25132 (BUILT_IN_STRDUP): Likewise.
25133 (BUILT_IN_STRNDUP): Likewise.
25134 (BUILT_IN_ALLOCA): Likewise.
25135 (BUILT_IN_CALLOC): Likewise.
25136 (BUILT_IN_MALLOC): Likewise.
25137 (BUILT_IN_REALLOC): Likewise.
25138
25139 2019-06-06 Jim Wilson <jimw@sifive.com>
25140
25141 PR target/89955
25142 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25143 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25144 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25145
25146 2019-06-06 Martin Sebor <msebor@redhat.com>
25147
25148 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25149 (handle_builtin_malloc): Remove trailing spaces.
25150 (handle_builtin_memset): Same.
25151 (handle_builtin_memcmp): Same.
25152 (compute_string_length): Same.
25153 (determine_min_objsize): Same.
25154 (handle_builtin_string_cmp): Same.
25155 (handle_char_store): Same. Break up excessively long line.
25156
25157 2019-06-06 Martin Jambor <mjambor@suse.cz>
25158
25159 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25160 check.
25161
25162 2019-06-06 Martin Jambor <mjambor@suse.cz>
25163
25164 * tree-sra.c (struct access): New field grp_same_access_path.
25165 (dump_access): Dump it.
25166 (build_reconstructed_reference): New function.
25167 (build_ref_for_model): Use it if possible.
25168 (path_comparable_for_same_access): New function.
25169 (same_access_path_p): Likewise.
25170 (sort_and_splice_var_accesses): Set the new flag.
25171 (analyze_access_subtree): Likewise.
25172 (propagate_subaccesses_across_link): Propagate zero value of the new
25173 flag down the access tree.
25174
25175 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25176
25177 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25178 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25179 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25180 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25181 Add gfx906.
25182
25183 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25184
25185 PR tree-optimization/90332
25186 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25187 Handle VALS containing two vectors.
25188 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25189 to...
25190 (@aarch64_combinez<mode>): ... This.
25191 (*aarch64_combinez_be<mode>): Rename to...
25192 (@aarch64_combinez_be<mode>): ... This.
25193 (vec_init<mode><Vhalf>): New define_expand.
25194 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25195
25196 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25197
25198 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25199 library functions only when not optimizing for size.
25200 (ashlsi3): Likewise.
25201 (ashrhi3): Likewise.
25202 (ashrsi3): Likewise.
25203 (lshrhi3): Likewise.
25204 (lshrsi3): Likewise.
25205
25206 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25207
25208 PR rtl-optimization/88751
25209 * ira.c (ira): Use the number of the actually referenced registers
25210 when calculating the threshold.
25211
25212 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25213
25214 * configure: Regenerate.
25215
25216 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25217
25218 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25219 register if it is in memory, so the shift can be emulated with a rotate
25220 instruction.
25221 (ashrhi3): Likewise.
25222 (lshrhi3): Likewise.
25223
25224 2019-06-06 Martin Liska <mliska@suse.cz>
25225
25226 PR tree-optimization/87954
25227 * match.pd: Simplify mult where both arguments are 0 or 1.
25228
25229 2019-06-06 Richard Biener <rguenther@suse.de>
25230
25231 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25232 put equivalences on UNDEFINED ranges.
25233 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25234 Make sure to drop defs of stmts added during simplification
25235 to VARYING.
25236
25237 2019-06-06 Richard Biener <rguenther@suse.de>
25238
25239 * tree-ssa-structalias.c: Include tree-cfg.h.
25240 (make_heapvar): Do not make heap vars artificial.
25241 (find_func_aliases_for_builtin_call): Handle stack allocation
25242 functions.
25243 (find_func_aliases): Delay processing of simple enough returns
25244 in non-IPA mode.
25245 (set_uids_in_ptset): Adjust.
25246 (find_what_var_points_to): Likewise.
25247 (solve_constraints): Do not dump points-to sets here.
25248 (compute_points_to_sets): Post-process return statements,
25249 amending the escaped solution. Dump points-to sets afterwards.
25250 (ipa_pta_execute): Dump points-to sets.
25251
25252 2019-06-06 Martin Liska <mliska@suse.cz>
25253
25254 PR web/87933
25255 * doc/install.texi: Fix HTML headers and
25256 titles for 'Installing GCC' pages.
25257
25258 2019-06-06 Martin Liska <mliska@suse.cz>
25259
25260 * ipa-icf-gimple.h (dump_message_1): Remove.
25261 (dump_message): Likewise.
25262 (return_false_with_message_1): Print also file.
25263 (return_false_with_msg): Likewise.
25264 (return_with_result): Likewise.
25265 (return_with_debug): Likewise.
25266 * ipa-icf.c (sem_function::equals_private): Remove call
25267 to dump_message.
25268
25269 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25270
25271 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25272 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25273 memory operand for it.
25274 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25275
25276 2019-06-05 Martin Sebor <msebor@redhat.com>
25277
25278 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25279 Adjust quoting and hyphenation.
25280 * convert.c (convert_to_real_1): Same.
25281 * gcc.c (driver_wrong_lang_callback): Same.
25282 (driver::handle_unrecognized_options): Same.
25283 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25284 * opts-common.c (cmdline_handle_error): Same.
25285 (read_cmdline_option): Same.
25286 * opts-global.c (complain_wrong_lang): Same.
25287 (print_ignored_options): Same.
25288 (handle_common_deferred_options): Same.
25289 * pretty-print.h: Same.
25290 * print-rtl.c (debug_bb_n_slim): Same.
25291 * sched-rgn.c (make_pass_sched_fusion): Same.
25292 * tree-cfg.c (verify_gimple_assign_unary): Same.
25293 (verify_gimple_label): Same.
25294 * tree-ssa-operands.c (verify_ssa_operands): Same.
25295 * varasm.c (do_assemble_alias): Same.
25296 (assemble_alias): Same.
25297
25298 2019-06-05 Richard Henderson <rth@twiddle.net>
25299
25300 * config/alpha/alpha.c (direct_return): Move down after
25301 struct machine_function definition; use saved frame_size;
25302 return bool.
25303 (struct machine_function): Add sa_mask, sa_size, frame_size.
25304 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25305 (alpha_compute_frame_layout): ... new function.
25306 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25307 (alpha_initial_elimination_offset): Use saved sa_size.
25308 (alpha_vms_initial_elimination_offset): Likewise.
25309 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25310 (alpha_expand_prologue): Use saved frame data. Merge integer
25311 and fp register save loops.
25312 (alpha_expand_epilogue): Likewise.
25313 (alpha_start_function): Use saved frame data.
25314 * config/alpha/alpha-protos.h (direct_return): Update.
25315 (alpha_sa_size): Remove.
25316
25317 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25318
25319 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25320 multiplication by a power-of-two value.
25321 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25322 and turn the modulo operation into a masking operation.
25323
25324 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25325
25326 PR debug/90733
25327 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25328 with VOIDmode inner operands.
25329
25330 2019-06-05 Richard Biener <rguenther@suse.de>
25331
25332 PR middle-end/90726
25333 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25334 turn an expression graph into a tree.
25335
25336 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25337
25338 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25339 member.
25340 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25341 treat it like explicit monotonic schedule modifier.
25342 (expand_omp_for): Initialize has_lastprivate_conditional.
25343 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25344 schedule modifier.
25345
25346 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25347 references, lookup in in hash map MEM_REF operand instead of the
25348 MEM_REF itself.
25349 (lower_omp_1): When looking for lastprivate conditional assignments,
25350 handle MEM_REFs with REFERENCE_TYPE operands.
25351
25352 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25353 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25354 and references a VLA. Handle references to non-VLAs if is_simd
25355 all privatization clauses like reductions.
25356 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25357 If omp_is_reference, use always omp simd arrays and set
25358 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25359 fails, emit reference initialization.
25360
25361 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25362
25363 PR target/89803
25364 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25365 _mm_mask_fpclass_sd_mask): New intrinsics.
25366 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25367 * config/i386/i386-builtin.def
25368 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25369 New builtins.
25370 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25371 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25372 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25373 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25374 case QI_FTYPE_V2SF_INT): Ditto.
25375 * config/i386/sse.md
25376 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25377 Extended to insnstructions with mask operands.
25378
25379 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25380
25381 * config/rs6000/constraints.md (define_register_constraint "wp"):
25382 Delete.
25383 (define_register_constraint "wq"): Delete.
25384 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25385 (rs6000_init_hard_regno_mode_ok): Adjust.
25386 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25387 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25388 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25389 (define_mode_attr VSa): Delete.
25390 (define_mode_attr VSisa): New.
25391 (rest of file): Adjust.
25392 * doc/md.texi (Machine Constraints): Adjust.
25393
25394 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25395
25396 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25397 (define_attr "enabled"): Handle those new isa values.
25398
25399 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25400
25401 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25402 (define_mode_attr VSr5): Delete.
25403 (define_mode_attr VStype_sqrt): Delete.
25404 (define_mode_iterator VSX_SPDP): Delete.
25405 (define_mode_attr VS_spdp_res): Delete.
25406 (define_mode_attr VS_spdp_insn): Delete.
25407 (define_mode_attr VS_spdp_type): Delete.
25408 (*vsx_sqrt<mode>2): Adjust.
25409 (vsx_<VS_spdp_insn>): Delete, split to...
25410 (vsx_xscvdpsp): ... this. New. And...
25411 (vsx_xvcvspdp): ... this. New. And...
25412 (vsx_xvcvdpsp): ... this. New.
25413
25414 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25415
25416 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25417 and V2DF.
25418 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25419 (rest of file): Adjust.
25420
25421 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25422
25423 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25424 (vsx_extract_<mode>_var): Ditto.
25425
25426 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25427
25428 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25429 with just "wa".
25430
25431 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25432
25433 * config/rs6000/constraints.md (define_register_constraint "ww"):
25434 Delete.
25435 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25436 (rs6000_init_hard_regno_mode_ok): Adjust.
25437 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25438 RS6000_CONSTRAINT_ww.
25439 * config/rs6000/rs6000.md: Adjust.
25440 * config/rs6000/vsx.md: Adjust.
25441 * doc/md.texi (Machine Constraints): Adjust.
25442
25443 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25444
25445 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25446 (define_mode_attr sd): New.
25447 (define_mode_attr s): New.
25448 (define_mode_attr Ftrad): Delete.
25449 (define_mode_attr Fvsx): Delete.
25450 (define_mode_attr Fs): Delete.
25451 (rest of file): Use the new mode attributes.
25452 * config.rs6000/vsx.md: Use the new mode attributes.
25453
25454 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25455
25456 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25457 with just "wa".
25458
25459 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25460
25461 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25462 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25463 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25464
25465 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25466
25467 PR target/78263
25468 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25469 C++ with strict ANSI requirements.
25470
25471 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25472
25473 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25474 computations when step is 1.
25475
25476 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25477
25478 * config/rs6000/constraints.md (define_register_constraint "wf"):
25479 Delete.
25480 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25481 (rs6000_init_hard_regno_mode_ok): Adjust.
25482 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25483 RS6000_CONSTRAINT_wf.
25484 * config/rs6000/rs6000.md: Adjust.
25485 * config/rs6000/vsx.md: Adjust.
25486 * doc/md.texi (Machine Constraints): Adjust.
25487
25488 2019-06-04 Andrew Pinski <apinski@marvell.com>
25489
25490 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25491 Fix ILP32 value.
25492
25493 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25494
25495 * config/rs6000/constraints.md (define_register_constraint "wd"):
25496 Delete.
25497 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25498 (rs6000_init_hard_regno_mode_ok): Adjust.
25499 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25500 RS6000_CONSTRAINT_wd.
25501 * config/rs6000/rs6000.md: Adjust.
25502 * config/rs6000/vsx.md: Adjust.
25503 * doc/md.texi (Machine Constraints): Adjust.
25504
25505 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25506
25507 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25508 (rest of file): Adjust.
25509
25510 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25511
25512 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25513 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25514 (vsx_splat_<mode>_reg): Adjust.
25515
25516 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25517
25518 * config/rs6000/constraints.md (define_register_constraint "ws"):
25519 Delete.
25520 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25521 (rs6000_init_hard_regno_mode_ok): Adjust.
25522 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25523 RS6000_CONSTRAINT_ws.
25524 * config/rs6000/rs6000.md: Adjust.
25525 * config/rs6000/vsx.md: Adjust.
25526 * doc/md.texi (Machine Constraints): Adjust.
25527
25528 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25529
25530 * config/rs6000/constraints.md (define_register_constraint "wv"):
25531 Delete.
25532 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25533 (rs6000_init_hard_regno_mode_ok): Adjust.
25534 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25535 RS6000_CONSTRAINT_wv.
25536 * config/rs6000/rs6000.md: Adjust.
25537 * config/rs6000/vsx.md: Adjust.
25538 * doc/md.texi (Machine Constraints): Adjust.
25539
25540 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25541
25542 * config/rs6000/constraints.md (define_register_constraint "wi"):
25543 Delete.
25544 (define_register_constraint "wt"): Delete.
25545 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25546 (rs6000_init_hard_regno_mode_ok): Adjust.
25547 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25548 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25549 * config/rs6000/rs6000.md: Adjust.
25550 * config/rs6000/vsx.md: Adjust.
25551 * doc/md.texi (Machine Constraints): Adjust.
25552
25553 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25554
25555 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25556 const.
25557 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25558 default_elf_asm_output_external.
25559
25560 2019-06-04 Martin Liska <mliska@suse.cz>
25561
25562 * ipa-icf.c (INCLUDE_LIST): Remove.
25563 (sem_item_optimizer::execute): Remove call to init_wpa.
25564 * ipa-icf.h (init_wpa): Remove.
25565
25566 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25567
25568 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25569 conditional on combined for simd.
25570 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25571 member.
25572 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25573 constructs, don't remove lastprivate_conditional_map, but instead set
25574 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25575 to parent construct temporaries.
25576 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25577 like !ctx->lastprivate_conditional_map.
25578 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25579 use up->outer context instead of up.
25580 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25581 gimple_omp_for_combined_p.
25582 (expand_omp_for_static_nochunk): Likewise.
25583 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25584 probably moved over into expand_omp_for_generic rather than being copied
25585 there.
25586
25587 2019-06-04 Martin Liska <mliska@suse.cz>
25588
25589 * value-prof.c (dump_histogram_value): Fix typo.
25590 (gimple_mod_subtract_transform): Likewise.
25591
25592 2019-06-04 Richard Biener <rguenther@suse.de>
25593
25594 PR middle-end/90726
25595 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25596 (tree_contains_chrecs): Likewise.
25597 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25598 exponential behaivor from ...
25599 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25600 ... here.
25601 (expression_expensive_p): Avoid exponential behavior and compute
25602 expanded size, rejecting any expansion.
25603 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25604 (idx_contains_abnormal_ssa_name_p): Likewise.
25605 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25606 (contains_abnormal_ssa_name_p): Simplify and use
25607 walk_tree_without_duplicates.
25608
25609 2019-06-04 Richard Biener <rguenther@suse.de>
25610
25611 PR tree-optimization/90738
25612 Revert
25613 2019-06-03 Richard Biener <rguenther@suse.de>
25614
25615 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25616 full reference tree and record in ref->ref.
25617 (vn_reference_lookup_3): Pass in original ref to
25618 ao_ref_init_from_vn_reference.
25619 (vn_reference_lookup): Likewise.
25620 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25621 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25622 Handle non-decl bases in the original reference.
25623
25624 2019-06-04 Martin Liska <mliska@suse.cz>
25625
25626 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25627 number of references.
25628 (sem_item_optimizer::do_congruence_step):
25629 (sem_item_optimizer::worklist_push): Dump how references
25630 a class has.
25631 (sem_item_optimizer::worklist_pop): Use heap.
25632 (sem_item_optimizer::process_cong_reduction): Likewise.
25633 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25634
25635 2019-06-04 Martin Liska <mliska@suse.cz>
25636
25637 * ipa-icf.h (struct sem_usage_pair_hash): New.
25638 (sem_usage_pair_hash::hash): Likewise.
25639 (sem_usage_pair_hash::equal): Likewise.
25640 (struct sem_usage_hash): Likewise.
25641 * ipa-icf.c (sem_item::sem_item): Initialize
25642 referenced_by_count.
25643 (sem_item::add_reference): Register a reference
25644 in ref_map and not in target->usages.
25645 (sem_item::setup): Remove initialization of
25646 dead vectors.
25647 (sem_item::~sem_item): Remove usage of dead vectors.
25648 (sem_item::dump): Remove dump of references.
25649 (sem_item_optimizer::sem_item_optimizer): Initialize
25650 m_references.
25651 (sem_item_optimizer::read_section): Remove useless
25652 dump.
25653 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25654 (sem_item_optimizer::build_graph): Pass m_references
25655 to ::add_reference.
25656 (sem_item_optimizer::verify_classes): Remove usage of dead
25657 vectors.
25658 (sem_item_optimizer::traverse_congruence_split): Return true
25659 when a class is split.
25660 (sem_item_optimizer::do_congruence_step_for_index): Use
25661 hash_map for look up of (sem_item *, index). That brings
25662 significant speed up.
25663 (sem_item_optimizer::do_congruence_step): Return true
25664 when a split is done.
25665 (congruence_class::is_class_used): Use referenced_by_count.
25666
25667 2019-06-04 Alan Modra <amodra@gmail.com>
25668
25669 PR target/90689
25670 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25671 error.
25672
25673 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25674
25675 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25676 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25677 (rs6000_secondary_reload_simple_move): Adjust.
25678 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25679 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25680 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25681 comment.
25682 (power6x): Adjust.
25683 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25684 (floatunssi<mode>2_lfiwzx): Adjust.
25685 (fix_trunc<mode>si2_stfiwx): Adjust.
25686 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25687 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25688 (mfpgpr): Mark as deprecated.
25689 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25690 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25691 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25692
25693 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25694
25695 * config/rs6000/constraints.md (define_register_constraint "wg"):
25696 Delete.
25697 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25698 RS6000_CONSTRAINT_wg.
25699 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25700 (rs6000_init_hard_regno_mode_ok): Adjust.
25701 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25702 Delete "wg" alternatives.
25703 * doc/md.texi (Machine Constraints): Adjust.
25704
25705 2019-06-03 Alan Modra <amodra@gmail.com>
25706
25707 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25708 (get_uncond_jump_length): Assert length less than INT_MAX and
25709 non-negative.
25710
25711 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25712
25713 PR middle-end/64242
25714 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25715 block.
25716 (expand_builtin_nonlocal_goto): Likewise.
25717
25718 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25719
25720 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25721 (aarch64_asm_output_external): Declare.
25722 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25723 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25724 (aarch64_asm_output_alias): New.
25725 (aarch64_asm_output_external): New.
25726 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25727 (ASM_OUTPUT_EXTERNAL): Define.
25728
25729 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25730 * tree-vrp.h (value_range_base::nonzero_p): New.
25731 (value_range_base::set_nonnull): Rename to...
25732 (value_range_base::set_nonzero): ...this.
25733 (value_range_base::set_null): Rename to...
25734 (value_range_base::set_zero): ...this.
25735 (value_range::set_nonnull): Remove.
25736 (value_range::set_null): Remove.
25737 * tree-vrp.c (range_is_null): Remove.
25738 (range_is_nonnull): Remove.
25739 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25740 instead of range_is_*null.
25741 (extract_range_from_unary_expr): Same.
25742 (value_range_base::set_nonnull): Rename to...
25743 (value_range_base::set_nonzero): ...this.
25744 (value_range::set_nonnull): Remove.
25745 (value_range_base::set_null): Rename to...
25746 (value_range_base::set_zero): ...this.
25747 (value_range::set_null): Remove.
25748 (extract_range_from_binary_expr): Rename set_*null uses to
25749 set_*zero.
25750 (extract_range_from_unary_expr): Same.
25751 (union_helper): Same.
25752 * vr-values.c (get_value_range): Use set_*zero instead of
25753 set_*null.
25754 (vr_values::extract_range_from_binary_expr): Same.
25755 (vr_values::extract_range_basic): Same.
25756
25757 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25758
25759 PR driver/90684
25760 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25761
25762 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25763
25764 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25765 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25766 Rename to...
25767 (aarch64_<su>abd<mode>_3): ... This.
25768 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25769
25770 2019-06-03 Richard Biener <rguenther@suse.de>
25771
25772 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25773 full reference tree and record in ref->ref.
25774 (vn_reference_lookup_3): Pass in original ref to
25775 ao_ref_init_from_vn_reference.
25776 (vn_reference_lookup): Likewise.
25777 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25778 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25779 Handle non-decl bases in the original reference.
25780
25781 2019-06-03 Martin Liska <mliska@suse.cz>
25782
25783 * doc/generic.texi: Remove Java Trees.
25784
25785 2019-06-03 Martin Liska <mliska@suse.cz>
25786
25787 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25788 returns 0 when operands are equal.
25789
25790 2019-06-03 Richard Biener <rguenther@suse.de>
25791
25792 PR tree-optimization/90716
25793 * tree-loop-distribution.c (destroy_loop): Process blocks in
25794 correct order.
25795
25796 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25797
25798 PR target/88837
25799 * vector-builder.h (vector_builder::count_dups): New method.
25800 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25801 Declare prototype.
25802 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25803 (vec_init<mode><Vel>): New pattern.
25804 * config/aarch64/aarch64.c (emit_insr): New function.
25805 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25806 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25807 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25808 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25809
25810 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25811
25812 PR tree-optimization/90681
25813 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25814 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25815 special case for SLP, but fail on non-groupped loads.
25816
25817 2019-06-03 Martin Liska <mliska@suse.cz>
25818
25819 * cfg.c (debug): Use TDF_DETAILS for debug and
25820 print edge info only once.
25821
25822 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25823
25824 PR fortran/90539
25825 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25826
25827 2019-06-01 Martin Sebor <msebor@redhat.com>
25828
25829 PR middle-end/90694
25830 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25831
25832 2019-05-31 Jan Hubicka <jh@suse.cz>
25833
25834 * alias.c: Include ipa-utils.h.
25835 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25836 * ipa-devirt.c (prevailing_odr_type): New.
25837 * ipa-utils.h (previaling_odr_type): Declare.
25838
25839 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25840 Hongtao Liu <hongtao.liu@intel.com>
25841
25842 PR target/89355
25843 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25844 NOTE_INSN_DELETED_LABEL check.
25845
25846 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25847 Robert Suchanek <robert.suchanek@mips.com>
25848
25849 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25850 and 3rd operands of the fmadd/fmsub/maddv builtin.
25851
25852 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25853
25854 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25855 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25856 on OMP_SIMD if not nested inside of worksharing loop that also has
25857 lastprivate conditional clause for the same decl.
25858 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25859 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25860 on simd.
25861 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25862 on simd construct.
25863 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25864 on simd construct.
25865 (lower_lastprivate_clauses): Likewise.
25866 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25867 calling lower_rec_input_clauses.
25868 (lower_omp_for): Likewise.
25869 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25870 clause on simd construct.
25871 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25872 OMP_CLAUSE__CONDTEMP_ clause is present.
25873
25874 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25875 ivar and lvar.
25876
25877 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25878
25879 PR c/43673
25880 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25881 TEX_D32, TEX_D64 or TEX_D128.
25882
25883 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25884
25885 * match.pd (~(vec?cst1:cst2)): New transformation.
25886
25887 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25888
25889 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25890 ((size_t)(A /[ex] B) CMP C): New transformation.
25891
25892 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25893
25894 * doc/md.texi: Document define_insn_and_rewrite.
25895 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25896 * gensupport.c (queue_elem): Update comment.
25897 (replace_operands_with_dups): New function.
25898 (gen_rewrite_sequence): Likewise.
25899 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25900 * read-rtl.c (apply_subst_iterator): Likewise.
25901 (add_condition_to_rtx, named_rtx_p): Likewise.
25902 (rtx_reader::read_rtx_operand): Likewise.
25903 * config/aarch64/aarch64-sve.md
25904 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25905 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25906 define_insn_and_rewrite.
25907 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25908 Remove separate define_split.
25909
25910 2019-05-31 Jan Hubicka <jh@suse.cz>
25911
25912 * tree-ssa-alias.c (type_has_components_p): New function.
25913 (aliasing_component_refs_p): Use it.
25914
25915 2019-05-31 Martin Liska <mliska@suse.cz>
25916
25917 * gdbhooks.py: Add const_tree to TreePrinter.
25918
25919 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25920
25921 PR debug/86964
25922 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25923 * doc/invoke.texi (Debugging Options): Document new default of
25924 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25925
25926 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25927
25928 PR tree-optimization/90671
25929 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25930 template_block used to be empty on the first call, don't use
25931 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25932 seq with bb_seq and set it with set_bb_seq.
25933
25934 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25935
25936 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25937
25938 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25939 Michael Meissner <meissner@linux.ibm.com>
25940
25941 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25942 (prefixed_mem_operand): Likewise.
25943 (non_prefixed_mem_operand): Likewise.
25944 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25945 prototype.
25946 * config/rs6000/rs6000.c (print_operand_address): Handle
25947 PC-relative addresses.
25948 (mode_supports_prefixed_address_p): New function.
25949 (rs6000_prefixed_address): New function.
25950 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25951 (SYMBOL_REF_PCREL_P): Likewise.
25952
25953 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25954
25955 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25956 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25957 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25958 is nested inside of parallel region, add _condtemp_ clause to both.
25959 * tree-nested.c (convert_nonlocal_omp_clauses,
25960 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25961 assertion failure.
25962 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25963 member.
25964 * omp-general.c (omp_extract_for_data): Compute it.
25965 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25966 (lower_rec_input_clauses): Likewise.
25967 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25968 clause is already present, just add one further one after it.
25969 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25970 (lower_send_shared_vars): Clear _condtemp_ vars.
25971 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25972 or section or taskgroup.
25973 * omp-expand.c (determine_parallel_type): Disallow combining only if
25974 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25975 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25976 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25977 expand_omp_for_static_chunk, expand_omp_for): Use
25978 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25979 determine if a special set of API routines are needed and if condtemp
25980 needs to be initialized, while always initialize cond_var if
25981 fd->lastprivate_conditional is non-zero.
25982
25983 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25984 Michael Meissner <meissner@linux.ibm.com>
25985
25986 * config/rs6000/constraints.md (eI): New constraint.
25987 * config/rs6000/predicates.md (cint34_operand): New predicate.
25988 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25989 (SIGNED_34BIT_OFFSET_P): Likewise.
25990 * doc/md.texi (eI): Document constraint.
25991
25992 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25993
25994 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25995
25996 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25997 Michael Meissner <meissner@linux.ibm.com>
25998
25999 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26000 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26001 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26002 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26003 (OTHER_FUTURE_MASKS): Likewise.
26004 (POWERPC_MASKS): Likewise.
26005 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26006 specified without -mprefixed-addr or -mcpu=future. Error if
26007 -mprefixed-addr is specified without -mcpu=future.
26008 (rs6000_opt_masks): Add entry for prefixed-addr.
26009 * rs6000.opt (mprefixed-addr): New option.
26010
26011 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26012
26013 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26014 cfun->is_thunk check.
26015
26016 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26017
26018 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26019 to length.
26020
26021 2019-05-30 Martin Liska <mliska@suse.cz>
26022
26023 * gdbinit.in: Fix 'ptc' command. Add trt
26024 that prints TREE_TYPE($).
26025
26026 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26027 Alan Modra <amodra@gmail.com>
26028
26029 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26030 calls here...
26031 (rs6000_indirect_call_template_1): ...and here.
26032 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26033 plt16_ha, plt16_lo, mtctr indirect calls. Use
26034 rs6000_pltseq_enum.
26035 (rs6000_decl_ok_for_sibcall): New function.
26036 (rs6000_function_ok_for_sibcall): Refactor.
26037 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26038 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26039 when pcrel. Reorganize.
26040 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26041 * rs6000.h (rs6000_pltseq_enum): New enum.
26042 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26043 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26044 (*pltseq_plt16_ha): Likewise.
26045 (*pltseq_plt16_lo): Likewise.
26046 (*pltseq_mtctr): Likewise.
26047 (*pltseq_plt_pcrel): New insn.
26048 (*call_local_aix): Handle @notoc calls.
26049 (*call_value_local_aix): Likewise.
26050 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26051 (*call_value_nonlocal_aix): Likewise.
26052 (*call_indirect_pcrel): New insn.
26053 (*call_value_indirect_pcrel): Likewise.
26054
26055 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26056
26057 * config/i386/sse.md (*save_multiple<mode>): Rename from
26058 save_multiple<mode>.
26059 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26060 (*restore_multiple_and_return<mode>): Rename from
26061 restore_multiple_and_return<mode>.
26062 (*restore_multiple_leave_return<mode>): Rename from
26063 restore_multiple_leave_return<mode>.
26064
26065 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26066
26067 * config.gcc (rx-*-linux*): New target.
26068 * config/rx/elf.opt: New file.
26069 * config/rx/linux.h: Likewise.
26070 * config/rx/t-linux: Likewise.
26071 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26072 make it zero.
26073 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26074 (ASM_APP_OFF): Likewise.
26075 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26076 moved elsewhere.
26077
26078 2019-05-29 Jan Hubicka <jh@suse.cz>
26079
26080 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26081 variants are pointer equivalent.
26082
26083 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26084
26085 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26086 * config/aarch64/aarch64-sve2.md: New file.
26087 (<u>avg<mode>3_floor): New pattern.
26088 (<u>avg<mode>3_ceil): Likewise.
26089 (*<sur>h<addsub><mode>): Likewise.
26090 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26091 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26092
26093 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26094
26095 PR bootstrap/90543
26096 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26097 for var_opt_string printing. In cl_optimization_print_diff, print
26098 (null) instead of invoking undefined behavior if one of the
26099 var_opt_string pointers is NULL and use && instead of first || in the
26100 guarding condition. For var_target_other options, handle const char *
26101 target variables similarly to const char * optimize node variables.
26102
26103 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26104
26105 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26106 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26107 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26108 Add autib1716 and pacib1716 initialisation.
26109 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26110 for autib1716 and pacib1716.
26111 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26112 aarch64_post_cfi_startproc): Define.
26113 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26114 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26115 aarch64_handle_pac_ret_protection): Set default sign key to A.
26116 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26117 aarch64_expand_prologue): Add check for b-key.
26118 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26119 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26120 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26121 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26122 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26123 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26124 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26125 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26126 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26127 pauth_hint_num_a with pauth_hint_num.
26128 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26129 pauth_hint_num_a with pauth_hint_num.
26130 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26131 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26132 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26133 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26134 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26135 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26136 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26137 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26138 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26139 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26140 UNSPEC_AUTIA1716 respectively.
26141 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26142 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26143 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26144 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26145 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26146 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26147
26148 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26149
26150 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26151 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26152 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26153 explicit clause on combined parallel into implicit shared clause.
26154 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26155 and firstprivate if the decl has one too from combined parallel to
26156 the worksharing construct.
26157
26158 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26159 Michael Meissner <meissner@linux.ibm.com>
26160
26161 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26162
26163 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26164
26165 * rtl.h (LABEL_REF_P): New #define.
26166
26167 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26168
26169 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26170
26171 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26172
26173 * internal-fn.c: Marked mask_load_direct as vectorizable.
26174 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26175 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26176 combined even if masks different with allow_slp_p param.
26177 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26178 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26179 dissolve SLP-only vectorizable groups when SLP has been discarded.
26180 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26181 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26182 masks.
26183 (vect_build_slp_tree_1): Fixed comment typo.
26184 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26185 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26186 loads for SLP only.
26187 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26188 vectorizable.
26189 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26190
26191 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26192
26193 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26194 Remove obsolete use_thunk reference.
26195 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26196 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26197 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26198 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26199 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26200 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26201 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26202 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26203 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26204
26205 2019-05-28 Nathan Sidwell <nathan@acm.org>
26206
26207 * tree.h (IDENTIFIER_ANON_P): New.
26208 (anon_aggrname_format, anon_aggname_p): Don't declare.
26209 (make_anon_name): Declare.
26210 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26211 (hash_tree): Likewise.
26212 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26213 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26214 (anon_cnt, make_anon_name): New.
26215
26216 2019-05-28 Martin Liska <mliska@suse.cz>
26217
26218 PR other/90315
26219 * opts-global.c (decode_options): Print help for all
26220 help_option_arguments.
26221 * opts.c (print_help): Add new argument.
26222 (common_handle_option): Remember all values into
26223 help_option_arguments.
26224 * opts.h (print_help): Add new argument.
26225
26226 2019-05-28 Martin Liska <mliska@suse.cz>
26227
26228 PR ipa/90555
26229 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26230 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26231 (func_checker::compare_bb): Call compare_loops.
26232
26233 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26234
26235 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26236 on sections construct.
26237 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26238 construct.
26239 (lower_omp_sections): Handle lastprivate conditional.
26240 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26241 lastprivate_conditional_map.
26242 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26243
26244 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26245 critical, taskgroup and section regions when looking for a region
26246 with non-NULL lastprivate_conditional_map.
26247
26248 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26249
26250 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26251 (*ix86_gen_sub3): Ditto.
26252 (*ix86_gen_sub3_carry): Ditto.
26253 (*ix86_gen_one_cmpl2): Ditto.
26254 (*ix86_gen_andsp): Ditto.
26255 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26256 (gen_and2_insn): New static function.
26257 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26258 Use gen_add3_insn instead of ix86_gen_add3.
26259 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26260 instead of ix86_gen_add3.
26261 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26262 Use gen_sub3_insn instead of ix86_gen_sub3.
26263 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26264 instead of ix86_gen_add3.
26265 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26266 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26267 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26268 * config/i386/i386-options.c (ix86_option_override_internal):
26269 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26270 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26271
26272 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26273
26274 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26275 and DW_OP_GNU_const_index opcodes.
26276
26277 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26278
26279 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26280
26281 2019-05-27 Richard Biener <rguenther@suse.de>
26282
26283 PR tree-optimization/90637
26284 * tree-ssa-sink.c (statement_sink_location): Honor the
26285 computed sink location for single-uses.
26286
26287 2019-05-27 Richard Biener <rguenther@suse.de>
26288
26289 PR middle-end/90610
26290 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26291 a bit-insert.
26292
26293 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26294
26295 * config/i386/i386.md (@sub<mode>3_carry): Rename
26296 from sub<mode>3_carry.
26297 (@leave_<mode>): New expander.
26298 (*leave): Rename from leave.
26299 (*leave_rex64): Rename from leave_rex64.
26300 (@monitorx_<mode>): Rename from monitorx_<mode>.
26301 (@clzero_<mode>): Rename from clzero_<mode>.
26302 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26303 from sse3_monitor_<mode>.
26304 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26305 (*ix86_gen_leave): Ditto.
26306 (*ix86_gen_monitor): Ditto.
26307 (*ix86_gen_monitorx): Ditto.
26308 (*ix86_gen_clzero): Ditto.
26309 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26310 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26311 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26312 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26313 Use gen_sse3_monitor instead of ix86_gen_monitor.
26314 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26315 instead of ix86_gen_monitorx.
26316 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26317 instead of ix86_gen_clzero.
26318 * config/i386/i386-options.c (ix86_option_override_internal):
26319 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26320 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26321
26322 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26323
26324 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26325 Rename from tls_global_dynamic_64_<mode>.
26326 (@tls_local_dynamic_base_64_<mode>): Rename from
26327 tls_local_dynamic_base_64_<mode>.
26328 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26329 Remove indirect function.
26330 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26331 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26332 instead of ix86_gen_tls_global_dynamic_64.
26333 Use gen_tls_local_dynamic_base_64 instead of
26334 ix86_gen_tls_local_dynamic_base_64.
26335 * config/i386/i386-options.c (ix86_option_override_internal):
26336 Do not initialize ix86_gen_tls_global_dynamic_64 and
26337 ix86_gen_tls_local_dynamic_base_64.
26338
26339 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26340
26341 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26342 Rename from pro_epilogue_adjust_stack_<mode>_add.
26343 (@pro_epilogue_adjust_stack_sub_<mode>)
26344 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26345 (@allocate_stack_worker_probe_<mode>):
26346 Rename from allocate_stack_worker_probe_<mode>.
26347 (allocate_stack): Use gen_allocate_stack_worker_probe.
26348 (probe_stack): Use gen_probe_stack_1.
26349 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26350 (@adjust_stack_and_probe_<mode>): Rename from
26351 adjust_stack_and_probe<mode>.
26352 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26353 (stack_protect_set): Use gen_stack_protect_set_1.
26354 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26355 (stack_protect_test): Use gen_stack_protect_test_1.
26356 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26357 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26358 Remove indirect function.
26359 (*ix86_gen_adjust_stack_and_probe): Ditto.
26360 (*ix86_gen_probe_stack_range): Ditto.
26361 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26362 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26363 (ix86_adjust_stack_and_probe_stack_clash): Use
26364 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26365 (ix86_adjust_stack_and_probe): Ditto.
26366 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26367 of ix86_gen_probe_stack_range.
26368 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26369 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26370 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26371 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26372 CODE_FOR_stack_protect_test_{si,di}.
26373 * config/i386/i386-options.c (ix86_option_override_internal):
26374 Do not initialize ix86_gen_allocate_stack_worker,
26375 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26376
26377 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26378
26379 * doc/invoke.texi (Link Options): Many editorial changes around
26380 -flinker-output.
26381
26382 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26383
26384 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26385 pre-Solaris 11 referene and most Studio compiler details.
26386
26387 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26388
26389 PR target/90530
26390 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26391 DImode to SImode in floating-point registers on 64-bit target.
26392 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26393 register_operand in xmpyu patterns.
26394
26395 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26396
26397 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26398 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26399 OMP_CLAUSE__REDUCTEMP_.
26400 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26401 OMP_CLAUSE__CONDTEMP_.
26402 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26403 * tree-pretty-print.c (dump_omp_clause): Likewise.
26404 * tree-nested.c (convert_nonlocal_omp_clauses,
26405 convert_local_omp_clauses): Likewise.
26406 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26407 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26408 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26409 on OMP_FOR.
26410 (gimplify_omp_for): Warn and disable conditional modifier from
26411 lastprivate on loop iterators.
26412 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26413 member.
26414 * omp-general.c (omp_extract_for_data): Initialize it.
26415 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26416 member.
26417 (delete_omp_context): Delete it.
26418 (lower_lastprivate_conditional_clauses): New function.
26419 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26420 handle lastprivate conditional clauses.
26421 (lower_reduction_clauses): Add CLIST argument, emit it into
26422 the critical section if any.
26423 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26424 lower_reduction_clauses callers.
26425 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26426 to lower_lastprivate_clauses.
26427 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26428 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26429 clist into a critical section if not emitted there already by
26430 lower_reduction_clauses.
26431 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26432 callers.
26433 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26434 conditional variables.
26435 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26436 clause is present.
26437 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26438 expand_omp_for_static_chunk): Handle lastprivate conditional.
26439 (expand_omp_for): Handle fd.lastprivate_conditional like
26440 fd.have_reductemp.
26441
26442 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26443
26444 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26445 kernel does not exit cleanly.
26446 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26447
26448 2019-05-24 Jason Merrill <jason@redhat.com>
26449
26450 Revert:
26451 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26452
26453 2019-05-24 Richard Biener <rguenther@suse.de>
26454
26455 PR testsuite/90607
26456 * tree-loop-distribution.c (struct partition): Add location
26457 member.
26458 (partition_alloc): Initialize all fields.
26459 (generate_memset_builtin): Use the location recorded in the
26460 partition for the generated call.
26461 (generate_memcpy_builtin): Likewise.
26462 (classify_partition): Record the location of a single store
26463 as location for the partition.
26464
26465 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26466
26467 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26468 for lo-part.
26469
26470 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26471
26472 PR target/90588
26473 * common/config/aarch64/aarch64-common.c
26474 (aarch64_rewrite_selected_cpu): Change local temporary variable
26475 type from unsigned long to uint64_t.
26476 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26477 aarch64_get_extension_string_for_isa_flags): Change declaration to
26478 match new definition by replacing unsigned long with uint64_t.
26479
26480 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26481
26482 PR target/90568
26483 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26484 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26485 Handle stack_protect_test_<mode> codegen similarly to corresponding
26486 sub instruction.
26487
26488 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26489
26490 * config/i386/darwin.h: Reject -mfentry*.
26491 * doc/sourcebuild.texi: Document mfentry target support.
26492
26493 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26494
26495 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26496 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26497 false for PC-relative functions.
26498 (rs6000_output_function_prologue): Change called function name to
26499 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26500 name,1" for PC-relative functions.
26501 (rs6000_elf_declare_function_name): Change called function name to
26502 rs6000_global_entry_point_prologue_needed_p.
26503
26504 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26505
26506 PR target/90552
26507 * config/i386/i386.c (gen_rtx_cost):
26508 Use ix86_tune_cost instead of ix86_cost.
26509
26510 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26511 Michael Meissner <meissner@linux.ibm.com>
26512 Segher Boessenkool <segher@kernel.crashing.org>
26513
26514 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26515 OPTION_MASK_PCREL.
26516 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26517 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26518 (rs6000_fndecl_pcrel_p): Likewise.
26519 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26520 error if -mpcrel is requested without -mcpu=future.
26521 (rs6000_opt_masks): Add entry for pcrel.
26522 (rs6000_fndecl_pcrel_p): New function.
26523 (rs6000_pcrel_p): Likewise.
26524 * config/rs6000/rs6000.opt (mpcrel): New option.
26525 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26526
26527 2019-05-23 Jan Hubicka <jh@suse.cz>
26528 Martin Liska <mliska@suse.cz>
26529
26530 PR tree-optimization/90576
26531 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26532 poly_int_tree_p.
26533 (aliasing_component_refs_p): Fix three way size compare conditional;
26534 give up earlier in case we can not decide on equivalence.
26535
26536 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26537 Michael Meissner <meissner@linux.ibm.com>
26538 Segher Boessenkool <segher@kernel.crashing.org>
26539
26540 * config.gcc: Add future cpu.
26541 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26542 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26543 #define.
26544 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26545 (RS6000_CPU): New instantiation for future cpu.
26546 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26547 PROCESSOR_FUTURE.
26548 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26549 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26550 * config/rs6000/rs6000-tables.opt: Regenerate.
26551 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26552 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26553 (rs6000_machine_from_flags): Handle future cpu.
26554 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26555 PROCESSOR_POWER9 for now.
26556 (rs6000_adjust_cost): Likewise.
26557 (rs6000_issue_rate): Likewise.
26558 (rs6000_register_move_cost): Likewise.
26559 (rs6000_opt_masks): Add entry for future.
26560 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26561 (MASK_FUTURE): New #define.
26562 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26563 * config/rs6000/rs6000.opt (mfuture): New target option.
26564 * doc/invoke.texi (mcpu): Add future cpu.
26565
26566 2019-05-23 Martin Liska <mliska@suse.cz>
26567
26568 PR c++/90587
26569 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26570 operation points to a temporary (pointed via tree_to_wide_ref)
26571 that is out of scope after the &.
26572
26573 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26574
26575 PR c++/90592
26576 * doc/extend.texi (Function Names): Add missing word.
26577
26578 2019-05-23 Richard Biener <rguenther@suse.de>
26579
26580 PR tree-optimization/88440
26581 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26582 at -O[2s]+.
26583 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26584 generated call.
26585 (generate_memcpy_builtin): Likewise.
26586 (distribute_loop): Pass in whether to only distribute patterns.
26587 (prepare_perfect_loop_nest): Also allow size optimization.
26588 (pass_loop_distribution::execute): When optimizing a loop
26589 nest for size allow pattern replacement.
26590
26591 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26592
26593 PR target/90568
26594 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26595 of xor.
26596
26597 2019-05-23 Martin Liska <mliska@suse.cz>
26598
26599 PR sanitizer/90570
26600 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26601 expression similarly to gimplify_decl_expr.
26602
26603 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26604
26605 * cse.c (cse_dump_path): s/dump_file/f.
26606
26607 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26608
26609 PR c++/90462
26610 * diagnostic-format-json.cc: Include "selftest.h".
26611 (json_from_expanded_location): Only add "file" key for non-NULL
26612 file strings.
26613 (json_from_location_range): Don't add "start" and "finish"
26614 children if they are UNKNOWN_LOCATION.
26615 (selftest::test_unknown_location): New selftest.
26616 (selftest::test_bad_endpoints): New selftest.
26617 (selftest::diagnostic_format_json_cc_tests): New function.
26618 * json.cc (json::object::get): New function.
26619 (selftest::test_object_get): New selftest.
26620 (selftest::json_cc_tests): Call it.
26621 * json.h (json::object::get): New decl.
26622 * selftest-run-tests.c (selftest::run_tests): Call
26623 selftest::diagnostic_format_json_cc_tests.
26624 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26625 decl.
26626
26627 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26628 Andrew Stubbs <amd@codesourcery.com>
26629
26630 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26631 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26632 (kernel): Rename to...
26633 (main_kernel): ... this.
26634 (load_image): Load _init_array and _fini_array kernels.
26635 (run): Add argument for kernel to run.
26636 (main): Run init_array_kernel before main_kernel, and
26637 fini_array_kernel after.
26638 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26639 amdgpu_hsa_kernel attribute on functions.
26640 (gcn_disable_constructors): Delete.
26641 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26642 * config/gcn/crt0.c (size_t): Define.
26643 (_init_array, _fini_array): New.
26644 (__preinit_array_start, __preinit_array_end,
26645 __init_array_start, __init_array_end,
26646 __fini_array_start, __fini_array_end): Declare weak references.
26647
26648 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26649
26650 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26651
26652 2019-05-22 Jason Merrill <jason@redhat.com>
26653
26654 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26655
26656 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26657
26658 PR target/88483
26659 * config/i386/i386-options.c (ix86_init_machine_status): Set
26660 stack_frame_required to true.
26661 * config/i386/i386.c (ix86_get_frame_size): New function.
26662 (ix86_frame_pointer_required): Replace get_frame_size with
26663 ix86_get_frame_size.
26664 (ix86_compute_frame_layout): Likewise.
26665 (ix86_find_max_used_stack_alignment): Changed to void. Set
26666 stack_frame_required.
26667 (ix86_finalize_stack_frame_flags): Always call
26668 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26669 ix86_get_frame_size.
26670 * config/i386/i386.h (machine_function): Add stack_frame_required.
26671
26672 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26673
26674 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26675
26676 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26677
26678 * common/config/aarch64/aarch64-common.c
26679 (struct aarch64_option_extension, struct processor_name_to_arch,
26680 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26681 aarch64_contains_opt,
26682 aarch64_get_extension_string_for_isa_flags): Change type of
26683 variables storing flags to uint64_t.
26684 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26685 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26686 * config/aarch64/aarch64.c (struct processor,
26687 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26688 aarch64_validate_march, aarch64_override_options,
26689 aarch64_option_print, aarch64_handle_attr_isa_flags,
26690 aarch64_declare_function_name, aarch64_start_file): Make flag
26691 variables uint64_t.
26692 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26693 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26694 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26695 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26696 * config/aarch64/driver-aarch64.c
26697 (struct aarch64_arch_extension, struct aarch64_core_data,
26698 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26699 flag variables uint64_t.
26700 * doc/invoke.texi: Add documentation for new arguments.
26701
26702 2019-05-22 Richard Biener <rguenther@suse.de>
26703
26704 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26705 rewrite ...
26706 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26707
26708 2019-05-22 Martin Liska <mliska@suse.cz>
26709
26710 PR lto/90500
26711 * doc/extend.texi: Document the change.
26712
26713 2019-05-22 Richard Biener <rguenther@suse.de>
26714
26715 PR tree-optimization/90450
26716 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26717 (mem_ref_hasher::equal): Check it.
26718 (mem_ref_alloc): Initialize it.
26719 (gather_mem_refs_stmt): Set it.
26720
26721 2019-05-22 Richard Biener <rguenther@suse.de>
26722
26723 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26724 Add ABS_EXPR.
26725 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26726 as ABSU_EXPR.
26727
26728 2019-05-22 Alan Modra <amodra@gmail.com>
26729
26730 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26731 (ASM_CPU_SPEC): Conditionally add -many.
26732 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26733 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26734 (rs6000_file_start): ..extracted from here, and modified to
26735 test all ISA bits.
26736 (rs6000_output_function_prologue): Emit .machine as necessary.
26737
26738 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26739
26740 PR middle-end/90553
26741 * ira-lives.c (process_bb_node_lives): Consider defs
26742 for a call insn to be die before the call, not after.
26743
26744 * function.c (assign_parm_setup_block): Raise alignment of
26745 stacked parameter only for STRICT_ALIGNMENT targets.
26746
26747 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26748
26749 * config/rs6000/constraints.md (define_register_constraint "wz"):
26750 Delete.
26751 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26752 RS6000_CONSTRAINT_wz.
26753 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26754 (rs6000_init_hard_regno_mode_ok): Adjust.
26755 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26756 * doc/md.texi (Machine Constraints): Adjust.
26757
26758 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26759
26760 * config/rs6000/constraints.md (define_register_constraint "wl"):
26761 Delete.
26762 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26763 RS6000_CONSTRAINT_wl.
26764 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26765 (rs6000_init_hard_regno_mode_ok): Adjust.
26766 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26767 * doc/md.texi (Machine Constraints): Adjust.
26768
26769 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26770
26771 * config/rs6000/constraints.md (define_register_constraint "wm"):
26772 Delete.
26773 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26774 RS6000_CONSTRAINT_wm.
26775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26776 (rs6000_init_hard_regno_mode_ok): Adjust.
26777 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26778 * doc/md.texi (Machine Constraints): Adjust.
26779
26780 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26781
26782 * config/rs6000/constraints.md (define_register_constraint "wk"):
26783 Delete.
26784 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26785 RS6000_CONSTRAINT_wk.
26786 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26787 (rs6000_init_hard_regno_mode_ok): Adjust.
26788 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26789 * doc/md.texi (Machine Constraints): Adjust.
26790
26791 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26792
26793 * config/rs6000/constraints.md (define_register_constraint "wj"):
26794 Delete.
26795 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26796 RS6000_CONSTRAINT_wj.
26797 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26798 (rs6000_init_hard_regno_mode_ok): Adjust.
26799 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26800 (VS_64dm): Delete.
26801 * config/rs6000/vsx.md: Ditto.
26802 * doc/md.texi (Machine Constraints): Adjust.
26803
26804 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26805
26806 * config/rs6000/constraints.md (define_register_constraint "wh"):
26807 Delete.
26808 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26809 RS6000_CONSTRAINT_wh.
26810 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26811 (rs6000_init_hard_regno_mode_ok): Adjust.
26812 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26813 * doc/md.texi (Machine Constraints): Adjust.
26814
26815 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26816
26817 PR target/90547
26818 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26819 Avoid calling gen_lowpart with CONST operand.
26820
26821 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26822
26823 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26824 field template_last_to_copy.
26825 (ssa_create_duplicates): Set it, and use it. Attempt to
26826 preserve more debug stmts.
26827
26828 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26829
26830 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26831 (signbit<mode>2): New expander
26832
26833 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26834
26835 PR bootstrap/87338
26836 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26837 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26838
26839 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26840
26841 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26842 %ebx and %ecx bafore calling cpuid with leaf 1 or
26843 non-constant leaf argument.
26844
26845 2019-05-21 Alan Modra <amodra@gmail.com>
26846
26847 PR target/90545
26848 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26849 power9 direct move cost.
26850
26851 2019-05-21 Richard Biener <rguenther@suse.de>
26852
26853 PR middle-end/90510
26854 * fold-const.c (fold_read_from_vector): New function.
26855 * fold-const.h (fold_read_from_vector): Declare.
26856 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26857 single-element insert permutations. Canonicalize selector
26858 further and fix issue with last commit.
26859
26860 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26861
26862 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26863 parameter with default value false to declaration.
26864 (split_edges_for_insertion): New inline function. Wrapper for
26865 split_critical_edges with for_edge_insertion_p = true.
26866 * tree-cfg.c (split_critical_edges): Don't split non-critical
26867 edges if for_edge_insertion_p is false. Fix whitespace.
26868 * tree-ssa-pre.c (pass_pre::execute): Call
26869 split_edges_for_insertion instead of split_critical_edges.
26870 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26871 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26872 (pass_data_sink_code): Update function name in the comment.
26873
26874 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26875
26876 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26877 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26878 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26879 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26880 positives.
26881
26882 2019-05-21 Martin Liska <mliska@suse.cz>
26883
26884 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26885 an extra newline.
26886 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26887 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26888 vec_lvsr.
26889 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26890 Quote a C type.
26891 (rs6000_function_arg): Likewise.
26892 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26893 (rs6000_expand_ternop_builtin): Use interval syntax.
26894 (get_element_number): Likewise.
26895 (altivec_expand_builtin): Likewise.
26896 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26897
26898 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26899
26900 PR c++/59813
26901 PR target/90418
26902 * function.h (struct function): Add calls_eh_return member.
26903 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26904 gimplifying __builtin_eh_return call.
26905 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26906 to cfun.
26907 (expand_call_inline): Or in src_cfun->calls_eh_return into
26908 dst_cfun->calls_eh_return.
26909 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26910 cfun->calls_eh_return.
26911 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26912 * lto-streamer-out.c (output_struct_function_base): Write
26913 calls_eh_return.
26914
26915 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26916
26917 PR rtl-optimization/43147
26918 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26919 IX86_BUILTIN_SHUFPD.
26920
26921 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26922
26923 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26924 (refs_may_alias_p_1): ... here; update stats.
26925 (refs_may_alias_p): Do not update stats here.
26926
26927 2019-05-20 Richard Biener <rguenther@suse.de>
26928
26929 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26930 doesn't produce pointers.
26931 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26932 the first operand points to.
26933
26934 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26935
26936 * tree-ssa-alias.c (compare_sizes): New function.
26937 (sompare_type_sizes): New function
26938 (aliasing_component_refs_p): Use it.
26939 (indirect_ref_may_alias_decl_p): Likewise.
26940
26941 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26942
26943 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26944
26945 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26946
26947 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26948 (LIBLSAN_EARLY_SPEC): Likewise.
26949 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26950
26951 2019-05-20 Martin Liska <mliska@suse.cz>
26952
26953 * config/i386/i386.c (ix86_libc_has_fast_function):
26954 Add ATTRIBUTE_UNUSED for the argument.
26955
26956 2019-05-20 Richard Biener <rguenther@suse.de>
26957
26958 * gimple-match-head.c: Include vec-perm-indices.h.
26959 * generic-match-head.c: Likewise.
26960 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26961 is included.
26962 * fold-const.c (fold_vec_perm): Export.
26963 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26964 (match.pd): ...here.
26965
26966 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26967
26968 * cfgloop.h (struct loop): Add simdlen member.
26969 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26970 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26971 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26972 as new argument to autovectorize_vector_sizes target hook. If
26973 loop->simdlen, pick up vector size where the vectorization factor
26974 is equal to loop->simd, and if there is none, fall back to the first
26975 successful one.
26976 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26977 caller.
26978 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26979 * omp-general.c (omp_max_vf): Likewise.
26980 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26981 * tree-vect-slp.c (vect_slp_bb): Likewise.
26982 * target.def (autovectorize_vector_sizes): Add ALL argument and
26983 document it.
26984 * doc/tm.texi: Adjust documentation.
26985 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26986 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26987 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26988 bool argument.
26989 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26990 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26991 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26992 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26993 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26994 preferred vector size is not 512-bit or 256-bit, just put those
26995 unpreferred ones last.
26996
26997 2019-05-20 Martin Liska <mliska@suse.cz>
26998
26999 * targhooks.c (default_libc_has_fast_function): New function.
27000 * targhooks.h (default_libc_has_fast_function): Likewise.
27001
27002 2019-05-20 Martin Liska <mliska@suse.cz>
27003
27004 PR middle-end/90263
27005 * builtins.c (expand_builtin_memory_copy_args): When having a
27006 target with fast mempcpy implementation do now use memcpy.
27007 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27008 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27009 * doc/tm.texi: Likewise.
27010 * doc/tm.texi.in: Likewise.
27011 * target.def:
27012 * expr.c (emit_block_move_hints): Add 2 new arguments.
27013 * expr.h (emit_block_move_hints): Bail out when libcall
27014 to memcpy would be used.
27015
27016 2019-05-20 Martin Liska <mliska@suse.cz>
27017
27018 * profile-count.c: Add vertical spacing in order
27019 to separate functions.
27020 * profile-count.h: Likewise.
27021
27022 2019-05-20 Martin Liska <mliska@suse.cz>
27023
27024 * profile-count.h: Do not use full qualified
27025 names if possible.
27026 * profile-count.c (profile_count::to_frequency): Likewise.
27027
27028 2019-05-20 Martin Liska <mliska@suse.cz>
27029
27030 * profile-count.h (enum profile_quality): Use capital letters
27031 for enum value names. Use the adjusted names.
27032 * profile-count.c: Use the adjusted names.
27033
27034 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27035
27036 * config/rs6000/constraints.md (define_register_constraint "wH"):
27037 Delete.
27038 (define_register_constraint "wI"): Delete.
27039 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27040 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27041 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27042 (rs6000_init_hard_regno_mode_ok): Adjust.
27043 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27044 resp. "d", or with "wa" as appropriate, all with "p8v".
27045 * config/rs6000/vsx.md: Ditto.
27046 * doc/md.texi (Machine Constraints): Adjust.
27047
27048 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27049
27050 * config/rs6000/constraints.md (define_register_constraint "wy"):
27051 Delete.
27052 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27053 RS6000_CONSTRAINT_wy.
27054 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27055 (rs6000_init_hard_regno_mode_ok): Adjust.
27056 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27057 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27058 (define_mode_attr Fisa): New.
27059 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27060 * doc/md.texi (Machine Constraints): Adjust.
27061
27062 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27063
27064 * config/rs6000/constraints.md (define_register_constraint "wu"):
27065 Delete.
27066 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27067 RS6000_CONSTRAINT_wu.
27068 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27069 (rs6000_init_hard_regno_mode_ok): Adjust.
27070 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27071 both with "p8v".
27072 (define_mode_attr Fa): Delete.
27073 * config/rs6000/vsx.md: Ditto.
27074 * doc/md.texi (Machine Constraints): Adjust.
27075
27076 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27077
27078 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27079 Delete.
27080 (define_register_constraint "wK"): Delete.
27081 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27082 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27083 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27084 (rs6000_init_hard_regno_mode_ok): Adjust.
27085 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27086 Replace "wK" constraint by "wH" with "p9v".
27087 * config/rs6000/vsx.md: Ditto.
27088 * doc/md.texi (Machine Constraints): Adjust.
27089
27090 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27091
27092 * config/rs6000/constraints.md (define_register_constraint "wb"):
27093 Delete.
27094 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27095 RS6000_CONSTRAINT_wb.
27096 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27097 (rs6000_init_hard_regno_mode_ok): Adjust.
27098 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27099 * config/rs6000/vsx.md: Ditto.
27100 * doc/md.texi (Machine Constraints): Adjust.
27101
27102 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27103
27104 * config/rs6000/constraints.md (define_register_constraint "wo"):
27105 Delete.
27106 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27107 RS6000_CONSTRAINT_wo.
27108 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27109 (rs6000_init_hard_regno_mode_ok): Adjust.
27110 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27111 * config/rs6000/altivec.md: Ditto.
27112 * doc/md.texi (Machine Constraints): Adjust.
27113
27114 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27115
27116 * config/darwin-c.c (darwin_register_objc_includes): Do not
27117 prepend the sysroot when building gnu-runtime header search
27118 paths.
27119
27120 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27121
27122 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27123 instead of direct output of the asm.
27124
27125 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27126
27127 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27128 argument to be type bool (was int before).
27129 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27130 at first use. Use type bool for some variables. Fix a theoretical
27131 eh_return bug for svr4.
27132
27133 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27134
27135 * config/rs6000/rs6000.md (isa): New attribute.
27136 (enabled): New attribute.
27137
27138 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27139
27140 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27141 assemble_start_function and assemble_end_function.
27142
27143 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27144
27145 PR middle-end/89433
27146 * omp-general.c (oacc_verify_routine_clauses): Change formal
27147 parameters. Add checking if already marked with an OpenACC
27148 'routine' directive. Adjust all users.
27149
27150 PR middle-end/89433
27151 * omp-general.c (oacc_build_routine_dims): Move some of its
27152 processing into...
27153 (oacc_verify_routine_clauses): ... this new function.
27154 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27155
27156 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27157
27158 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27159 formating of picbase labels to match other ports.
27160
27161 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27162
27163 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27164 in the generated code.
27165
27166 2019-05-16 Martin Sebor <msebor@redhat.com>
27167
27168 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27169 identifiers, keywords, operators, and types in diagnostics. Correct
27170 quoting, spelling, and sentence capitalization issues.
27171 (expand_builtin_atomic_is_lock_free): Same.
27172 (fold_builtin_next_arg): Same.
27173 * cfgexpand.c (expand_one_var): Same.
27174 (tree_conflicts_with_clobbers_p): Same.
27175 (expand_asm_stmt): Same.
27176 (verify_loop_structure): Same.
27177 * cgraphunit.c (process_function_and_variable_attributes): Same.
27178 * collect-utils.c (collect_execute): Same.
27179 * collect2.c (maybe_run_lto_and_relink): Same.
27180 (is_lto_object_file): Same.
27181 (scan_prog_file): Same.
27182 * convert.c (convert_to_real_1): Same.
27183 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27184 * except.c (verify_eh_tree): Same.
27185 * gcc.c (execute): Same.
27186 (eval_spec_function): Same.
27187 (run_attempt): Same.
27188 (driver::set_up_specs): Same.
27189 (compare_debug_auxbase_opt_spec_function): Same.
27190 * gcov-tool.c (unlink_gcda_file): Same.
27191 (do_merge): Same.
27192 (do_rewrite): Same.
27193 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27194 * gimplify.c (gimplify_asm_expr): Same.
27195 (gimplify_adjust_omp_clauses): Same.
27196 * hsa-gen.c (gen_hsa_addr_insns): Same.
27197 (gen_hsa_insns_for_load): Same.
27198 (gen_hsa_cmp_insn_from_gimple): Same.
27199 (gen_hsa_insns_for_operation_assignment): Same.
27200 (gen_get_level): Same.
27201 (gen_hsa_alloca): Same.
27202 (omp_simple_builtin::generate): Same.
27203 (gen_hsa_atomic_for_builtin): Same.
27204 (gen_hsa_insns_for_call): Same.
27205 * input.c (dump_location_info): Same.
27206 * ipa-devirt.c (compare_virtual_tables): Same.
27207 * ira.c (ira_setup_eliminable_regset): Same.
27208 * lra-assigns.c (lra_assign): Same.
27209 * lra-constraints.c (lra_constraints): Same.
27210 * lto-streamer-in.c (lto_input_mode_table): Same.
27211 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27212 (merge_and_complain): Same.
27213 (compile_offload_image): Same.
27214 (compile_images_for_offload_targets): Same.
27215 (debug_objcopy): Same.
27216 (run_gcc): Same.
27217 (main): Same.
27218 * opts.c (print_specific_help): Same.
27219 (parse_no_sanitize_attribute): Same.
27220 (print_help): Same.
27221 (handle_param): Same.
27222 * plugin.c (add_new_plugin): Same.
27223 (parse_plugin_arg_opt): Same.
27224 (try_init_one_plugin): Same.
27225 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27226 operators, and types in diagnostics. Correct quoting and spelling
27227 issues.
27228 * read-rtl-function.c (parse_edge_flag_token): Same.
27229 (function_reader::parse_enum_value): Same.
27230 * reg-stack.c (check_asm_stack_operands): Same.
27231 * regcprop.c (validate_value_data): Same.
27232 * sched-rgn.c (make_pass_sched_fusion): Same.
27233 * stmt.c (check_unique_operand_names): Same.
27234 * targhooks.c (default_target_option_pragma_parse): Same.
27235 * tlink.c (recompile_files): Same.
27236 * toplev.c (process_options): Same.
27237 (do_compile): Same.
27238 * trans-mem.c (diagnose_tm_1): Same.
27239 (ipa_tm_scan_irr_block): Same.
27240 (ipa_tm_diagnose_transaction): Same.
27241 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27242 format a tree code name in a diagnostic.
27243 (verify_types_in_gimple_min_lval): Same.
27244 (verify_types_in_gimple_reference): Same.
27245 (verify_gimple_call): Same.
27246 (verify_gimple_assign_unary): Same.
27247 (verify_gimple_assign_binary): Same.
27248 (verify_gimple_assign_ternary): Same.
27249 (verify_gimple_assign_single): Same.
27250 (verify_gimple_switch): Same.
27251 (verify_gimple_label): Same.
27252 (verify_gimple_phi): Same.
27253 (verify_gimple_in_seq): Same.
27254 (verify_eh_throw_stmt_node): Same.
27255 (collect_subblocks): Same.
27256 (gimple_verify_flow_info): Same.
27257 (do_warn_unused_result): Same.
27258 * tree-inline.c (expand_call_inline): Same.
27259 * tree-into-ssa.c (update_ssa): Same.
27260 * tree.c (tree_int_cst_elt_check_failed): Same.
27261 (tree_vec_elt_check_failed): Same.
27262 (omp_clause_operand_check_failed): Same.
27263 (verify_type_variant): Same.
27264 (verify_type): Same.
27265 * value-prof.c (verify_histograms): Same.
27266 * varasm.c (assemble_start_function): Same.
27267
27268 2019-05-16 Martin Sebor <msebor@redhat.com>
27269
27270 * config/i386/i386-expand.c (get_element_number): Quote keywords
27271 and other internal names in diagnostics. Adjust other diagnostic
27272 formatting issues noted by -Wformat-diag.
27273 * config/i386/i386-features.c
27274 (ix86_mangle_function_version_assembler_name): Same.
27275 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27276 * config/i386/i386.c (ix86_function_type_abi): Same.
27277 (ix86_function_ms_hook_prologue): Same.
27278 (classify_argument): Same.
27279 (ix86_expand_prologue): Same.
27280 (ix86_md_asm_adjust): Same.
27281 (ix86_memmodel_check): Same.
27282
27283 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27284
27285 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27286 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27287 and fpxx modes.
27288
27289 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27290
27291 PR target/90497
27292 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27293 intrinsics without SSE/SSE2/SSSE3.
27294 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27295 check.
27296 (*mmx_uavgv8qi3): Likewise.
27297
27298 2019-05-17 Richard Biener <rguenther@suse.de>
27299
27300 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27301 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27302
27303 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27304
27305 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27306 vec_sldw insn pattern.
27307
27308 2019-05-17 Richard Biener <rguenther@suse.de>
27309
27310 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27311
27312 2019-05-17 Martin Liska <mliska@suse.cz>
27313
27314 PR driver/90496
27315 * toplev.c (output_stack_usage): With LTO and sanitizer it
27316 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27317 has no file location.
27318
27319 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27320
27321 PR c++/90484
27322 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27323 sz0 is equal to sz1, instead return false in that case.
27324
27325 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27326 has non-constant expression, force sctx.lane and use two
27327 argument IFN_GOMP_SIMD_LANE instead of single argument.
27328 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27329 two argument IFN_GOMP_SIMD_LANE without lhs.
27330 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27331 member.
27332 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27333 Define.
27334 (LOOP_REQUIRES_VERSIONING): Or in
27335 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27336 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27337 simd_if_cond.
27338 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27339 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27340 from simd if clause if needed.
27341
27342 2019-05-16 Richard Biener <rguenther@suse.de>
27343
27344 * tree-affine.c (expr_to_aff_combination): New function split
27345 out from...
27346 (tree_to_aff_combination): ... here.
27347 (aff_combination_expand): Avoid building a GENERIC tree.
27348
27349 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27350
27351 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27352 assemble_start_function and assemble_end_function calls.
27353 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27354 assemble_start_function and assemble_end_function.
27355 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27356 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27357 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27358 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27359 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27360 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27361 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27362 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27363 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27364 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27365 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27366 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27367 Likewise.
27368 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27369 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27370 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27371 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27372 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27373 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27374 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27375 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27376 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27377 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27378 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27379 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27380 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27381 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27382 Likewise.
27383 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27384 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27385 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27386
27387 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27388
27389 * tree-ssa-alias.c (alias_stats): Add
27390 aliasing_component_refs_p_may_alias and
27391 aliasing_component_refs_p_no_alias.
27392 (dump_alias_stats): Print aliasing_component_refs_p stats.
27393 (aliasing_component_refs_p): Update stats.
27394
27395 2019-05-16 Martin Liska <mliska@suse.cz>
27396
27397 PR lto/90500
27398 * multiple_target.c (expand_target_clones): Do not allow
27399 target_clones being used with a symbol that is an alias.
27400
27401 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27402
27403 PR tree-optimization/90394
27404 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27405 positives rather than ICE for cases where (code2 == NE_EXPR
27406 && code1 == BIT_AND_EXPR).
27407
27408 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27409
27410 PR fortran/90329
27411 * tree-core.h (struct tree_decl_common): Document
27412 decl_nonshareable_flag for PARM_DECLs.
27413 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27414 * calls.c (expand_call): Don't try tail call if caller
27415 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27416 passed on the stack and callee needs to pass any arguments on the
27417 stack.
27418 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27419 else if instead of series of mutually exclusive ifs. Handle
27420 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27421 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27422
27423 * lto-streamer.h (LTO_major_version): Bump to 9.
27424
27425 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27426
27427 PR tree-optimization/90106
27428 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27429 new parameter as new internal function call, also move it to new
27430 basic block.
27431 (use_internal_fn): Pass internal function call to
27432 shrink_wrap_one_built_in_call_with_conds.
27433
27434 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27435
27436 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27437 max_vf to 1.
27438 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27439 safelen_int and set loop->dont_vectorize.
27440
27441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27442
27443 PR target/89021
27444 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27445 SSE/SSE2/SSSE3.
27446 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27447 Likewise.
27448 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27449 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27450 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27451 is defined.
27452
27453 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27454
27455 PR target/89021
27456 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27457 define_insn_and_split to support SSE emulation.
27458 (*vec_extractv2sf_0): Likewise.
27459 (*vec_extractv2sf_1): Likewise.
27460 (*vec_extractv2si_0): Likewise.
27461 (*vec_extractv2si_1): Likewise.
27462 (*vec_extractv2si_zext_mem): Likewise.
27463 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27464 (vec_extractv2sf_1 splitter): Likewise.
27465 (vec_extractv2sfsf): Likewise.
27466 (vec_setv2si): Likewise.
27467 (vec_extractv2si_1 splitter): Likewise.
27468 (vec_extractv2sisi): Likewise.
27469 (vec_setv4hi): Likewise.
27470 (vec_extractv4hihi): Likewise.
27471 (vec_setv8qi): Likewise.
27472 (vec_extractv8qiqi): Likewise.
27473 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27474 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27475 (vec_extractv2sisi): Likewise.
27476 (vec_extractv4hihi): Likewise.
27477 (vec_extractv8qiqi): Likewise.
27478 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27479 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27480 (vec_initv2sisi): Likewise.
27481 (vec_initv4hihi): Likewise.
27482 (vec_initv8qiqi): Likewise.
27483 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27484 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27485 (vec_setv4hi): Likewise.
27486 (vec_setv8qi): Likewise.
27487
27488 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27489
27490 PR target/89021
27491 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27492 TARGET_MMX_WITH_SSE.
27493 (MMXMODE:*mov<mode>_internal): Likewise.
27494 (MMXMODE:movmisalign<mode>): Likewise.
27495
27496 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27497
27498 PR target/89021
27499 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27500 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27501 (sse2_cvtpd2pi): Ditto.
27502 (sse2_cvttpd2pi): Ditto.
27503 (*vec_concatv2sf_sse4_1): Ditto.
27504 (*vec_concatv2sf_sse): Ditto.
27505 (*vec_concatv2si_sse4_1): Ditto.
27506 (*vec_concatv2si): Ditto.
27507 (*vec_concatv4si_0): Ditto.
27508 (*vec_concatv2di_0): Ditto.
27509
27510 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27511
27512 PR target/89021
27513 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27514
27515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27516
27517 PR target/89021
27518 * config/i386/sse.md (ssse3_palignrdi): Changed to
27519 define_insn_and_split to support SSE emulation.
27520
27521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27522
27523 PR target/89021
27524 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27525
27526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27527
27528 PR target/89021
27529 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27530 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27531 SSE emulation.
27532
27533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27534
27535 PR target/89021
27536 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27537 or TARGET_MMX_WITH_SSE.
27538 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27539
27540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27541
27542 PR target/89021
27543 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27544
27545 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27546
27547 PR target/89021
27548 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27549 Changed to define_insn_and_split to support SSE emulation.
27550
27551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27552
27553 PR target/89021
27554 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27555 Changed to define_insn_and_split to support SSE emulation.
27556
27557 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27558
27559 PR target/89021
27560 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27561 (*mmx_<emms>): This.
27562 (mmx_<emms>): New expander.
27563
27564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27565
27566 PR target/89021
27567 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27568 support.
27569 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27570
27571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27572
27573 PR target/89021
27574 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27575
27576 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27577
27578 PR target/89021
27579 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27580
27581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27582
27583 PR target/89021
27584 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27585 TARGET_MMX_WITH_SSE.
27586 (*mmx_uavgv4hi3): Add SSE emulation.
27587
27588 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27589
27590 PR target/89021
27591 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27592 and TARGET_MMX_WITH_SSE.
27593 (*mmx_uavgv8qi3): Add SSE emulation.
27594
27595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27596
27597 PR target/89021
27598 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27599 maskmovdqu for __MMX_WITH_SSE__.
27600
27601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27602
27603 PR target/89021
27604 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27605 TARGET_MMX and TARGET_MMX_WITH_SSE.
27606 (*mmx_umulv4hi3_highpart): 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_pmovmskb): Changed to
27612 define_insn_and_split to support SSE emulation.
27613
27614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27615
27616 PR target/89021
27617 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27618 and TARGET_MMX_WITH_SSE.
27619 (mmx_<code>v8qi3): Likewise.
27620 (smaxmin:<code>v4hi3): New.
27621 (umaxmin:<code>v8qi3): Likewise.
27622 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27623 (umaxmin:*mmx_<code>v8qi3): Likewise.
27624
27625 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27626
27627 PR target/89021
27628 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27629 TARGET_MMX_WITH_SSE.
27630 (*mmx_pinsrw): Add SSE emulation.
27631
27632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27633
27634 PR target/89021
27635 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27636
27637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27638
27639 PR target/89021
27640 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27641 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27642 SSE emulation.
27643
27644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27645
27646 PR target/89021
27647 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27648 (sse_cvttps2pi): Likewise.
27649
27650 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27651
27652 PR target/89021
27653 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27654 TARGET_MMX_WITH_SSE.
27655 (mmx_pshufw_1): Add SSE emulation.
27656 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27657 TARGET_MMX_WITH_SSE to support SSE emulation.
27658
27659 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27660
27661 PR target/89021
27662 * config/i386/constraints.md (Yw): New constraint.
27663 * config/i386/mmx.md (*vec_dupv2si): Changed to
27664 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27665 support SSE emulation.
27666
27667 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27668
27669 PR target/89021
27670 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27671 TARGET_MMX_WITH_SSE.
27672 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27673 support.
27674 (mmx_gt<mode>3): Likewise.
27675
27676 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27677
27678 PR target/89021
27679 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27680 TARGET_MMX_WITH_SSE. Add SSE support.
27681
27682 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27683
27684 PR target/89021
27685 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27686 TARGET_MMX_WITH_SSE.
27687 (any_logic:<code><mode>3): New.
27688 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27689 Add SSE support.
27690
27691 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27692
27693 PR target/89021
27694 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27695 TARGET_MMX_WITH_SSE. Add SSE emulation.
27696 (mmx_<shift_insn><mode>3): Likewise.
27697 (ashr<mode>3): New.
27698 (<shift_insn><mode>3): Likewise.
27699
27700 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27701
27702 PR target/89021
27703 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27704 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27705
27706 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27707
27708 PR target/89021
27709 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27710 TARGET_MMX_WITH_SSE.
27711 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27712 SSE support.
27713
27714 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27715
27716 PR target/89021
27717 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27718 TARGET_MMX_WITH_SSE.
27719 (mulv4hi3): New.
27720 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27721 support.
27722
27723 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27724
27725 PR target/89021
27726 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27727 (plusminus:mmx_<plusminus_insn><mode>3): Check
27728 TARGET_MMX_WITH_SSE.
27729 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27730 (<plusminus_insn><mode>3): New.
27731 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27732 (*mmx_<plusminus_insn><mode>3): Likewise.
27733
27734 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27735
27736 PR target/89021
27737 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27738 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27739 prototype.
27740 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27741 define_insn_and_split to support SSE emulation.
27742 (mmx_punpcklbw): Likewise.
27743 (mmx_punpckhwd): Likewise.
27744 (mmx_punpcklwd): Likewise.
27745 (mmx_punpckhdq): Likewise.
27746 (mmx_punpckldq): Likewise.
27747
27748 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27749 Uros Bizjak <ubizjak@gmail.com>
27750
27751 PR target/89021
27752 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27753 New function.
27754 (ix86_split_mmx_pack): Likewise.
27755 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27756 New prototype.
27757 (ix86_split_mmx_pack): Likewise.
27758 * config/i386/i386.md (mmx_isa): New.
27759 (enabled): Also check mmx_isa.
27760 * config/i386/mmx.md (any_s_truncate): New code iterator.
27761 (s_trunsuffix): New code attr.
27762 (mmx_packsswb): Removed.
27763 (mmx_packssdw): Likewise.
27764 (mmx_packuswb): Likewise.
27765 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27766 MMX packsswb/packuswb with SSE2.
27767 (mmx_packssdw): Likewise.
27768 * config/i386/predicates.md (register_mmxmem_operand): New.
27769
27770 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27771
27772 PR target/89021
27773 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27774 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27775 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27776 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27777 (ix86_vector_mode_supported_p): Likewise.
27778 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27779
27780 2019-05-15 Martin Liska <mliska@suse.cz>
27781
27782 PR middle-end/90478
27783 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27784 Check for overflow.
27785
27786 2019-05-15 Richard Biener <rguenther@suse.de>
27787
27788 * tree-into-ssa.c (pass_build_ssa::execute): Run
27789 update_address_taken before going into SSA.
27790
27791 2019-05-15 Richard Biener <rguenther@suse.de>
27792
27793 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27794 as __BIT_FIELD_REF with type with -gimple.
27795
27796 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27797
27798 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27799 semantically equivalent branches (left over after prior refactorings).
27800
27801 2019-05-15 Richard Biener <rguenther@suse.de>
27802
27803 PR tree-optimization/88828
27804 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27805 bogus check.
27806
27807 2019-05-14 Richard Biener <rguenther@suse.de>
27808
27809 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27810 as __VIEW_CONVERT with -gimple.
27811
27812 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27813
27814 PR target/82920
27815 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27816 Darwin.
27817
27818 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27819
27820 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27821 define_split to become a define_insn_and_split.
27822
27823 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27824
27825 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27826 arguments.
27827 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27828 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27829 (sibcall_epilogue): Adjust.
27830 (epilogue): Adjust.
27831
27832 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27833
27834 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27835 to unsupported ones.
27836 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27837 * config.host: Likewise.
27838 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27839 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27840 __svr4__]: Remove "brand" fallback.
27841 [!KSTAT_DATA_STRING]: Remove.
27842 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27843 to *-*-solaris2*.
27844 (comdat_group): Likewise.
27845 (set_have_as_tls): Likewise.
27846 (gcc_cv_target_dl_iterate_phdr): Likewise.
27847 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27848 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27849 * configure: Regenerate.
27850 * doc/install.texi: Simplify Solaris target triplets.
27851 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27852 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27853 Remove Solaris 10 references.
27854 Remove obsolete Solaris bug reference.
27855 (Specific, sparc-sun-solaris2.10): Remove.
27856
27857 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27858
27859 * config/i386/i386.md (any_div): New code iterator.
27860 (paired_mod): New code attribute.
27861 (sgnprefix): Handle DIV and UDIV RTXes.
27862 (u): Ditto.
27863 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27864 and udivmod<mode>4 patterns using any_div code iterator.
27865 (divmod splitters): Macroize splitters using any_div code iterator.
27866 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27867 (*udivmodsi4_pow2_zext_2): Ditto.
27868 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27869 and *udivmod<mode>4_noext patterns using any_div code iterator.
27870 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27871 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27872 patterns using any_div code iterator.
27873 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27874 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27875 patterns using any_div code iterator.
27876 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27877 udivmodhiqi3 patterns using any_extend code iterator.
27878
27879 2019-05-14 Richard Biener <rguenther@suse.de>
27880 H.J. Lu <hongjiu.lu@intel.com>
27881
27882 PR tree-optimization/88828
27883 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27884 permuting in a single non-constant element not extracted
27885 from a vector.
27886
27887 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27888
27889 * internal-fn.def (SIGNBIT): New.
27890 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27891 defined.
27892 (signbitv4sf2): Likewise.
27893
27894 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27895
27896 PR target/90357
27897 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27898 next insn when the SRC reg is dead.
27899
27900 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27901
27902 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27903 (alloc_cand_and_find_basis): Ditto.
27904 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27905 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27906 (create_add_imm_cand, slsr_process_cast): Ditto.
27907 (slsr_process_copy, replace_mult_candidate): Ditto.
27908 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27909 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27910 (pass_strength_reduction::execute): Init the first NULL element.
27911
27912 2019-05-13 Nathan Sidwell <nathan@acm.org>
27913
27914 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27915 (run_attempt): Reformat line break.
27916
27917 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27918
27919 PR target/90418
27920 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27921 data registers in sibcall epilogues.
27922 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27923
27924 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27925
27926 PR target/89221
27927 * configure.ac (--enable-frame-pointer):
27928 Disable by default for cygwin and mingw.
27929 * configure: Regenerate.
27930
27931 2019-05-13 Nathan Sidwell <nathan@acm.org>
27932
27933 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27934 piece of code.
27935 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27936 (gen_member_die): Move abstract origin check earlier. Only VARs
27937 can be static_inline_p. Simplify splicing control flow.
27938
27939 2019-05-13 Richard Biener <rguenther@suse.de>
27940
27941 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27942 VIEW_CONVERT_EXPR.
27943 (vect_build_slp_tree_1): Likewise.
27944
27945 2019-05-13 Richard Biener <rguenther@suse.de>
27946
27947 PR tree-optimization/90402
27948 * tree-if-conv.c (tree_if_conversion): Value number only
27949 the loop body by making the latch an exit of the region
27950 as well.
27951 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27952 processing PHIs.
27953 (do_rpo_vn): Deal with multiple edges into the entry block
27954 that are not backedges inside the region by skipping PHIs
27955 of the entry block.
27956
27957 2019-05-13 Richard Biener <rguenther@suse.de>
27958
27959 PR tree-optimization/90316
27960 * tree-ssa-pre.c (insert_aux): Fold into ...
27961 (insert): ... this function. Use a RPO walk to reduce the
27962 number of required iterations.
27963
27964 2019-05-13 Martin Liska <mliska@suse.cz>
27965
27966 PR tree-optimization/90416
27967 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27968 string instead of passing the second part as va_arg argument.
27969
27970 2019-05-13 Martin Liska <mliska@suse.cz>
27971
27972 PR gcov-profile/90380
27973 * gcov.c (handle_cycle): Do not support zero cycle count,
27974 it should not be possible.
27975 (path_contains_zero_cycle_arc): New function.
27976 (circuit): Ignore zero cycle arc counts.
27977
27978 2019-05-13 Martin Liska <mliska@suse.cz>
27979
27980 PR gcov-profile/90380
27981 * gcov.c (enum loop_type): Remove the enum and
27982 the operator.
27983 (handle_cycle): Assert that we should not reach
27984 a negative count.
27985 (circuit): Use loop_found instead of a tri-state loop_type.
27986 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27987 happen.
27988
27989 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27990
27991 PR target/82920
27992 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27993 (ix86_output_indirect_branch_via_reg): Use output mechanism
27994 accounting for __USER_LABEL_PREFIX__.
27995 (ix86_output_indirect_branch_via_push): Likewise.
27996 (ix86_output_function_return): Likewise.
27997 (ix86_output_indirect_function_return): Likewise.
27998
27999 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28000
28001 * doc/md.texi: Document use of code attributes in rtx patterns.
28002 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28003 * read-rtl.c (find_code): Split out search loops into...
28004 (maybe_find_code): ...this new function.
28005 (check_code_iterator): Make the error message more informative.
28006 (check_code_attribute): New function.
28007 (rtx_reader::rtx_alloc_for_name): Likewise.
28008 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28009 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28010 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28011 <max_opp> directly as an rtx code instead of via a match_operator.
28012 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28013 (<su>abd<mode>_3): Update accordingly.
28014
28015 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28016
28017 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28018 is given, print the state of the EH "save world" computation for
28019 Darwin.
28020
28021 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28022
28023 PR c++/59813
28024 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28025 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28026
28027 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28028
28029 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28030 Use pinsrd for TARGET_SSE4_1.
28031 * config/i386/sse.md (movdi_to_sse): Ditto.
28032
28033 2019-05-10 Richard Biener <rguenther@suse.de>
28034
28035 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28036 (do_rpo_vn): Initialize next_value_id.
28037
28038 2019-05-10 Martin Liska <mliska@suse.cz>
28039
28040 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28041 Fix plural form.
28042
28043 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28044
28045 PR tree-optimization/90385
28046 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28047 arguments of the exit phis.
28048
28049 PR c++/90383
28050 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28051 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28052 id->do_not_fold.
28053 (copy_tree_body_r): Likewise.
28054 (copy_fn): Set id.do_not_fold to true.
28055
28056 2019-05-10 Martin Liska <mliska@suse.cz>
28057
28058 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28059 Reapply changes from r269790.
28060
28061 2019-05-10 Martin Liska <mliska@suse.cz>
28062
28063 PR middle-end/90340
28064 * doc/invoke.texi: New params.
28065 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28066 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28067 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28068 Use it.
28069 * tree-switch-conversion.h (struct jump_table_cluster):
28070 Likewise.
28071
28072 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28073
28074 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28075
28076 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28077
28078 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28079
28080 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28081
28082 PR rtl-optimization/88879
28083 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28084
28085 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28086
28087 PR target/90405
28088 * config/arm/arm.c (callee_saved_reg_p): Move before
28089 thumb_find_work_register.
28090 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28091 thumb_find_work_register. Only call df_get_live_out once.
28092 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28093 (thumb_find_work_register): Use
28094 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28095 algorithms to locate a spare call clobbered reg.
28096
28097 2019-05-09 Martin Liska <mliska@suse.cz>
28098
28099 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28100 and MAX_EXPR in GIMPLE FE format.
28101
28102 2019-05-09 Martin Liska <mliska@suse.cz>
28103
28104 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28105 * gimple-pretty-print.c (dump_gimple_bb_header):
28106 Dump BB count.
28107 (pp_cfg_jump): Dump edge probability.
28108 * profile-count.c (profile_quality_as_string): Simplify
28109 with a static array.
28110 (parse_profile_quality): New function.
28111 (profile_count::dump): Simplify with a static array.
28112 (profile_count::from_gcov_type): Add new argument.
28113 * profile-count.h (parse_profile_quality): Likewise.
28114 * predict.h (set_hot_bb_threshold): New.
28115 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28116 New param.
28117 * predict.c (get_hot_bb_threshold): Set from the new param.
28118 (set_hot_bb_threshold): New.
28119
28120 2019-05-09 Richard Biener <rguenther@suse.de>
28121
28122 PR tree-optimization/90395
28123 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28124 rewrite vector stores that throw internally.
28125
28126 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28127
28128 * cif-code.def (CHKP): Remove.
28129
28130 PR target/89221
28131 * configure.ac (--enable-frame-pointer): Disable by default for
28132 GNU systems.
28133 * configure: Regenerate.
28134
28135 2019-05-09 Alan Modra <amodra@gmail.com>
28136
28137 PR target/89271
28138 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28139 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28140 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28141 cost for general <-> vsx when direct moves are available.
28142 Cost union classes at minimal cost for any reg in the class.
28143 Correct calculation for moves between vsx, float, and altivec.
28144 Don't return a low cost for moves between special regs. Don't
28145 use hard coded register numbers.
28146 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28147 (rs6000_ira_change_pseudo_allocno_class): New function.
28148 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28149 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28150 alternatives.
28151 (movsi_internal1): Don't disparage vector alternatives.
28152 (mov<mode>_internal): Likewise, excepting alternative that
28153 will be split.
28154 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28155 we <- b alternative.
28156
28157 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28158
28159 PR c++/59813
28160 PR tree-optimization/89060
28161 * tree-ssa-live.h (live_vars_map): New typedef.
28162 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28163 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28164 (struct compute_live_vars_data): New type.
28165 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28166 live_vars_at_stmt, destroy_live_vars): New functions.
28167 * tree-tailcall.c: Include tree-ssa-live.h.
28168 (live_vars, live_vars_vec): New global variables.
28169 (find_tail_calls): Perform variable life analysis before punting.
28170 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28171 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28172 member.
28173 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28174 Perform variable life analysis to select variables that really need
28175 clobbers added.
28176 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28177 instead set id->eh_landing_pad_dest and assert it is the same.
28178 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28179
28180 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28181 Richard Earnshaw <rearnsha@arm.com>
28182
28183 PR target/88167
28184 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28185 function.
28186 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28187 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28188 register if both the epilogue and prologue can use call-clobbered
28189 regs.
28190 (thumb1_unexpanded_epilogue): Use
28191 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28192 picking temporaries for restoring high regs to match that of the
28193 prologue where possible.
28194 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28195 the list of work registers. Detect if the return address is still live
28196 at the end of the prologue and avoid using it for a work register if so.
28197 If the return address is not live, add LR to the list of pushable regs
28198 after the first pass.
28199
28200 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28201
28202 PR tree-optimization/90078
28203 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28204 (INFTY): Increase the value for infinite cost.
28205 (struct comp_cost): Promote type of members to int64_t.
28206 (infinite_cost): Don't set complexity in initialization.
28207 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28208 overflows to infinite_cost.
28209 (adjust_setup_cost): Promote type of parameter and cost computation
28210 to int64_t.
28211 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28212 int64_t.
28213 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28214 cost computation to int64_t.
28215 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28216 int64_t's format specifier in dump.
28217
28218 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28219
28220 PR tree-optimization/90240
28221 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28222 with respect to scaling factor pre-computed for each basic block.
28223 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28224 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28225 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28226 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28227 live range for array of loop's basic blocks. Cleanup aux field of
28228 loop's basic blocks.
28229
28230 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28231
28232 PR tree-optimization/90356
28233 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28234
28235 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28236
28237 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28238 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28239 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28240 (ix86_handle_option): Handle -mavx512bf16.
28241 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28242 to extra_headers.
28243 * config/i386/avx512bf16vlintrin.h: New.
28244 * config/i386/avx512bf16intrin.h: New.
28245 * config/i386/cpuid.h (bit_AVX512BF16): New.
28246 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28247 * config/i386/i386-builtin-types.def: Add new types.
28248 * config/i386/i386-builtin.def: Add new builtins.
28249 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28250 __AVX512BF16__.
28251 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28252 (ix86_option_override_internal): Handle BF16.
28253 (ix86_valid_target_attribute_inner_p): Ditto.
28254 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28255 * config/i386/i386-builtin.c (enum processor_features): Add
28256 F_AVX512BF16.
28257 (static const _isa_names_table isa_names_table): Ditto.
28258 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28259 (PTA_AVX512BF16): Ditto.
28260 * config/i386/i386.opt: Add -mavx512bf16.
28261 * config/i386/immintrin.h: Include avx512bf16intrin.h
28262 and avx512bf16vlintrin.h.
28263 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28264 avx512f_cvtneps2bf16_<mode><mask_name>,
28265 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28266 * config/i386/subst.md (mask_half): Add new subst.
28267 * doc/invoke.texi: Document -mavx512bf16.
28268
28269 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28270
28271 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28272 Delete declaration.
28273 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28274 (rs6000_debug_legitimize_reload_address): Delete.
28275 (rs6000_legitimize_reload_address_ptr): Delete.
28276 (rs6000_option_override_internal): Adjust.
28277 (mem_operand_gpr): Adjust comment.
28278 (legitimate_lo_sum_address_p): Ditto.
28279 (rs6000_legitimize_reload_address): Delete.
28280 (rs6000_debug_legitimize_reload_address): Delete.
28281 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28282
28283 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28284
28285 PR target/89765
28286 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28287 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28288 to compute vector element selector for both constant and variable
28289 operands.
28290
28291 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28292
28293 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28294 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28295 ashrdi3_cvt using SWI48 mode iterator.
28296
28297 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28298
28299 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28300 (aarch64_<su>abd<mode>_3): Likewise.
28301 (*aarch64_<su>abd<mode>_3): New define_insn.
28302 (<sur>sad<vsi2qi>): New define_expand.
28303 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28304 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28305 (build_vect_cond_expr): Likewise.
28306
28307 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28308
28309 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28310 clobbers outside of accessible_reg_set.
28311 * config/i386/i386.c (ix86_conditional_register_usage):
28312 Disable register sets by clearing corresponding bits in
28313 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28314 call_used_regs and don't clear corresponding reg_names array members.
28315
28316 2019-05-07 Richard Biener <rguenther@suse.de>
28317
28318 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28319 not specified still compute a comp_vectype for invariant
28320 compares.
28321
28322 2019-05-07 Richard Biener <rguenther@suse.de>
28323
28324 PR tree-optimization/90316
28325 * tree-ssa-pre.c (translate_vuse_through_block): When
28326 same_valid is NULL do not bother to search for a virtual
28327 PHI continuation.
28328 (phi_translate_1): When operands changed we cannot keep
28329 the same value-number so do not bother to ask whether
28330 that's possible from translate_vuse_through_block.
28331
28332 2019-05-07 Martin Liska <mliska@suse.cz>
28333
28334 * bitmap.c (bitmap_register): Come up with
28335 alloc_descriptor_max_uid and assign it for
28336 a new bitmap.
28337 (register_overhead): Use get_descriptor as
28338 a descriptor.
28339 (release_overhead): New.
28340 (bitmap_elem_to_freelist): Call it.
28341 (bitmap_elt_clear_from): Likewise.
28342 (bitmap_obstack_free): Likewise.
28343 (bitmap_move): Sensitively release memory.
28344 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28345 (bitmap_initialize): Initialize alloc_descriptor to zero.
28346 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28347
28348 2019-05-07 Richard Biener <rguenther@suse.de>
28349
28350 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28351 we build a SLP node. Remove max_size and limiting.
28352 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28353
28354 2019-05-07 Richard Biener <rguenther@suse.de>
28355
28356 PR tree-optimization/90316
28357 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28358 limit by reference.
28359 (walk_non_aliased_vuses): Take walking limit argument.
28360 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28361 walking if it is reached instead of just counting.
28362 (get_continuation_for_phi): Likewise.
28363 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28364 limiting to the callback.
28365 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28366 (vn_reference_lookup_3): Likewise.
28367 (vn_reference_lookup_pieces): Likewise.
28368 (vn_reference_lookup): Likewise.
28369 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28370 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28371 (avail_exprs_stack::lookup_avail_expr): Likewise.
28372
28373 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28374
28375 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28376 for comparaible types in the second direction even if first one
28377 hits incomparable type.
28378
28379 2019-05-07 Richard Biener <rguenther@suse.de>
28380
28381 PR lto/90369
28382 * lto-wrapper.c (debug_objcopy): Use the original filename
28383 including archive offset for the filename used for -save-temps.
28384
28385 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28386
28387 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28388 detection.
28389
28390 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28391 Hongtao Liu <hongtao.liu@intel.com>
28392
28393 PR target/89750
28394 PR target/86444
28395 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28396 Modified, original implementation isn't correct.
28397
28398 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28399
28400 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28401 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28402 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28403 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28404 (FRAME_POINTER_REGNUM): Change numbering.
28405 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28406 (alt_reg_names): Adjust.
28407 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28408 fixed.
28409 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28410 (DWARF_FRAME_REGISTERS): Delete.
28411 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28412 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28413 Adjust.
28414 (REG_ALLOC_ORDER): Adjust.
28415 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28416 (REG_CLASS_CONTENTS): Adjust.
28417 (RETURN_ADDR_RTX): Change comment.
28418 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28419 instead of 67.
28420 (REGISTER_NAMES): Adjust.
28421 (ADDITIONAL_REGISTER_NAMES): Adjust.
28422 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28423
28424 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28425
28426 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28427 Delete.
28428 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28429 (DWARF_FRAME_REGISTERS): Adjust.
28430 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28431 Adjust.
28432 (REG_ALLOC_ORDER): Adjust.
28433 (enum reg_class): Delete SPR_REGS.
28434 (REG_CLASS_NAMES): Delete SPR_REGS.
28435 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28436 (REGISTER_NAMES): Adjust.
28437 (ADDITIONAL_REGISTER_NAMES): Adjust.
28438 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28439 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28440 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28441 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28442 (htm_spr_regno): Delete.
28443 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28444 argument.
28445 (rs6000_dbx_register_number): Adjust.
28446
28447 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28448
28449 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28450
28451 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28452
28453 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28454 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28455
28456 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28457
28458 PR tree-optimization/88709
28459 PR tree-optimization/90271
28460 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28461 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28462 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28463 variable.
28464 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28465 of the store merging group is larger than
28466 PARAM_STORE_MERGING_MAX_SIZE parameter.
28467 (split_group): Add bzero_first argument. If set, always emit first
28468 the first store which must be = {} of the whole area and then for the
28469 rest of the stores consider all zero bytes as paddings.
28470 (imm_store_chain_info::output_merged_store): Check if first store
28471 is = {} of the whole area and if yes, determine which setting of
28472 bzero_first for split_group gives smaller number of stores. Adjust
28473 split_group callers.
28474 (lhs_valid_for_store_merging_p): Allow decls.
28475 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28476 no elts.
28477 (pass_store_merging::process_store): Likewise.
28478
28479 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28480
28481 PR target/89424
28482 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28483 handling of V1TImode.
28484
28485 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28486
28487 PR target/89221
28488 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28489 and enable_frame_pointer ...
28490 * configure.ac: ... here. Update help strings for
28491 --enable-frame-pointer.
28492 * configure: Regenerate.
28493 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28494 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28495 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28496 (USE_X86_64_FRAME_POINTER): Ditto.
28497
28498 2019-05-06 Martin Liska <mliska@suse.cz>
28499
28500 * config.gcc: Append to target_gtfiles and fix indentation.
28501
28502 2019-05-06 Richard Biener <rguenther@suse.de>
28503
28504 PR tree-optimization/90358
28505 * tree-vect-stmts.c (get_group_load_store_type): Properly
28506 detect unused upper half of load.
28507 (vectorizable_load): Likewise.
28508
28509 2019-05-06 Richard Biener <rguenther@suse.de>
28510
28511 PR tree-optimization/88828
28512 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28513 (simplify_vector_constructor): ...here. Handle constants in
28514 the constructor.
28515
28516 2019-05-06 Richard Biener <rguenther@suse.de>
28517
28518 PR tree-optimization/90328
28519 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28520 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28521 is valid in the loop nest before using it.
28522 (initialize_data_dependence_relation): Adjust.
28523 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28524 loop as loop-nest to dr_may_alias_p.
28525
28526 2019-05-06 Richard Biener <rguenther@suse.de>
28527
28528 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28529
28530 2019-05-06 Richard Biener <rguenther@suse.de>
28531
28532 PR tree-optimization/90316
28533 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28534 compute target on demand.
28535 (get_continuation_for_phi): Remove code walking stmts to
28536 get to a target virtual operand which could end up being
28537 quadratic.
28538
28539 2019-05-06 Martin Liska <mliska@suse.cz>
28540
28541 PR sanitizer/90312
28542 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28543 when -mabi is selected to a non-default version.
28544
28545 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28546 Martin Liska <mliska@suse.cz>
28547
28548 * Makefile.in: Add lto-dump.texi.
28549 * cgraph.h: Add new functions get_visibility_string and
28550 get_symtab_type_string.
28551 * doc/gcc.texi: Include lto-dump section.
28552 * doc/lto-dump.texi: New file.
28553 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28554 (parse_dump_option): Factor out this function.
28555 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28556 (parse_dump_option): Export the function.
28557 * symtab.c (symtab_node::get_visibility_string): New function.
28558 (symtab_node::get_symtab_type_string): Likewise.
28559
28560 2019-05-06 Martin Liska <mliska@suse.cz>
28561
28562 * config/i386/i386-builtins.c: New file.
28563 * config/i386/i386-builtins.h: New file.
28564 * config/i386/i386-expand.c: New file.
28565 * config/i386/i386-expand.h: New file.
28566 * config/i386/i386-features.c: New file.
28567 * config/i386/i386-features.h: New file.
28568 * config/i386/i386-options.c: New file.
28569 * config/i386/i386-options.h: New file.
28570 * config.gcc: Add new files into extra_objs and
28571 target_gtfiles.
28572 * config/i386/i386.c: Split content of the file
28573 into newly introduced files.
28574 * config/i386/i386.h: Declare common variables
28575 and macros.
28576 * config/i386/t-i386: Define dependencies for new files.
28577
28578 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28579
28580 PR target/89400
28581 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28582 Restrict 'all' variant to 32-bit configurations.
28583 (unaligned_loadhiu): Likewise.
28584 (unaligned_storehi): Likewise.
28585 (unaligned_storesi): Likewise.
28586 (unaligned_loadhis): Disable when compiling for thumb1.
28587
28588 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28589
28590 PR tree-optimization/90269
28591 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28592 Ignore clobbers.
28593
28594 2019-05-03 Martin Liska <mliska@suse.cz>
28595
28596 * hash-map.h: Add is_empty function.
28597 * hash-set.h: Likewise.
28598 * hash-table.h: Likewise.
28599 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28600 elements () == 0 (and similar usages).
28601 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28602 * gimplify.c (gimplify_bind_expr): Likewise.
28603 (gimplify_switch_expr): Likewise.
28604 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28605 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28606 * postreload-gcse.c (dump_hash_table): Likewise.
28607 (gcse_after_reload_main): Likewise.
28608 * predict.c (combine_predictions_for_bb): Likewise.
28609 * tree-parloops.c (reduction_phi): Likewise.
28610 (separate_decls_in_region): Likewise.
28611 (transform_to_exit_first_loop): Likewise.
28612 (gen_parallel_loop): Likewise.
28613 (gather_scalar_reductions): Likewise.
28614 (try_create_reduction_list): Likewise.
28615 * var-tracking.c (dump_vars): Likewise.
28616 (emit_notes_for_changes): Likewise.
28617 (vt_emit_notes): Likewise.
28618
28619 2019-05-03 Richard Biener <rguenther@suse.de>
28620
28621 PR tree-optimization/90316
28622 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28623 before running VN.
28624
28625 2019-05-03 Richard Biener <rguenther@suse.de>
28626
28627 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28628 peeling for gaps by loading only lower halves of vectors
28629 if possible.
28630 (vectorizable_load): Likewise.
28631
28632 2019-05-03 Richard Biener <rguenther@suse.de>
28633
28634 PR middle-end/89518
28635 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28636
28637 2019-05-03 Richard Biener <rguenther@suse.de>
28638
28639 PR middle-end/87314
28640 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28641 Handle STRING_CST vs DECL or STRING_CST.
28642
28643 2019-05-03 Richard Biener <rguenther@suse.de>
28644
28645 PR tree-optimization/88963
28646 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28647 vector loads feeding only BIT_FIELD_REFs to component
28648 loads. Rewrite stores fed by CONSTRUCTORs to component
28649 stores.
28650
28651 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28652
28653 * opts.h (finish_options): Remove lang_mask argument.
28654 (print_help, help_option_argument): Declare.
28655 * opts.c (print_help): Remove forward declaration, no longer static.
28656 (finish_options): Remove lang_mask argument, don't call print_help
28657 here.
28658 * opts-global.c (decode_options): Adjust finish_option caller, call
28659 print_help here.
28660
28661 PR tree-optimization/90303
28662 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28663 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28664
28665 2019-05-03 Richard Biener <rguenther@suse.de>
28666
28667 PR tree-optimization/89698
28668 * gimple-fold.c (canonicalize_constructor_val): Early out
28669 for constants, handle unfolded INTEGER_CSTs as they appear in
28670 C++ virtual table ctors.
28671
28672 2019-05-03 Richard Biener <rguenther@suse.de>
28673
28674 * passes.c (execute_function_todo): Remove dead code.
28675
28676 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28677
28678 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28679 the internal register number, for any "real" register.
28680
28681 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28682
28683 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28684 correct numbers for TFHAR, TFIAR, TEXASR.
28685
28686 2019-05-02 Richard Biener <rguenther@suse.de>
28687
28688 PR tree-optimization/89653
28689 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28690 update-address-taken before the pass.
28691 * passes.def (pass_tree_loop_init): Put comment before it.
28692
28693 2019-05-02 Richard Biener <rguenther@suse.de>
28694
28695 PR tree-optimization/89509
28696 * tree-ssa-structalias.c (compute_dependence_clique): Look
28697 at the first subvar when determining whether it is restrict.
28698
28699 2019-05-02 Richard Biener <rguenther@suse.de>
28700
28701 PR tree-optimization/90273
28702 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28703 useless debug stmts.
28704
28705 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28706
28707 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28708 ACLE branch.
28709 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28710 SVE ACLE branch.
28711 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28712 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28713 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28714 (vectorizable_reduction): Use the functions above to vectorize in a
28715 fully masked loop codes that don't have a conditional internal
28716 function.
28717
28718 2019-05-02 Martin Liska <mliska@suse.cz>
28719
28720 * cgraphclones.c: Call valid_attribute_p with 1 for
28721 target_clone.
28722 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28723 it's for target attribute.
28724 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28725 Add new boolean argument.
28726 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28727 Likewise.
28728 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28729 to ix86_valid_target_attribute_inner_p.
28730 (ix86_valid_target_attribute_p): Pass flags argument to
28731 ix86_valid_target_attribute_inner_p.
28732 (get_builtin_code_for_version): Use 0 as it's target attribute.
28733
28734 2019-05-02 Martin Liska <mliska@suse.cz>
28735
28736 * gcc.c (process_command): Add dummy file only
28737 if n_infiles == 0.
28738 * opts-global.c (decode_options): Pass lang_mask.
28739 * opts.c (print_help): New function.
28740 (finish_options): Print --help if help_option_argument
28741 is set.
28742 (common_handle_option): Factor out content of OPT__help_
28743 into print_help.
28744 * opts.h (finish_options): Add new argument.
28745
28746 2019-05-02 Martin Liska <mliska@suse.cz>
28747
28748 PR target/88809
28749 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28750 With -minline-all-stringops use inline expansion using 4B loop.
28751 * doc/invoke.texi: Document the change of
28752 -minline-all-stringops.
28753
28754 2019-05-01 Jeff Law <law@redhat.com>
28755
28756 PR tree-optimization/88797
28757 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28758 PHI feeds a conditional on the RHS of an assignment.
28759
28760 2019-04-30 Andrew Waterman <andrew@sifive.com>
28761 Jim Wilson <jimw@sifive.com>
28762
28763 * config/riscv/constraints.md (L): New.
28764 * config/riscv/predicates.md (lui_operand): New.
28765 (sfb_alu_operand): New.
28766 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28767 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28768 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28769 * config/riscv/risc.md (type): Add sfb_alu.
28770 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28771 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28772 (branch_zero<mode>): Delete.
28773 (mov<mode>cc): New.
28774 (mov<GPR:mode><X:mode>cc): Likewise.
28775 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28776
28777 2019-04-30 Nathan Sidwell <nathan@acm.org>
28778
28779 * tree.h (MARK_TS_EXP): New.
28780
28781 2019-04-30 Martin Liska <mliska@suse.cz>
28782
28783 * opts.c (enable_warning_as_error): Provide hints
28784 for unknown options.
28785
28786 2019-04-30 Martin Liska <mliska@suse.cz>
28787
28788 PR debug/90288
28789 * doc/invoke.texi: Add missing dash for gas-locview-support
28790 and gno-as-locview-support.
28791
28792 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28793
28794 PR target/89093
28795 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28796 whitespace at the start of target attribute string.
28797
28798 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28799
28800 PR target/86538
28801 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28802 Define __ARM_FEATURE_ATOMICS.
28803
28804 2019-04-30 Martin Liska <mliska@suse.cz>
28805
28806 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28807 into built_in_function enum. Remove code for endp == 2 and
28808 use BUILT_IN_* constants.
28809 (gimple_fold_builtin): Call the function with fcode.
28810
28811 2019-04-30 Martin Liska <mliska@suse.cz>
28812
28813 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28814 DECL_FUNCTION_CODE into ix86_builtins enum before
28815 the switch statement.
28816
28817 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28818
28819 PR tree-optimization/89475
28820 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28821 calls.
28822
28823 2019-04-30 Martin Liska <mliska@suse.cz>
28824
28825 PR translation/90274
28826 * opts.c (print_filtered_help): Wrap string in _(...).
28827
28828 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28829
28830 PR tree-optimization/90240
28831 Revert:
28832 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28833
28834 PR tree-optimization/90078
28835 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28836 checks for infinite_cost overflow.
28837
28838 2019-04-29 Jeff Law <law@redhat.com>
28839
28840 * passes.def: Move -Wrestrict pass after copy propagation.
28841
28842 2019-04-29 Maya Rashish <coypu@sdf.org>
28843
28844 * config.gcc (default_gnu_indirect_function): Default to yes
28845 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28846 sparc*-*-netbsd*, x86_64-*-netbsd*.
28847
28848 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28849
28850 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28851 where cond2 is NE_EXPR.
28852 (is_value_included_in): Update comment.
28853
28854 2019-04-29 Richard Biener <rguenther@suse.de>
28855
28856 PR tree-optimization/90278
28857 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28858 EH on comparison simplification.
28859
28860 2019-04-29 Jason Merrill <jason@redhat.com>
28861
28862 PR c++/82081 - tail call optimization breaks noexcept
28863 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28864 nothrow function to a might-throw function into a tail call.
28865
28866 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28867
28868 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28869 (DDR_INNER_LOOP): Likewise.
28870 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28871 (initialize_data_dependence_relation): Likewise.
28872 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28873
28874 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28875
28876 PR rtl-optimization/90257
28877 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28878 return value.
28879
28880 Revert the revert:
28881 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28882
28883 PR target/90178
28884 Revert:
28885 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28886
28887 Revert the revert:
28888 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28889
28890 Revert:
28891 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28892
28893 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28894
28895 2019-04-29 Richard Biener <rguenther@suse.de>
28896
28897 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28898 rhs issue a reset.
28899
28900 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28901
28902 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28903 varasm.h, and netbsd-protos.h.
28904
28905 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28906
28907 PR target/89261
28908 * config/i386/i386-protos.h (ix86_data_alignment): Change
28909 the second argument type to unsigned int.
28910 * config/i386/i386.c (ix86_data_alignment): Change "align"
28911 argument type to unsigned int.
28912
28913 2019-04-27 Martin Liska <mliska@suse.cz>
28914
28915 PR middle-end/90258
28916 * opt-suggestions.c (option_proposer::build_option_suggestions):
28917 When get_valid_option_values returns empty values, add the
28918 misspelling candidate.
28919
28920 2019-04-26 Jim Wilson <jimw@sifive.com>
28921
28922 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28923 parameter.
28924 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28925 Pass orig_mode to riscv_build_integer.
28926 (riscv_split_integer): Pass mode to riscv_move_integer.
28927 (riscv_legitimize_const_move): Likewise.
28928 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28929 promoted_mode. Replace force_reg call with code to load constant into
28930 promoted reg and then subreg it for the store.
28931 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28932 riscv_move_integer.
28933
28934 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28935
28936 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28937 corrupt codes.
28938
28939 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28940
28941 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28942 commentary about the encoding of precision.
28943
28944 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28945
28946 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28947 * config/i386/t-freebsd64: New file.
28948 * config.gcc: Add the t-freebsd64 for multilib support.
28949
28950 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28951
28952 * doc/extend.texi (vector_size): Add missing comma after @xref.
28953
28954 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28955
28956 * BASE-VER: Set to 10.0.0.
28957
28958 2019-04-25 Richard Biener <rguenther@suse.de>
28959
28960 PR middle-end/89765
28961 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28962 VIEW_CONVERT_EXPR into one operating on an rvalue.
28963
28964 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28965
28966 PR target/89929
28967 * config/i386/i386.c (feature_priority): Moved to file scope.
28968 (processor_features): Likewise.
28969 (processor_model): Likewise.
28970 (_arch_names_table): Likewise.
28971 (arch_names_table): Likewise.
28972 (_feature_list): Removed.
28973 (feature_list): Likewise.
28974 (_isa_names_table): Moved to file scope. Add priority.
28975 (isa_names_table): Likewise.
28976 (get_builtin_code_for_version): Replace feature_list with
28977 isa_names_table. Update error message for P_ZERO priority.
28978
28979 2019-04-25 Richard Biener <rguenther@suse.de>
28980
28981 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28982 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28983
28984 2019-04-24 Jeff Law <law@redhat.com>
28985
28986 PR tree-optimization/90037
28987 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28988 * passes.def: Replace all instance of phi-only cprop with the
28989 lattice propagator. Move propagation pass from after erroneous
28990 path isolation to before erroneous path isolation.
28991 * tree-ssa-phionlycprop.c: Remove.
28992
28993 2019-04-24 Richard Biener <rguenther@suse.de>
28994
28995 PR middle-end/90213
28996 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28997 by size and BITS_PER_UNIT on poly-wide-ints.
28998
28999 2019-04-25 Richard Biener <rguenther@suse.de>
29000
29001 PR middle-end/90194
29002 * match.pd: Add pattern to simplify view-conversion of an
29003 empty constructor.
29004
29005 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29006
29007 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29008 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29009 for Go on 32 bit AIX.
29010 * config/rs6000/aix72.h: Likewise.
29011
29012 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29013
29014 PR target/90193
29015 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29016 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29017
29018 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29019
29020 PR target/89952
29021 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29022 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29023 for restored hard frame pointer.
29024 (s390_sched_dependencies_evaluation): Implement new target hook.
29025 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29026
29027 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29028
29029 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29030 * config/arc/arc.c (arc_init): Cleanup warning message.
29031 (arc_override_options): Likewise.
29032
29033 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29034
29035 PR target/90187
29036 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29037 a register if both if_true and if_false are MEMs.
29038
29039 PR tree-optimization/90208
29040 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29041 after labels of new_bb, not before them.
29042
29043 PR tree-optimization/90211
29044 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29045 which are not SSA_NAMEs.
29046
29047 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29048
29049 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29050 AArch64.
29051 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29052
29053 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29054
29055 PR rtl-optimization/87979
29056 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29057 not equal zero.
29058
29059 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29060
29061 PR rtl-optimization/84032
29062 * modulo-sched.c (ps_insn_find_column): Change condition so that
29063 branch will always be the last insn in a row inside partial
29064 schedule.
29065
29066 2019-04-23 Richard Biener <rguenther@suse.de>
29067
29068 PR debug/90131
29069 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29070 dest_single_pred_p argument.
29071 (remove_forwarder_block): Adjust.
29072 (remove_forwarder_block_with_phi): Likewise.
29073
29074 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29075 Bernd Edlinger <bernd.edlinger@hotmail.de>
29076 Jakub Jelinek <jakub@redhat.com>
29077
29078 PR target/89093
29079 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29080 if used with general-regs-only.
29081 (arm_conditional_register_usage): Don't add non-general regs if
29082 general-regs-only.
29083 (arm_valid_target_attribute_rec): Handle general-regs-only.
29084 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29085 general-regs-only.
29086 (TARGET_HARD_FLOAT_SUB): Define.
29087 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29088 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29089 (TARGET_REALLY_IWMMXT2): Likewise.
29090 * config/arm/arm.opt: Add -mgeneral-regs-only.
29091 * doc/extend.texi: Document ARM general-regs-only target.
29092 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29093
29094 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29095
29096 PR tree-optimization/90078
29097 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29098 checks for infinite_cost overflow.
29099
29100 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29101
29102 PR tree-optimization/90021
29103 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29104 and check univariate against it.
29105 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29106 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29107
29108 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29109
29110 PR target/90178
29111 Revert:
29112 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29113
29114 Revert the revert:
29115 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29116
29117 Revert:
29118 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29119
29120 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29121
29122 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29123
29124 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29125 names using operand format, rather than hard-wired.
29126 (speculation_barrier): Likewise.
29127
29128 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29129
29130 PR tree-optimization/88055
29131 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29132 (gen_one_condition): Use it if !HONOR_NANS.
29133
29134 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29135
29136 PR middle-end/90139
29137 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29138 assign_temp instead of gen_reg_rtx.
29139
29140 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29141
29142 PR translation/90118
29143 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29144 Add missing space before %<.
29145
29146 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29147
29148 PR rtl-optimization/87871
29149 * ira-lives.c (make_object_dead): Don't add conflicts to
29150 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29151
29152 2019-04-18 Martin Sebor <msebor@redhat.com>
29153
29154 PR middle-end/89797
29155 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29156 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29157 assuming type size fits in SHWI.
29158
29159 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29160
29161 PR ipa/85051
29162 * ipa-inline.c (flatten_function): New parameter UPDATE.
29163 (ipa_inline, early_inliner): Use it.
29164
29165 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29166
29167 * fold-const.c (int_const_binop): Return early on failure.
29168
29169 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29170
29171 PR middle-end/85164
29172 * combine.c (force_int_to_mode): Cast the argument rather than
29173 the result of known_alignment.
29174 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29175
29176 2019-04-18 Richard Biener <rguenther@suse.de>
29177
29178 PR debug/90131
29179 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29180 out from ...
29181 (remove_forwarder_block): ... here.
29182 (remove_forwarder_block_with_phi): Also move debug stmts here.
29183
29184 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29185
29186 PR translation/79183
29187 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29188 inform where appropriate.
29189
29190 2019-04-18 Richard Biener <rguenther@suse.de>
29191
29192 * tree.c (get_qualified_type): Put found type variants at the
29193 head of the variant list.
29194
29195 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29196
29197 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29198
29199 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29200
29201 PR target/90125
29202 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29203 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29204 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29205 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29206 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29207
29208 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29209
29210 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29211 even for allocno's with no conflicts.
29212 (print_conflicts): Print an extra newline.
29213
29214 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29215
29216 * auto-inc-dec.c (attempt_change): Set the alignment of the
29217 temporary memory to that of the original.
29218
29219 2019-04-17 Joao Moreira <jmoreira@suse.de>
29220
29221 * targhooks.c (default_print_patchable_function_entry): Emit
29222 __patchable_function_entries section with writable flags to allow
29223 relocation resolution.
29224
29225 2019-04-17 Jonny Grant <jg@jguk.org>
29226
29227 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29228
29229 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29230
29231 PR middle-end/90095
29232 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29233 on lowpart SUBREGs.
29234
29235 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29236
29237 * config/arc/arc.c (arc_init): Format diagnostic string.
29238 (arc_override_options): Likewise.
29239 (check_if_valid_regno_const): Likewise.
29240 (arc_reorg): Likewise.
29241
29242 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29243
29244 PR target/17108
29245 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29246 name.
29247 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29248 name.
29249 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29250 (*movdi_update1): Use Pmode.
29251 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29252 (movdi_<mode>_update_stack): Rename to ...
29253 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29254 use Pmode.
29255 (*movsi_update1): Use Pmode.
29256 (*movsi_update2): Use Pmode.
29257 (movsi_update): Rename to ...
29258 (movsi_<mode>_update): ... this. Use Pmode.
29259 (movsi_update_stack): Fix condition.
29260 (*movhi_update1): Use Pmode. Fix argument to
29261 avoiding_indexed_address_p.
29262 (*movhi_update2): Ditto.
29263 (*movhi_update3): Ditto.
29264 (*movhi_update4): Ditto.
29265 (*movqi_update1): Ditto.
29266 (*movqi_update2): Ditto.
29267 (*movqi_update3): Ditto.
29268 (*movsf_update1, *movdf_update1): Merge, rename to...
29269 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29270 avoiding_indexed_address_p. Add "size" attribute.
29271 (*movsf_update2, *movdf_update2): Merge, rename to...
29272 (*mov<mode>_update2): This. Ditto.
29273 (*movsf_update3): Use Pmode. Fix argument to
29274 avoiding_indexed_address_p.
29275 (*movsf_update4): Ditto.
29276 (allocate_stack): Simplify condition. Adjust pattern names.
29277
29278 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29279
29280 PR target/89093
29281 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29282 whitespace at the start of target attribute string.
29283
29284 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29285
29286 PR target/84369
29287 * config/rs6000/power9.md: Add store forwarding bypass.
29288
29289 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29290
29291 PR debug/89528
29292 * valtrack.c (dead_debug_insert_temp): Reset debug references
29293 to the return value of a call being removed.
29294
29295 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29296
29297 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29298 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29299 implement target hook.
29300 (arc_memory_move_cost): New function.
29301 (TARGET_REGISTER_MOVE_COST): Define.
29302 (TARGET_MEMORY_MOVE_COST): Likewise.
29303 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29304 (MEMORY_MOVE_COST): Likewise.
29305
29306 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29307
29308 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29309 (sibcall_value_insn): Likewise.
29310 * config/arc/constraints.md (Rs5): Remove.
29311
29312 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29313
29314 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29315 for last two fake registers.
29316 (arc_conditional_register_usage): Make sure fake frame and arg
29317 pointer regs are in general regs class.
29318 (FRAME_POINTER_MASK): Remove.
29319 (RETURN_ADDR_MASK): Remove.
29320 (arc_must_save_register): Use hard frame regnum.
29321 (frame_restore_reg): Use hard_frame_pointer_rtx.
29322 (arc_save_callee_saves): Likewise.
29323 (arc_restore_callee_saves): Likewise.
29324 (arc_save_callee_enter): Likewise.
29325 (arc_restore_callee_leave): Likewise.
29326 (arc_save_callee_milli): Likewise.
29327 (arc_eh_return_address_location): Likewise.
29328 (arc_check_multi): Use hard frame regnum.
29329 (arc_can_eliminate): Likewise.
29330 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29331 for register allocator.
29332 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29333 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29334 (FRAME_POINTER_REGNUM): Change it to a fake register.
29335 (HARD_FRAME_POINTER_REGNUM): Defined.
29336 (ARG_POINTER_REGNUM): Change it to a new fake register.
29337 (ELIMINABLE_REGS): Update.
29338 (REGISTER_NAMES): Update names.
29339 * config/arc/arc.md (LP_START): Remove.
29340 (LP_END): Likewise.
29341 (shift_si3_loop): Update pattern.
29342
29343 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29344
29345 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29346 to avoid delay slot scheduling.
29347 (arc_must_save_register): Don't save SP.
29348 * config/arc/arc.md (stack_tie): Remove.
29349 (UNSPEC_ARC_STKTIE): Likewise.
29350
29351 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29352 Shiva Chen <shiva0217@gmail.com>
29353
29354 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29355 code gen with large shift amount.
29356
29357 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29358
29359 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29360 subreg.
29361
29362 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29363
29364 PR target/90096
29365 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29366 print -m64/-mx32/-m32 if it is true.
29367 (ix86_debug_options, ix86_function_specific_print): Pass true as
29368 ADD_ABI_P to ix86_target_string.
29369 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29370 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29371 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29372
29373 PR rtl-optimization/90082
29374 * dce.c (can_delete_call): New function.
29375 (deletable_insn_p, mark_insn): Use it.
29376
29377 PR tree-optimization/90090
29378 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29379 throw internally.
29380 (is_division_by_square): Likewise. Formatting fix.
29381
29382 2019-04-16 Richard Biener <rguenther@suse.de>
29383
29384 PR tree-optimization/56049
29385 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29386 equality check if alias-set zero will prevail.
29387
29388 2019-04-15 Jeff Law <law@redhat.com>
29389
29390 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29391 size and alignment as unsigned.
29392
29393 2019-04-15 Richard Biener <rguenther@suse.de>
29394
29395 PR debug/90074
29396 * tree-loop-distribution.c (destroy_loop): Preserve correct
29397 debug info.
29398
29399 2019-04-15 Richard Biener <rguenther@suse.de>
29400
29401 PR tree-optimization/90071
29402 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29403 abnormal operands from def stmts.
29404
29405 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29406
29407 PR rtl-optimization/89794
29408 * combine.c (count_auto_inc): New function.
29409 (try_combine): Count how many auto_inc expressions there were in the
29410 original instructions. Ensure we have the same number in the new
29411 instructions. Remove the code that tried to ensure auto_inc side
29412 effects on i1 and i0 are not lost.
29413
29414 2019-04-15 Richard Biener <rguenther@suse.de>
29415
29416 PR ipa/88936
29417 * tree.h (auto_var_p): Declare.
29418 * tree.c (auto_var_p): New function, split out from ...
29419 (auto_var_in_fn_p): ... here.
29420 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29421 member.
29422 (new_var_info): Initialize it.
29423 (set_uids_in_ptset): Also set the shadow variable uid if required.
29424 (ipa_pta_execute): Postprocess points-to solutions assigning
29425 shadow variable uids for locals that may reach their containing
29426 function recursively.
29427 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29428 assert but instead check whether the points-to solution is
29429 a singleton.
29430
29431 2019-04-15 Martin Jambor <mjambor@suse.cz>
29432
29433 PR ipa/pr89693
29434 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29435 the thunk chain.
29436
29437 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29438
29439 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29440
29441 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29442 Kito Cheng <kito.cheng@gmail.com>
29443 Shiva Chen <shiva0217@gmail.com>
29444
29445 * config/nds32/nds32-md-auxiliary.c
29446 (nds32_legitimize_pic_address): Use new PIC pattern.
29447 (nds32_legitimize_tls_address): Use new TLS pattern.
29448 (nds32_output_symrel): New.
29449 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29450 (nds32_alloc_relax_group_id): Ditto.
29451 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29452 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29453 relax_group_id.
29454 (nds32_group_tls_insn): Ditto.
29455 (nds32_group_float_insns): Ditto.
29456 * config/nds32/nds32.md (tls_le): New.
29457 (sym_got): Ditto.
29458
29459 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29460
29461 * configure: Add nds32 target for dwarf2 debug_line checking.
29462 * configure.ac: Regenerated.
29463
29464 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29465
29466 PR lto/89358
29467 * ipa-devirt.c (skip_in_fields_list_p): New.
29468 (odr_types_equivalent_p): Use it.
29469
29470 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29471
29472 PR target/89093
29473 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29474 instead of strncmp when checking for thumb and arm. Formatting fixes.
29475
29476 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29477
29478 * doc/install.texi: Document --with-target-system-zlib.
29479
29480 2019-04-12 Martin Sebor <msebor@redhat.com>
29481
29482 PR c/88383
29483 PR c/89288
29484 PR c/89798
29485 PR c/89797
29486 * targhooks.c (default_vector_alignment): Avoid assuming
29487 argument fits in SHWI.
29488 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29489 a shift expression.
29490 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29491
29492 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29493
29494 PR rtl-optimization/89965
29495 * dce.c: Include rtl-iter.h.
29496 (struct check_argument_load_data): New type.
29497 (check_argument_load): New function.
29498 (find_call_stack_args): Check for loads from stack slots still tracked
29499 in sp_bytes and punt if any is found.
29500
29501 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29502
29503 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29504
29505 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29506 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29507
29508 2019-04-12 Martin Liska <mliska@suse.cz>
29509
29510 PR middle-end/89970
29511 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29512 in error message.
29513 (separate_attrs): Handle multiple 'default's.
29514 (expand_target_clones): Rework error handling code.
29515
29516 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29517
29518 PR target/87532
29519 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29520 mode of vector rather than mode of destination for move instruction.
29521 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29522 Use QI inner mode with V16QI vector mode.
29523
29524 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29525
29526 PR target/52726
29527 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29528 "invalid %%t operand" in output_operand_lossage message.
29529
29530 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29531
29532 * config/s390/predicates.md (permute_pattern_operand): New
29533 predicate.
29534 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29535 operand for the permute pattern.
29536 ("*vec_perm<mode>"): New insn definition.
29537 ("bswap<mode>"): Generate the permute pattern operand in the
29538 expander and perform the operand reloads for pre arch13 level
29539 already.
29540 ("*bswap<mode>_emu"): Rename to ...
29541 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29542 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29543 Add the USE operand for the permute pattern.
29544 ("*vec_set_bswap_vec<mode>"): Likewise.
29545
29546 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29547
29548 PR c/89946
29549 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29550 and gcc_unreachable if it fails, just call tree_to_uhwi which
29551 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29552 Start warning message with a lower-case letter. Formatting fixes.
29553
29554 PR rtl-optimization/90026
29555 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29556 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29557 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29558 in cfglayout mode, use emit_barrier_after_bb.
29559
29560 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29561
29562 PR rtl-optimization/87763
29563 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29564 New Instruction.
29565
29566 2019-04-11 Tom de Vries <tdevries@suse.de>
29567
29568 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29569 max macro using statement expression.
29570
29571 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29572
29573 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29574 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29575 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29576 read_only_private_data_section using xcoff_private_rodata_section_name.
29577 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29578
29579 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29580
29581 PR target/90016
29582 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29583
29584 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29585
29586 PR rtl-optimization/89965
29587 * dce.c (sp_based_mem_offset): New function.
29588 (find_call_stack_args): Use sp_based_mem_offset.
29589
29590 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29591
29592 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29593
29594 2019-04-11 Richard Biener <rguenther@suse.de>
29595
29596 PR tree-optimization/90020
29597 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29598 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29599 * tree-ssa-pre.c (compute_avail): Use it to not put
29600 possibly trapping references after a call that might not
29601 return into EXP_GEN.
29602 * gcse.c (compute_hash_table_work): Do not elide
29603 marking a block containing a call if the call might not
29604 return.
29605
29606 2019-04-11 Richard Biener <rguenther@suse.de>
29607
29608 PR tree-optimization/90018
29609 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29610 Test both SLP and interleaving variants.
29611
29612 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29613
29614 * config/s390/8561.md: New file.
29615 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29616 Add arch13 cpu model.
29617 * config/s390/s390-opts.h (enum processor_type): Likewise.
29618 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29619 (s390_get_unit_mask): Likewise.
29620 (s390_is_fpd): Likewise.
29621 (s390_is_fxd): Likewise.
29622 * config/s390/s390.h (s390_tune_attr): Likewise.
29623 * config/s390/s390.md: Include arch13 pipeline description.
29624 * config/s390/s390.opt: Add arch13.
29625
29626 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29627
29628 PR rtl-optimization/87763
29629 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29630 New prototype.
29631 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29632 New function.
29633 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29634 New instruction.
29635 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29636 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29637 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29638 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29639
29640 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29641
29642 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29643 "Although" in -fipa-icf documentation.
29644
29645 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29646 of using multiple -g options.
29647
29648 2019-04-10 Martin Liska <mliska@suse.cz>
29649
29650 PR gcov-profile/89959
29651 * doc/gcov.texi: Make documentation of -x option
29652 more precise.
29653
29654 2019-04-10 Richard Biener <rguenther@suse.de>
29655
29656 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29657 member.
29658 (DR_GROUP_SAME_DR_STMT): Remove.
29659 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29660 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29661 replace with assert.
29662 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29663 (vect_record_grouped_load_vectors): Remove unreachable code.
29664
29665 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29666
29667 PR target/90016
29668 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29669 obsolete reference to N.
29670
29671 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29672
29673 PR middle-end/90025
29674 * expr.c (store_expr): Set properly size on the MEM passed to
29675 clear_storage.
29676
29677 PR c++/90010
29678 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29679 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29680 translation is needed, and when translation is needed, only append
29681 ... if the string length is hostsz or more bytes long. Avoid using
29682 strncpy or strcat.
29683
29684 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29685
29686 PR target/90024
29687 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29688 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29689 into three.
29690 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29691 differences directly.
29692 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29693
29694 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29695
29696 PR translation/90011
29697 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29698 from diagnostics.
29699 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29700 diagnostics.
29701 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29702 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29703 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29704 trailing space from -gsplit-dwarf diagnostics.
29705
29706 PR tree-optimization/89998
29707 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29708 instead of integer_type_node if possible, don't add ranges if return
29709 type is not compatible with int.
29710 * gimple-fold.c (gimple_fold_builtin_sprintf,
29711 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29712 integer_type_node.
29713
29714 2019-04-09 Martin Liska <mliska@suse.cz>
29715
29716 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29717 * doc/install.texi: Document the new config.
29718
29719 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29720
29721 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29722 use gimple_expr_type for load and store calls. Skip over the
29723 condition argument in a conditional internal function.
29724 Protect use of TREE_INT_CST_LOW.
29725
29726 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29727
29728 PR target/90015
29729 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29730 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29731 trailing period from it too.
29732
29733 2019-04-08 wu yuan <wuyuan5@huawei.com>
29734
29735 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29736 * config/aarch64/aarch64.md: Add "tsv110.md".
29737 * config/aarch64/tsv110.md: New file.
29738
29739 2019-04-08 Richard Biener <rguenther@suse.de>
29740
29741 PR tree-optimization/90006
29742 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29743 calls like lrint.
29744
29745 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29746
29747 PR target/83033
29748 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29749 construction.
29750 (fma_root_node): Likewise.
29751 (func_fma_steering): Likewise.
29752
29753 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29754
29755 PR rtl-optimization/89865
29756 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29757
29758 PR rtl-optimization/89865
29759 * config/i386/i386.md
29760 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29761 numbers not to clash with the additional operands[4].
29762 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29763 with extra register copy in the middle.
29764
29765 2019-04-08 Martin Liska <mliska@suse.cz>
29766
29767 PR gcov-profile/89961
29768 * doc/gcov.texi: Document data_file.
29769 * gcov.c (generate_results): Add data_info into JSON output.
29770
29771 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29772
29773 PR tree-optimization/89725
29774 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29775 loop's chrec as invariant symbol.
29776 * tree-chrec.h (chrec_contains_symbols): New parameter.
29777 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29778 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29779 function of loops not in DDR's loop_nest.
29780 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29781
29782 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29783
29784 PR target/89623
29785 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29786 Mask.
29787
29788 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29789
29790 PR target/89945
29791 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29792 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29793
29794 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29795
29796 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29797 targetm.fixed_condition_code_regs.
29798
29799 2019-04-05 Richard Biener <rguenther@suse.de>
29800
29801 PR debug/89892
29802 PR debug/89905
29803 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29804 debug bind stmts but reset them if they are not valid at the
29805 destination.
29806
29807 2019-04-05 Martin Liska <mliska@suse.cz>
29808
29809 PR translation/89936
29810 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29811 order to wrap keywords or arguments.
29812 * collect2.c (main): Likewise.
29813 (scan_prog_file): Likewise.
29814 (scan_libraries): Likewise.
29815 * common/config/riscv/riscv-common.c
29816 (riscv_subset_list::parsing_subset_version): Likewise.
29817 (riscv_subset_list::parse_std_ext): Likewise.
29818 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29819 Likewise.
29820 * config/arm/arm.c (arm_option_override): Likewise.
29821 * config/cris/cris.c (cris_print_operand): Likewise.
29822 * config/darwin-c.c (darwin_pragma_options): Likewise.
29823 (darwin_pragma_unused): Likewise.
29824 (darwin_pragma_ms_struct): Likewise.
29825 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29826 * config/i386/i386.c (print_reg): Likewise.
29827 (ix86_print_operand): Likewise.
29828 * config/i386/xm-djgpp.h: Likewise.
29829 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29830 * config/m32c/m32c.c (m32c_option_override): Likewise.
29831 * config/msp430/msp430.c (msp430_option_override): Likewise.
29832 * config/nds32/nds32.c (nds32_option_override): Likewise.
29833 * config/nvptx/mkoffload.c (main): Likewise.
29834 * config/rx/rx.c (rx_print_operand): Likewise.
29835 (valid_psw_flag): Likewise.
29836 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29837 (vms_pragma_nomember_alignment): Likewise.
29838 (vms_pragma_extern_model): Likewise.
29839 * lto-wrapper.c (compile_offload_image): Likewise.
29840 * omp-offload.c (oacc_parse_default_dims): Likewise.
29841 * symtab.c (symtab_node::verify_base): Likewise.
29842 * tlink.c (recompile_files): Likewise.
29843 (start_tweaking): Likewise.
29844 * tree-profile.c (parse_profile_filter): Likewise.
29845
29846 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29847
29848 PR tree-optimization/89956
29849 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29850 multiple negates of the same value.
29851
29852 2019-04-04 Martin Sebor <msebor@redhat.com>
29853
29854 PR middle-end/89957
29855 PR middle-end/89911
29856 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29857 have the same precision since the function crashes otherwise.
29858 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29859 has non-zero arguments.
29860
29861 2019-04-04 Martin Sebor <msebor@redhat.com>
29862
29863 PR middle-end/89934
29864 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29865 out if the number of arguments is less than expected.
29866
29867 2019-04-04 Jeff Law <law@redhat.com>
29868
29869 PR rtl-optimization/89399
29870 * ree.c (combine_set_extension): Use single_set rather than
29871 digging into PATTERN for items on the candidate list.
29872 (combine_reaching_defs): Likewise.
29873
29874 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29875
29876 PR rtl-optimization/46590
29877 * loop-invariant.c (find_defs): Move df_remove_problem and
29878 df_process_deferred_rescans to move_invariants.
29879 Move df_live_add_problem and df_live_set_all_dirty calls
29880 to move_invariants.
29881 (move_invariants): Likewise.
29882 (move_loop_invariants): Likewise, making the df_live calls
29883 conditional on -O. Remove the problem again if we added it
29884 locally.
29885
29886 2019-04-03 qing zhao <qing.zhao@oracle.com>
29887
29888 PR tree-optimization/89730
29889 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29890 -flive-patching=inline-only-static.
29891 (can_inline_edge_by_limits_p): Add the checking for
29892 -flive-patching=inline-only-static and grant always_inline
29893 even when -flive-patching=inline-only-static is specified.
29894
29895 2019-04-03 Jeff Law <law@redhat.com>
29896
29897 PR rtl-optimization/81025
29898 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29899
29900 2019-04-03 Richard Biener <rguenther@suse.de>
29901
29902 PR tree-optimization/84101
29903 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29904 regs.h for hard_regno_nregs.
29905 (cfun_returns): New helper.
29906 (vect_model_store_cost): When vectorizing a store to a decl
29907 we return and the function ABI returns in a multi-reg location
29908 account for the possible spilling that will happen.
29909
29910 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29911
29912 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29913 displacement addresses for vector mode operands.
29914
29915 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29916
29917 * config/arc/arc.c (GMASK_LEN): Define.
29918 (arc_restore_callee_saves): Restore first blink when
29919 !optimize_size.
29920
29921 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29922
29923 * doc/extend.texi: Add deprecated comment on sign-return-address
29924 function attribute and add mbranch-protection.
29925 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29926
29927 2019-04-03 Richard Biener <rguenther@suse.de>
29928
29929 PR lto/89896
29930 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29931 the all target phony.
29932
29933 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29934
29935 PR target/89902
29936 PR target/89903
29937 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29938 Return false for variable DImode shifts.
29939 (dimode_scalar_chain::compute_convert_gain): Do not handle
29940 register count operand in variable DImode shifts.
29941 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29942 count argument of a variable shift instruction to a vector register.
29943 (dimode_scalar_chain::convert_reg): Remove support to convert
29944 count argument of a variable shift instruction.
29945
29946 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29947
29948 PR rtl-optimization/84206
29949 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29950 iterating over loop headers.
29951
29952 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29953
29954 PR rtl-optimization/85876
29955 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29956 beyond the original fence.
29957
29958 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29959
29960 * config.gcc: Mark spu* targets as deprecated/obsolete.
29961
29962 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29963
29964 * config/s390/s390-builtin-types.def: New builtin function type
29965 definitions. Remove unused types.
29966 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29967 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29968 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29969 overloaded builtins.
29970 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29971 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29972 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29973 (vec_double, vec_signed, vec_unsigned): Define to use the new
29974 overloaded builtins.
29975 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29976 Remove expanders.
29977
29978 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29979
29980 * config/s390/s390-builtin-types.def: New builtin function type
29981 definitions.
29982 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29983 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29984 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29985 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29986 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29987 constant definitions.
29988 * config/s390/vecintrin.h (vec_search_string_cc)
29989 (vec_search_string_until_zero_cc): New builtin name definitions.
29990 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29991 expanders.
29992 ("vec_vstrs<mode>"): New insn definition.
29993
29994 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29995
29996 * config/s390/s390-builtin-types.def: Add new builtin function
29997 types.
29998 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29999 New overloaded builtins.
30000 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30001 s390_vsrd.
30002 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30003 (UNSPEC_VEC_SLDBYTE): ... this.
30004 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30005 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30006 definitions.
30007 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30008 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30009 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30010
30011 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30012
30013 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30014 New insn definition.
30015 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30016 * config/s390/vector.md (V_HW_HSD): ... here.
30017
30018 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30019
30020 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30021 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30022 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30023 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30024 New insn definitions.
30025
30026 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30027
30028 * config/s390/s390-builtin-types.def: Add new builtin function type.
30029 * config/s390/s390-builtins.def: Add overloaded builtin
30030 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30031 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30032 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30033 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30034 ("eltswap<mode>"): New expander.
30035 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30036 insn definitions.
30037
30038 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30039
30040 * config/s390/s390-builtin-types.def: Add new builtin function types.
30041 * config/s390/s390-builtins.def: Add overloaded builtin
30042 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30043 instructions.
30044 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30045 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30046 ("bswap<mode>"): New expander.
30047 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30048
30049 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30050
30051 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30052 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30053 vector builtin version number in __VEC__.
30054
30055 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30056
30057 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30058 iterators.
30059 (SFSI): New mode attribute.
30060 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30061 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30062 rename to ...
30063 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30064 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30065 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30066 ("floatsi<mode>2"): Add wcefb instruction.
30067
30068 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30069
30070 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30071 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30072 mode iterators.
30073 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30074 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30075 support 32 bit fp-int conversions. Rename to ...
30076 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30077 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30078 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30079 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30080 ... to these.
30081
30082 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30083
30084 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30085 if-then-else constructs if we can use the select instruction.
30086 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30087
30088 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30089
30090 * config/s390/s390.md ("*popcountdi_arch13_cc")
30091 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30092 definition.
30093 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30094 Append _z196 to make it ...
30095 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30096 ("popcounthi2_z196"): ... this.
30097 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30098 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30099
30100 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30101
30102 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30103 certain compares for arch13 in order to make use of the condition
30104 code result produced by the new instructions.
30105 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30106 nxrk, and nxgrk instruction patterns.
30107 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30108 (inv_no): Add new code iterator together with some attributes.
30109 ("*andc_split_<mode>"): Disable splitter for arch13.
30110 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30111 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30112 ("*<ANDOR:bitops_name>c<GPR:mode>")
30113 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30114 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30115 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30116 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30117
30118 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30119
30120 * common/config/s390/s390-common.c (processor_flags_table): New
30121 entry for arch13.
30122 * config.gcc: Support arch13 with the --with-arch= configure flag.
30123 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30124 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30125 * config/s390/s390.c (s390_get_sched_attrmask)
30126 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30127 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30128 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30129 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30130 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30131 definitions.
30132 * config/s390/s390.opt: Support arch13 as processor type in
30133 command line options.
30134
30135 2019-04-02 Martin Liska <mliska@suse.cz>
30136
30137 PR translation/89912
30138 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30139 Fix param description of graphite-max-arrays-per-scop.
30140
30141 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30142
30143 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30144 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30145 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30146
30147 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30148
30149 PR rtl-optimization/85412
30150 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30151 sel_sched_region_1, not after.
30152
30153 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30154
30155 PR rtl-optimization/86928
30156 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30157 compute_live if necessary.
30158 (sel_redirect_edge_and_branch): Likewise.
30159
30160 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30161
30162 PR rtl-optimization/89865
30163 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30164 register if it is a part of small class.
30165
30166 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30167
30168 PR rtl-optimization/87273
30169 * sel-sched-ir.c (merge_fences): Remove assert.
30170
30171 2019-04-01 Richard Biener <rguenther@suse.de>
30172
30173 PR tree-optimization/46590
30174 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30175 (dom_walker::m_reachability): Add in place of...
30176 (dom_walker::m_skip_unreachable_blocks): ...this.
30177 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30178 Move complex initialization ...
30179 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30180 lazily and initialize edge flags on each invocation.
30181 (dom_walker::bb_reachable): Use m_reachability.
30182
30183 2019-04-01 Martin Liska <mliska@suse.cz>
30184
30185 PR driver/89861
30186 * opt-suggestions.c (option_proposer::build_option_suggestions):
30187 Add variant without any argument in order to provide better
30188 hints.
30189
30190 2019-04-01 Richard Biener <rguenther@suse.de>
30191
30192 PR c/71598
30193 * gimple.c: Include langhooks.h.
30194 (gimple_get_alias_set): Treat enumeral types as the underlying
30195 integer type.
30196
30197 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30198 Eric Botcazou <ebotcazou@adacore.com>
30199
30200 PR rtl-optimization/89862
30201 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30202 that operates on the full registers for WORD_REGISTER_OPERATIONS
30203 architectures.
30204
30205 2019-03-29 Jim Wilson <jimw@sifive.com>
30206
30207 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30208 Clear MASK_RVC and then set if C subset supported.
30209
30210 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30211
30212 PR c/89872
30213 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30214 non-addressable complit into its initializer if it is volatile.
30215
30216 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30217
30218 * opts-common.c (integral_argument): Set errno properly in one case.
30219
30220 2019-03-29 Martin Liska <mliska@suse.cz>
30221
30222 * doc/invoke.texi: Remove -Wchkp from documentation.
30223
30224 2019-03-29 Martin Liska <mliska@suse.cz>
30225
30226 * dbgcnt.c (print_limit_reach): New function.
30227 (dbg_cnt): Use it.
30228
30229 2019-03-29 Martin Liska <mliska@suse.cz>
30230
30231 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30232 (dbg_cnt_process_opt): Parse first tokens aas
30233 dbg_cnt_process_single_pair is also using strtok.
30234
30235 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30236
30237 PR rtl-optimization/87485
30238 * function.c (expand_function_end): Move stack_protect_epilogue
30239 before loading of return value into hard register(s).
30240
30241 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30242
30243 PR middle-end/89621
30244 * tree-inline.h (struct copy_body_data): Add
30245 dont_remap_vla_if_no_change flag.
30246 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30247 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30248 and remap_type_2 returns false.
30249 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30250 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30251 only from where it is copied to nested contexts.
30252
30253 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30254
30255 PR target/89865
30256 * config/i386/i386.md (RMW operation with LEA peephole):
30257 Use LEAMODE mode attribute instead of SWI mode iterator for
30258 LEA pattern.
30259
30260 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30261
30262 PR target/89848
30263 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30264 Also process XEXP (src, 0) of a shift insn.
30265
30266 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30267
30268 PR middle-end/89725
30269 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30270 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30271
30272 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30273
30274 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30275 test.
30276 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30277 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30278 immediately after first one with df_analyze in between, but rather
30279 process all bbs, queueing ones that need second pass in a worklist,
30280 df_analyze, process queued debug insn changes and if second pass is
30281 needed, process bbs from worklist, df_analyze, process queued debug
30282 insns again.
30283
30284 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30285 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30286 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30287
30288 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30289
30290 PR c/79022
30291 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30292 definition.
30293
30294 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30295
30296 PR target/85667
30297 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30298 function for 32-bit MS_ABI.
30299 (function_value_ms_32): New function.
30300
30301 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30302
30303 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30304 (movdi): Call gen_movdi_symbol_save_scc.
30305 (gen_movdi_symbol_save_scc): New insn and split.
30306
30307 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30308
30309 PR rtl-optimization/89313
30310 * function.c (matching_constraint_num): New static function.
30311 (match_asm_constraints_1): Use it. Fixup white space and comment.
30312 Don't replace inputs with non-matching constraints which conflict
30313 with early clobber outputs.
30314
30315 2019-03-27 Jeff Law <law@redhat.com>
30316
30317 PR rtl-optimization/87761
30318 PR rtl-optimization/89826
30319 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30320 slightly later.
30321 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30322 note problem to get REG_DEAD/REG_UNUSED notes updated.
30323
30324 2019-03-27 Richard Biener <rguenther@suse.de>
30325
30326 PR tree-optimization/89463
30327 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30328 queue edges to remove.
30329 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30330 dead stmts. Delay edge removal until PHIs are removed to
30331 make debug-stmt creation not confused by seemingly degenerate
30332 PHIs.
30333
30334 2019-03-27 Alan Modra <amodra@gmail.com>
30335
30336 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30337 throughout file.
30338 * config/rs6000/darwin.h: Likewise.
30339 * config/rs6000/rs6000.c: Likewise.
30340
30341 2019-03-27 Alan Modra <amodra@gmail.com>
30342
30343 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30344 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30345
30346 2019-03-26 Andrew Waterman <andrew@sifive.com>
30347 Jim Wilson <jimw@sifive.com>
30348
30349 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30350 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30351 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30352 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30353 (generic_alu): Add auipc to type list.
30354 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30355 (riscv_microarchitecture): Declare.
30356 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30357 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30358 field.
30359 (riscv_microarchitecture): New.
30360 (sifive_7_tune_info): New.
30361 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30362 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30363 entries.
30364 (riscv_store_data_bypass_p): New.
30365 (riscv_option_override): Set riscv_microarchitecture from
30366 cpu->microarchitecture.
30367 * config/riscv/riscv.md: Include sifive-7.md.
30368 (type): Add auipc.
30369 (tune): New.
30370 (auipc<mode>): Change type to auipc.
30371 (restore_stack_nonlocal): New.
30372 * config/riscv/sifive-7.md: New.
30373 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30374
30375 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30376
30377 PR target/89827
30378 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30379 Also process XEXP (src, 0) of a shift insn.
30380
30381 2019-03-26 Richard Biener <rguenther@suse.de>
30382
30383 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30384 (copy_debug_stmt): Likewise.
30385 (expand_call_inline): Likewise.
30386 (copy_bb): Avoid redundant lookup & set of gimple_block.
30387 * gimple-low.c (lower_gimple_return): Likewise.
30388 (lower_builtin_setjmp): Likewise.
30389
30390 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30391
30392 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30393 is constant 0, turn into static const data member initialized to false.
30394 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30395 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30396
30397 2019-03-26 Jason Merrill <jason@redhat.com>
30398 Jakub Jelinek <jakub@redhat.com>
30399
30400 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30401 method.
30402 (mem_alloc_description::release_object_overhead): Fix comment typos.
30403 * hash-table.h (hash_table::~hash_table): Call
30404 release_instance_overhead only if m_entries is non-NULL, otherwise
30405 call unregister_descriptor.
30406
30407 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30408
30409 PR tree-optimization/81740
30410 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30411 In case of outer loop vectorization, check for backward dependence
30412 at the inner loop if outer loop dependence is reversed.
30413
30414 2019-03-26 Alan Modra <amodra@gmail.com>
30415
30416 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30417 rs6000_vector_mem init. Correct wI and wJ comment.
30418
30419 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30420
30421 PR rtl-optimization/88347
30422 PR rtl-optimization/88423
30423 * sched-deps.c (sched_analyze_insn): Take into account that for
30424 tablejumps the barrier appears after a label and a jump_table_data.
30425
30426 2019-03-25 Martin Sebor <msebor@redhat.com>
30427
30428 PR c/89812
30429 * c-common.c (check_user_alignment): Rename local. Correct maximum
30430 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30431 convert it to UHWI when it fits.
30432
30433 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30434
30435 PR debug/86964
30436 * dwarf2out.c (premark_used_variables): New function.
30437 (prune_unused_types_walk): Do not mark not premarked external
30438 variables.
30439 (prune_unused_types): Call premark_used_variables.
30440
30441 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30442
30443 PR rtl-optimization/89676
30444 * lra-constraints.c (curr_insn_transform): Do match reload for
30445 early clobbers when the match was successful only for different
30446 registers.
30447
30448 2019-03-25 Martin Sebor <msebor@redhat.com>
30449
30450 * doc/extend.texi (Common Type Attributes): Document vector_size.
30451 (Common Variable Attributes): Mention size constraint. Correct
30452 quoting and typos.
30453 (Vector Extensions): Use @dfn when defining bas type. Clarify
30454 base type and size constraints.
30455
30456 2019-03-25 Richard Biener <rguenther@suse.de>
30457
30458 PR tree-optimization/89789
30459 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30460 changes from non-undefined back to undefined.
30461
30462 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30463
30464 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30465 heap string and a gc string, but since this variable is unknown to
30466 ggc the gc string might get reused and corrupted. Fixed by always
30467 using a heap string.
30468
30469 2019-03-25 Richard Biener <rguenther@suse.de>
30470
30471 PR tree-optimization/89779
30472 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30473 to remove IV defs, delay actual removal.
30474 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30475 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30476 very end, properly also reset loop control IV information.
30477
30478 2019-03-25 Richard Biener <rguenther@suse.de>
30479
30480 PR tree-optimization/89802
30481 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30482 move EH data to folded stmt.
30483
30484 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30485
30486 * config/s390/s390-builtin-types.def: Remove few unused types and
30487 fix sort order for others.
30488
30489 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30490
30491 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30492 expected and found types with -mdebug during builtin matching.
30493
30494 2019-03-25 Richard Biener <rguenther@suse.de>
30495
30496 PR middle-end/89790
30497 * fold-const.c (operand_equal_p): Revert last change with
30498 updated comment.
30499
30500 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30501
30502 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30503 notes for the result of the __tls_get_addr calls.
30504 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30505
30506 2019-03-24 Jeff Law <law@redhat.com>
30507
30508 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30509
30510 PR rtl-optimization/87761
30511 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30512 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30513 as needed.
30514 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30515 rescans. Reprocess blocks as needed, calling df_analyze before
30516 reprocessing. Always call df_analyze before fixing up debug bind
30517 insns.
30518
30519 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30520
30521 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30522 big endian.
30523
30524 2019-03-22 Andrew Pinski <apinski@marvell.com>
30525
30526 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30527 attrribute for uxtw.
30528
30529 2019-03-26 Jeff Law <law@redhat.com>
30530
30531 PR rtl-optimization/87761
30532 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30533 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30534 (mips_split_move): Accept new INSN argument. Try to forward SRC
30535 into the next instruction.
30536 (mips_split_move_insn): Pass INSN through to mips_split_move.
30537
30538 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30539
30540 PR rtl-optimization/89676
30541 * lra-constraints.c (curr_insn_transform): Do match reload for
30542 early clobbers even if the match was successful.
30543
30544 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30545
30546 PR c++/87481
30547 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30548
30549 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30550
30551 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30552
30553 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30554
30555 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30556 <avx512>_fmsub_<mode>_mask3<round_name>,
30557 <avx512>_fnmadd_<mode>_mask3<round_name>,
30558 <avx512>_fnmsub_<mode>_mask3<round_name>,
30559 avx512f_vmfmadd_<mode>_mask3<round_name>,
30560 avx512f_vmfmsub_<mode>_mask3<round_name>,
30561 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30562 instead of register_operand and %v instead of v for match_operand 1.
30563 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30564 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30565 <round_nimm_predicate> instead of register_operand and %v instead of v
30566 for match_operand 1.
30567
30568 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30569 <avx512>_fmadd_<mode>_mask3<round_name>,
30570 <avx512>_fmsub_<mode>_mask<round_name>,
30571 <avx512>_fmsub_<mode>_mask3<round_name>,
30572 <avx512>_fnmadd_<mode>_mask<round_name>,
30573 <avx512>_fnmadd_<mode>_mask3<round_name>,
30574 <avx512>_fnmsub_<mode>_mask<round_name>,
30575 <avx512>_fnmsub_<mode>_mask3<round_name>,
30576 <avx512>_fmaddsub_<mode>_mask<round_name>,
30577 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30578 <avx512>_fmsubadd_<mode>_mask<round_name>,
30579 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30580 <round_nimm_predicate> instead of nonimmediate_operand.
30581 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30582 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30583 Use register_operand instead of <round_nimm_predicate> for the
30584 operand that needs to match output.
30585 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30586 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30587 Likewise. Formatting fixes.
30588
30589 PR target/89784
30590 * config/i386/i386.c (enum ix86_builtins): Remove
30591 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30592 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30593 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30594 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30595 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30596 __builtin_ia32_vfmsubss3_mask3): New builtins.
30597 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30598 avx512f_vmfmadd_<mode>_mask3<round_name>,
30599 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30600 *avx512f_vmfmsub_<mode>_mask<round_name>,
30601 avx512f_vmfmsub_<mode>_mask3<round_name>,
30602 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30603 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30604 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30605 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30606 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30607 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30608 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30609 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30610 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30611 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30612 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30613 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30614 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30615 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30616 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30617 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30618 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30619 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30620 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30621 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30622 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30623 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30624 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30625 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30626 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30627 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30628 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30629 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30630
30631 2019-03-21 Martin Sebor <msebor@redhat.com>
30632
30633 PR tree-optimization/89350
30634 * builtins.c (compute_objsize): Also ignore offsets whose upper
30635 bound is negative.
30636 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30637 (builtin_memref::builtin_memref): Initialize new member.
30638 Allow EXPR to be null.
30639 (builtin_memref::extend_offset_range): Replace local with a member.
30640 Avoid assuming pointer offsets are unsigned.
30641 (builtin_memref::set_base_and_offset): Determine base object
30642 before computing offset range.
30643 (builtin_access::builtin_access): Handle memset.
30644 (builtin_access::generic_overlap): Replace local with a member.
30645 (builtin_access::strcat_overlap): Same.
30646 (builtin_access::overlap): Same.
30647 (maybe_diag_overlap): Same.
30648 (maybe_diag_access_bounds): Same.
30649 (wrestrict_dom_walker::check_call): Handle memset.
30650 (check_bounds_or_overlap): Same.
30651
30652 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30653 Jakub Jelinek <jakub@redhat.com>
30654
30655 PR lto/89692
30656 * tree.c (fld_type_variant, fld_incomplete_type_of,
30657 fld_process_array_type): Call fld->pset.add and don't call
30658 add_tree_to_fld_list if it returns true.
30659 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30660 non-marked types from TYPE_NEXT_VARIANT list.
30661 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30662
30663 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30664
30665 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30666 to false, if true, don't alloc_entries during construction, but defer
30667 it to the first method that needs m_entries allocated.
30668 (hash_table::hash_table, hash_table::~hash_table,
30669 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30670 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30671 hash_table::clear_slot, hash_table::traverse_noresize,
30672 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30673 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30674 false.
30675 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30676 NO_INSERT instead of find_with_hash.
30677 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30678 hash_set::m_table): Add Lazy to template params of hash_table.
30679 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30680 * attribs.c (test_attribute_exclusions): Likewise.
30681 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30682 hash_set. Add tests for hash_set with Lazy = true.
30683
30684 2019-03-21 Richard Biener <rguenther@suse.de>
30685
30686 PR tree-optimization/89779
30687 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30688 checks with respect to released SSA names now having error_mark_node
30689 type.
30690 * fold-const.c (operand_equal_p): Likewise.
30691
30692 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30693
30694 PR target/89775
30695 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30696 available to ...
30697 (s390_optimize_register_info): Use global_not_special_regno_p to
30698 check for global regs.
30699
30700 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30701
30702 PR target/89752
30703 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30704 update this_alternative nor this_alternative_set.
30705
30706 2019-03-19 Jim Wilson <jimw@sifive.com>
30707
30708 PR target/89411
30709 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30710 align, size, offset. Use them to handle a BLKmode reference. Update
30711 comment.
30712 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30713
30714 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30715
30716 PR rtl-optimization/89768
30717 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30718 instead of GEN_INT.
30719 (unroll_loop_runtime_iterations): Likewise.
30720
30721 2019-03-19 Martin Sebor <msebor@redhat.com>
30722
30723 PR tree-optimization/89644
30724 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30725 rather than endptr as an indicator of nul-termination.
30726
30727 PR tree-optimization/89644
30728 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30729 arrays in determining sequence sizes in strncpy and stpncpy.
30730
30731 2019-03-19 Martin Liska <mliska@suse.cz>
30732
30733 PR middle-end/89737
30734 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30735 unlikely_edges if there's an edge that belongs to both these sets.
30736
30737 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30738
30739 PR target/89746
30740 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30741 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30742 go via a stack temporary.
30743
30744 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30745
30746 PR target/89378
30747 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30748 instead of gen_rtx_SUBREG.
30749 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30750
30751 2019-03-19 Richard Biener <rguenther@suse.de>
30752
30753 PR debug/88389
30754 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30755
30756 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30757
30758 PR lto/87809
30759 PR lto/89335
30760 * tree.c (free_lang_data_in_decl): Do not free context of C++
30761 destrutors.
30762
30763 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30764
30765 PR target/89506
30766 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30767 subs for the first alternative except when operands[3] is 1.
30768
30769 PR target/89752
30770 * gimplify.c (gimplify_asm_expr): For output argument with
30771 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30772 diagnose error.
30773
30774 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30775
30776 PR rtl-optimization/89753
30777 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30778 explicit unrolling factor even more robust.
30779
30780 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30781
30782 PR target/89726
30783 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30784 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30785 signed zeros, do another copysign after the compensation.
30786
30787 2019-03-18 Martin Sebor <msebor@redhat.com>
30788
30789 PR tree-optimization/89720
30790 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30791 more conservatively, the same as anti-range.
30792
30793 2019-03-18 Richard Biener <rguenther@suse.de>
30794
30795 PR middle-end/88945
30796 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30797 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30798 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30799 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30800
30801 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30802
30803 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30804 Extend queue to 1024 entries.
30805 Add "consumed" field.
30806 (gomp_print_output): Remove print_index parameter.
30807 Add final parameter.
30808 Change limit to unsigned.
30809 Use consumed field to implement circular buffer.
30810 Detect interrupted print in final pass.
30811 Flush output at the end.
30812 (run): Update gomp_print_output usage.
30813 (main): Initialize kernargs->output_data.consumed.
30814
30815 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30816
30817 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30818 calculation of the minimum number of scalar iterations for
30819 fully-predicated loops.
30820
30821 2019-03-18 Martin Jambor <mjambor@suse.cz>
30822
30823 PR tree-optimization/89546
30824 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30825 any propagation to its children took place.
30826
30827 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30828
30829 PR target/89627
30830 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30831 parameter, and make use of it.
30832 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30833
30834 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30835
30836 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30837 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30838 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30839 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30840 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30841 match what the ops is doing.
30842 (push_multi_fp_blink): Likewise.
30843 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30844 compiling for size and elf target.
30845 (arc_save_callee_enter): Adjust note to match what enter/leave
30846 operation does.
30847
30848 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30849
30850 * config/arc/arc.md (tst_movb): Fix constraint.
30851
30852 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30853
30854 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30855
30856 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30857
30858 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30859 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30860 reg_alloc_order references.
30861 (size_alloc_order): Define.
30862 (arc_adjust_reg_alloc_order): New function.
30863 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30864 order.
30865 (ADJUST_REG_ALLOC_ORDER): Define.
30866 (HONOR_REG_ALLOC_ORDER): Likewise.
30867
30868 2019-03-18 Richard Biener <rguenther@suse.de>
30869
30870 PR target/87561
30871 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30872 loads and stores a bit more.
30873
30874 2019-03-18 Richard Biener <rguenther@suse.de>
30875
30876 PR target/87561
30877 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30878 load pessimization to stores as well.
30879
30880 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30881
30882 PR middle-end/86979
30883 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30884 successor, use NULL as its av set.
30885
30886 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30887
30888 PR rtl-optimization/89721
30889 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30890
30891 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30892
30893 PR target/87532
30894 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30895 When handling vec_extract, use modular arithmetic to allow
30896 constant selectors greater than vector length.
30897 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30898 V1TImode vectors to have constant selector values greater than 0.
30899 Use modular arithmetic to compute vector index.
30900 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30901 index for in-memory vectors. Correct code generation for
30902 in-register vectors.
30903 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30904 compute index.
30905
30906 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30907
30908 PR c++/88534
30909 PR c++/88537
30910 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30911 VAR_DECL args.
30912
30913 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30914
30915 PR c++/89709
30916 * tree.c (inchash::add_expr): Strip any location wrappers.
30917 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30918 after hash verification.
30919
30920 PR debug/89704
30921 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30922 SIGN_EXTEND and ZERO_EXTEND.
30923
30924 2019-03-14 Jason Merrill <jason@redhat.com>
30925 Jakub Jelinek <jakub@redhat.com>
30926
30927 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30928 than if is_empty (*slot).
30929 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30930 existing elt and for elt removal.
30931 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30932 of already removed elt.
30933
30934 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30935
30936 PR target/89650
30937 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30938 REG_EH_REGION note.
30939
30940 2019-03-14 Martin Liska <mliska@suse.cz>
30941
30942 PR other/89712
30943 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30944
30945 2019-03-14 Richard Biener <rguenther@suse.de>
30946
30947 PR target/89711
30948 * config/i386/i386.c (make_resolver_func): Properly set
30949 DECL_CONTEXT on the RESULT_DECL.
30950 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30951
30952 2019-03-14 Richard Biener <rguenther@suse.de>
30953
30954 * gimple-pretty-print.c: Include cfgloop.h.
30955 (dump_gimple_phi): Adjust.
30956 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30957 (pp_cfg_jump): Adjust.
30958 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30959 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30960 (lower_phi_internal_fn): Remove.
30961 (verify_gimple_call): Remove IFN_PHI special-casing.
30962 (dump_function_to_file): Dump IL state.
30963 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30964 done to deal with PHI nodes being present in non-SSA state.
30965
30966 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30967
30968 PR ipa/89684
30969 * multiple_target.c (create_dispatcher_calls): Change
30970 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30971 In the node->iterate_referring loop, push *ref rather than ref, call
30972 ref->remove_reference () and always pass 0 to iterate_referring.
30973
30974 PR rtl-optimization/89679
30975 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30976 would contain a paradoxical SUBREG.
30977
30978 2019-03-14 Richard Biener <rguenther@suse.de>
30979
30980 PR tree-optimization/89710
30981 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30982 safe_dyn_cast.
30983
30984 2019-03-14 Martin Liska <mliska@suse.cz>
30985
30986 * coverage.c (coverage_begin_function): Stream also
30987 end_column.
30988 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30989 documentation about function declaration location.
30990 * gcov-dump.c (tag_function): Print whole range
30991 of function declaration.
30992 * gcov.c (struct function_info): Add end_column field.
30993 (function_info::function_info): Initialize it.
30994 (output_json_intermediate_file): Output {start,end}_column
30995 fields.
30996 (read_graph_file): Read end_column.
30997
30998 2019-03-14 Richard Biener <rguenther@suse.de>
30999
31000 PR middle-end/89698
31001 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31002 that the access types are similar.
31003
31004 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31005
31006 PR tree-optimization/89703
31007 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31008 aren't compatible also with builtin_decl_explicit. Check pure
31009 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31010 and BUILT_IN_STPNCPY{,_CHK}.
31011
31012 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31013
31014 PR target/89523
31015 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31016 addr32 prefix to VSIB address for X32.
31017 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31018 "%M2" to opcode.
31019 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31020 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31021 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31022 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31023 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31024 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31025 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31026 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31027 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31028 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31029 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31030 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31031 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31032 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31033 (*avx512f_scatterdi<mode>): Likewise.
31034
31035 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31036
31037 PR target/85860
31038 * lra-constraints.c (inherit_in_ebb): Update
31039 potential_reload_hard_regs along with live_hard_regs.
31040
31041 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31042
31043 PR debug/89498
31044 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31045 DWARF_OFFSET_SIZE.
31046 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31047
31048 2019-03-13 Martin Sebor <msebor@redhat.com>
31049
31050 PR tree-optimization/89662
31051 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31052 has a size.
31053
31054 2019-03-13 Richard Biener <rguenther@suse.de>
31055
31056 PR middle-end/89677
31057 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31058 throw FP expressions at tree-affine.
31059
31060 2019-03-14 Richard Biener <rguenther@suse.de>
31061
31062 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31063 dump negative integer constants using _Literal (type) -num.
31064
31065 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31066
31067 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31068 nonlocal_value member.
31069
31070 PR middle-end/88588
31071 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31072 (ipa_simd_modify_function_body): Handle PHIs.
31073
31074 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31075
31076 * config/s390/s390.c (s390_option_override_internal): Use more
31077 aggressive inlining parameters.
31078
31079 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31080
31081 * config/s390/3906.md: New file.
31082 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31083 (LONGRUNNING_THRESHOLD): Remove.
31084 (MAX_SCHED_MIX_SCORE): Decrease.
31085 (MAX_SCHED_MIX_DISTANCE): Decrease.
31086 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31087 (struct s390_sched_state): New struct to hold scheduling state.
31088 (S390_SCHED_STATE_NORMAL): Remove.
31089 (S390_SCHED_STATE_CRACKED): Remove.
31090 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31091 (s390_get_sched_attrmask): Use new attribute.
31092 (s390_get_unit_mask): Use new units.
31093 (s390_is_fpd): New function.
31094 (s390_is_fxd): New function.
31095 (s390_is_longrunning): New function.
31096 (s390_sched_score): Use new functions.
31097 (s390_sched_reorder): Likewise.
31098 (s390_sched_variable_issue): Rework and use new functions.
31099 (s390_sched_init): Use new functions.
31100 * config/s390/s390.h (s390_tune_attr): Add z14.
31101 * config/s390/s390.md: Add z14.
31102
31103 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31104
31105 * config/s390/2964.md: Update pipeline description.
31106 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31107 (LONGRUNNING_THRESHOLD): Remove.
31108 (LATENCY_FACTOR): Remove.
31109 (s390_get_unit_mask): Add unit.
31110 (s390_sched_score): Use fxd/fpd.
31111 (s390_sched_variable_issue): Use fxd/fpd.
31112
31113 2019-03-12 Martin Liska <mliska@suse.cz>
31114
31115 * config/i386/i386.c: Reword an error message.
31116
31117 2019-03-12 Martin Jambor <mjambor@suse.cz>
31118
31119 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31120 terminate with newline.
31121
31122 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31123
31124 PR target/52726
31125 * config/s390/s390.md (tabort): Use %wd instead of
31126 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31127 letters and periods.
31128 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31129 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31130 's with %< and %>.
31131
31132 PR middle-end/89663
31133 * builtins.c (expand_builtin_int_roundingfn,
31134 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31135 gcc_unreachable if validate_arglist fails.
31136
31137 2019-03-12 Richard Biener <rguenther@suse.de>
31138
31139 PR tree-optimization/89664
31140 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31141 free the occurance tree after the early out.
31142
31143 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31144
31145 PR middle-end/89655
31146 PR bootstrap/89656
31147 * vr-values.c (vr_values::update_value_range): If
31148 old_vr->varying_p (), don't update it, make new_vr also VARYING
31149 and return false.
31150
31151 2019-03-11 Martin Liska <mliska@suse.cz>
31152
31153 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31154 Fix double string quoting.
31155
31156 2019-03-11 Martin Liska <mliska@suse.cz>
31157
31158 * collect-utils.c (collect_wait): Wrap apostrophes
31159 in gcc internal format with %'.
31160 * collect2.c (main): Likewise.
31161 (scan_prog_file): Likewise.
31162 (scan_libraries): Likewise.
31163 * config/i386/i386.c (ix86_expand_call): Likewise.
31164 (ix86_handle_interrupt_attribute): Likewise.
31165 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31166 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31167 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31168 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31169 * symtab.c (symtab_node::verify_base): Likewise.
31170 * tree-cfg.c (verify_gimple_label): Likewise.
31171 * tree.c (verify_type_variant): Likewise.
31172
31173 2019-03-11 Martin Liska <mliska@suse.cz>
31174
31175 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31176 in a string format message and fix GNU coding style.
31177 (expand_builtin_set_thread_pointer): Likewise.
31178 * common/config/aarch64/aarch64-common.c
31179 (aarch64_rewrite_selected_cpu): Likewise.
31180 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31181 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31182 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31183 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31184 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31185 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31186 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31187 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31188 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31189 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31190 Likewise.
31191 * common/config/riscv/riscv-common.c
31192 (riscv_subset_list::parsing_subset_version): Likewise.
31193 (riscv_subset_list::parse_std_ext): Likewise.
31194 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31195 (riscv_subset_list::parse): Likewise.
31196 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31197 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31198 (aarch64_override_options_internal): Likewise.
31199 (aarch64_validate_mcpu): Likewise.
31200 (aarch64_validate_march): Likewise.
31201 (aarch64_validate_mtune): Likewise.
31202 (aarch64_override_options): Likewise.
31203 * config/alpha/alpha.c (alpha_option_override): Likewise.
31204 * config/arc/arc.c (arc_init): Likewise.
31205 (parse_mrgf_banked_regs_option): Likewise.
31206 (arc_override_options): Likewise.
31207 (arc_expand_builtin_aligned): Likewise.
31208 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31209 (arm_expand_builtin): Likewise.
31210 * config/arm/arm.c (arm_option_check_internal): Likewise.
31211 (arm_configure_build_target): Likewise.
31212 (arm_option_override): Likewise.
31213 (arm_options_perform_arch_sanity_checks): Likewise.
31214 (arm_handle_cmse_nonsecure_entry): Likewise.
31215 (arm_handle_cmse_nonsecure_call): Likewise.
31216 (arm_tls_referenced_p): Likewise.
31217 (thumb1_expand_prologue): Likewise.
31218 * config/avr/avr.c (avr_option_override): Likewise.
31219 * config/bfin/bfin.c (bfin_option_override): Likewise.
31220 * config/c6x/c6x.c (c6x_option_override): Likewise.
31221 * config/cr16/cr16.c (cr16_override_options): Likewise.
31222 * config/cris/cris.c (cris_option_override): Likewise.
31223 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31224 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31225 * config/darwin.c (darwin_override_options): Likewise.
31226 * config/frv/frv.c (frv_expand_builtin): Likewise.
31227 * config/h8300/h8300.c (h8300_option_override): Likewise.
31228 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31229 (ix86_option_override_internal): Likewise.
31230 (warn_once_call_ms2sysv_xlogues): Likewise.
31231 (ix86_expand_prologue): Likewise.
31232 (split_stack_prologue_scratch_regno): Likewise.
31233 (ix86_warn_parameter_passing_abi): Likewise.
31234 * config/ia64/ia64.c (fix_range): Likewise.
31235 * config/m68k/m68k.c (m68k_option_override): Likewise.
31236 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31237 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31238 (mips_set_compression_mode): Likewise.
31239 * config/mmix/mmix.c (mmix_option_override): Likewise.
31240 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31241 * config/msp430/msp430.c (msp430_option_override): Likewise.
31242 * config/nds32/nds32.c (nds32_option_override): Likewise.
31243 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31244 (nios2_option_override): Likewise.
31245 (nios2_expand_custom_builtin): Likewise.
31246 * config/nvptx/mkoffload.c (main): Likewise.
31247 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31248 * config/pa/pa.c (fix_range): Likewise.
31249 (pa_option_override): Likewise.
31250 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31251 (riscv_option_override): Likewise.
31252 * config/rl78/rl78.c (rl78_option_override): Likewise.
31253 * config/rs6000/aix61.h: Likewise.
31254 * config/rs6000/aix71.h: Likewise.
31255 * config/rs6000/aix72.h: Likewise.
31256 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31257 * config/rs6000/freebsd64.h: Likewise.
31258 * config/rs6000/linux64.h: Likewise.
31259 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31260 (rs6000_expand_zeroop_builtin): Likewise.
31261 (rs6000_expand_mtfsb_builtin): Likewise.
31262 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31263 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31264 (rs6000_invalid_builtin): Likewise.
31265 (rs6000_expand_split_stack_prologue): Likewise.
31266 * config/rs6000/rtems.h: Likewise.
31267 * config/rx/rx.c (valid_psw_flag): Likewise.
31268 (rx_expand_builtin): Likewise.
31269 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31270 * config/s390/s390.c (s390_expand_builtin): Likewise.
31271 (s390_function_profiler): Likewise.
31272 (s390_option_override_internal): Likewise.
31273 (s390_option_override): Likewise.
31274 * config/sh/sh.c (sh_option_override): Likewise.
31275 (sh_builtin_saveregs): Likewise.
31276 (sh_fix_range): Likewise.
31277 * config/sh/vxworks.h: Likewise.
31278 * config/sparc/sparc.c (sparc_option_override): Likewise.
31279 * config/spu/spu.c (spu_option_override): Likewise.
31280 (fix_range): Likewise.
31281 * config/visium/visium.c (visium_option_override): Likewise.
31282 (visium_handle_interrupt_attr): Likewise.
31283 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31284 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31285 (dbg_cnt_process_opt): Likewise.
31286 * dwarf2out.c (output_dwarf_version): Likewise.
31287 * except.c (expand_eh_return): Likewise.
31288 * gcc.c (defined): Likewise.
31289 (driver_handle_option): Likewise.
31290 (process_command): Likewise.
31291 (compare_files): Likewise.
31292 (driver::prepare_infiles): Likewise.
31293 (driver::do_spec_on_infiles): Likewise.
31294 (driver::maybe_run_linker): Likewise.
31295 * omp-offload.c (oacc_parse_default_dims): Likewise.
31296 * opts-global.c (handle_common_deferred_options): Likewise.
31297 * opts.c (parse_sanitizer_options): Likewise.
31298 (common_handle_option): Likewise.
31299 (enable_warning_as_error): Likewise.
31300 * passes.c (enable_disable_pass): Likewise.
31301 * plugin.c (parse_plugin_arg_opt): Likewise.
31302 (default_plugin_dir_name): Likewise.
31303 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31304 (default_pch_valid_p): Likewise.
31305 * toplev.c (init_asm_output): Likewise.
31306 (process_options): Likewise.
31307 (toplev::run_self_tests): Likewise.
31308 * tree-cfg.c (verify_gimple_call): Likewise.
31309 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31310 (tree_inlinable_function_p): Likewise.
31311 * var-tracking.c (vt_find_locations): Likewise.
31312
31313 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31314
31315 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31316 only on the else branch.
31317
31318 2019-03-11 Martin Liska <mliska@suse.cz>
31319
31320 * gcov.c (output_intermediate_json_line): Print function
31321 name of each line.
31322 (output_json_intermediate_file): Add new argument.
31323 * doc/gcov.texi: Document the change.
31324
31325 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31326
31327 PR rtl-optimization/89588
31328 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31329 explicit unrolling factor more robust.
31330
31331 2019-03-11 Richard Biener <rguenther@suse.de>
31332
31333 PR tree-optimization/89649
31334 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31335 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31336 on the prolog and epilog loops.
31337 (vect_loop_versioning): Return copy of loop.
31338 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31339 on the non-vectorized version of the loop.
31340
31341 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31342
31343 PR target/68924
31344 * config/i386/sse.md (*vec_extractv2di_0_sse):
31345 Add (=r,x) alternative and corresponding splitter.
31346
31347 2019-03-10 Martin Jambor <mjambor@suse.cz>
31348
31349 PR tree-optimization/85762
31350 PR tree-optimization/87008
31351 PR tree-optimization/85459
31352 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31353 it points to if there is a type changing MEM_REF. Adjust all callers.
31354 (build_accesses_from_assign): Disable total scalarization if
31355 contains_vce_or_bfcref_p returns true through the new parameter, for
31356 both rhs and lhs.
31357
31358 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31359
31360 PR c/88568
31361 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31362 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31363
31364 PR target/79645
31365 * common.opt (fdiagnostics-show-labels,
31366 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31367 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31368 gas-locview-support, ginline-points, ginternal-reset-location-views):
31369 Terminate description text with a dot.
31370 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31371 * config/mcore/mcore.opt (m210, m340): Likewise.
31372 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31373 mnops=): Start description text with a capital letter.
31374 * config/arc/arc.opt (msize-level=): Likewise.
31375 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31376 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31377 mnewlib): Likewise.
31378 * config/ft32/ft32.opt (msim): Likewise.
31379 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31380 (mnodiv, mnopm): Terminate description text with a dot.
31381 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31382 a colon.
31383 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31384 Likewise.
31385 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31386 text.
31387
31388 PR rtl-optimization/89634
31389 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31390 are modified in BB_END (e->src) instruction.
31391
31392 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31393
31394 PR target/79926
31395 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31396 messages more amenable to translation, and improve wording.
31397
31398 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31399
31400 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31401 ud- and du-chains between phases.
31402
31403 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31404
31405 PR debug/89631
31406 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31407 instead of POLY_INT_CST.
31408
31409 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31410
31411 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31412 requirement.
31413
31414 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31415
31416 PR target/68924
31417 PR target/78782
31418 PR target/87558
31419 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31420 (_mm_storeu_si64): Ditto.
31421
31422 2019-03-08 Martin Liska <mliska@suse.cz>
31423
31424 PR target/86952
31425 * config/i386/i386.c (ix86_option_override_internal): Disable
31426 jump tables when retpolines are used.
31427
31428 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31429
31430 PR go/63560
31431 * ipa-split.c (execute_split_functions): Do not split
31432 'noinline' or 'section' function.
31433
31434 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31435
31436 PR target/79846
31437 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31438 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31439 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31440
31441 PR ipa/80000
31442 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31443 from diagnostics. Formatting fixes.
31444
31445 PR target/85665
31446 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31447 warn_odr diagnostics.
31448
31449 PR other/80058
31450 * lra-constraints.c (process_alt_operands): Avoid one space before
31451 " at the end of line and another after " on another line in a string
31452 literal.
31453 * attribs.c (handle_dll_attribute): Likewise.
31454 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31455
31456 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31457 warning_at or inform messages in G_() if there is no ?:.
31458
31459 PR tree-optimization/89550
31460 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31461 returned true. Formatting fixes.
31462 (expand_builtin_strnlen): Formatting fixes.
31463 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31464 if warning_at returned true.
31465 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31466
31467 2019-03-08 Richard Biener <rguenther@suse.de>
31468
31469 PR middle-end/89578
31470 * cfgloop.h (struct loop): Add owned_clique field.
31471 * cfgloopmanip.c (copy_loop_info): Copy it.
31472 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31473 cliques.
31474 * tree-inline.c (copy_loops): Remap owned_clique.
31475 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31476 * lto-streamer-out.c (output_cfg): Likewise.
31477
31478 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31479
31480 PR target/80190
31481 * config/darwin.c: Include intl.h.
31482 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31483 composing the message out of two separate parts.
31484
31485 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31486
31487 PR target/80003
31488 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31489 doesn't start with a capital letter and doesn't end with a dot.
31490 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31491 with a capital letter.
31492 (ix86_mangle_function_version_assembler_name): Likewise.
31493 (ix86_generate_version_dispatcher_body): Likewise.
31494 (fold_builtin_cpu): Likewise.
31495 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31496 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31497 translators, wrap full type name in %qs.
31498
31499 PR translation/79999
31500 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31501 depend clause with source (or sink) modifier.
31502 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31503
31504 PR target/89602
31505 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31506 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31507 (avx512f_load<mode>_mask): New define_expand.
31508 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31509 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31510 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31511 __builtin_ia32_movess_mask): New builtins.
31512 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31513 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31514 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31515 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31516
31517 2019-03-07 Martin Jambor <mjambor@suse.cz>
31518
31519 PR lto/87525
31520 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31521 for extern inline functions.
31522
31523 2019-03-07 Martin Jambor <mjambor@suse.cz>
31524
31525 PR ipa/88235
31526 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31527 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31528 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31529 have multiple callees. At the end check if declarations match as
31530 opposed to cgraph_nodes.
31531
31532 2019-03-07 Martin Liska <mliska@suse.cz>
31533
31534 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31535 which is equivalent to searching for this in clones chain.
31536 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31537 names with a neighbour and special case first node in a chain.
31538
31539 2019-01-25 Jason Merrill <jason@redhat.com>
31540
31541 PR c++/80916 - spurious "static but not defined" warning.
31542 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31543 for an internal symbol with DECL_EXTERNAL.
31544
31545 2019-04-07 Richard Biener <rguenther@suse.de>
31546
31547 PR middle-end/89618
31548 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31549 * tree-inline.c (copy_loops): Simplify.
31550
31551 2019-03-07 Martin Liska <mliska@suse.cz>
31552
31553 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31554
31555 2019-03-07 Richard Biener <rguenther@suse.de>
31556
31557 PR tree-optimization/89595
31558 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31559 stmt iterator as reference, take boolean output parameter to
31560 indicate whether the stmt was removed and thus the iterator
31561 already advanced.
31562 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31563 stmts created by folding.
31564
31565 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31566
31567 PR c++/89585
31568 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31569 at toplevel.
31570
31571 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31572
31573 PR rtl-optimization/88845
31574 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31575 LRA.
31576 * lra.c (remove_scratches_1): New function.
31577 (remove_scratches): Use it.
31578 (lra_emit_move): Likewise.
31579
31580 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31581
31582 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31583 unaligned_access variable.
31584 * config/arc/arc.c (arc_override_options): Set unaligned access
31585 default on for HS CPUs.
31586 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31587
31588 2019-03-06 Martin Liska <mliska@suse.cz>
31589
31590 PR gcov-profile/89577
31591 * doc/gcov.texi: Prefer to use --coverage.
31592 * doc/sourcebuild.texi: Likewise.
31593
31594 2019-03-02 Jason Merrill <jason@redhat.com>
31595
31596 PR c++/86485 - -Wmaybe-unused with empty class ?:
31597 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31598
31599 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31600
31601 PR target/89587
31602 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31603 if_multiarch.
31604
31605 PR middle-end/89590
31606 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31607 exactly one argument.
31608
31609 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31610 Richard Sandiford <richard.sandiford@arm.com>
31611
31612 PR tree-optimization/89570
31613 * match.pd (vec_cond into cond_op simplification): Don't use
31614 get_conditional_internal_fn, use as_internal_fn (cond_op).
31615
31616 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31617
31618 PR target/89222
31619 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31620 to decide when to split off a non-zero offset from a symbol.
31621 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31622 in function symbols.
31623
31624 2019-03-05 Richard Biener <rguenther@suse.de>
31625
31626 PR tree-optimization/89594
31627 * tree-if-conv.c (pass_if_conversion::execute): Handle
31628 case where .LOOP_VECTORIZED_FUNCTION was removed.
31629
31630 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31631
31632 PR bootstrap/89560
31633 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31634 instead alloca it only when needed with the needed size.
31635
31636 PR tree-optimization/89570
31637 * match.pd (vec_cond into cond_op simplification): Guard with
31638 vectorized_internal_fn_supported_p test and #if GIMPLE.
31639
31640 PR tree-optimization/89566
31641 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31642 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31643 Punt if get_user_idx_format succeeds, but idx_format argument is
31644 not provided or doesn't have pointer type, or if idx_args is above
31645 number of provided arguments.
31646
31647 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31648
31649 PR tree-optimization/89437
31650 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31651
31652 2019-03-04 Richard Biener <rguenther@suse.de>
31653
31654 PR middle-end/89572
31655 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31656 safe_dyn_cast.
31657
31658 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31659
31660 PR tree-optimization/89487
31661 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31662 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31663 (distribute_loop): Don't do runtime alias check if there is non-
31664 addressable data reference.
31665 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31666 is a register variable.
31667
31668 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31669
31670 PR target/89506
31671 * config/arm/arm.md (cmpsi2_addneg): Use
31672 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31673 If operands[2] is 0 or INT_MIN, force use of subs.
31674 (*compare_scc splitter): Use gen_int_mode.
31675 (*negscc): Likewise.
31676 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31677
31678 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31679 Monk Chiang <sh.chiang04@gmail.com>
31680
31681 * common/config/riscv/riscv-common.c: Include sstream.
31682 (riscv_subset_list::to_string): New.
31683 (riscv_arch_str): Likewise.
31684 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31685 * config.in: Regen.
31686 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31687 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31688 (riscv_emit_attribute): New.
31689 (riscv_file_start): Emit attribute if needed.
31690 (riscv_option_override): Init riscv_emit_attribute_p.
31691 * config/riscv/riscv.opt (mriscv-attribute): New option.
31692 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31693 * configure: Regen.
31694 * doc/install.texi: Document --with-riscv-attribute.
31695 * doc/invoke.texi: Document -mriscv-attribute.
31696
31697 * common/config/riscv/riscv-common.c:
31698 Include config/riscv/riscv-protos.h.
31699 (INCLUDE_STRING): Defined.
31700 (RISCV_DONT_CARE_VERSION): Defined.
31701 (riscv_subset_t): Declare.
31702 (riscv_subset_t::riscv_subset_t): New.
31703 (riscv_subset_list): Declare.
31704 (riscv_subset_list::riscv_subset_list): New.
31705 (riscv_subset_list::~riscv_subset_list): Likewise.
31706 (riscv_subset_list::parsing_subset_version): Likewise.
31707 (riscv_subset_list::parse_std_ext): Likewise.
31708 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31709 (riscv_subset_list::add): Likewise.
31710 (riscv_subset_list::lookup): Likewise.
31711 (riscv_subset_list::xlen): Likewise.
31712 (riscv_subset_list::parse): Likewise.
31713 (riscv_supported_std_ext): Likewise.
31714 (current_subset_list): Likewise.
31715 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31716 parse.
31717
31718 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31719
31720 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31721 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31722 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31723
31724 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31725
31726 PR rtl-optimization/85899
31727 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31728 fallthru edges leading to the exit block.
31729
31730 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31731
31732 PR target/89517
31733 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31734 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31735
31736 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31737
31738 PR tree-optimization/89535
31739 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31740 for each operand. Calculate the fallback choice for mask operands
31741 and pass it to vect_get_vec_def_for_operand.
31742
31743 2019-03-01 Richard Biener <rguenther@suse.de>
31744
31745 PR middle-end/89541
31746 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31747 get virtual operands.
31748 (get_expr_operands): Handle CONST_DECL like other decls.
31749
31750 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31751
31752 PR middle-end/89503
31753 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31754 on DECL_P and EXPR_P.
31755
31756 2019-03-01 Richard Biener <rguenther@suse.de>
31757
31758 PR middle-end/89497
31759 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31760 argument, defaulted to zero.
31761 * passes.c (execute_function_todo): Pass down SSA update flags
31762 to cleanup_tree_cfg.
31763 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31764 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31765 form if requested.
31766 (cleanup_tree_cfg): Get and pass down SSA update flags.
31767
31768 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31769
31770 PR bootstrap/89539
31771 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31772 early_lto_debug argument.
31773
31774 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31775
31776 PR tree-optimization/89536
31777 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31778 only whether bit #0 of the value is 0 instead of the entire value.
31779
31780 2019-02-28 Marek Polacek <polacek@redhat.com>
31781
31782 PR c++/87068 - missing diagnostic with fallthrough statement.
31783 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31784 at the end of a seq, save its location to walk_stmt_info.
31785 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31786 a switch.
31787
31788 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31789
31790 PR lto/88585
31791 * tree.c (find_atomic_core_type): Move ahead in file.
31792 (check_base_type): Correctly compare alignments of atomic types.
31793
31794 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31795
31796 PR target/89455
31797 * config/i386/i386.c (get_builtin_code_for_version): Identify
31798 Westmere from PCLMUL, instead of AES.
31799
31800 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31801
31802 PR target/89434
31803 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31804 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31805 -UINTVAL (...).
31806
31807 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31808
31809 PR target/88530
31810 * config/aarch64/aarch64-option-extensions.def: Document it.
31811 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31812 if empty hwcaps.
31813
31814 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31815
31816 PR c/89520
31817 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31818 builtins if they don't have a single scalar floating point argument.
31819 Formatting fixes.
31820
31821 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31822
31823 PR rtl-optimization/89490
31824 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31825 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31826 block section is not mergeable.
31827
31828 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31829
31830 PR target/70341
31831 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31832 old define_insn to ...
31833 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31834 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31835 Rename old define_insn to ...
31836 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31837 (thumb2_casesi_internal_pic): New define_expand. Rename old
31838 define_insn to ...
31839 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31840 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31841 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31842
31843 2019-02-27 Richard Biener <rguenther@suse.de>
31844
31845 PR debug/88878
31846 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31847
31848 2019-02-27 Richard Biener <rguenther@suse.de>
31849
31850 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31851 building.
31852
31853 2019-02-27 Richard Biener <rguenther@suse.de>
31854
31855 PR debug/88878
31856 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31857 parameter, prefix section name with .gnu.debuglto_ if true.
31858 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31859 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31860
31861 2019-02-27 Richard Biener <rguenther@suse.de>
31862
31863 PR debug/89514
31864 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31865 rather than on use_debug_types, doing what output_die does.
31866 (value_format): Likewise.
31867
31868 2019-02-27 Martin Jambor <mjambor@suse.cz>
31869 Martin Sebor <msebor@redhat.com>
31870
31871 * doc/invoke.texi (Warning Options): Reword description of
31872 -Wno-absolute-value.
31873
31874 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31875
31876 PR tree-optimization/89280
31877 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31878 builtin_setjmp_setup_bb): New functions.
31879 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31880 When visiting __builtin_setjmp_setup block, queue in special
31881 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31882 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31883 from visited after the loop if they don't have any visited successor
31884 blocks.
31885
31886 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31887
31888 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31889 New function.
31890 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31891
31892 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31893
31894 PR c++/89507
31895 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31896 with types other than sizetype/ssizetype.
31897
31898 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31899
31900 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31901 (enum sparc_processor_type): ...this.
31902 (enum sparc_code_model_type): New enumeration type.
31903 (enum sparc_memory_model_type): Tweak comments.
31904 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31905 (mtune): Likewise.
31906 (mcmodel): Use sparc_code_model enumeration and variable.
31907 (sparc_code_model): New enumeration.
31908 (mdebug): Add Undocumented marker.
31909 * config/sparc/sparc.h (enum cmodel): Delete.
31910 (sparc_cmodel): Likewise.
31911 (TARGET_CM_MEDLOW): Adjust to above renaming.
31912 (TARGET_CM_MEDMID): Likewise.
31913 (TARGET_CM_MEDANY): Likewise.
31914 (TARGET_CM_EMBMEDANY): Likewise.
31915 * config/sparc/sparc.c (sparc_cmodel): Delete.
31916 (sparc_option_override): Remove string/value mapping support for the
31917 code model. Move code and memory model support to after the handling
31918 of target flags. Do private machine setup last.
31919 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31920 (sparc_legitimize_reload_address): Likewise.
31921 (sparc_output_mi_thunk): Likewise.
31922 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31923
31924 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31925
31926 PR tree-optimization/89500
31927 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31928 (handle_builtin_strlen): Remove noncst_bound variable. Always
31929 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31930 cst if the first cst bytes starting at x are known to be non-zero,
31931 even if the string is not zero terminated. Don't try to modify
31932 *si for strnlen. Update strlen_to_stridx only for strlen or if
31933 we can prove strnlen returns the same value as strlen would.
31934
31935 2019-02-26 Martin Liska <mliska@suse.cz>
31936
31937 * alloc-pool.h (struct pool_usage): Remove extra
31938 print_dash_line.
31939 * bitmap.h (struct bitmap_usage): Likewise.
31940 * ggc-common.c (struct ggc_usage): Likewise.
31941 * mem-stats.h (struct mem_usage): Likewise.
31942 (mem_alloc_description::dump): Print dash lines
31943 here and repeat header at the end of a table report.
31944 It's then more readable.
31945 * tree-phinodes.c (phinodes_print_statistics): Make
31946 horizontal alignment.
31947 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31948 * vec.c (struct vec_usage): Remove extra print_dash_line.
31949 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31950
31951 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31952
31953 * doc/extend.texi (__builtin_object_size):
31954 Use @pxref instead of @xref inside parenthesis.
31955 (__builtin_has_attribute): Add missing comma after @xref.
31956 (__builtin_object_size): Ditto.
31957 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31958
31959 2019-02-26 Jeff Law <law@redhat.com>
31960
31961 PR rtl-optimization/87761
31962 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31963 detect obviously dead insns and delete them.
31964
31965 2019-02-26 Richard Biener <rguenther@suse.de>
31966
31967 PR tree-optimization/89505
31968 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31969 to handle restrict pointed-to vars with multiple subvars
31970 correctly.
31971
31972 2019-02-26 Richard Biener <rguenther@suse.de>
31973
31974 PR tree-optimization/89489
31975 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31976
31977 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31978
31979 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31980 and move around comment.
31981 <BIT_AND_EXPR>: Likewise.
31982 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31983
31984 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31985
31986 PR target/89474
31987 * config/i386/i386.c (remove_partial_avx_dependency): Call
31988 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31989 after changing possibly many instructions to use that pseudo. Fix up
31990 insertion of v4sf_const0 setter at the start of bb.
31991
31992 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31993
31994 PR c/80409
31995 * doc/extend.texi (Variadic Pointer Args): New section.
31996
31997 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31998 Martin Sebor <msebor@gmail.com>
31999
32000 * common.opt (Wattribute-alias): Likewise.
32001 * doc/invoke.texi (Option Summary): List general form of
32002 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32003 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32004 Add cross-references.
32005 (-Wattribute-alias): Rewrite and correct default. Mention
32006 considered attributes (same as for -Wmissing-attributes).
32007
32008 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32009
32010 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32011 (_mm_cvtpd_ps): Likewise.
32012 (_mm_cvttpd_epi32): Likewise.
32013
32014 PR target/89338
32015 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32016 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32017
32018 PR target/89339
32019 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32020
32021 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32022
32023 PR target/88530
32024 * common/config/aarch64/aarch64-common.c
32025 (struct aarch64_option_extension): Add is_synthetic.
32026 (all_extensions): Use it.
32027 (TARGET_OPTION_INIT_STRUCT): Define hook.
32028 (struct gcc_targetm_common): Moved to end.
32029 (all_extensions_by_on): New.
32030 (opt_ext_cmp, typedef opt_ext): New.
32031 (aarch64_option_init_struct): New.
32032 (aarch64_contains_opt): New.
32033 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32034 * config/aarch64/aarch64-option-extensions.def
32035 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32036 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32037 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32038 Set is_synthetic to false.
32039 (crypto): Set is_synthetic to true.
32040 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32041 SYNTHETIC.
32042
32043 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32044
32045 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32046 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32047 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32048 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32049 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32050 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32051 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32052 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32053 Rename ...
32054 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32055 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32056 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32057 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32058 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32059 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32060 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32061 vfmlsl_laneq_high_f16): ... To this.
32062 * config/arm/neon.md: Update comments.
32063
32064 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32065
32066 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32067 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32068 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32069 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32070 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32071 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32072 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32073 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32074 Rename ...
32075 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32076 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32077 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32078 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32079 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32080 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32081 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32082 vfmlslq_laneq_high_f16): ... To this.
32083
32084 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32085
32086 PR rtl-optimization/86096
32087 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32088 comparing mw_order values.
32089
32090 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32091
32092 PR target/89434
32093 * config/arm/arm.md (*subsi3_carryin_const): Use
32094 arm_neg_immediate_operand predicate instead of
32095 arm_not_immediate_operand, "L" constraint instead of "K" and
32096 print it using %n2 instead of %B2.
32097 (*subsi3_carryin_const0): New define_insn.
32098 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32099 instead of arm_not_operand and "I" constraint instead of "K" and
32100 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32101 another match_operand and in the condition check that it is negation
32102 of operands[2].
32103 (*subsi3_carryin_compare_const0): New define_ins.
32104 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32105 *subsi3_carryin_const.
32106 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32107 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32108
32109 PR target/89438
32110 * config/arm.vfp.md (*negdf2_vfp): Use
32111 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32112 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32113
32114 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32115
32116 PR rtl-optimization/89445
32117 * simplify-rtx.c (simplify_ternary_operation): Don't use
32118 simplify_merge_mask on operands that may trap.
32119 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32120 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32121 second operand is CONST_VECTOR, check if any element could be zero.
32122 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32123 their operands can trap.
32124
32125 2019-02-23 Martin Sebor <msebor@redhat.com>
32126
32127 * gimple-ssa-sprintf.c (target_strtol): Rename...
32128 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32129 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32130 check for range error.
32131
32132 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32133
32134 PR driver/69471
32135 * opts-common.c (prune_options): Also prune joined switches
32136 with Negative and RejectNegative.
32137 * config/i386/i386.opt (march=): Add Negative(march=).
32138 (mtune=): Add Negative(mtune=).
32139 * doc/options.texi: Document Negative used together with Joined
32140 and RejectNegative.
32141
32142 2019-02-22 Martin Sebor <msebor@redhat.com>
32143
32144 * doc/extend.texi (Other Builtins): Add
32145 __builtin_is_constant_evaluated.
32146
32147 2019-02-22 Richard Biener <rguenther@suse.de>
32148
32149 PR tree-optimization/87609
32150 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32151
32152 2019-02-22 Jeff Law <law@redhat.com>
32153
32154 PR rtl-optimization/87761
32155 * config/mips/mips.md: Add new combiner pattern to recognize
32156 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32157
32158 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32159
32160 PR target/89324
32161 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32162 destination register in peepholes generating patterns for ADDS/SUBS.
32163 (add<mode>3_compare0,
32164 *addsi3_compare0_uxtw, add<mode>3_compareC,
32165 add<mode>3_compareV_imm, add<mode>3_compareV,
32166 *adds_<optab><ALLX:mode>_<GPI:mode>,
32167 *subs_<optab><ALLX:mode>_<GPI:mode>,
32168 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32169 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32170 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32171 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32172 sub<mode>3_compare1): Allow stack pointer for source register.
32173 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32174
32175 2019-02-22 Martin Sebor <msebor@redhat.com>
32176
32177 PR tree-optimization/88993
32178 PR tree-optimization/88853
32179 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32180 New helper.
32181 (sprintf_dom_walker::call_info::is_string_func): New helper.
32182 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32183 for formatted string functions.
32184 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32185
32186 2019-02-22 Martin Sebor <msebor@redhat.com>
32187
32188 PR c/89425
32189 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32190 unreachable subexpressions.
32191
32192 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32193 Hongtao Liu <hongtao.liu@intel.com>
32194 Sunil K Pandey <sunil.k.pandey@intel.com>
32195
32196 PR target/87007
32197 * config/i386/i386-passes.def: Add
32198 pass_remove_partial_avx_dependency.
32199 * config/i386/i386-protos.h
32200 (make_pass_remove_partial_avx_dependency): New.
32201 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32202 New function.
32203 (pass_data_remove_partial_avx_dependency): New.
32204 (pass_remove_partial_avx_dependency): Likewise.
32205 (make_pass_remove_partial_avx_dependency): Likewise.
32206 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32207 (*extendsfdf2): Add avx_partial_xmm_update.
32208 (truncdfsf2): Likewise.
32209 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32210 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32211
32212 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32213
32214 PR middle-end/85598
32215 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32216 analysis for pass.
32217
32218 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32219
32220 PR target/89444
32221 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32222 (PTA_SKYLAKE): Add PTA_AES.
32223 (PTA_GOLDMONT): Likewise.
32224
32225 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32226
32227 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32228 instruction if enabled.
32229 (aarch64_override_options): Remove reference to return address key.
32230
32231 2019-02-22 Richard Biener <rguenther@suse.de>
32232
32233 PR tree-optimization/89440
32234 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32235 not necessary assert.
32236
32237 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32238
32239 PR fortran/72741
32240 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32241 (oacc_replace_fn_attrib_attr): ... this new function.
32242 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32243 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32244
32245 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32246
32247 * config/arm/arm-cpus.in (ares): Rename to...
32248 (neoverse-n1): ... This. Add ares as alias.
32249 * config/arm/arm-tables.opt: Regenerate.
32250 * config/arm/arm-tune.md: Likewise.
32251 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32252
32253 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32254
32255 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32256 * config/aarch64/aarch64-tune.md: Regenerate.
32257 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32258
32259 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32260
32261 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32262 (neoversen1_tunings): ... This.
32263 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32264 (neoverse-n1): New CPU.
32265 * config/aarch64/aarch64-tune.md: Regenerate.
32266 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32267
32268 2019-02-22 Richard Biener <rguenther@suse.de>
32269
32270 PR middle-end/87609
32271 * cfghooks.h (dependence_hash): New typedef.
32272 (struct copy_bb_data): New type.
32273 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32274 (duplicate_block): Likewise.
32275 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32276 (copy_bbs): Create and pass down copy_bb_data.
32277 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32278 (rtl_duplicate_bb): Likewise.
32279 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32280 remap dependence info.
32281
32282 2019-02-22 Richard Biener <rguenther@suse.de>
32283
32284 PR tree-optimization/87609
32285 * tree-core.h (tree_base): Document special clique values.
32286 * tree-inline.c (remap_dependence_clique): Do not use the
32287 special clique value of one.
32288 (maybe_set_dependence_info): Use clique one.
32289 (clear_dependence_clique): New callback.
32290 (compute_dependence_clique): Clear clique one from all refs
32291 before assigning it (again).
32292
32293 2019-02-21 Martin Sebor <msebor@redhat.com>
32294
32295 * doc/extend.texi (__clear_cache): Correct signature.
32296
32297 2019-02-21 Ian Lance Taylor <iant@golang.org>
32298
32299 PR go/89170
32300 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32301 than output_constant_def.
32302 (add_constant_to_table): New static function.
32303 (output_constant_def): Call add_constant_to_table.
32304 (tree_output_constant_def): Likewise.
32305
32306 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32307
32308 PR c++/89285
32309 * builtins.c (fold_builtin_arith_overflow): If first two args are
32310 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32311 to ifn.
32312
32313 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32314
32315 PR target/87412
32316 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32317 error for -mindirect-branch/-mfunction-return with incompatible
32318 -fcf-protection.
32319
32320 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32321
32322 PR bootstrap/88714
32323 * constraints.md (q): Remove.
32324 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32325 instead of q.
32326
32327 2019-02-21 Martin Jambor <mjambor@suse.cz>
32328
32329 PR hsa/89302
32330 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32331 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32332 (omp_adjust_for_condition): ...here. Added necessary parameters.
32333 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32334 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32335 proper values to new parameters of omp_adjust_for_condition.
32336
32337 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32338
32339 PR middle-end/89412
32340 * expr.c (expand_assignment): If result is a MEM, use change_address
32341 instead of simplify_gen_subreg.
32342
32343 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32344 David Malcolm <dmalcolm@redhat.com>
32345
32346 PR middle-end/89091
32347 * fold-const.c (decode_field_reference): Return NULL_TREE if
32348 lang_hooks.types.type_for_size returns NULL. Check it before
32349 overwriting *exp_. Use return NULL_TREE instead of return 0.
32350
32351 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32352
32353 PR middle-end/88074
32354 PR middle-end/89415
32355 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32356 buggy mpc_norm.
32357
32358 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32359
32360 PR target/89397
32361 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32362 TARGET_SSE in addition to TARGET_SSE_MATH.
32363
32364 (ix86_excess_precision): Ditto.
32365 (ix86_float_exceptions_rounding_supported_p): Ditto.
32366 (use_rsqrt_p): Ditto.
32367 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32368
32369 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32370
32371 PR c/89410
32372 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32373 linenum_arith_t when determining if two adjacent line spans are
32374 close enough to merge.
32375 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32376 lines within each line_span.
32377
32378 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32379
32380 PR target/86487
32381 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32382 paradoxical SUBREGS.
32383
32384 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32385
32386 PR target/88100
32387 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32388 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32389 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32390 range checking it.
32391
32392 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32393
32394 * config/gcn/gcn.c (print_operand): Fix typo.
32395
32396 2019-02-19 Richard Biener <rguenther@suse.de>
32397
32398 PR middle-end/88074
32399 * toplev.c (do_compile): Initialize mpfr's exponent range
32400 based on available float modes.
32401
32402 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32403
32404 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32405 as long as the epilogue isn't completed.
32406
32407 2019-02-18 Martin Sebor <msebor@redhat.com>
32408
32409 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32410 __has_cpp_attribute, and __has_include.
32411
32412 2019-02-18 Martin Sebor <msebor@redhat.com>
32413
32414 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32415
32416 2019-02-18 Martin Sebor <msebor@redhat.com>
32417
32418 PR middle-end/89294
32419 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32420 expression.
32421 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32422
32423 2019-02-18 Richard Biener <rguenther@suse.de>
32424
32425 PR tree-optimization/89296
32426 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32427 of no-warning flag to cases that might emit the bogus warning.
32428
32429 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32430
32431 PR bootstrap/88714
32432 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32433 "q" constraint.
32434 * config/arm/vfp.md (*movdi_vfp): Likewise.
32435 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32436 "q" constraint for operands[0].
32437
32438 PR target/89369
32439 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32440 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32441 pattern in a temporary buffer.
32442 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32443 than 64-operands[2].
32444
32445 PR target/89361
32446 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32447 s390_indirect_branch_settings): Define unconditionally.
32448 (s390_set_current_function): Likewise, but guard the whole body except
32449 the s390_indirect_branch_settings call with
32450 #if S390_USE_TARGET_ATTRIBUTE.
32451 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32452
32453 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32454 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32455 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32456 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32457 HOST_WIDE_INT_1U instead of 1ULL.
32458 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32459 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32460 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32461 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32462 instead of 1UL.
32463 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32464 instead of 1ul.
32465
32466 2019-02-18 Martin Jambor <mjambor@suse.cz>
32467
32468 PR tree-optimization/89209
32469 * tree-sra.c (create_access_replacement): New optional parameter
32470 reg_tree. Use it as a type if non-NULL and access type is not of
32471 a register type.
32472 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32473 to create_access_replacement.
32474 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32475 Check lacc is non-NULL before attempting to re-create it on the RHS.
32476
32477 2019-02-18 Martin Liska <mliska@suse.cz>
32478
32479 PR ipa/89306
32480 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32481 by default.
32482 (symbol_table::free_edge): Recycle m_summary_id.
32483 * cgraph.h (get_summary_id): New.
32484 (symbol_table::release_symbol): Set m_summary_id to -1
32485 by default.
32486 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32487 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32488 function_summary to fast_function_summary.
32489 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32490 * ipa-pure-const.c (class funct_state_summary_t):
32491 Switch from function_summary to fast_function_summary.
32492 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32493 (class ipa_ref_opt_summary_t): Switch from function_summary
32494 to fast_function_summary.
32495 * symbol-summary.h (class function_summary_base): New class
32496 that is created from base of former function_summary.
32497 (function_summary_base::unregister_hooks): New.
32498 (class function_summary): Inherit from function_summary_base.
32499 (class call_summary_base): New class
32500 that is created from base of former call_summary.
32501 (class call_summary): Inherit from call_summary_base.
32502 (struct is_same): New.
32503 (class fast_function_summary): New summary class.
32504 (class fast_call_summary): New summary class.
32505 * vec.h (vec_safe_grow_cleared): New function.
32506
32507 2019-02-18 Martin Liska <mliska@suse.cz>
32508
32509 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32510 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32511 * doc/tm.texi: Document new target hook.
32512 * doc/tm.texi.in: Likewise.
32513 * target.def: Add new target macro.
32514 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32515 suffixes.
32516
32517 2019-02-17 Alan Modra <amodra@gmail.com>
32518
32519 PR target/89271
32520 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32521 output reg on add insn.
32522 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32523
32524 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32525
32526 PR target/89372
32527 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32528 (PMULHRSW): Likewise.
32529 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32530 TARGET_AVX2.
32531 (ssse3_pmulhrswv4hi3): New expander.
32532
32533 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32534
32535 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32536 MMX. Add isa attribute.
32537
32538 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32539
32540 PR rtl-optimization/66152
32541 * builtins.h (c_readstr): Declare.
32542 * builtins.c (c_readstr): Remove forward declaration. Add
32543 null_terminated_p argument, if false, read all bytes from the
32544 string instead of stopping after '\0'.
32545 * expr.c (string_cst_read_str): New function.
32546 (store_expr): Use string_cst_read_str instead of
32547 builtin_strncpy_read_str. Try to store by pieces the whole
32548 exp_len first, and only if that fails, split it up into
32549 store by pieces followed by clear_storage. Formatting fix.
32550
32551 * config/i386/i386.md (*movqi_internal): Remove static from
32552 buf variable. Use output_asm_insn (buf, operands); return "";
32553 instead of return buf;.
32554 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32555 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32556 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32557
32558 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32559
32560 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32561 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32562 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32563 (CC1_SPEC): Likewise.
32564 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32565
32566 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32567
32568 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32569 the base address on 64-bit strict-alignment platforms.
32570
32571 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32572
32573 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32574
32575 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32576
32577 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32578
32579 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32580
32581 PR rtl-optimization/88308
32582 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32583 on copied instruction.
32584
32585 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32586
32587 * final.c (insn_current_reference_address): Replace test on JUMP_P
32588 with test on jump_to_label_p.
32589 * config/visium/visium-passes.def: New file.
32590 * config/visium/t-visium (PASSES_EXTRA): Define.
32591 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32592 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32593 (TRAMPOLINE_ALIGNMENT): Define.
32594 * config/visium/visium.c (visium_option_override): Do not register
32595 the machine-specific reorg pass here.
32596 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32597 for the GR6.
32598 (output_branch): Adjust threshold for long branch instruction.
32599 * config/visium/visium.md (cpu): Move around.
32600 (length): Adjust for the GR6.
32601
32602 2019-02-15 Richard Biener <rguenther@suse.de>
32603 Jakub Jelinek <jakub@redhat.com>
32604
32605 PR tree-optimization/89278
32606 * tree-loop-distribution.c: Include tree-eh.h.
32607 (generate_memset_builtin, generate_memcpy_builtin): Call
32608 rewrite_to_non_trapping_overflow on builtin->size before passing it
32609 to force_gimple_operand_gsi.
32610
32611 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32612
32613 PR other/89342
32614 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32615 optimize_debug.
32616 * opth-gen.awk: Likewise.
32617
32618 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32619
32620 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32621 Enable MMX, SSE and SSE2 by default.
32622 * config/i386/i386.c (ix86_option_override_internal): Do not
32623 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32624
32625 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32626
32627 PR rtl-optimization/89354
32628 * combine.c (make_extraction): Punt if extraction_mode is narrower
32629 than len bits.
32630
32631 2019-02-14 Maya Rashish <coypu@sdf.org>
32632
32633 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32634 * config/netbsd-d.c: New file.
32635 * config/t-netbsd: Add netbsd-d.o
32636
32637 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32638
32639 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32640 affects_type_identity to true for aarch64_vector_pcs.
32641 (aarch64_comp_type_attributes): New function.
32642 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32643
32644 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32645
32646 PR target/88850
32647 * config/arm/iterators.md (ANY64): Add V4HF.
32648
32649 2019-02-14 Martin Liska <mliska@suse.cz>
32650
32651 PR rtl-optimization/89242
32652 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32653 process a transformation.
32654
32655 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32656
32657 PR tree-optimization/89314
32658 * fold-const.c (fold_binary_loc): Cast strlen argument to
32659 const char * before dereferencing it. Formatting fixes.
32660
32661 PR middle-end/89284
32662 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32663
32664 2019-02-13 Ian Lance Taylor <iant@golang.org>
32665
32666 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32667 and set current index for other optimizations.
32668
32669 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32670
32671 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32672 nonimmediate_operand as operand 2 predicate.
32673 (vec_set<VF2_512_256:mode>_0): Ditto.
32674 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32675 (*vec_concatv2si): Remove alternative 2.
32676 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32677 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32678 (vec_concatv2di): Split alternatives 4,5,6 to ...
32679 (*vec_concatv2di_0) ... new pattern.
32680
32681 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32682
32683 PR target/89190
32684 * config/arm/arm.c (ldm_stm_operation_p) Set
32685 addr_reg_in_reglist correctly for first register.
32686 (load_multiple_sequence): Remove dead base check.
32687 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32688
32689 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32690
32691 PR target/88847
32692 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32693 Expose as @aarch64_pred_mov.
32694 * config/aarch64/aarch64.c (aarch64_classify_address):
32695 Use expand_insn which legitimizes operands.
32696
32697 2019-02-13 Martin Liska <mliska@suse.cz>
32698
32699 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32700 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32701 and pointer_offset fields.
32702 (initialize_argument_information): Remove usage of dead
32703 fields.
32704 * cgraph.h (struct cgraph_thunk_info): Remove
32705 add_pointer_bounds_args.
32706 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32707 fields.
32708 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32709 fields.
32710 * config/i386/i386.c (ix86_function_arg_advance): Remove
32711 unrelated comment.
32712 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32713 (def_builtin): Remove usage of dead fields.
32714 (ix86_add_new_builtins): Likewise.
32715 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32716 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32717 (sem_function::init): Likewise.
32718 (sem_variable::merge): Likewise.
32719 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32720 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32721 * lto-cgraph.c (lto_output_node): Likewise.
32722 (lto_output_varpool_node): Likewise.
32723 (input_node): Likewise.
32724 (input_varpool_node): Likewise.
32725 * lto-streamer-out.c (lto_output): Likewise.
32726 * tree-inline.c (expand_call_inline): Remove usage of
32727 assign_stmts.
32728 * tree-inline.h (struct copy_body_data): Likewise.
32729 * varpool.c (varpool_node::dump): Likewise.
32730
32731 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32732
32733 PR middle-end/89303
32734 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32735 into pt->vars_contains_escaped_heap instead of setting
32736 pt->vars_contains_escaped_heap to it.
32737
32738 PR middle-end/89281
32739 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32740 INTVAL (size), compare it to GET_MODE_MASK instead of
32741 1 << GET_MODE_BITSIZE.
32742
32743 PR target/89290
32744 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32745 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32746 -mcmodel=large.
32747
32748 2019-02-13 Martin Liska <mliska@suse.cz>
32749
32750 PR lto/88858
32751 * cfgrtl.c (remove_barriers_from_footer): New function.
32752 (try_redirect_by_replacing_jump): Use it.
32753 (cfg_layout_redirect_edge_and_branch): Likewise.
32754
32755 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32756
32757 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32758 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32759 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32760 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32761 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32762 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32763 New BU_CRYPTO_2.
32764 * config/rs6000/rs6000.c (builtin_function_type)
32765 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32766 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32767 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32768 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32769 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32770
32771 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32772
32773 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32774 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32775
32776 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32777
32778 PR target/89229
32779 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32780 268678 and revision 268657.
32781 (*movti_internal): Likewise.
32782
32783 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32784
32785 PR target/89233
32786 * config/s390/s390.c (s390_decompose_address): Update comment.
32787 (s390_check_qrst_address): Reject invalid address forms after
32788 LRA.
32789
32790 2019-02-12 Martin Liska <mliska@suse.cz>
32791
32792 PR lto/88876
32793 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32794 we need default values of funct_state for a function that
32795 is not optimized.
32796
32797 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32798
32799 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32800 the object to pick the size of stores on strict-alignment platforms.
32801
32802 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32803 (*movdi_insn_sp32): Likewise.
32804 (*movdi_insn_sp64): Likewise.
32805
32806 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32807
32808 PR lto/88677
32809 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32810 types that needs constructiong.
32811 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32812
32813 2019-02-12 Richard Biener <rguenther@suse.de>
32814
32815 PR tree-optimization/89253
32816 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32817 duplicate the loop.
32818
32819 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32820
32821 PR lto/88147
32822 * input.c (selftest::test_line_offset_overflow): New selftest.
32823 (selftest::input_c_tests): Call it.
32824
32825 2019-02-11 Martin Sebor <msebor@redhat.com>
32826
32827 PR tree-optimization/88771
32828 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32829 when -Wstringop-overflow is set.
32830 (builtin_memref::builtin_memref): Adjust excessive upper bound
32831 only when lower bound is not excessive.
32832 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32833 -Wstringop-ovefflow.
32834 (maybe_diag_offset_bounds): Rename...
32835 (maybe_diag_access_bounds): ...to this.
32836 (check_bounds_or_overlap): Adjust for name change above.
32837
32838 2019-02-11 Martin Sebor <msebor@redhat.com>
32839
32840 PR c++/87996
32841 * builtins.c (max_object_size): Move from here...
32842 * builtins.h (max_object_size): ...and here...
32843 * tree.c (max_object_size): ...to here...
32844 * tree.h (max_object_size): ...and here.
32845
32846 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32847
32848 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32849 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32850 for correct semantics.
32851
32852 2019-02-11 Alan Modra <amodra@gmail.com>
32853
32854 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32855 -mlongcall and -mpltseq.
32856 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32857 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32858 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32859 * config/rs6000/sysv4.opt (mpltseq): New option.
32860 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32861 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32862 support is lacking. Don't allow -mpltseq with -mbss-plt.
32863 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32864 -mpltseq given for ELFv1.
32865 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32866 Only use UNSPEC_PLTSEQ for inline PLT calls.
32867 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32868 use UNSPEC_PLTSEQ for inline PLT calls.
32869 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32870 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32871 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32872 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32873 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32874 (pltseq_mtctr_<mode>): Likewise.
32875
32876 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32877
32878 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32879 Solaris ld.
32880 * configure: Regenerate.
32881
32882 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32883
32884 PR bootstrap/88714
32885 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32886 instead of r.
32887
32888 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32889
32890 * function.c (assign_parm_setup_block): Use the stored
32891 size, not the passed size, when allocating stack-space,
32892 also for a parameter with alignment larger than
32893 MAX_SUPPORTED_STACK_ALIGNMENT.
32894
32895 2019-02-11 Martin Liska <mliska@suse.cz>
32896
32897 PR ipa/89009
32898 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32899 * ipa-inline.c (inline_small_functions): Likewise.
32900 * ipa-pure-const.c (propagate_pure_const): Likewise.
32901 (propagate_nothrow): Likewise.
32902 * ipa-reference.c (propagate): Likewise.
32903 * ipa-utils.c (struct searchc_env): Remove unused field.
32904 (searchc): Always search across AVAIL_INTERPOSABLE.
32905 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32906 the only called IPA pure const can properly not propagate
32907 across interposable boundary.
32908 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32909
32910 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32911
32912 * config/nds32/nds32.md (call_internal, call_value_internal,
32913 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32914
32915 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32916
32917 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32918 typo.
32919
32920 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32921
32922 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32923 in comments
32924
32925 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32926
32927 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32928
32929 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32930
32931 PR tree-optimization/89268
32932 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32933 if preds is non-NULL.
32934
32935 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32936
32937 PR lto/89272
32938 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32939 polymorphic types.
32940
32941 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32942
32943 * config/nds32/nds32.md (trap): New pattern.
32944
32945 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32946
32947 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32948 dwarf span.
32949
32950 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32951
32952 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32953 to split POST_INC.
32954
32955 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32956
32957 * ipa-visibility.c (localize_node): Also do not localize
32958 LDPR_PREVAILING_DEF_IRONLY_EXP.
32959
32960 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32961
32962 PR lto/87957
32963 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32964 instead of type_with_linkage.
32965
32966 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32967
32968 PR ipa/88755
32969 * params.def (uninlined-function-insns, uninlined-function-time,
32970 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32971 bound so we don't get overflows.
32972
32973 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32974
32975 * config/rs6000/rs6000-string.c (expand_compare_loop,
32976 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32977 memcmp/strncmp.
32978
32979 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32980
32981 PR middle-end/89246
32982 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32983 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32984 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32985
32986 2019-02-09 Alan Modra <amodra@gmail.com>
32987
32988 PR target/88343
32989 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32990 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32991 setup.
32992
32993 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32994
32995 PR middle-end/88560
32996 * lra-constraints.c (process_alt_operands): Don't increase reject
32997 for memory when offset memory is required.
32998
32999 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33000
33001 * config/s390/vector.md: Implement vector copysign.
33002
33003 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33004
33005 * expr.c (expand_constructor): Correct indentations.
33006
33007 2019-02-08 Richard Biener <rguenther@suse.de>
33008
33009 PR tree-optimization/89247
33010 * tree-if-conv.c: Include tree-cfgcleanup.h.
33011 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33012 (tree_if_conversion): Pass through predicate vector.
33013 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33014 inline, see if any if-converted loops we refrece in
33015 LOOP_VECTORIZED calls vanished and fixup.
33016 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33017
33018 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33019
33020 * config/s390/constraints.md (jdd): New constraint.
33021
33022 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33023
33024 PR target/89229
33025 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33026 upper 16 vector registers without TARGET_AVX512VL.
33027 (*movti_internal): Likewise.
33028
33029 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33030
33031 PR rtl-optimization/89234
33032 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33033 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33034 (copy_reg_eh_region_note_backward): Likewise.
33035
33036 2019-02-08 Richard Biener <rguenther@suse.de>
33037
33038 PR middle-end/89223
33039 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33040 doesn't fit in HWI.
33041 (analyze_subscript_affine_affine): Handle failure from
33042 initialize_matrix_A.
33043
33044 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33045
33046 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33047 cfun everywhere.
33048
33049 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33050
33051 PR tree-optimization/86637
33052 PR tree-optimization/89235
33053 * tree-vect-loop.c (optimize_mask_stores): Add an
33054 auto_purge_vect_location sentinel to ensure that vect_location is
33055 purged on exit.
33056 * tree-vectorizer.c
33057 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33058 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33059 to ensure that vect_location is purged on exit.
33060 (pass_slp_vectorize::execute): Likewise, replacing the manual
33061 reset.
33062 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33063
33064 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33065
33066 * config/aarch64/iterators.md (max_opp): New code_attr.
33067 (USMAX): New code iterator.
33068 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33069 (aarch64_smax): Likewise.
33070 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33071 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33072 MINUS (MAX MIN).
33073
33074 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33075
33076 PR target/89229
33077 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33078 for TARGET_AVX512VL.
33079 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33080
33081 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33082
33083 * config/s390/s390-builtin-types.def: Add new types.
33084 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33085 (s390_vec_xlw4): Make the memory operand into a const pointer.
33086 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33087 float.
33088 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33089 a new vector type with the alignment of the scalar memory operand.
33090
33091 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33092 Jakub Jelinek <jakub@redhat.com>
33093
33094 PR bootstrap/88714
33095 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33096 arm_count_ldrdstrd_insns): New declarations.
33097 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33098 MINUS.
33099 (valid_operands_ldrd_strd): New function.
33100 (arm_count_ldrdstrd_insns): New function.
33101 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33102 sets instead of single DImode set and define new insns to match this.
33103
33104 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33105
33106 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33107 Make it a C initializer.
33108
33109 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33110
33111 PR/target 88850
33112 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33113
33114 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33115
33116 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33117 Use neon_dot<q> for type.
33118 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33119
33120 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33121
33122 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33123 Use neon_dot<q> for type.
33124 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33125 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33126
33127 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33128
33129 PR rtl-optimization/89225
33130 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33131 sizes check.
33132
33133 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33134
33135 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33136 after restoring registers saved to allocate the frame on Windows.
33137
33138 2019-02-06 Richard Biener <rguenther@suse.de>
33139
33140 PR tree-optimization/89182
33141 * graphite.h (cached_scalar_evolution_in_region): Declare.
33142 * graphite.c (struct seir_cache_key): New.
33143 (struct sese_scev_hash): Likewise.
33144 (seir_cache): New global.
33145 (cached_scalar_evolution_in_region): New function.
33146 (graphite_transform_loops): Allocate and release seir_cache.
33147 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33148 cached_scalar_evolution_in_region.
33149 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33150 Simplify.
33151 (scop_detection::graphite_can_represent_expr: Use
33152 cached_scalar_evolution_in_region.
33153 (scop_detection::stmt_simple_for_scop_p): Likewise.
33154 (find_params_in_bb): Likewise.
33155 (gather_bbs::before_dom_children): Likewise.
33156 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33157 (add_loop_constraints): Likewise.
33158
33159 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33160
33161 PR middle-end/89210
33162 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33163 operand to new_unary_operation only if both element types are integral
33164 and it isn't a widening conversion. Return NULL_TREE if
33165 new_unary_operation failed.
33166
33167 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33168
33169 PR target/88856
33170 * config/s390/s390.md: Remove load and test FP splitter.
33171
33172 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33173
33174 PR target/89112
33175 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33176 expand_compare_loop, expand_block_compare_gpr,
33177 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33178 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33179 #include "profile-count.h" and "predict.h" for types and functions
33180 needed to work with REG_BR_PROB notes.
33181
33182 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33183
33184 PR target/89112
33185 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33186 for the long branch case.
33187
33188 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33189
33190 PR target/89188
33191 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33192 can throw, non-call exceptions are enabled and we can't delete
33193 dead exceptions or alter cfg. Set must_clean if
33194 delete_insn_and_edges returns true, don't set it blindly for calls.
33195 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33196
33197 PR rtl-optimization/89195
33198 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33199 of the original MEM.
33200
33201 2019-02-05 Martin Liska <mliska@suse.cz>
33202
33203 PR gcov-profile/89000
33204 * gcov.c (function_summary): Remove argument.
33205 (file_summary): New function.
33206 (print_usage): Replace tabs with spaces.
33207 (generate_results): Use new function file_summary.
33208
33209 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33210
33211 PR target/89186
33212 * optabs.c (prepare_cmp_insn): Pass x and y to
33213 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33214
33215 2019-02-05 Richard Biener <rguenther@suse.de>
33216
33217 PR middle-end/89150
33218 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33219 (struct bitmap_element): Drop chain_prev so we properly recurse on
33220 the prev member, supporting tree views.
33221 (struct bitmap_head): GTY skip the obstack member.
33222
33223 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33224
33225 PR c/88698
33226 * doc/extend.texi (Vector Extensions): Add an example of using vector
33227 types together with x86 intrinsics.
33228
33229 2019-02-04 Alan Modra <amodra@gmail.com>
33230
33231 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33232 str[] size to 160, and comment.
33233
33234 2019-02-04 Alan Modra <amodra@gmail.com>
33235
33236 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33237 (rs6000_pltseq_template): Guard output of TLS markers with
33238 TARGET_TLS_MARKERS.
33239 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33240 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33241 to use inline PLT sequences.
33242 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33243 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33244 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33245
33246 2019-02-04 Martin Liska <mliska@suse.cz>
33247
33248 PR ipa/88985
33249 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33250 out when ipa_fn_summaries does not contain entry for callee.
33251
33252 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33253
33254 * config/sparc/sparc.h: Remove superfluous blank lines.
33255 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33256 (got_register_rtx): ...this.
33257 (sparc_got): Adjust to above renaming.
33258 (sparc_tls_got): Likewise.
33259 (sparc_delegitimize_address): Likewise.
33260 (sparc_output_mi_thunk): Likewise.
33261 (sparc_init_pic_reg): Likewise.
33262 (save_local_or_in_reg_p): Fix test on the GOT register.
33263 (USE_HIDDEN_LINKONCE): Move around.
33264 (get_pc_thunk_name): Likewise.
33265 (gen_load_pcrel_sym): Likewise.
33266 (load_got_register): Likewise.
33267
33268 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33269
33270 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33271 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33272
33273 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33274
33275 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33276 into consideration.
33277
33278 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33279
33280 * config.gcc (with_nds32_lib, glibc):
33281 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33282 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33283 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33284
33285 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33286
33287 PR target/89071
33288 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33289 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33290 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33291 (*rcpsf2_sse): Ditto.
33292 (*rsqrtsf2_sse): Ditto.
33293 (sse4_1_round<mode<2): Ditto.
33294
33295 2019-02-03 Richard Biener <rguenther@suse.de>
33296
33297 PR debug/87295
33298 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33299 orig.
33300
33301 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33302
33303 PR middle-end/87887
33304 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33305 Punt with warning on aggregate return or argument types. Ignore
33306 type/mode checking for uniform arguments.
33307
33308 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33309
33310 * combine.c (try_combine): Do not print "Can't combine" messages unless
33311 printing failed combination attempts.
33312
33313 2019-02-01 Martin Jambor <mjambor@suse.cz>
33314
33315 PR hsa/87863
33316 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33317 segment and global segment variables before making them static.
33318
33319 2019-02-01 Martin Jambor <mjambor@suse.cz>
33320
33321 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33322 missed optimization dump with dump_enabled_p.
33323
33324 2019-02-01 Richard Biener <rguenther@suse.de>
33325
33326 PR middle-end/88597
33327 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33328 the instantiate cache.
33329 (instantiate_scev_binary): Elide second operand procesing
33330 if equal to the first.
33331 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33332 (chrec_contains_undetermined): Likewise.
33333 (tree_contains_chrecs): Likewise.
33334
33335 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33336
33337 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33338
33339 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33340
33341 PR tree-optimization/89143
33342 * wide-int-range.h (wide_int_range_absu): Declare.
33343 * wide-int-range.cc (wide_int_range_absu): New function.
33344 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33345
33346 PR tree-optimization/88107
33347 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33348 instead of assertion that eh_region_outermost is non-NULL, if it
33349 is NULL, set *ALL to true and return NULL.
33350 (move_sese_region_to_fn): Adjust caller, if all is set, call
33351 duplicate_eh_regions with NULL region.
33352
33353 2019-02-01 Richard Biener <rguenth@suse.de>
33354
33355 PR rtl-optimization/88593
33356 * mode-switching.c (optimize_mode_switching): Free dominators before
33357 calling cleanup_cfg.
33358
33359 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33360
33361 PR tree-optimization/88932
33362 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33363
33364 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33365
33366 PR middle-end/89137
33367 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33368 bogus clang warning.
33369
33370 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33371
33372 PR target/89071
33373 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33374 alternative to avoid partial SSE register stall for TARGET_AVX.
33375 (truncdfsf2): Ditto.
33376 (sse4_1_round<mode>2): Ditto.
33377
33378 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33379
33380 PR tree-optimization/89008
33381 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33382 process anything of the form X * 0.
33383
33384 2019-01-31 Richard Biener <rguenther@suse.de>
33385
33386 PR tree-optimization/89135
33387 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33388 with abnormal preds.
33389
33390 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33391
33392 PR sanitizer/89124
33393 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33394 always_inline callees into no_sanitize_address callers.
33395
33396 2019-01-31 Richard Biener <rguenther@suse.de>
33397
33398 PR rtl-optimization/89115
33399 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33400
33401 2019-01-30 Martin Sebor <msebor@redhat.com>
33402
33403 PR other/89106
33404 * doc/extend.texi (cast to a union): Correct and expand.
33405
33406 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33407
33408 PR rtl-optimization/87246
33409 * lra-constraints.c (simplify_operand_subreg): Reload memory
33410 in subreg if the address became invalid.
33411
33412 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33413
33414 PR target/87064
33415 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33416 Disable for little-endian.
33417
33418 2019-01-30 Richard Biener <rguenther@suse.de>
33419
33420 PR rtl-optimization/89115
33421 * opts.c (default_options_optimization): Reduce
33422 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33423 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33424 to the default.
33425
33426 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33427
33428 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33429 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33430 type of vector element when vec_extract is implemented by direct
33431 move.
33432
33433 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33434
33435 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33436
33437 2019-01-30 Richard Biener <rguenther@suse.de>
33438
33439 PR tree-optimization/89111
33440 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33441 canonicalization to appropriately sized access types.
33442
33443 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33444
33445 PR c++/89105
33446 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33447 for arguments to functions that are TU-local and shouldn't be
33448 referenced by assembly.
33449
33450 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33451
33452 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33453 after '='.
33454
33455 2019-01-29 Martin Sebor <msebor@redhat.com>
33456
33457 PR c/88956
33458 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33459
33460 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33461
33462 PR c++/66676
33463 PR ipa/89104
33464 * omp-simd-clone.c (simd_clone_clauses_extract)
33465 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33466 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33467
33468 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33469
33470 * config.gcc: Force .init_array for ARC.
33471
33472 2019-01-29 Richard Biener <rguenther@suse.de>
33473
33474 PR debug/87295
33475 * dwarf2out.c (collect_skeleton_dies): New helper.
33476 (copy_decls_for_unworthy_types): Call it.
33477 (build_abbrev_table): Assert we do not try to replace
33478 DW_AT_signature refs with local refs.
33479
33480 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33481
33482 PR middle-end/89002
33483 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33484 for lastprivate/linear IV, push gimplify context around gimplify_assign
33485 and, if it needed any temporaries, pop it into a gimple bind around the
33486 sequence.
33487
33488 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33489
33490 * common.opt (-Wattribute-alias): Remove "no-" from name.
33491 Make -Wattribute-alias command line option and
33492 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33493
33494 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33495
33496 PR target/89073
33497 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33498 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33499 x86 ISA options.
33500 (bmi2): Add missing @opindex.
33501 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33502 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33503 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33504 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33505 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33506 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33507 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33508 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33509 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33510 xsavec, xsaveopt and xsaves options.
33511
33512 2019-01-28 Richard Biener <rguenther@suse.de>
33513
33514 PR debug/89076
33515 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33516 support removal.
33517
33518 2019-01-28 Richard Biener <rguenther@suse.de>
33519
33520 PR tree-optimization/88739
33521 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33522 BIT_FIELD_REFs only are applied to mode-precision operands
33523 when they are integral.
33524 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33525 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33526 BIT_FIELD_REFs of non-mode-precision integral operands.
33527
33528 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33529
33530 PR target/87214
33531 * config/i386/sse.md
33532 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33533 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33534 first constants in pairs are multiples of 2. Formatting fixes.
33535 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33536 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33537 first constants in each quadruple are multiples of 4. Formatting fixes.
33538
33539 2019-01-26 Martin Jambor <mjambor@suse.cz>
33540
33541 PR ipa/88933
33542 * tree-inline.c: Include tree-cfgcleanup.h.
33543 (delete_unreachable_blocks_update_callgraph): Move...
33544 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33545 ...here, make externally visible, make second argument bool, adjust
33546 all callers.
33547 * tree-cfgcleanup.c: Include cgraph.h.
33548 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33549 Declare.
33550 * ipa-prop.c: Include tree-cfgcleanup.h.
33551 (ipcp_transform_function): Call
33552 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33553
33554 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33555
33556 PR rtl-optimization/88846
33557 * ira.c (process_set_for_memref_referenced_p): New.
33558 (memref_referenced_p): Add new param. Use
33559 process_set_for_memref_referenced_p. Add new switch cases.
33560 (memref_used_between_p): Pass new arg to memref_referenced_p.
33561
33562 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33563
33564 PR target/88469
33565 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33566 argument ABI_BREAK. Set to true if the calculated alignment has
33567 changed in gcc-9. Check bit-fields for their base type alignment.
33568 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33569 (aarch64_function_arg_boundary): Likewise.
33570 (aarch64_gimplify_va_arg_expr): Likewise.
33571
33572 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33573
33574 PR middle-end/89037
33575 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33576 instead of accessing TREE_INT_CST_ELT directly.
33577
33578 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33579
33580 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33581 fenv_exceptions description.
33582
33583 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33584
33585 PR rtl-optimization/87763
33586 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33587 Allow SUBREG when matching CC_NZmode compare.
33588
33589 2019-01-25 Richard Biener <rguenther@suse.de>
33590
33591 PR tree-optimization/89049
33592 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33593 Look at the pattern stmt to determine if the stmt is vectorized.
33594
33595 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33596
33597 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33598 (pred_mov<mode>): Handle all-register forms using both a new
33599 alternative and a split.
33600
33601 2019-01-25 Richard Biener <rguenther@suse.de>
33602
33603 PR tree-optimization/86865
33604 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33605 Reject non-do-while loops.
33606
33607 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33608
33609 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33610 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33611 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33612 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33613 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33614 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33615 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33616 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33617 vlogical_operand, gpc_reg_operand, int_reg_operand,
33618 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33619 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33620 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33621 (save_world_operation, restore_world_operation, lmw_operation,
33622 stmw_operation): Use MEM_P and REG_P.
33623 (tie_operand): Use MEM_P.
33624 (vrsave_operation, crsave_operation): Use REG_P.
33625 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33626 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33627 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33628 (call_operand): Use HARD_REGISTER_P.
33629 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33630 Use CONST_INT_P.
33631 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33632 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33633 quad_aligned_load_p, replace_swapped_aligned_store,
33634 recombine_lvx_pattern, replace_swapped_aligned_load,
33635 recombine_stvx_pattern): Use MEM_P.
33636 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33637 Use MEM_P and SYMBOL_REF_P.
33638 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33639 (insn_is_swappable_p): Use REG_P and MEM_P.
33640 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33641 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33642 Use CONST_INT_P.
33643 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33644 Use CONST_DOUBLE_P.
33645 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33646 CONST_WIDE_INT_P.
33647 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33648 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33649 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33650 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33651 reg_or_subregno:
33652 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33653 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33654 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33655 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33656 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33657 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33658 rs6000_split_logical_di): Use CONST_INT_P.
33659 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33660 REG_P and SYMBOL_REF_P.
33661 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33662 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33663 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33664 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33665 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33666 (small_data_operand, print_operand_address): Use CONST_INT_P and
33667 SYMBOL_REF_P.
33668 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33669 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33670 Use HARD_REGISTER_NUM_P.
33671 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33672 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33673 SUBREG_P and SYMBOL_REF_P.
33674 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33675 and HARD_REGISTER_NUM_P.
33676 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33677 reg_or_subregno.
33678 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33679 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33680 MEM_P and REG_P.
33681 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33682 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33683 find_addr_reg): Use REG_P.
33684 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33685 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33686 (offsettable_ok_by_alignment, constant_pool_expr_p,
33687 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33688 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33689 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33690 rs6000_assemble_integer, create_TOC_reference,
33691 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33692 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33693 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33694 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33695 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33696 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33697 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33698 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33699 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33700 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33701 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33702 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33703 and cbranch<mode>4): Use CONST_INT_P.
33704 (multiple define_splits): Use REG_P and SUBREG_P.
33705 (define_expands call, call_value): Use MEM_P.
33706 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33707 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33708 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33709 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33710 and HARD_REGISTER_NUM_P.
33711 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33712
33713 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33714
33715 PR rtl-optimization/88948
33716 * rtl.h (prepare_copy_insn): New prototype.
33717 * gcse.c (prepare_copy_insn): New function, split out from
33718 process_insert_insn.
33719 (process_insert_insn): Use prepare_copy_insn.
33720 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33721 instead of gen_move_insn.
33722
33723 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33724
33725 PR debug/89006
33726 * config/i386/i386.c (ix86_pic_register_p): Return true for
33727 UNSPEC_SET_GOT too.
33728
33729 PR tree-optimization/88964
33730 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33731 punt if HONOR_SNANS (chrec).
33732
33733 PR middle-end/89015
33734 * tree-nested.c (convert_nonlocal_reference_stmt,
33735 convert_local_reference_stmt, convert_tramp_reference_stmt,
33736 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33737 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33738 or GIMPLE_OMP_TASK.
33739
33740 PR tree-optimization/89027
33741 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33742 for "omp simd array" variables.
33743
33744 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33745
33746 PR target/88469
33747 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33748 force the alignment of m_val.
33749
33750 2019-01-24 Richard Biener <rguenther@suse.de>
33751
33752 PR lto/87187
33753 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33754 When in "legacy" debug mode make sure to reset self-origins.
33755
33756 2019-01-24 Martin Liska <mliska@suse.cz>
33757
33758 PR gcov-profile/88994
33759 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33760 result will be always smaller or equal to the original.
33761 * gcov.c (mangle_name): Fix else branch where we should
33762 also copy to PTR and shift the pointer.
33763
33764 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33765
33766 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33767 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33768
33769 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33770
33771 * common/config/i386/i386-common.c
33772 (OPTION_MASK_ISA_ENQCMD_SET,
33773 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33774 (ix86_handle_option): Handle -menqcmd.
33775 * config.gcc (enqcmdintrin.h): New header file.
33776 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33777 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33778 -menqcmd.
33779 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33780 function type.
33781 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33782 __builtin_ia32_enqcmds): New builtins.
33783 * config/i386/i386-c.c (__ENQCMD__): New macro.
33784 * config/i386/i386-option.c (ix86_target_string): Add
33785 -menqcmd.
33786 (ix86_valid_target_attribute_inner_p): Likewise.
33787 * config/i386/i386-expand.c
33788 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33789 IX86_BUILTIN_ENQCMDS.
33790 * config/i386/i386.h (TARGET_ENQCMD): New.
33791 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33792 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33793 (movdir64b_<mode>): Parameterize to enable share expansion code
33794 with ENQCMD in function ix86_expand_builtin.
33795 * config/i386/i386.opt: Add -menqcmd.
33796 * config/i386/immintrin.h: Include enqcmdintrin.h.
33797 * config/i386/enqcmdintrin.h: New intrinsic file.
33798 * doc/invoke.texi: Add -menqcmd.
33799
33800 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33801 Steve Ellcey <sellcey@marvell.com>
33802
33803 PR target/85711
33804 * recog.c (address_operand): Return false on wrong mode for address.
33805 (constrain_operands): Check for mode with 'p' constraint.
33806
33807 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33808
33809 PR target/88998
33810 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33811 Disparage MMX alternative.
33812 (sse2_cvtpd2pi): Ditto.
33813 (sse2_cvttpd2pi): Ditto.
33814
33815 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33816
33817 PR driver/89014
33818 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33819 use-after-free of the result of
33820 aarch64_get_extension_string_for_isa_flags.
33821
33822 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33823
33824 PR c/44715
33825 * doc/extend.texi: Document break and continue behavior in
33826 statement expressions.
33827
33828 2019-01-23 Richard Biener <rguenther@suse.de>
33829
33830 PR tree-optimization/89008
33831 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33832 not leave another stray operand.
33833
33834 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33835
33836 * BASE-VER: Bump to 9.0.1.
33837
33838 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33839
33840 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33841 thunk that returns by reference, use the type of the return object
33842 of the thunk instead of that of the alias to build the dereference.
33843
33844 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33845
33846 * config/arc/atomic.md: Add operand to DMB instruction.
33847
33848 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33849
33850 PR tree-optimization/88964
33851 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33852 build_zero_cst instead of build_int_cst. Return false for loop
33853 invariants which honor signed zeros.
33854
33855 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33856
33857 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33858
33859 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33860
33861 PR target/88965
33862 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33863 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33864 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33865
33866 PR middle-end/88968
33867 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33868 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33869
33870 PR target/87064
33871 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33872 Disable for little endian.
33873
33874 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33875
33876 PR target/88469
33877 * config/arm/arm.c (arm_needs_double_word_align): Check
33878 DECL_BIT_FIELD_TYPE.
33879
33880 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33881 H.J. Lu <hongjiu.lu@intel.com>
33882
33883 PR target/88909
33884 * config/i386/i386-builtin.def: Add mask2 to all builtin
33885 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33886 SPECIAL_ARGS.
33887 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33888 (BDESC_FIRST): Likewise.
33889 (define_builtin): Add an argument for mask2. Updated to handle
33890 both ix86_isa_flags and ix86_isa_flags2.
33891 (define_builtin_const): Likewise.
33892 (define_builtin_pure): Likewise.
33893 (define_builtin2): Deleted.
33894 (define_builtin_const2): Likewise.
33895 (builtin_description): Add a member, mask2.
33896 (bdesc_*): Add mask2 to builtin initializations.
33897 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33898 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33899 support.
33900 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33901
33902 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33903
33904 PR target/88954
33905 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33906 noplt attribute.
33907
33908 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33909
33910 PR target/88469
33911 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33912 alignment is dominated by a bitfield with 64-bit aligned base type.
33913 (arm_function_arg): Emit a warning if the alignment has changed since
33914 earlier GCC releases.
33915 (arm_function_arg_boundary): Likewise.
33916 (arm_setup_incoming_varargs): Likewise.
33917
33918 2019-01-22 Richard Biener <rguenther@suse.de>
33919
33920 PR tree-optimization/88862
33921 * graphite-scop-detection.c
33922 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33923
33924 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33925
33926 * doc/extend.tex (AMD GCN Function Attributes): New section.
33927 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33928 * doc/invoke.texi (AMD GCN Options): New section.
33929 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33930
33931 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33932
33933 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33934 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33935
33936 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33937
33938 PR tree-optimization/88044
33939 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33940 is false in the first iteration, but !every_iteration, return false
33941 instead of true with niter->niter zero.
33942
33943 PR rtl-optimization/88904
33944 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33945 any nonequal registers before processing BB_END (b).
33946
33947 PR target/88905
33948 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33949 GET_MODE (op0).
33950 (expand_binop_directly, expand_doubleword_clz,
33951 expand_doubleword_popcount, expand_ctz, expand_ffs,
33952 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33953
33954 PR rtl-optimization/49429
33955 PR target/49454
33956 PR rtl-optimization/86334
33957 PR target/88906
33958 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33959 addressable from here...
33960 (emit_block_op_via_libcall): ... to here.
33961
33962 2019-01-22 Richard Biener <rguenther@suse.de>
33963
33964 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33965 auto_vec for cost vector to fix memleak.
33966 (vectorize_fold_left_reduction): Properly gather SLP defs.
33967 (vectorizable_comparison): Do not swap operands to properly
33968 gather SLP defs.
33969
33970 2019-01-22 Alan Modra <amodra@gmail.com>
33971
33972 PR target/88614
33973 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33974 stays a reg. Allow a const_int.
33975 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33976 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33977 (IS_NOMARK_TLSGETADDR): Define.
33978 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33979 (rs6000_output_tlsargs): New function.
33980 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33981 __tls_get_addr call takes an arg.
33982 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33983 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33984 delete split..
33985 (call_value_nonlocal_sysv): ..or here, delete split.
33986 (tls_gdld_nomark): Delete.
33987 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33988 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33989 (call_value_nonlocal_sysv): Likewise.
33990 (call_value_nonlocal_sysv_secure): Likewise.
33991 (call_value_nonlocal_aix): Likewise.
33992 (call_value_indirect_aix): Likewise.
33993 (call_value_indirect_elfv2): Likewise.
33994 (call_value_local32, call_value_local64): Disable for no-mark tls.
33995 (call_value_local_aix): Likewise.
33996
33997 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33998
33999 PR target/88938
34000 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34001 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34002
34003 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34004
34005 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34006 string contents as hash_map keys.
34007
34008 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34009
34010 PR c/88928
34011 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34012 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34013 instead of TYPE_ALIGN.
34014 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34015 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34016 pointer from TYPE_STUB_DECL.
34017
34018 2019-01-21 Richard Biener <rguenther@suse.de>
34019
34020 PR tree-optimization/88934
34021 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34022 at the possibly non-constant operand.
34023 (vect_get_constant_vectors): Adjust.
34024
34025 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34026
34027 PR target/71659
34028 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34029 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34030 instead of _X86INTRIN_H_INCLUDED.
34031 * onfig/i386/clwbintrin.h: Likewise.
34032 * config/i386/pkuintrin.h: Likewise.
34033 * config/i386/prfchwintrin.h: Likewise.
34034 * config/i386/rdseedintrin.h: Likewise.
34035 * config/i386/wbnoinvdintrin.h: Likewise.
34036 * config/i386/xsavecintrin.h: Likewise.
34037 * config/i386/xsavesintrin.h: Likewise.
34038 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34039 * config/i386/xsaveintrin.h: Likewise.
34040 * config/i386/xsaveoptintrin.h: Likewise.
34041 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34042 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34043 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34044 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34045 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34046 * config/i386/immintrin.h: Here.
34047
34048 2019-01-20 Martin Jambor <mjambor@suse.cz>
34049
34050 PR ipa/87615
34051 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34052 with aa_walk_budget.
34053 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34054 aa_walk_budget_p parameter.
34055 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34056 walk. Updated all callers.
34057 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34058 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34059 unmodified_parm.
34060 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34061 parameter info. Extract info from fbi. Pass fbi to recursive calls
34062 and to unmodified_parm.
34063 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34064 info, updated call to will_be_nonconstant_expr_predicate.
34065 (param_change_prob): New parameter fbi, limit AA walking.
34066 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34067 calls to various above functions.
34068 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34069 parameter. Use it to limit AA walking.
34070 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34071 fbi, limit AA walk.
34072 (detect_type_change): New parameter fbi, pass it on to
34073 detect_type_change_from_memory_writes.
34074 (detect_type_change_ssa): Likewise.
34075 (aa_overwalked): Removed.
34076 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34077 accordingly, adjust to the neew AA limiting scheme.
34078 (parm_ref_data_preserved_p): Likewise.
34079 (ipa_compute_jump_functions_for_edge): Adjust call to
34080 get_dynamic_type.
34081 (ipa_analyze_call_uses): Likewise.
34082 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34083 (ipa_analyze_node): Initialize aa_walk_budget.
34084 (ipcp_transform_function): Likewise.
34085 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34086 to get_dynamic_type.
34087
34088 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34089
34090 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34091 outside of #if CHECKING_P code.
34092
34093 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34094
34095 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34096 New function, split out from...
34097 (loop_versioning::analyze_stride): ...here.
34098 (loop_versioning::find_per_loop_multiplication): Use gassign.
34099 (loop_versioning::analyze_term_using_scevs): Return a success code.
34100 (loop_versioning::analyze_arbitrary_term): New function.
34101 (loop_versioning::analyze_address_fragment): Use
34102 analyze_arbitrary_term if all else fails.
34103
34104 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34105
34106 PR target/88892
34107 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34108 operands.
34109
34110 2019-01-18 Richard Biener <rguenther@suse.de>
34111
34112 PR tree-optimization/88903
34113 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34114 scalar stmts a SLP shift amount is composed of when detecting
34115 shifts by scalars.
34116
34117 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34118
34119 PR target/88799
34120 * config/arm/arm-cpus.in (mp): New feature.
34121 (sec): New feature.
34122 (fgroup ARMv7ve): Add mp and sec features.
34123 (arch armv7-a): Add options to allow mp and sec extensions.
34124 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34125 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34126 extenstions to the base architecture.
34127 (cpu cortex-a8): Add sec extension to the base architecture.
34128 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34129 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34130 variants down to the base v7-a varaint.
34131 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34132 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34133 of permitted extensions for -march=armv7-a and for
34134 -mcpu=generic-armv7-a.
34135
34136 2019-01-18 Martin Liska <mliska@suse.cz>
34137
34138 * params.def: Fix comment.
34139 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34140 name.
34141 (gimple_gen_ic_func_profiler): Likewise.
34142
34143 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34144
34145 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34146 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34147 and put in error checks for stack protector guard options.
34148 (aarch64_stack_protect_guard): New.
34149 (TARGET_STACK_PROTECT_GUARD): Define.
34150 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34151 (reg_stack_protect_address<mode>): New.
34152 (stack_protect_set): Adjust for SSP_GLOBAL.
34153 (stack_protect_test): Likewise.
34154 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34155 (-mstack-protector-guard): Likewise.
34156 (-mstack-protector-guard-offset): Likewise.
34157
34158 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34159
34160 PR tree-optimization/86214
34161 * tree-inline.h (struct copy_body_data): Add
34162 add_clobbers_to_eh_landing_pads member.
34163 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34164 (copy_edges_for_bb): Call it if EH edge destination is <
34165 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34166 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34167 if flag_stack_reuse != SR_NONE and clear it afterwards.
34168
34169 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34170
34171 PR target/85596
34172 * doc/install.texi (with-multilib-list): Document for aarch64.
34173
34174 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34175
34176 PR target/88734
34177 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34178 (("..."))) with ("...").
34179
34180 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34181
34182 * doc/extend.texi (Built-in Functions for Memory Model Aware
34183 Atomic Operations): Document atomic fetch and nand.
34184
34185 2019-01-18 Martin Liska <mliska@suse.cz>
34186 Richard Biener <rguenther@suse.de>
34187
34188 PR middle-end/88587
34189 * cgraph.h (create_version_clone_with_body): Add new argument
34190 with attributes.
34191 * cgraphclones.c (cgraph_node::create_version_clone): Add
34192 DECL_ATTRIBUTES to a newly created decl. And call
34193 valid_attribute_p so that proper cl_target_optimization_node
34194 is set for the newly created declaration.
34195 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34196 for declaration.
34197 (expand_target_clones): Do not call valid_attribute_p, it must
34198 be already done.
34199 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34200 vector types.
34201
34202 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34203
34204 PR target/88734
34205 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34206 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34207 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34208
34209 2019-01-17 Martin Sebor <msebor@redhat.com>
34210
34211 PR middle-end/88273
34212 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34213 Handle anti-ranges the same as no range at all.
34214
34215 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34216
34217 * config/aarch64/aarch64.c (cgraph.h): New include.
34218 (intl.h): New include.
34219 (supported_simd_type): New function.
34220 (currently_supported_simd_type): Ditto.
34221 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34222 (aarch64_simd_clone_adjust): Ditto.
34223 (aarch64_simd_clone_usable): Ditto.
34224 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34225 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34226 (TARGET_SIMD_CLONE_USABLE): Ditto.
34227 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34228 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34229 call.
34230
34231 2019-01-17 Martin Sebor <msebor@redhat.com>
34232
34233 PR tree-optimization/88800
34234 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34235 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34236 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34237 redundant argument. Add new argument and issue diagnostics under
34238 its control. Detect out-of-bounds access even with warnings
34239 disabled.
34240 (check_bounds_or_overlap): Change return type. Add argument.
34241 (wrestrict_dom_walker::check_call): Adjust.
34242 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34243 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34244 check_bounds_or_overlap's return value.
34245 (handle_builtin_stxncpy): Same.
34246 (handle_builtin_strcat): Same.
34247
34248 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34249 Kwok Cheung Yeung <kcy@codesourcery.com>
34250 Julian Brown <julian@codesourcery.com>
34251 Tom de Vries <tom@codesourcery.com>
34252
34253 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34254
34255 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34256
34257 * doc/sourcebuild.texi: Document dg-require-effective-target
34258 llvm_binutils and offload_gcn.
34259
34260 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34261 Kwok Cheung Yeung <kcy@codesourcery.com>
34262 Julian Brown <julian@codesourcery.com>
34263 Tom de Vries <tom@codesourcery.com>
34264
34265 * doc/sourcebuild.texi: Document dg-required-effective-target
34266 exceptions.
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 Jan Hubicka <hubicka@ucw.cz>
34273 Martin Jambor <mjambor@suse.cz>
34274
34275 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34276 * configure.ac: Check for dlopen.
34277 * configure: Regenerate.
34278
34279 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34280 Kwok Cheung Yeung <kcy@codesourcery.com>
34281 Julian Brown <julian@codesourcery.com>
34282 Tom de Vries <tom@codesourcery.com>
34283 Jan Hubicka <hubicka@ucw.cz>
34284 Martin Jambor <mjambor@suse.cz>
34285
34286 * common/config/gcn/gcn-common.c: New file.
34287 * config/gcn/driver-gcn.c: New file.
34288 * config/gcn/gcn-builtins.def: New file.
34289 * config/gcn/gcn-hsa.h: New file.
34290 * config/gcn/gcn-modes.def: New file.
34291 * config/gcn/gcn-opts.h: New file.
34292 * config/gcn/gcn-passes.def: New file.
34293 * config/gcn/gcn-protos.h: New file.
34294 * config/gcn/gcn-run.c: New file.
34295 * config/gcn/gcn-tree.c: New file.
34296 * config/gcn/gcn.c: New file.
34297 * config/gcn/gcn.h: New file.
34298 * config/gcn/gcn.opt: New file.
34299 * config/gcn/t-gcn-hsa: New file.
34300
34301 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34302 Kwok Cheung Yeung <kcy@codesourcery.com>
34303 Julian Brown <julian@codesourcery.com>
34304 Tom de Vries <tom@codesourcery.com>
34305 Jan Hubicka <hubicka@ucw.cz>
34306 Martin Jambor <mjambor@suse.cz>
34307
34308 * config/gcn/constraints.md: New file.
34309 * config/gcn/gcn-valu.md: New file.
34310 * config/gcn/gcn.md: New file.
34311 * config/gcn/predicates.md: New file.
34312
34313 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34314
34315 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34316 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34317 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34318 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34319
34320 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34321
34322 PR target/88851
34323 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34324 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34325 it and document registers.
34326
34327 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34328
34329 * config/aarch64/aarch64.c (ares_tunings): Define.
34330 * config/aarch64/aarch64-cores.def (ares): Use the above.
34331
34332 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34333
34334 PR target/88794
34335 Revert:
34336 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34337
34338 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34339 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34340 (_mm512_maskz_fixupimm_round_pd): Ditto.
34341 (_mm512_fixupimm_round_ps): Ditto.
34342 (_mm512_maskz_fixupimm_round_ps): Ditto.
34343 (_mm_fixupimm_round_sd): Ditto.
34344 (_mm_maskz_fixupimm_round_sd): Ditto.
34345 (_mm_fixupimm_round_ss): Ditto.
34346 (_mm_maskz_fixupimm_round_ss): Ditto.
34347 (_mm512_fixupimm_pd): Ditto.
34348 (_mm512_maskz_fixupimm_pd): Ditto.
34349 (_mm512_fixupimm_ps): Ditto.
34350 (_mm512_maskz_fixupimm_ps): Ditto.
34351 (_mm_fixupimm_sd): Ditto.
34352 (_mm_maskz_fixupimm_sd): Ditto.
34353 (_mm_fixupimm_ss): Ditto.
34354 (_mm_maskz_fixupimm_ss): Ditto.
34355 (_mm512_mask_fixupimm_round_pd): Update builtin.
34356 (_mm512_mask_fixupimm_round_ps): Ditto.
34357 (_mm_mask_fixupimm_round_sd): Ditto.
34358 (_mm_mask_fixupimm_round_ss): Ditto.
34359 (_mm512_mask_fixupimm_pd): Ditto.
34360 (_mm512_mask_fixupimm_ps): Ditto.
34361 (_mm_mask_fixupimm_sd): Ditto.
34362 (_mm_mask_fixupimm_ss): Ditto.
34363 * config/i386/avx512vlintrin.h:
34364 (_mm256_fixupimm_pd): Update parameters and builtin.
34365 (_mm256_maskz_fixupimm_pd): Ditto.
34366 (_mm256_fixupimm_ps): Ditto.
34367 (_mm256_maskz_fixupimm_ps): Ditto.
34368 (_mm_fixupimm_pd): Ditto.
34369 (_mm_maskz_fixupimm_pd): Ditto.
34370 (_mm_fixupimm_ps): Ditto.
34371 (_mm_maskz_fixupimm_ps): Ditto.
34372 (_mm256_mask_fixupimm_pd): Update builtin.
34373 (_mm256_mask_fixupimm_ps): Ditto.
34374 (_mm_mask_fixupimm_pd): Ditto.
34375 (_mm_mask_fixupimm_ps): Ditto.
34376 * config/i386/i386-builtin-types.def: Add new types and remove
34377 useless ones.
34378 * config/i386/i386-builtin.def: Update builtin definitions.
34379 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34380 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34381 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34382 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34383 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34384 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34385 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34386 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34387 * config/i386/subst.md:
34388 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34389 (round_saeonly_sd_mask_op4): Ditto.
34390 (round_saeonly_expand_operand5): Ditto.
34391 (round_saeonly_expand): Update.
34392
34393 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34394
34395 PR target/88794
34396 Revert:
34397 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34398
34399 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34400 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34401 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34402 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34403 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34404 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34405 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34406
34407 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34408
34409 PR target/88794
34410 Revert:
34411 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34412
34413 PR target/88489
34414 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34415 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34416 instead of UNSPEC_FIXUPIMM.
34417
34418 2019-01-17 Richard Biener <rguenther@suse.de>
34419
34420 PR lto/86736
34421 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34422 and friends for the LTO part of debug info.
34423
34424 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34425
34426 PR tree-optimization/86214
34427 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34428 if x == y.
34429
34430 PR rtl-optimization/88870
34431 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34432 throw if we can't alter the cfg or delete dead exceptions.
34433 (mark_insn): Don't call find_call_stack_args for such calls.
34434
34435 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34436
34437 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34438 prototypes for vec_st.
34439 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34440 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34441 mainly on signed/unsigned long long and double.
34442
34443 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34444
34445 PR target/88861
34446 * combine.c (delete_noop_moves): Convert to "bool" return,
34447 returning true if any edges are eliminated.
34448 (combine_instructions): Also return true if delete_noop_moves
34449 returns true.
34450
34451 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34452
34453 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34454 correct max nunits for endian swap.
34455 (aarch64_expand_fcmla_builtin): Correct subreg code.
34456 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34457 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34458 lane endianness.
34459
34460 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34461
34462 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34463 Handle split indirect COMPLEX_TYPE arguments.
34464
34465 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34466
34467 PR target/86891
34468 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34469 bit is set by add and compare.
34470 (CC_ADC): New CC_MODE.
34471 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34472 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34473 comparison. Add detection for CC_ADCmode.
34474 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34475 CC_ADCmode.
34476 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34477 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34478 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34479 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34480 to eliminate the need for zero-extending the operands.
34481 (add<mode>3_compareC_imm): Delete. Merge into ...
34482 (add<mode>3_compareC): ... this. Restructure the comparison to
34483 eliminate the need for zero-extending the operands.
34484 (add<mode>3_carryin): Use LTU for the overflow detection.
34485 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34486 Reexpress comparison for overflow.
34487 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34488 (add<mode>3_carryinC): Likewise.
34489 (add<mode>3_carryinV): Use LTU for carry between partials.
34490 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34491 handling of CC_Cmode and add CC_ADCmode.
34492 (aarch64_borrow_operation): Likewise.
34493
34494 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34495
34496 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34497 Remove patternmode.
34498 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34499 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34500 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34501 Remove endianness conversion.
34502
34503 2019-01-16 Martin Liska <mliska@suse.cz>
34504
34505 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34506 for GCC driver.
34507 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34508 a new argument.
34509 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34510 (path_prefix_reset): Move up in the source file.
34511 (find_fortran_preinclude_file): Make complex search for the
34512 fortran header files.
34513
34514 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34515
34516 * godump.c (go_output_typedef): When outputting a typedef, refer
34517 to the underlying type by its name and not its structure.
34518
34519 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34520
34521 PR c++/88795
34522 * tree.c (build_function_type): Assert that arg_types is not
34523 error_mark_node.
34524
34525 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34526
34527 PR inline-asm/52813
34528 * doc/extend.texi: Document that listing the stack pointer in the
34529 clobber list of an asm is a deprecated feature.
34530 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34531 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34532 warning instead of an error for clobbers of the stack pointer.
34533 Add a note explaining why.
34534
34535 2019-01-15 Richard Biener <rguenther@suse.de>
34536
34537 PR debug/88046
34538 * dwarf2out.c (gen_member_die): Do not generate inheritance
34539 DIEs late.
34540
34541 2019-01-15 Richard Biener <rguenther@suse.de>
34542
34543 PR tree-optimization/88855
34544 * tree-if-conv.c (combine_blocks): Collect
34545 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34546
34547 2019-01-15 Tom de Vries <tdevries@suse.de>
34548
34549 PR target/80547
34550 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34551 lhs == NULL_TREE for gang-level reduction.
34552
34553 2019-01-15 Richard Biener <rguenther@suse.de>
34554 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34555
34556 PR ipa/88788
34557 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34558 return true if SSA_NAME is already marked in visited bitmap.
34559 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34560
34561 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34562
34563 PR tree-optimization/88775
34564 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34565 equal == 0 equality pointer comparisons some more if compared in
34566 integral types and either one points to an automatic var and the
34567 other to a global, or we can prove at least one points to the middle
34568 or both point to start or both point to end.
34569
34570 2019-01-14 Andi Kleen <ak@linux.intel.com>
34571
34572 * Makefile.in: Lower autofdo sampling rate by 10x.
34573 * Makefile.tpl: Dito.
34574
34575 2019-01-14 Tom Honermann <tom@honermann.net>
34576
34577 * defaults.h: Define CHAR8_TYPE.
34578
34579 2019-01-14 Martin Sebor <msebor@redhat.com>
34580
34581 PR target/88638
34582 * doc/extend.texi (Darwin Format Checks): Clarify.
34583
34584 2019-01-14 Richard Biener <rguenther@suse.de>
34585
34586 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34587 whether we are in (simplify ...) or (match ...) context.
34588
34589 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34590
34591 PR rtl-optimization/88796
34592 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34593 * cfgexpand.c (stack_protect_prologue): Initialize
34594 crtl->stack_protect_guard_decl.
34595 * function.c (stack_protect_epilogue): Use it instead of calling
34596 targetm.stack_protect_guard again.
34597 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34598 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34599 crtl->stack_protect_guard_decl.
34600 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34601 on the returned MEM_EXPR.
34602
34603 2019-01-12 Tom de Vries <tdevries@suse.de>
34604
34605 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34606 vector length using -fopenacc-dim.
34607
34608 2019-01-12 Tom de Vries <tdevries@suse.de>
34609
34610 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34611 lengths into account.
34612
34613 2019-01-12 Svante Signell <svante.signell@gmail.com>
34614
34615 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34616 (TARGET_CAN_SPLIT_STACK): Define.
34617 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34618
34619 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34620
34621 * params.def (inline-unit-growth): Set to 40.
34622
34623 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34624
34625 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34626
34627 2019-01-12 Tom de Vries <tdevries@suse.de>
34628
34629 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34630 region calling vector-partitionable routine, set default_vector_length
34631 to WARP_SIZE.
34632
34633 2019-01-12 Tom de Vries <tdevries@suse.de>
34634
34635 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34636 variable default_vector_length.
34637
34638 2019-01-12 Tom de Vries <tdevries@suse.de>
34639
34640 PR middle-end/88703
34641 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34642 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34643 dimensions limits.
34644
34645 2019-01-12 Tom de Vries <tdevries@suse.de>
34646
34647 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34648 (nvptx_goacc_validate_dims): Add used parameter.
34649 * doc/tm.texi: Regenerate.
34650 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34651 argument to call to targetm.goacc.validate_dims.
34652 (default_goacc_validate_dims): Add used
34653 parameter.
34654 * target.def (validate_dims): Add used parameter in DEFHOOK.
34655 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34656
34657 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34658
34659 PR middle-end/85956
34660 PR lto/88733
34661 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34662 field.
34663 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34664 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34665 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34666 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34667
34668 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34669
34670 PR rtl-optimization/87305
34671 * lra-assigns.c
34672 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34673 for little endian pseudos used as paradoxical subreg.
34674
34675 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34676
34677 PR tree-optimization/88693
34678 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34679 for STRING_CSTs that don't contain any NUL characters in the first
34680 TREE_STRING_LENGTH bytes.
34681
34682 2019-01-11 Alan Modra <amodra@gmail.com>
34683
34684 PR 88777
34685 PR 88614
34686 * genattrtab.c (min_fn): Don't translate values.
34687 (min_attr_value): Return INT_MAX when the value can't be calculated.
34688 Return minimum among any values that can be calculated.
34689 (max_attr_value): Adjust.
34690
34691 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34692
34693 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34694
34695 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34696
34697 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34698 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34699 (aarch64_return_call_with_max_clobbers): New function.
34700 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34701 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34702 argument.
34703 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34704 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34705 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34706 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34707 * cselib.c (cselib_process_insn): Add argument to
34708 targetm.hard_regno_call_part_clobbered call.
34709 * ira-conflicts.c (ira_build_conflicts): Ditto.
34710 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34711 * lra-constraints.c (inherit_reload_reg): Ditto.
34712 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34713 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34714 argument. Call targetm.return_call_with_max_clobbers.
34715 Add argument to targetm.hard_regno_call_part_clobbered call.
34716 (calls_have_same_clobbers_p): New function.
34717 (process_bb_lives): Add call_insn and last_call_insn variables.
34718 Pass call_insn to check_pseudos_live_through_calls.
34719 Modify if stmt to check targetm.return_call_with_max_clobbers.
34720 Update setting of flush variable.
34721 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34722 to false.
34723 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34724 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34725 targetm.hard_regno_call_part_clobbered call.
34726 * reginfo.c (choose_hard_reg_mode): Ditto.
34727 * regrename.c (check_new_reg_p): Ditto.
34728 * reload.c (find_equiv_reg): Ditto.
34729 * reload1.c (emit_reload_insns): Ditto.
34730 * sched-deps.c (deps_analyze_insn): Ditto.
34731 * sel-sched.c (init_regs_for_mode): Ditto.
34732 (mark_unavailable_hard_regs): Ditto.
34733 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34734 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34735 (return_call_with_max_clobbers): New target function.
34736 * doc/tm.texi: Regenerate.
34737 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34738 * hooks.c (hook_bool_uint_mode_false): Change to
34739 hook_bool_insn_uint_mode_false.
34740 * hooks.h (hook_bool_uint_mode_false): Ditto.
34741
34742 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34743
34744 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34745 (aarch64_remove_extra_call_preserved_regs): New function.
34746 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34747 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34748 * doc/tm.texi: Regenerate.
34749 * final.c (get_call_reg_set_usage): Call new hook.
34750 * target.def (remove_extra_call_preserved_regs): New hook.
34751 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34752 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34753
34754 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34755
34756 PR bootstrap/88714
34757 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34758 inside of pass_combine_1 dump rather than pass_profile_1.
34759
34760 2019-01-11 Tom de Vries <tdevries@suse.de>
34761
34762 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34763 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34764 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34765 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34766 num_workers 16.
34767
34768 2019-01-11 Tom de Vries <tdevries@suse.de>
34769
34770 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34771
34772 2019-01-11 Jan Beulich <jbeulich@suse.com>
34773
34774 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34775 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34776 sse2_cvtsi2sd): Add {l}.
34777 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34778 syntax.
34779
34780 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34781
34782 PR target/88785
34783 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34784 define_expand.
34785 (*float<floatunssuffix>v2div2sf2): New define_insn.
34786 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34787 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34788 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34789 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34790 match_operands with "const0_operand" "C".
34791
34792 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34793
34794 * config/aarch64/aarch64-builtins.c
34795 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34796 (aarch64_init_simd_builtins): ...Here
34797
34798 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34799
34800 PR rtl-optimization/87305
34801 * lra-assigns.c
34802 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34803 allocation for big endian pseudos used as paradoxical subregs and
34804 spill them if it is wrong.
34805 * lra-constraints.c (lra_constraints): Add a comment.
34806
34807 2019-01-10 Richard Biener <rguenther@suse.de>
34808
34809 PR tree-optimization/88792
34810 * tree-ssa-pre.c (get_representative_for): Do not return a
34811 value-number here.
34812
34813 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34814
34815 PR middle-end/84877
34816 PR bootstrap/88450
34817 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34818 (assign_parm_setup_block): Do the argument slot realignment here
34819 instead.
34820
34821 2019-01-10 Stefan Agner <stefan@agner.ch>
34822
34823 PR target/88648
34824 * config/arm/arm.c (arm_option_override_internal): Force
34825 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34826
34827 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34828
34829 PR c/88568
34830 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34831 DECL_EXTERNAL.
34832
34833 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34834
34835 * config/arm/arm-builtins.c
34836 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34837 (MAC_LANE_PAIR_QUALIFIERS): New.
34838 (arm_expand_builtin_args): Use it.
34839 (arm_expand_builtin_1): Likewise.
34840 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34841 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34842 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34843 * config/arm/arm_neon.h:
34844 (vcadd_rot90_f16): New.
34845 (vcaddq_rot90_f16): New.
34846 (vcadd_rot270_f16): New.
34847 (vcaddq_rot270_f16): New.
34848 (vcmla_f16): New.
34849 (vcmlaq_f16): New.
34850 (vcmla_lane_f16): New.
34851 (vcmla_laneq_f16): New.
34852 (vcmlaq_lane_f16): New.
34853 (vcmlaq_laneq_f16): New.
34854 (vcmla_rot90_f16): New.
34855 (vcmlaq_rot90_f16): New.
34856 (vcmla_rot90_lane_f16): New.
34857 (vcmla_rot90_laneq_f16): New.
34858 (vcmlaq_rot90_lane_f16): New.
34859 (vcmlaq_rot90_laneq_f16): New.
34860 (vcmla_rot180_f16): New.
34861 (vcmlaq_rot180_f16): New.
34862 (vcmla_rot180_lane_f16): New.
34863 (vcmla_rot180_laneq_f16): New.
34864 (vcmlaq_rot180_lane_f16): New.
34865 (vcmlaq_rot180_laneq_f16): New.
34866 (vcmla_rot270_f16): New.
34867 (vcmlaq_rot270_f16): New.
34868 (vcmla_rot270_lane_f16): New.
34869 (vcmla_rot270_laneq_f16): New.
34870 (vcmlaq_rot270_lane_f16): New.
34871 (vcmlaq_rot270_laneq_f16): New.
34872 (vcadd_rot90_f32): New.
34873 (vcaddq_rot90_f32): New.
34874 (vcadd_rot270_f32): New.
34875 (vcaddq_rot270_f32): New.
34876 (vcmla_f32): New.
34877 (vcmlaq_f32): New.
34878 (vcmla_lane_f32): New.
34879 (vcmla_laneq_f32): New.
34880 (vcmlaq_lane_f32): New.
34881 (vcmlaq_laneq_f32): New.
34882 (vcmla_rot90_f32): New.
34883 (vcmlaq_rot90_f32): New.
34884 (vcmla_rot90_lane_f32): New.
34885 (vcmla_rot90_laneq_f32): New.
34886 (vcmlaq_rot90_lane_f32): New.
34887 (vcmlaq_rot90_laneq_f32): New.
34888 (vcmla_rot180_f32): New.
34889 (vcmlaq_rot180_f32): New.
34890 (vcmla_rot180_lane_f32): New.
34891 (vcmla_rot180_laneq_f32): New.
34892 (vcmlaq_rot180_lane_f32): New.
34893 (vcmlaq_rot180_laneq_f32): New.
34894 (vcmla_rot270_f32): New.
34895 (vcmlaq_rot270_f32): New.
34896 (vcmla_rot270_lane_f32): New.
34897 (vcmla_rot270_laneq_f32): New.
34898 (vcmlaq_rot270_lane_f32): New.
34899 (vcmlaq_rot270_laneq_f32): New.
34900 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34901 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34902 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34903 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34904 vcmlaq_lane270): New.
34905 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34906 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34907 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34908 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34909 (arm_option_reconfigure_globals): Use them.
34910 * config/arm/iterators.md (VDF, VQ_HSF): New.
34911 (VCADD, VCMLA): New.
34912 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34913 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34914 New.
34915 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34916 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34917
34918 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34919
34920 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34921 Add qualifier_lane_pair_index.
34922 (emit-rtl.h): Include.
34923 (TYPES_QUADOP_LANE_PAIR): New.
34924 (aarch64_simd_expand_args): Use it.
34925 (aarch64_simd_expand_builtin): Likewise.
34926 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34927 New.
34928 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34929 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34930 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34931 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34932 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34933 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34934 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34935 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34936 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34937 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34938 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34939 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34940 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34941 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34942 Add __ARM_FEATURE_COMPLEX.
34943 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34944 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34945 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34946 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34947 fcmlaq_lane270): New.
34948 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34949 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34950 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34951 * config/aarch64/arm_neon.h:
34952 (vcadd_rot90_f16): New.
34953 (vcaddq_rot90_f16): New.
34954 (vcadd_rot270_f16): New.
34955 (vcaddq_rot270_f16): New.
34956 (vcmla_f16): New.
34957 (vcmlaq_f16): New.
34958 (vcmla_lane_f16): New.
34959 (vcmla_laneq_f16): New.
34960 (vcmlaq_lane_f16): New.
34961 (vcmlaq_rot90_lane_f16): New.
34962 (vcmla_rot90_laneq_f16): New.
34963 (vcmla_rot90_lane_f16): New.
34964 (vcmlaq_rot90_f16): New.
34965 (vcmla_rot90_f16): New.
34966 (vcmlaq_laneq_f16): New.
34967 (vcmla_rot180_laneq_f16): New.
34968 (vcmla_rot180_lane_f16): New.
34969 (vcmlaq_rot180_f16): New.
34970 (vcmla_rot180_f16): New.
34971 (vcmlaq_rot90_laneq_f16): New.
34972 (vcmlaq_rot270_laneq_f16): New.
34973 (vcmlaq_rot270_lane_f16): New.
34974 (vcmla_rot270_laneq_f16): New.
34975 (vcmlaq_rot270_f16): New.
34976 (vcmla_rot270_f16): New.
34977 (vcmlaq_rot180_laneq_f16): New.
34978 (vcmlaq_rot180_lane_f16): New.
34979 (vcmla_rot270_lane_f16): New.
34980 (vcadd_rot90_f32): New.
34981 (vcaddq_rot90_f32): New.
34982 (vcaddq_rot90_f64): New.
34983 (vcadd_rot270_f32): New.
34984 (vcaddq_rot270_f32): New.
34985 (vcaddq_rot270_f64): New.
34986 (vcmla_f32): New.
34987 (vcmlaq_f32): New.
34988 (vcmlaq_f64): New.
34989 (vcmla_lane_f32): New.
34990 (vcmla_laneq_f32): New.
34991 (vcmlaq_lane_f32): New.
34992 (vcmlaq_laneq_f32): New.
34993 (vcmla_rot90_f32): New.
34994 (vcmlaq_rot90_f32): New.
34995 (vcmlaq_rot90_f64): New.
34996 (vcmla_rot90_lane_f32): New.
34997 (vcmla_rot90_laneq_f32): New.
34998 (vcmlaq_rot90_lane_f32): New.
34999 (vcmlaq_rot90_laneq_f32): New.
35000 (vcmla_rot180_f32): New.
35001 (vcmlaq_rot180_f32): New.
35002 (vcmlaq_rot180_f64): New.
35003 (vcmla_rot180_lane_f32): New.
35004 (vcmla_rot180_laneq_f32): New.
35005 (vcmlaq_rot180_lane_f32): New.
35006 (vcmlaq_rot180_laneq_f32): New.
35007 (vcmla_rot270_f32): New.
35008 (vcmlaq_rot270_f32): New.
35009 (vcmlaq_rot270_f64): New.
35010 (vcmla_rot270_lane_f32): New.
35011 (vcmla_rot270_laneq_f32): New.
35012 (vcmlaq_rot270_lane_f32): New.
35013 (vcmlaq_rot270_laneq_f32): New.
35014 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35015 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35016 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35017 (FCADD, FCMLA): New.
35018 (rot): New.
35019 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35020
35021 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35022
35023 PR other/16615
35024
35025 * config/pa/pa.c: Change "can not" to "cannot".
35026 * gimple-ssa-evrp-analyze.c: Likewise.
35027 * ipa-icf.c: Likewise.
35028 * ipa-polymorphic-call.c: Likewise.
35029 * ipa-pure-const.c: Likewise.
35030 * lra-constraints.c: Likewise.
35031 * lra-remat.c: Likewise.
35032 * reload1.c: Likewise.
35033 * reorg.c: Likewise.
35034 * tree-ssa-uninit.c: Likewise.
35035
35036 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35037
35038 PR other/16615
35039
35040 * Makefile.in: Mechanically replace "can not" with "cannot".
35041 * alias.c: Likewise.
35042 * builtins.c: Likewise.
35043 * calls.c: Likewise.
35044 * cgraph.c: Likewise.
35045 * cgraph.h: Likewise.
35046 * cgraphclones.c: Likewise.
35047 * cgraphunit.c: Likewise.
35048 * combine-stack-adj.c: Likewise.
35049 * combine.c: Likewise.
35050 * common/config/i386/i386-common.c: Likewise.
35051 * config/aarch64/aarch64.c: Likewise.
35052 * config/alpha/sync.md: Likewise.
35053 * config/arc/arc.c: Likewise.
35054 * config/arc/predicates.md: Likewise.
35055 * config/arm/arm-c.c: Likewise.
35056 * config/arm/arm.c: Likewise.
35057 * config/arm/arm.h: Likewise.
35058 * config/arm/arm.md: Likewise.
35059 * config/arm/cortex-r4f.md: Likewise.
35060 * config/csky/csky.c: Likewise.
35061 * config/csky/csky.h: Likewise.
35062 * config/darwin-f.c: Likewise.
35063 * config/epiphany/epiphany.md: Likewise.
35064 * config/i386/i386.c: Likewise.
35065 * config/i386/sol2.h: Likewise.
35066 * config/m68k/m68k.c: Likewise.
35067 * config/mcore/mcore.h: Likewise.
35068 * config/microblaze/microblaze.md: Likewise.
35069 * config/mips/20kc.md: Likewise.
35070 * config/mips/sb1.md: Likewise.
35071 * config/nds32/nds32.c: Likewise.
35072 * config/nds32/predicates.md: Likewise.
35073 * config/pa/pa.c: Likewise.
35074 * config/rs6000/e300c2c3.md: Likewise.
35075 * config/rs6000/rs6000.c: Likewise.
35076 * config/s390/s390.h: Likewise.
35077 * config/sh/sh.c: Likewise.
35078 * config/sh/sh.md: Likewise.
35079 * config/spu/vmx2spu.h: Likewise.
35080 * cprop.c: Likewise.
35081 * dbxout.c: Likewise.
35082 * df-scan.c: Likewise.
35083 * doc/cfg.texi: Likewise.
35084 * doc/extend.texi: Likewise.
35085 * doc/fragments.texi: Likewise.
35086 * doc/gty.texi: Likewise.
35087 * doc/invoke.texi: Likewise.
35088 * doc/lto.texi: Likewise.
35089 * doc/md.texi: Likewise.
35090 * doc/objc.texi: Likewise.
35091 * doc/rtl.texi: Likewise.
35092 * doc/tm.texi: Likewise.
35093 * dse.c: Likewise.
35094 * emit-rtl.c: Likewise.
35095 * emit-rtl.h: Likewise.
35096 * except.c: Likewise.
35097 * expmed.c: Likewise.
35098 * expr.c: Likewise.
35099 * fold-const.c: Likewise.
35100 * genautomata.c: Likewise.
35101 * gimple-fold.c: Likewise.
35102 * hard-reg-set.h: Likewise.
35103 * ifcvt.c: Likewise.
35104 * ipa-comdats.c: Likewise.
35105 * ipa-cp.c: Likewise.
35106 * ipa-devirt.c: Likewise.
35107 * ipa-fnsummary.c: Likewise.
35108 * ipa-icf.c: Likewise.
35109 * ipa-inline-transform.c: Likewise.
35110 * ipa-inline.c: Likewise.
35111 * ipa-polymorphic-call.c: Likewise.
35112 * ipa-profile.c: Likewise.
35113 * ipa-prop.c: Likewise.
35114 * ipa-pure-const.c: Likewise.
35115 * ipa-reference.c: Likewise.
35116 * ipa-split.c: Likewise.
35117 * ipa-visibility.c: Likewise.
35118 * ipa.c: Likewise.
35119 * ira-build.c: Likewise.
35120 * ira-color.c: Likewise.
35121 * ira-conflicts.c: Likewise.
35122 * ira-costs.c: Likewise.
35123 * ira-int.h: Likewise.
35124 * ira-lives.c: Likewise.
35125 * ira.c: Likewise.
35126 * ira.h: Likewise.
35127 * loop-invariant.c: Likewise.
35128 * loop-unroll.c: Likewise.
35129 * lower-subreg.c: Likewise.
35130 * lra-assigns.c: Likewise.
35131 * lra-constraints.c: Likewise.
35132 * lra-eliminations.c: Likewise.
35133 * lra-lives.c: Likewise.
35134 * lra-remat.c: Likewise.
35135 * lra-spills.c: Likewise.
35136 * lra.c: Likewise.
35137 * lto-cgraph.c: Likewise.
35138 * lto-streamer-out.c: Likewise.
35139 * postreload-gcse.c: Likewise.
35140 * predict.c: Likewise.
35141 * profile-count.h: Likewise.
35142 * profile.c: Likewise.
35143 * recog.c: Likewise.
35144 * ree.c: Likewise.
35145 * reload.c: Likewise.
35146 * reload1.c: Likewise.
35147 * reorg.c: Likewise.
35148 * resource.c: Likewise.
35149 * rtl.def: Likewise.
35150 * rtl.h: Likewise.
35151 * rtlanal.c: Likewise.
35152 * sched-deps.c: Likewise.
35153 * sched-ebb.c: Likewise.
35154 * sched-rgn.c: Likewise.
35155 * sel-sched-ir.c: Likewise.
35156 * sel-sched.c: Likewise.
35157 * shrink-wrap.c: Likewise.
35158 * simplify-rtx.c: Likewise.
35159 * symtab.c: Likewise.
35160 * target.def: Likewise.
35161 * toplev.c: Likewise.
35162 * tree-call-cdce.c: Likewise.
35163 * tree-cfg.c: Likewise.
35164 * tree-complex.c: Likewise.
35165 * tree-core.h: Likewise.
35166 * tree-eh.c: Likewise.
35167 * tree-inline.c: Likewise.
35168 * tree-loop-distribution.c: Likewise.
35169 * tree-nrv.c: Likewise.
35170 * tree-profile.c: Likewise.
35171 * tree-sra.c: Likewise.
35172 * tree-ssa-alias.c: Likewise.
35173 * tree-ssa-dce.c: Likewise.
35174 * tree-ssa-dom.c: Likewise.
35175 * tree-ssa-forwprop.c: Likewise.
35176 * tree-ssa-loop-im.c: Likewise.
35177 * tree-ssa-loop-ivcanon.c: Likewise.
35178 * tree-ssa-loop-ivopts.c: Likewise.
35179 * tree-ssa-loop-niter.c: Likewise.
35180 * tree-ssa-phionlycprop.c: Likewise.
35181 * tree-ssa-phiopt.c: Likewise.
35182 * tree-ssa-propagate.c: Likewise.
35183 * tree-ssa-threadedge.c: Likewise.
35184 * tree-ssa-threadupdate.c: Likewise.
35185 * tree-ssa-uninit.c: Likewise.
35186 * tree-ssanames.c: Likewise.
35187 * tree-streamer-out.c: Likewise.
35188 * tree.c: Likewise.
35189 * tree.h: Likewise.
35190 * vr-values.c: Likewise.
35191
35192 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35193
35194 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35195 (ix86_split_xorsign): Ditto.
35196 * config/i386/i386.c (ix86_expand_xorsign): New function.
35197 (ix86_split_xorsign): Ditto.
35198 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35199 (xorsign<mode>3): New expander.
35200 (xorsign<mode>3_1): New insn_and_split pattern.
35201 * config/i386/sse.md (xorsign<mode>3): New expander.
35202
35203 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35204
35205 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35206 (*tablejump_sp64): Likewise.
35207 (*tablejump<P:mode>): ...this.
35208 (*call_address_sp32): Merge into...
35209 (*call_address_sp64): Likewise.
35210 (*call_address<P:mode>): ...this.
35211 (*call_symbolic_sp32): Merge into...
35212 (*call_symbolic_sp64): Likewise.
35213 (*call_symbolic<P:mode>): ...this.
35214 (call_value): Remove constraint and add predicate.
35215 (*call_value_address_sp32): Merge into...
35216 (*call_value_address_sp64): Likewise.
35217 (*call_value_address<P:mode>): ...this.
35218 (*call_value_symbolic_sp32): Merge into...
35219 (*call_value_symbolic_sp64): Likewise.
35220 (*call_value_symbolic<P:mode>): ...this.
35221 (*sibcall_symbolic_sp32): Merge into...
35222 (*sibcall_symbolic_sp64): Likewise.
35223 (*sibcall_symbolic<P:mode>): ...this.
35224 (sibcall_value): Remove constraint and add predicate.
35225 (*sibcall_value_symbolic_sp32): Merge into...
35226 (*sibcall_value_symbolic_sp64): Likewise.
35227 (*sibcall_value_symbolic<P:mode>): ...this.
35228 (window_save): Minor tweak.
35229 (*branch_sp32): Merge into...
35230 (*branch_sp64): Likewise.
35231 (*branch<P:mode>): ...this.
35232
35233 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35234 James Clarke <jrtc27@jrtc27.com>
35235
35236 PR target/84010
35237 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35238 consistently in TLS address generation and adjust code to the renaming
35239 of patterns. Mark calls to __tls_get_addr as const.
35240 * config/sparc/sparc.md (tgd_hi22): Turn into...
35241 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35242 (tgd_lo10): Turn into...
35243 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35244 (tgd_add32): Merge into...
35245 (tgd_add64): Likewise.
35246 (tgd_add<P:mode>): ...this and use Pmode throughout.
35247 (tldm_hi22): Turn into...
35248 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35249 (tldm_lo10): Turn into...
35250 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35251 (tldm_add32): Merge into...
35252 (tldm_add64): Likewise.
35253 (tldm_add<P:mode>): ...this and use Pmode throughout.
35254 (tldm_call32): Merge into...
35255 (tldm_call64): Likewise.
35256 (tldm_call<P:mode>): ...this and use Pmode throughout.
35257 (tldo_hix22): Turn into...
35258 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35259 (tldo_lox10): Turn into...
35260 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35261 (tldo_add32): Merge into...
35262 (tldo_add64): Likewise.
35263 (tldo_add<P:mode>): ...this and use Pmode throughout.
35264 (tie_hi22): Turn into...
35265 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35266 (tie_lo10): Turn into...
35267 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35268 (tie_ld64): Use DImode throughout.
35269 (tie_add32): Merge into...
35270 (tie_add64): Likewise.
35271 (tie_add<P:mode>): ...this and use Pmode throughout.
35272 (tle_hix22_sp32): Merge into...
35273 (tle_hix22_sp64): Likewise.
35274 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35275 (tle_lox22_sp32): Merge into...
35276 (tle_lox22_sp64): Likewise.
35277 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35278 (*tldo_ldub_sp32): Merge into...
35279 (*tldo_ldub_sp64): Likewise.
35280 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35281 (*tldo_ldub1_sp32): Merge into...
35282 (*tldo_ldub1_sp64): Likewise.
35283 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35284 (*tldo_ldub2_sp32): Merge into...
35285 (*tldo_ldub2_sp64): Likewise.
35286 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35287 (*tldo_ldsb1_sp32): Merge into...
35288 (*tldo_ldsb1_sp64): Likewise.
35289 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35290 (*tldo_ldsb2_sp32): Merge into...
35291 (*tldo_ldsb2_sp64): Likewise.
35292 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35293 (*tldo_ldub3_sp64): Use DImode throughout.
35294 (*tldo_ldsb3_sp64): Likewise.
35295 (*tldo_lduh_sp32): Merge into...
35296 (*tldo_lduh_sp64): Likewise.
35297 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35298 (*tldo_lduh1_sp32): Merge into...
35299 (*tldo_lduh1_sp64): Likewise.
35300 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35301 (*tldo_ldsh1_sp32): Merge into...
35302 (*tldo_ldsh1_sp64): Likewise.
35303 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35304 (*tldo_lduh2_sp64): Use DImode throughout.
35305 (*tldo_ldsh2_sp64): Likewise.
35306 (*tldo_lduw_sp32): Merge into...
35307 (*tldo_lduw_sp64): Likewise.
35308 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35309 (*tldo_lduw1_sp64): Use DImode throughout.
35310 (*tldo_ldsw1_sp64): Likewise.
35311 (*tldo_ldx_sp64): Likewise.
35312 (*tldo_stb_sp32): Merge into...
35313 (*tldo_stb_sp64): Likewise.
35314 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35315 (*tldo_sth_sp32): Merge into...
35316 (*tldo_sth_sp64): Likewise.
35317 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35318 (*tldo_stw_sp32): Merge into...
35319 (*tldo_stw_sp64): Likewise.
35320 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35321 (*tldo_stx_sp64): Use DImode throughout.
35322
35323 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35324
35325 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35326 check configure option to set BTI and Return Address Signing.
35327 * configure.ac: Add --enable-standard-branch-protection and
35328 --disable-standard-branch-protection.
35329 * configure: Regenerated.
35330 * doc/install.texi: Document the same.
35331
35332 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35333 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35334
35335 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35336 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35337 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35338 if bti is enabled.
35339 * config/aarch64/aarch64-bti-insert.c: New file.
35340 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35341 pass.
35342 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35343 new bti pass.
35344 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35345 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35346 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35347 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35348
35349 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35350
35351 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35352 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35353 Disable bti for -mbranch-protection=none.
35354 (aarch64_handle_standard_branch_protection): Enable bti for
35355 -mbranch-protection=standard.
35356 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35357 -mbranch-protection.
35358 (aarch64_bti_enabled): Check if bti is enabled.
35359 * config/aarch64/aarch64.opt: Declare target variable.
35360 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35361
35362 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35363
35364 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35365 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35366 (aarch64_expand_epilogue): Likewise.
35367 (aarch64_output_mi_thunk): Likewise.
35368 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35369 TAILCALL_ADDR_REGS to x16 and x17.
35370 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35371
35372 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35373
35374 * config/aarch64/aarch64-option-extensions.def: Define
35375 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35376 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35377 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35378 (AARCH64_FL_PREDRES): New.
35379 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35380 AARCH64_FL_PREDRES by default.
35381 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35382
35383 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35384
35385 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35386 ARMv8.5-A.
35387 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35388 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35389 * doc/invoke.texi: Document ARMv8.5-A.
35390
35391 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35392
35393 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35394 (xorsign<mode>3): Likewise.
35395
35396 2019-01-09 Jelinek <jakub@redhat.com>
35397
35398 PR middle-end/88758
35399 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35400 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35401
35402 PR rtl-optimization/88331
35403 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35404 not currently_expanding_to_rtl.
35405
35406 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35407
35408 * doc/invoke.texi (-Os): Remove trailing spaces.
35409 (-finline-functions): Remove reference to -O2.
35410
35411 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35412
35413 PR rtl-optimization/79593
35414 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35415
35416 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35417 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35418
35419 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35420
35421 PR bootstrap/88721
35422 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35423 to -1 on entry.
35424
35425 PR debug/88723
35426 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35427 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35428
35429 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35430
35431 PR target/88717
35432 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35433 ix86_avx_u128_mode_entry.
35434
35435 2019-01-08 Martin Liska <mliska@suse.cz>
35436
35437 PR tree-optimization/88753
35438 * tree-switch-conversion.c (switch_conversion::build_one_array):
35439 Come up with local variable constructor. Convert first to
35440 type of constructor values.
35441
35442 2019-01-08 Richard Biener <rguenther@suse.de>
35443
35444 PR tree-optimization/86554
35445 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35446 rpo_avail): Move earlier.
35447 (visit_nary_op): When value-numbering to expressions
35448 with different overflow behavior make sure there's an
35449 available expression on the path.
35450
35451 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35452
35453 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35454 aarch64_parse_branch_protection,
35455 struct aarch64_branch_protect_type,
35456 aarch64_handle_no_branch_protection,
35457 aarch64_handle_standard_branch_protection,
35458 aarch64_validate_mbranch_protection,
35459 aarch64_handle_pac_ret_protection,
35460 aarch64_handle_attr_branch_protection,
35461 accepted_branch_protection_string,
35462 aarch64_pac_ret_subtypes,
35463 aarch64_branch_protect_types,
35464 aarch64_handle_pac_ret_leaf): Define.
35465 (aarch64_override_options_after_change_1, aarch64_override_options):
35466 Add check for accepted_branch_protection_string.
35467 (aarch64_option_save): Save accepted_branch_protection_string.
35468 (aarch64_option_restore): Save accepted_branch_protection_string.
35469 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35470 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35471 msign-return-address.
35472 * doc/invoke.texi: Add mbranch-protection.
35473
35474 2019-01-08 Alan Modra <amodra@gmail.com>
35475
35476 PR target/88614
35477 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35478 Delete "unknownp" parameter. Adjust callers. Handle
35479 CONST_INT, PLUS, MINUS, and MULT.
35480 (attr_value_aligned): Renamed from or_attr_value.
35481 (min_attr_value): Return INT_MIN for unhandled rtl case..
35482 (min_fn): ..and translate to INT_MAX here.
35483 (write_length_unit_log): Modify to cope without "unknown".
35484 (write_attr_value): Handle IF_THEN_ELSE.
35485
35486 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35487
35488 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35489 optimization for masked stores.
35490
35491 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35492
35493 PR middle-end/88567
35494 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35495 output vector directly to duplicate_and_interleave instead of
35496 going through a temporary. Postpone insertion of ctor_seq to
35497 the end of the loop.
35498
35499 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35500
35501 PR target/86891
35502 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35503 unsigned_p. Handle signed and unsigned overflow correction as
35504 required.
35505 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35506 prototype.
35507 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35508 for operand 2.
35509 (add<mode>3_compareV_imm): Make this callable for expanding.
35510 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35511 aarch64_plus_operand for operand 2.
35512 (subv<GPI:mode>_insn): New insn pattern.
35513 (subv<GPI:mode>_imm): Likewise.
35514 (negv<GPI:mode>3): New expand pattern.
35515 (negv<GPI:mode>_insn): New insn pattern.
35516 (negv<GPI:mode>_cmp_only): Likewise.
35517 (cmpv<GPI:mode>_insn): Likewise.
35518 (subvti4): Use register_operand for operand 1. Update call to
35519 aarch64_expand_subvti.
35520 (usubvti4): Likewise.
35521 (negvti3): New expand pattern.
35522 (negdi_carryout): New insn pattern.
35523 (negvdi_carryinV): New insn pattern.
35524 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35525 version the named version.
35526 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35527 operands.
35528 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35529 patterns.
35530 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35531 patterns.
35532 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35533 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35534 (sub<mode>3_carryinCV): Delete.
35535 (sub<GPI:mode>3_carryinV): New expand pattern.
35536 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35537
35538 2019-01-07 Richard Biener <rguenther@suse.de>
35539
35540 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35541 of tree_operand_hash.
35542
35543 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35544
35545 PR tree-optimization/88598
35546 * tree.h (single_nonzero_element): Declare.
35547 * tree.c (single_nonzero_element): New function.
35548 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35549 if I is the only nonzero element of CST.
35550
35551 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35552
35553 PR tree-optimization/88598
35554 * tree.h (initializer_each_zero_or_onep): Declare.
35555 * tree.c (initializer_each_zero_or_onep): New function.
35556 (signed_or_unsigned_type_for): Handle float types too.
35557 (unsigned_type_for, signed_type_for): Update comments accordingly.
35558 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35559 x & { 0 or -1, 0 or -1, ... }.
35560
35561 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35562
35563 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35564 with x86_64-pc-linux-gnu.
35565
35566 2019-01-07 Tom de Vries <tdevries@suse.de>
35567
35568 PR target/85486
35569 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35570 function.
35571 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35572 routines.
35573
35574 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35575
35576 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35577 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35578 TARGET_AVX512F as condition.
35579
35580 PR debug/88723
35581 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35582 const_not_ok_for_debug_p target hook.
35583 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35584 on UNSPEC and subexpressions thereof if all subexpressions of the
35585 UNSPEC are CONSTANT_P.
35586
35587 PR tree-optimization/88676
35588 * tree-ssa-phiopt.c (two_value_replacement): New function.
35589 (tree_ssa_phiopt_worker): Call it.
35590
35591 PR sanitizer/88619
35592 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35593 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35594
35595 PR c++/85052
35596 * tree-vect-generic.c: Include insn-config.h and recog.h.
35597 (expand_vector_piecewise): Add defaulted ret_type argument,
35598 if non-NULL, use that in preference to type for the result type.
35599 (expand_vector_parallel): Formatting fix.
35600 (do_vec_conversion, do_vec_narrowing_conversion,
35601 expand_vector_conversion): New functions.
35602 (expand_vector_operations_1): Call expand_vector_conversion
35603 for VEC_CONVERT ifn calls.
35604 * internal-fn.def (VEC_CONVERT): New internal function.
35605 * internal-fn.c (expand_VEC_CONVERT): New function.
35606 * fold-const-call.c (fold_const_vec_convert): New function.
35607 (fold_const_call): Use it for CFN_VEC_CONVERT.
35608 * doc/extend.texi (__builtin_convertvector): Document.
35609
35610 2019-01-07 Tom de Vries <tdevries@suse.de>
35611
35612 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35613 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35614 vector_red_partition, vector_red_sym): New global variables.
35615 (nvptx_option_override): Initialize vector_red_sym.
35616 (nvptx_declare_function_name): Restore red_partition register.
35617 (nvptx_file_end): Emit code to declare the vector reduction variables.
35618 (nvptx_output_red_partition): New function.
35619 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35620 large vector reductions.
35621 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35622 (nvptx_init_builtins): Add VECTOR_ADDR.
35623 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35624 Handle nvptx_expand_shared_addr.
35625 (nvptx_get_shared_red_addr): Add vector argument and handle large
35626 vectors.
35627 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35628 large vectors.
35629 (nvptx_goacc_reduction_init): Likewise.
35630 (nvptx_goacc_reduction_fini): Likewise.
35631 (nvptx_goacc_reduction_teardown): Likewise.
35632 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35633 init,fini,teardown}.
35634 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35635 (nvptx_set_current_function): Init vector_red_partition.
35636 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35637 (nvptx_red_partition): New insn.
35638 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35639
35640 2019-01-07 Tom de Vries <tdevries@suse.de>
35641
35642 PR target/85381
35643 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35644 empty loops.
35645
35646 2019-01-07 Tom de Vries <tdevries@suse.de>
35647
35648 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35649 (nvptx_option_override): Init oacc_bcast_partition.
35650 (nvptx_init_oacc_workers): New function.
35651 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35652 (nvptx_needs_shared_bcast): New function.
35653 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35654 to propagate state.
35655 (nvptx_shared_propagate): Initialize vector bcast partition and
35656 synchronization state.
35657 (nvptx_single): Generalize to enable vectors to use shared-memory
35658 to propagate state.
35659 (nvptx_process_pars): Likewise.
35660 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35661 * config/nvptx/nvptx.h (struct machine_function): Add
35662 bcast_partition and sync_bar members.
35663
35664 2019-01-07 Tom de Vries <tdevries@suse.de>
35665
35666 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35667 (nvptx_apply_dim_limits): New function.
35668 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35669 PTX_WARP_SIZE.
35670
35671 2019-01-07 Tom de Vries <tdevries@suse.de>
35672
35673 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35674 as late as possible.
35675
35676 2019-01-07 Tom de Vries <tdevries@suse.de>
35677
35678 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35679 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35680 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35681 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35682 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35683
35684 2019-01-07 Tom de Vries <tdevries@suse.de>
35685
35686 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35687
35688 2019-01-07 Tom de Vries <tdevries@suse.de>
35689
35690 * omp-offload.c (oacc_get_min_dim): New function.
35691 * omp-offload.h (oacc_get_min_dim): Declare.
35692
35693 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35694
35695 PR target/88521
35696 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35697 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35698
35699 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35700
35701 PR tree-opt/86020
35702 Revert:
35703 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35704
35705 * ipa-inline.c (edge_badness): Use inlined_time instead of
35706 inline_summaries->get.
35707
35708 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35709
35710 * opts.c (enable_fdo_optimizations): Enable
35711 version-loops-for-strides, loop-interchange, unrol-and-jam
35712 and tree-loop-distribution.
35713 * invoke.texi: Document newly enabled options.
35714
35715 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35716
35717 * doc/invoke.texi (max-inline-insns-small): New parameters.
35718 * ipa-inline.c (want_early_inline_function_p): simplify.
35719 (want_inline_small_function_p): Fix pasto from previous patch;
35720 use max-inline-insns-small bound.
35721 * params.def (max-inline-insns-small): New param.
35722 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35723 variables correctly.
35724
35725 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35726
35727 * doc/invoke.texi: Document max-inline-insns-size,
35728 uninlined-function-insns, uninlined-function-time,
35729 uninlined-thunk-insns and uninlined-thunk-time.
35730 * params.def: Add max-inline-insns-size,
35731 uninlined-function-insns, uninlined-function-time,
35732 uninlined-thunk-insns and uninlined-thunk-time.
35733 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35734 new parameters.
35735 * ipa-inline.c (can_inline_edge_by_limits_p,
35736 want_inline_small_function_p): Use new parameters.
35737
35738 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35739
35740 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35741
35742 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35743
35744 PR middle-end/82564
35745 PR target/88620
35746 * expr.c (expand_assignment): For calls returning VLA structures
35747 if to_rtx is not a MEM, force it into a stack temporary.
35748
35749 PR debug/88635
35750 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35751 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35752 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35753 subexpressions of both operands.
35754 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35755 subrtxes are CONSTANT_P.
35756 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35757 2018-11-09 changes.
35758
35759 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35760
35761 * params.def (hot-bb-count-ws-permille): Set to 990.
35762
35763 2019-01-04 Martin Sebor <msebor@redhat.com>
35764
35765 PR c/88546
35766 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35767 leaf.
35768
35769 2019-01-04 Martin Sebor <msebor@redhat.com>
35770
35771 PR c/88363
35772 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35773
35774 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35775
35776 * gdbinit.in: Turn off pagination for the skip commands, restore
35777 it to previous state afterwards.
35778
35779 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35780
35781 PR target/88594
35782 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35783 of GET_MODE (opN) as modes of the libcall arguments.
35784
35785 2019-01-04 Jan Beulich <jbeulich@suse.com>
35786
35787 * config/i386/sse.md
35788 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35789 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35790 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35791 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35792 avx512f_vmcmp<mode>3<round_saeonly_name>,
35793 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35794 avx512f_maskcmp<mode>3,
35795 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35796 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35797 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35798 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35799 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35800 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35801 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35802 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35803 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35804 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35805 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35806 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35807 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35808 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35809 avx512cd_maskb_vec_dup<mode>,
35810 avx512cd_maskw_vec_dup<mode>,
35811 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35812 avx512dq_vmfpclass<mode>,
35813 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35814 instead of =Yk.
35815
35816 2019-01-03 Martin Sebor <msebor@redhat.com>
35817
35818 PR tree-optimization/88659
35819 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35820
35821 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35822
35823 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35824 unaligned vsx and avoid lxvd2x/stxvd2x.
35825 (gen_lvx_v4si_move): New function.
35826
35827 2019-01-03 Tom de Vries <tdevries@suse.de>
35828
35829 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35830 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35831 function.
35832 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35833
35834 2019-01-03 Tom de Vries <tdevries@suse.de>
35835
35836 * config/nvptx/nvptx.c (struct offload_attrs): New.
35837 (populate_offload_attrs): New function. Factor mask extraction out of
35838 nvptx_reorg. Add extraction of dimensions.
35839 (nvptx_reorg): Use populate_offload_attrs.
35840
35841 2019-01-03 Tom de Vries <tdevries@suse.de>
35842
35843 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35844 cases for oacc_min_dims_p and routine_p. Add asserts for
35845 oacc_default_dims_p and offload_region_p.
35846
35847 2019-01-03 Tom de Vries <tdevries@suse.de>
35848
35849 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35850 factored out of ...
35851 (nvptx_goacc_validate_dims): ... here.
35852
35853 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35854
35855 PR tree-optimization/85574
35856 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35857 structure.
35858 (struct ssa_equip_hash_traits): Declare.
35859 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35860
35861 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35862
35863 PR debug/88644
35864 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35865 change it to qualified_type.
35866
35867 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35868
35869 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35870 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35871
35872 2019-01-02 Martin Sebor <msebor@redhat.com>
35873 Jeff Law <law@redhat.com>
35874
35875 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35876 (get_range_strlen_tree): Update appropriately.
35877 (get_range_strlen)
35878 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35879
35880 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35881 rather than set_range_info.
35882 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35883 maybe_set_strlen_range. Handle potentially boundary crossing
35884 cases more conservatively.
35885 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35886 Call set_strlen_range.
35887 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35888
35889 PR middle-end/88663
35890 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35891 need the flexp argument.
35892 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35893 from calls to get_range_strlen. Update comments. Just update
35894 VAL for an unterminated const char array and let the reset of the
35895 code handle it normally. No longer try to set *flexp. Adjust
35896 return value.
35897 (get_range_strlen): Update for the new get_range_strlen API.
35898 (get_maxval_strlen): Similarly.
35899 (gimple_fold_builtin_strlen): Handle update meaning of return value
35900 from get_range_strlen.
35901 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35902 get_range_strlen API.
35903
35904 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35905
35906 PR lto/88130
35907 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35908 false at WPA time when body was removed.
35909
35910 2019-01-02 Martin Liska <mliska@suse.cz>
35911
35912 PR tree-optimization/88650
35913 * predict.c (set_even_probabilities): Calculate probability
35914 remainer only when really used.
35915
35916 2019-01-02 Richard Biener <rguenther@suse.de>
35917
35918 PR middle-end/88651
35919 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35920 widest_ints when mangling max_stmt_execution results.
35921
35922 2019-01-02 Richard Biener <rguenther@suse.de>
35923
35924 PR tree-optimization/88621
35925 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35926 bitfields when canoncalizing.
35927
35928 2019-01-02 Richard Biener <rguenther@suse.de>
35929
35930 PR target/87545
35931 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35932 cost of cheap SSE instruction.
35933
35934 2019-01-02 Richard Biener <rguenther@suse.de>
35935
35936 PR ipa/85574
35937 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35938 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35939 function.
35940 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35941 set after UIDs before splitting them.
35942
35943 2019-01-01 Martin Sebor <msebor@redhat.com>
35944 Jeff Law <law@redhat.com>
35945
35946 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35947 length is optimistic. If it is, then arrange to compute the
35948 conservative length as well.
35949
35950 * gimple-fold.h (get_range_strlen): Update prototype.
35951 * builtins.c (check_access): Update call to get_range_strlen to use
35952 c_strlen_data pointer. Change various variable accesses to instead
35953 pull data from the c_strlen_data structure.
35954 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35955 * calls.c (maybe_warn_nonstring_arg): Likewise.
35956 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35957 minimum length if maximum lengh is unknown.
35958 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35959 that used c_strlen, it's no longer needed. Restructure slightly.
35960 (format_string): Set unlikely range appropriately.
35961 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35962 formatting issues.
35963 (get_range_strlen): Accept c_strlen_data pointer for external
35964 call sites as well. Pass through to call to internal get_range_strlen.
35965 Adjust minlen, maxlen and maxbound as needed.
35966 (get_maxval_strlen): Update comments.
35967 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35968 to use c_strlen_data pointer. Change variable accesses to instead
35969 use c_strlen_data data members.
35970
35971 * gimple-fold.c (get_range_strlen): Update prototype.
35972 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35973 local variables. Use pdata to return information to caller.
35974 Update calls to get_range_strlen. Update pdata->maxbound.
35975 (get_range_strlen -- static version): Similarly.
35976 (get_range_strlen -- extern version): Update for internal
35977 get_range_strlen API change. Convert to external data format.
35978 (get_maxval_strlen): Similarly.
35979
35980 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35981
35982 * coverage.c (get_coverage_counts): Use current_function_decl.
35983 * profile.c (read_thunk_profile): New function.
35984 (branch_prob): Add THUNK parameter.
35985 * tree-profile.c (tree_profiling): Handle thunks.
35986 * value-prof.c (init_node_map): Handle thunks.
35987 * value-prof.h (branch_prob): Upate prototype.
35988 (read_thunk_profile): Declare.
35989
35990 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35991
35992 Update copyright years.
35993
35994 * gcc.c (process_command): Update copyright notice dates.
35995 * gcov-dump.c (print_version): Ditto.
35996 * gcov.c (print_version): Ditto.
35997 * gcov-tool.c (print_version): Ditto.
35998 * gengtype.c (create_file): Ditto.
35999 * doc/cpp.texi: Bump @copying's copyright year.
36000 * doc/cppinternals.texi: Ditto.
36001 * doc/gcc.texi: Ditto.
36002 * doc/gccint.texi: Ditto.
36003 * doc/gcov.texi: Ditto.
36004 * doc/install.texi: Ditto.
36005 * doc/invoke.texi: Ditto.
36006 \f
36007 Copyright (C) 2019 Free Software Foundation, Inc.
36008
36009 Copying and distribution of this file, with or without modification,
36010 are permitted in any medium without royalty provided the copyright
36011 notice and this notice are preserved.