opts.c (default_options_table): Move -ftree-loop-distribute-patterns entry from ...
[gcc.git] / gcc / ChangeLog
1 2019-12-11 Jakub Jelinek <jakub@redhat.com>
2
3 * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
4 entry from -O3 or later section to -O2 or later section.
5 * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
6 option is enabled by default at -O2+ rather than just at -O3.
7
8 PR target/92723
9 * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
10 vect_internal_def, use oprnd1 as is, without trying to cast it.
11 Formatting fix.
12
13 2019-12-11 Martin Sebor <msebor@redhat.com>
14
15 * builtins.c (compute_objsize): Add an argument and set it to offset
16 into destination.
17 * builtins.h (compute_objsize): Add an argument.
18 * tree-object-size.c (addr_object_size): Add an argument and set it
19 to offset into destination.
20 (compute_builtin_object_size): Same.
21 * tree-object-size.h (compute_builtin_object_size): Add an argument.
22 * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
23 to offset into destination.
24 (maybe_warn_overflow): New function.
25 (handle_store): Call maybe_warn_overflow to issue warnings.
26
27 2019-12-11 Jozef Lawrynowicz <jozef.l@mittosystems.com>
28
29 * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
30 crtbegin_no_eh.o if building for the C language.
31 [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
32 except C.
33 (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for
34 the C language.
35 [fno-exceptions]: Use crtend_no_eh.o if building for any language
36 except C.
37 * config/msp430/t-msp430: Add -fno-exceptions multilib.
38 * doc/install.texi: Document --disable-no-exceptions multilib configure
39 option.
40 * doc/sourcebuild.texi: Document exceptions_enabled effective target.
41
42 2019-12-11 David Malcolm <dmalcolm@redhat.com>
43
44 * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
45 (pretty_printer::clone): New vfunc implementation.
46 * pretty-print.h (format_postprocessor::clone): New pure vfunc
47 decl.
48 (pretty_printer::pretty_printer): New copy-ctor decl.
49 (pretty_printer::clone): New vfunc decl.
50
51 2019-12-11 David Malcolm <dmalcolm@redhat.com>
52
53 * function-tests.c (selftest::make_fndecl): Make non-static.
54 * selftest.h (selftest::make_fndecl): New decl.
55
56 2019-12-11 Lewis Hyatt <lhyatt@gmail.com>
57
58 PR 91853
59 * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
60 multibyte input. Fix off-by-one-bug printing the last byte before a
61 hex-escaped output.
62 (pp_character): Don't apply line wrapping in the middle of multibyte
63 characters.
64 (test_utf8): New test.
65 (pretty_print_c_tests): Call the new test.
66
67 2019-12-11 Richard Earnshaw <rearnsha@arm.com>
68
69 * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
70 (ALL_SIMD): Use it.
71 (ALL_FPU_EXTERNAL): New fgroup.
72 (ALL_FP): Use it.
73 (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
74 +simd from architecture specification.
75 (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
76 * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
77 (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
78 (isa_all_fpbits): New bitmap.
79 (arm_option_override): Initialize it.
80 (arm_configure_build_target): If the target isa does not have any
81 FP enabled, do not warn about mismatches in FP-related feature bits.
82
83 2019-12-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
84
85 * real.c (struct arm_bfloat_half_format,
86 encode_arm_bfloat_half, decode_arm_bfloat_half): New.
87 * real.h (arm_bfloat_half_format): New.
88
89 2019-12-11 Hongtao Liu <hongtao.liu@intel.com>
90
91 PR target/92865
92 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
93 integer mask cmov when available even with TARGET_XOP.
94
95 2019-12-10 Jakub Jelinek <jakub@redhat.com>
96
97 PR tree-optimization/92891
98 * builtins.c (gimple_call_alloc_size): Convert size to sizetype
99 before returning it.
100
101 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
102
103 PR rtl-optimization/92796
104 * lra-int.h (lra_risky_transformations_p): Rename to
105 check_and_force_assignment_correctness_p.
106 * lra-assigns.c: Ditto.
107 (lra_assign): Reset check_and_force_assignment_correctness_p.
108 * lra-constraints.c (lra_risky_transformations_p): Rename to
109 check_and_force_assignment_correctness_p.
110 (lra_constraints): Set up check_and_force_assignment_correctness_p
111 only for the 1st sub-pass.
112 * lra-eliminations.c (process_insn_for_elimination): Set up
113 check_and_force_assignment_correctness_p if the insn chnaged its
114 code.
115
116 2019-12-10 Jakub Jelinek <jakub@redhat.com>
117
118 PR rtl-optimization/92882
119 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
120 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
121 NONDEBUG_INSN_P.
122
123 PR ipa/92883
124 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
125 than *jfunc->m_vr to intersect. Formatting fix.
126
127 PR middle-end/92825
128 * cfgexpand.c (add_stack_protection_conflicts): Change return type
129 from void to bool, return true if at least one stack_vars[i].decl
130 is addressable.
131 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
132 (expand_used_vars): Don't call stack_protect_decl_p, instead for
133 -fstack-protector-strong set gen_stack_protect_signal to true
134 if add_stack_protection_conflicts returned true. Formatting fixes.
135 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
136 out variables or variables not living on the stack don't count.
137 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
138 rather than > 8 byte.
139
140 * ipa-param-manipulation.c
141 (ipa_param_body_adjustments::register_replacement): Fix comment typo
142 - accross -> across.
143 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
144 Likewise.
145 (param_splitting_across_edge): Fix typo in dump message - accross
146 -> across.
147
148 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
149
150 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
151 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
152 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
153 (expand_all_functions): First expand ordered section and then
154 unordered.
155 * profile.c (compute_value_histograms): Error on out of range
156 tp_first_runs.
157
158 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
159
160 * predict.c (compute_function_frequency): Check for presence of IPA
161 profile.
162
163 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
164
165 * varasm.c (default_function_section): Fix confused tests for
166 tp_first_run reordering.
167
168 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
169
170 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
171 allow SVE modes in GPRs.
172
173 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
174
175 * config/aarch64/iterators.md (vccore): New iterator.
176 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
177 of vwcore.
178 (*vec_series<mode>_plus): Likewise.
179
180 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
181
182 * omp-low.c (scan_omp_for): Use clause location in warning.
183
184 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
185
186 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
187 (add_const_value_attribute): Likewise.
188
189 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
190
191 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
192 handling direct_slp_reduc, allow the PHI arguments to have
193 a different type from the vector elements.
194
195 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
196
197 * tree-vect-stmts.c (vectorizable_condition): Record the loop
198 masks required for extract-last reductions.
199
200 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
201
202 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
203 original scalar statement rather than a pattern statement.
204 (vectorizable_condition): Likewise, in the handling of extract-last
205 reductions.
206
207 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
208
209 * tree-vect-loop.c (vectorizable_reduction): Don't use
210 EXTRACT_LAST_REDUCTION for chained reductions.
211
212 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
213
214 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
215 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
216 second demangled name.
217
218 2019-12-10 Jakub Jelinek <jakub@redhat.com>
219
220 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
221
222 2019-12-10 Martin Liska <mliska@suse.cz>
223
224 PR tree-optimization/92862
225 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
226 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
227 instead of true;
228
229 2019-12-09 David Malcolm <dmalcolm@redhat.com>
230
231 * gcc-rich-location.c
232 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
233 label_text ctor call with label_text::borrow.
234 * gcc-rich-location.h (text_range_label::get_text): Replace
235 label_text ctor called with false with label_text::borrow.
236
237 2019-12-09 David Malcolm <dmalcolm@redhat.com>
238
239 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
240 newline.
241 (selftest::test_diagnostic_show_locus_unknown_location): Remove
242 initial newline from expected outputs.
243 (selftest::test_one_liner_simple_caret): Likewise.
244 (selftest::test_one_liner_caret_and_range): Likewise.
245 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
246 (selftest::test_one_liner_fixit_insert_before): Likewise.
247 (selftest::test_one_liner_fixit_insert_after): Likewise.
248 (selftest::test_one_liner_fixit_remove): Likewise.
249 (selftest::test_one_liner_fixit_replace): Likewise.
250 (selftest::test_one_liner_fixit_replace_non_equal_range):
251 Likewise.
252 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
253 Likewise.
254 (selftest::test_one_liner_fixit_validation_adhoc_locations):
255 Likewise.
256 (selftest::test_one_liner_many_fixits_1): Likewise.
257 (selftest::test_one_liner_many_fixits_2): Likewise.
258 (selftest::test_one_liner_labels): Likewise.
259 (selftest::test_one_liner_simple_caret_utf8): Likewise.
260 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
261 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
262 Likewise.
263 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
264 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
265 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
266 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
267 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
268 Likewise.
269 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
270 Likewise.
271 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
272 Likewise.
273 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
274 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
275 (selftest::test_one_liner_labels_utf8): Likewise.
276 (selftest::test_add_location_if_nearby): Likewise.
277 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
278 (selftest::test_overlapped_fixit_printing): Likewise.
279 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
280 (selftest::test_overlapped_fixit_printing_2): Likewise.
281 (selftest::test_fixit_insert_containing_newline): Likewise.
282 (selftest::test_fixit_insert_containing_newline_2): Likewise.
283 (selftest::test_fixit_replace_containing_newline): Likewise.
284 (selftest::test_fixit_deletion_affecting_newline): Likewise.
285 (selftest::test_line_numbers_multiline_range): Likewise.
286 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
287 before call to diagnostic_show_locus.
288 (diagnostic_append_note): Likewise.
289
290 2019-12-09 Martin Sebor <msebor@redhat.com>
291
292 PR middle-end/92761
293 PR middle-end/92762
294 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
295 up tests.
296 * hash-table.h (hash_table::expand): Use placement new to copy
297 construct objects in uninitialized storage.
298 (hash_table::empty_slow): Avoid invoking copy assignment on
299 uninitialized objects.
300
301 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
302
303 PR preprocessor/49973
304 * input.c (location_compute_display_column): New function to help with
305 multibyte awareness in diagnostics.
306 (test_cpp_utf8): New self-test.
307 (input_c_tests): Call the new test.
308 * input.h (location_compute_display_column): Declare.
309 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
310 to all classes and functions.
311 (enum column_unit): New enum.
312 (class exploc_with_display_col): New class.
313 (class layout_point): Convert m_column member to array m_columns[2].
314 (layout_range::contains_point): Add col_unit argument.
315 (test_layout_range_for_single_point): Pass new argument.
316 (test_layout_range_for_single_line): Likewise.
317 (test_layout_range_for_multiple_lines): Likewise.
318 (line_bounds::convert_to_display_cols): New function.
319 (layout::get_state_at_point): Add col_unit argument.
320 (make_range): Use empty filename rather than dummy filename.
321 (get_line_width_without_trailing_whitespace): Rename to...
322 (get_line_bytes_without_trailing_whitespace): ...this.
323 (test_get_line_width_without_trailing_whitespace): Rename to...
324 (test_get_line_bytes_without_trailing_whitespace): ...this.
325 (class layout): m_exploc changed to exploc_with_display_col from
326 plain expanded_location.
327 (layout::get_linenum_width): New accessor member function.
328 (layout::get_x_offset_display): Likewise.
329 (layout::calculate_linenum_width): New subroutine for the constuctor.
330 (layout::calculate_x_offset_display): Likewise.
331 (layout::layout): Use the new subroutines. Add multibyte awareness.
332 (layout::print_source_line): Add multibyte awareness.
333 (layout::print_line): Likewise.
334 (layout::print_annotation_line): Likewise.
335 (line_label::line_label): Likewise.
336 (layout::print_any_labels): Likewise.
337 (layout::annotation_line_showed_range_p): Likewise.
338 (get_printed_columns): Likewise.
339 (class line_label): Rename m_length to m_display_width.
340 (get_affected_columns): Rename to...
341 (get_affected_range): ...this; add col_unit argument and multibyte
342 awareness.
343 (class correction): Add m_affected_bytes and m_display_cols
344 members. Rename m_len to m_byte_length for clarity. Add multibyte
345 awareness throughout.
346 (correction::insertion_p): Add multibyte awareness.
347 (correction::compute_display_cols): New function.
348 (correction::ensure_terminated): Use new member name m_byte_length.
349 (line_corrections::add_hint): Add multibyte awareness.
350 (layout::print_trailing_fixits): Likewise.
351 (layout::get_x_bound_for_row): Likewise.
352 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
353 with _utf8 suffix removed, testing multibyte awareness.
354 (test_one_liner_caret_and_range_utf8): Likewise.
355 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
356 (test_one_liner_fixit_insert_before_utf8): Likewise.
357 (test_one_liner_fixit_insert_after_utf8): Likewise.
358 (test_one_liner_fixit_remove_utf8): Likewise.
359 (test_one_liner_fixit_replace_utf8): Likewise.
360 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
361 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
362 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
363 (test_one_liner_many_fixits_1_utf8): Likewise.
364 (test_one_liner_many_fixits_2_utf8): Likewise.
365 (test_one_liner_labels_utf8): Likewise.
366 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
367 (test_overlapped_fixit_printing_utf8): Likewise.
368 (test_overlapped_fixit_printing): Adapt for changes to
369 get_affected_columns, get_printed_columns and class corrections.
370 (test_overlapped_fixit_printing_2): Likewise.
371 (test_linenum_sep): New constant.
372 (test_left_margin): Likewise.
373 (test_offset_impl): Helper function for new test.
374 (test_layout_x_offset_display_utf8): New test.
375 (diagnostic_show_locus_c_tests): Call new tests.
376
377 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
378
379 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
380 TYPE_CANONICAL from the element type only if it is true. Remove a few
381 obsolete lines and adjust recursive call.
382 (fld_process_array_type): Adjust call to build_array_type_1.
383 (build_array_type): Likewise.
384 (build_nonshared_array_type): Likewise.
385
386 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
387
388 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
389 %s to %o in asm output.
390 (gather<mode>_insn_2offsets<exec>): Likewise.
391
392 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
393
394 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
395 on a-profile.
396
397 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
398
399 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
400 set<mode>_cc.
401 (unnamed define_insn_and_split): Delete.
402 (unnamed define_insn): Delete.
403 (unnamed define_insn): Delete.
404 (unnamed define_split): Delete.
405
406 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
407
408 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
409 avoid a warning.
410
411 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
412
413 PR middle-end/92410
414 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
415 dataflow luids once basic blocks have been reordered.
416 * haifa-sched.c (reemit_notes): Create df insn record for each
417 new note.
418 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
419 insn has an insn record before trying to use it.
420
421 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
422
423 * common/config/i386/i386-common.c
424 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
425 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
426 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
427 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
428 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
429 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
430 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
431 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
432 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
433 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
434 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
435 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
436 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
437 OPTION_MASK_ISA_AVX512BF16_UNSET,
438 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
439 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
440 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
441 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
442 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
443 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
444 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
445 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
446 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
447 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
448 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
449 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
450 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
451 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
452 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
453 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
454 OPTION_MASK_ISA_ENQCMD): Ditto.
455 * config/i386/i386-builtin.def
456 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
457 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
458 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
459 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
460 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
461 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
462 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
463 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
464 * config/i386/i386-c.c
465 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
466 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
467 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
468 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
469 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
470 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
471 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
472 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
473 OPTION_MASK_ISA_ENQCMD): Ditto.
474 * config/i386/i386-option.c: Ditto
475 * config/i386/i386.opt: Ditto..
476 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
477 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
478 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
479 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
480 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
481 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
482 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
483 TARGET_ISA_ENQCMD): Ditto.
484
485 2019-12-09 Sudakshina Das <sudi.das@arm.com>
486 Richard Sandiford <richard.sandiford@arm.com>
487
488 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
489 vect_model_simple_cost call on scalar_shift_arg.
490
491 2019-12-09 Jakub Jelinek <jakub@redhat.com>
492
493 PR tree-optimization/92834
494 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
495 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
496
497 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
498
499 PR tree-optimization/89007
500 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
501 target support available, generate code to distribute rshift over plus
502 and add a carry.
503
504 2019-12-09 Martin Liska <mliska@suse.cz>
505
506 PR ipa/92737
507 * cgraph.c (symbol_table_test::symbol_table_test): Fix
508 coding style.
509 * cgraph.h (symtab_node::symtab_node): New constructor.
510 (cgraph_node::cgraph_node): Likewise.
511 (varpool_node::varpool_node): Likewise.
512 (symbol_table::allocate_cgraph_symbol): Use newly
513 created constructor.
514 (symbol_table::allocate_cgraph_symbol): Remove.
515 * cgraphunit.c (symtab_terminator): Likewise.
516 * varpool.c (varpool_node::create_empty): Use newly
517 created constructor.
518
519 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
520
521 PR target/92686
522 * config/i386/sse.md
523 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
524 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
525 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
526 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
527 * config/i386/i386.c (ix86_print_operand): New operand substitution.
528 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
529 New function.
530 (ix86_expand_sse_cmp): Relax condition for integer mask from
531 512-bit vector to all 128/256/512-bit vector. Delete code gen
532 for avx512f compare patterns since we have generic pattern now.
533 (ix86_expand_sse_movcc): Adjust condition and codegen for
534 maskcmp.
535 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
536 when corresponding vector compare is available.
537
538 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
539
540 Revert:
541 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
542
543 * config/nios2/linux.h (LINK_EH_SPEC): Define.
544
545 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
546
547 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
548 * cgraph.h (cgrpah_node): Likewise.
549 (tp_first_run_node_cmp): Deeclare.
550 * cgraphunit.c (node_cmp): Rename to ...
551 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
552 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
553 (expand_all_functions): Collect tp_first_run and normal functions to
554 two vectors so the other functions remain sorted. Do not check for
555 flag_profile_reorder_functions it is function local flag.
556 * profile.c (compute_value_histograms): Update tp_first_run printing.
557
558 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
559
560 * opts.c (common_handle_option): Do not clear ipa_reference for
561 -fprofile-use.
562
563 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
564
565 * ipa-split.c (split_function): Preserve 0 tp_first_run.
566
567 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
568
569 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
570 sanity check.
571
572 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
573
574 PR tree-optimization/92860
575 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
576 Optimization flag.
577
578 2019-12-07 Marek Polacek <polacek@redhat.com>
579
580 PR c++/91678 - wrong error with decltype and location wrapper.
581 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
582
583 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
584
585 PR middle-end/90840
586 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
587 sure to pass a valid inner mode in calls to simplify_gen_subreg.
588
589 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
590 David Malcolm <dmalcolm@redhat.com>
591 Jakub Jelinek <jakub@redhat.com>
592
593 PR c/87488
594 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
595 instead of ST sequence to terminate OSC 8 strings.
596
597 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
598 Vladimir Makarov <vmakarov@redhat.com>
599
600 PR rtl-optimization/92176
601 * lra.c (simplify_subreg_regno): Don't permit unconditional
602 changing mode for LRA too.
603
604 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
605
606 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
607 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
608 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
609 Handle them.
610
611 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
612
613 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
614 in the asm output.
615
616 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
617
618 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
619 (VEC_1REG_ALT): Likewise.
620 (VEC_ALL1REG_MODE): New mode iterator.
621 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
622 (VEC_1REG_INT_ALT): Likewise.
623 (VEC_ALL1REG_INT_MODE): New mode interator.
624 (VEC_ALL1REG_INT_ALT): Likewise.
625 (VEC_REG_MODE): Remove V64QI and V64HI.
626 (VEC_ALLREG_MODE): New mode interator.
627 (vec_merge): Change to VEC_ALLREG_MODE.
628 (vec_merge_with_clobber): Likewise.
629 (vec_merge_with_vcc): Likewise.
630 (mov<mode>): Likewise.
631 (mov<mode>_unspec): Likewise.
632 (*mov<mode>): Change to VEC_ALL1REG_MODE.
633 (mov<mode>_exec): Likewise.
634 (*mov<mode>_exec_match): Likewise.
635 (mov<mode>_sgprbase): Likewise.
636 (reload_in<mode>): Change to VEC_ALLREG_MODE.
637 (reload_out<mode>): Likewise.
638 (scalar address splits): Likewise.
639 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
640 (vec_set<mode>): Change to VEC_ALLREG_MODE.
641 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
642 (vec_duplicate<mode><exec>): Likewise.
643 (vec_extract<mode><scalar_mode>): Likewise.
644 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
645 (gather_load<mode>): Likewise.
646 (gather<mode>_exec): Likewise.
647 (gather<mode>_expr<exec>): Likewise.
648 (gather<mode>_insn_1offset<exec>): Likewise.
649 (gather<mode>_insn_1offset_ds<exec>): Likewise.
650 (gather<mode>_insn_2offsets<exec>): Likewise.
651 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
652 (VEC_INT_MODE): Remove V64QI and V64HI.
653 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
654 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
655 VEC_ALL1REG_MODE.
656 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
657 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
658 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
659 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
660 (maskstore<mode>di): Likewise.
661 (mask_gather_load<mode>): Likewise.
662 (mov_from_lane63_<mode>): Likewise.
663 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
664 and V64HImode vectorization.
665 (gcn_related_vector_mode): New function.
666 (TARGET_VECTORIZE_RELATED_MODE): New define.
667
668 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
669 Kwok Cheung Yeung <kcy@codesourcery.com>
670
671 * omp-low.c (lower_omp_target): For optional arguments, deref once
672 more to obtain the type.
673
674 2019-12-06 Richard Biener <rguenther@suse.de>
675
676 * match.pd (nop_convert): Remove empty match. Use nop_convert?
677 everywhere.
678
679 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
680
681 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
682 for empty vectors. Avoid using ordered_remove and instead
683 shuffle the vector as we go.
684
685 2019-12-06 Richard Biener <rguenther@suse.de>
686
687 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
688 VIEW_CONVERT{0,1,2}.
689 (expr::opt_grp): Add and initialize.
690 (lower_opt_convert): Rename to ...
691 (lower_opt): ... and work on opt_grp, simply switching operations
692 from being optional to being present or not.
693 (has_opt_convert): Rename to ...
694 (has_opt): ... and adjust.
695 (parser::parse_operation): Return the optional opt_grp,
696 remove special-casing of conditional operations and more generally
697 parse [digit]'?'.
698 (parser::parse_expr): Stick on the parsed opt_grp and perform
699 rough verification.
700 (parser::parse_for): Remove now unnecessary code.
701 (main): Likewise.
702 * doc/match-and-simplify.texi: Mention ? now works on all
703 unary operations and also match predicates.
704
705 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
706
707 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
708 functions, not inline clones.
709
710 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
711
712 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
713
714 2019-12-06 Richard Biener <rguenther@suse.de>
715
716 * genmatch.c (c_expr::gen_transform): Emit newlines from line
717 number changes rather than after every semicolon.
718
719 2019-12-06 Richard Biener <rguenther@suse.de>
720
721 PR tree-optimization/92819
722 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
723 into the last lane. For two-element vectors try inserting
724 into the last lane when inserting into the first fails.
725
726 2019-12-06 Jakub Jelinek <jakub@redhat.com>
727
728 * common.opt (fprofile-partial-training): Terminate description with
729 full stop.
730
731 2019-12-05 Martin Sebor <msebor@redhat.com>
732
733 PR middle-end/92622
734 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
735 left uninitialized by get_addr_base_and_unit_offset on failure.
736
737 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
738
739 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
740 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
741 (detect_type_change): Likewise.
742 (detect_type_change_ssa): Likewise.
743 (ipa_analyze_virtual_call_uses): Update.
744
745 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
746
747 * config/nios2/linux.h (LINK_EH_SPEC): Define.
748
749 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
750
751 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
752
753 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
754
755 * cgraphclones.c (localize_profile): New function.
756 (cgraph_node::create_clone): Use it for partial profiles.
757 * common.opt (fprofile-partial-training): New flag.
758 * doc/invoke.texi (-fprofile-partial-training): Document.
759 * ipa-cp.c (update_profiling_info): For partial profiles do not
760 set function profile to zero.
761 * profile.c (compute_branch_probabilities): With partial profile
762 watch if edge count is zero and turn all probabilities to guessed.
763 (compute_branch_probabilities): For partial profiles do not apply
764 profile when entry count is zero.
765 * tree-profile.c (tree_profiling): Only do value_profile_transformations
766 when profile is read.
767
768 2019-12-05 Sudakshina Das <sudi.das@arm.com>
769
770 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
771 check from if condition.
772
773 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
774
775 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
776 and Fortran's optional arguments, unconditionally add the is-present
777 condition before the libgomp call.
778
779 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
780
781 PR middle-end/92768
782 * tree-core.h (OEP_BITWISE): New flag.
783 * fold-const.c (operand_compare::operand_equal_p): Handle it.
784 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
785
786 2019-12-05 Richard Biener <rguenther@suse.de>
787
788 PR middle-end/92818
789 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
790 heuristics on what don't care element to choose.
791 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
792
793 2019-12-05 Martin Liska <mliska@suse.cz>
794
795 PR gcov-profile/92817
796 * coverage.c (build_gcov_exit_decl): Remove superfluous
797 void_type_node.
798
799 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
800
801 * config/msp430/msp430.md (cbranch<mode>4): Use
802 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
803 dest operand of CMP instruction.
804 (cbranchpsi4_real): Likewise.
805 (cbranchqi4_real): Likewise.
806 (cbranchhi4_real): Likewise.
807 (cbranchpsi4_reversed): Likewise.
808 (cbranchqi4_reversed): Likewise.
809 (cbranchhi4_reversed): Likewise.
810
811 2019-12-05 Richard Biener <rguenther@suse.de>
812
813 PR tree-optimization/92803
814 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
815 invariant vector construction.
816
817 2019-12-05 Martin Liska <mliska@suse.cz>
818
819 PR gcov-profile/91971
820 * coverage.c (coverage_init): Mangle full path
821 only when -fprofile-dir is used.
822
823 2019-12-05 Jakub Jelinek <jakub@redhat.com>
824
825 PR target/92791
826 * config/i386/i386.md (movstrict<mode>): Move test for
827 TARGET_PARTIAL_REG_STALL and not optimizing for size from
828 expander's condition to the body - FAIL; in that case.
829
830 2019-12-03 Martin Sebor <msebor@redhat.com>
831
832 PR middle-end/91582
833 * builtins.c (gimple_call_alloc_size): New function.
834 (compute_objsize): Add argument. Call gimple_call_alloc_size.
835 Handle variable offsets and indices.
836 * builtins.h (gimple_call_alloc_size): Declare.
837 (compute_objsize): Add argument.
838 * gimple-ssa-warn-restrict.c: Remove assertions.
839 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
840
841 2019-12-04 Julian Brown <julian@codesourcery.com>
842
843 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
844
845 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
846
847 PR bootstrap/92661
848 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
849 rs6000.h.
850 (altivec_overloaded_builtins): Move to rs6000-call.c.
851 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
852 rs6000-c.c.
853 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
854 (altivec_overloaded_builtins): Moved from rs6000-c.c.
855 (rs6000_common_init_builtins): Do no define builtins that overload
856 builtins that have been disabled.
857
858 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
859
860 * config/arm/arm.c (arm_option_override_internal):
861 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
862
863 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
864
865 * config/aarch64/aarch64.c
866 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
867 (thunderx_tunings): Likewise.
868 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
869 (thunderx2t99_tunings): Likewise.
870 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
871 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
872
873 2019-12-04 Richard Biener <rguenther@suse.de>
874
875 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
876 empty CTOR and memset partial-def registering. Take advantage
877 of fancy offset analysis in memset handling.
878
879 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
880
881 * fold-const.c (native_encode_vector_part): Handle
882 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
883 (native_decode_vector_tree): Delete, moving the bulk of the code to...
884 (native_interpret_vector_part): ...this new function. Use a pointer
885 and length instead of a vec<> and start index.
886 (native_interpret_vector): Use native_interpret_vector_part.
887 (fold_view_convert_vector_encoding): Likewise.
888
889 2019-12-04 Richard Biener <rguenther@suse.de>
890
891 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
892 non-constant defs in the most trivial way.
893 (vn_reference_lookup_3): Also push down SSA partial defs.
894
895 2019-12-04 Martin Liska <mliska@suse.cz>
896
897 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
898 Initialize count of newly created BB.
899
900 2019-12-04 Jakub Jelinek <jakub@redhat.com>
901
902 PR tree-optimization/92734
903 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
904 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
905
906 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
907
908 PR target/92760
909 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
910 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
911
912 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
913
914 * ipa-fnsummary.c: Include tree-into-ssa.h.
915 (compute_fn_summary): Call update_ssa.
916
917 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
918
919 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
920 is set only for symbol in comdat group.
921 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
922
923 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
924
925 * cgraph.c: Include tree-into-ssa.h
926 (cgraph_node::get_body): Call update_ssa.
927 * cgraphunit.c (cgraph_node::expand): Likewise.
928 * lto-streamer-in.c (input_function): Do not call update_ssa.
929
930 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
931
932 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
933 an array element size if array_element_size is already an invariant.
934 Similarly don't gimplify and install a field offset if
935 component_ref_field_offset is already an invariant.
936
937 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
938
939 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
940 with POLY_INT_CST size is made to a fixed-size object, force the
941 object to live in memory.
942
943 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
944
945 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
946 for the data mode.
947
948 2019-12-03 Richard Biener <rguenther@suse.de>
949
950 PR tree-optimization/92758
951 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
952 operation on uniform vectors.
953
954 2019-12-03 Richard Biener <rguenther@suse.de>
955
956 PR tree-optimization/92645
957 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
958 from or to a properly aligned register variable.
959
960 2019-12-03 Matthias Klose <doko@ubuntu.com>
961
962 * Makefile.in (SOURCES): Add doc/lto-dump.1.
963 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
964 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
965
966 2019-12-03 Richard Biener <rguenther@suse.de>
967
968 PR tree-optimization/92751
969 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
970 when a clobber ends up in the partial-def vector.
971 (vn_reference_lookup_3): Let clobbers be handled by the
972 assignment from CTOR handling.
973
974 2019-12-03 Jakub Jelinek <jakub@redhat.com>
975
976 PR tree-optimization/92734
977 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
978 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
979 inner subtraction.
980
981 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
982 Jakub Jelinek <jakub@redhat.com>
983
984 PR target/92744
985 * config/i386/i386.md (peephole2 for *swap<mode>): Use
986 general_reg_operand predicates instead of register_operand.
987
988 2019-12-03 Richard Biener <rguenther@suse.de>
989
990 PR tree-optimization/92645
991 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
992 a full def of a vector via a BIT_INSERT_EXPR.
993
994 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
995
996 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
997 static.
998 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
999 decl.
1000
1001 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1002
1003 PR middle-end/92741
1004 * fold-const.c (fold_convertible_p): Check vector types more
1005 thoroughly.
1006
1007 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1008
1009 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1010 (aarch64_expand_mov_immediate): Use it when attempting to measure
1011 the length of an SVE vector.
1012 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1013 SVE is enabled.
1014
1015 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1016
1017 * config/aarch64/aarch64-sve-builtins.h
1018 (gimple_folder::force_vector): Declare.
1019 * config/aarch64/aarch64-sve-builtins.cc
1020 (gimple_folder::force_vector): New function.
1021 * config/aarch64/aarch64-sve-builtins-base.cc
1022 (svcmp_impl::fold): Likewise.
1023 (svdup_impl::fold): Handle svdup_z too.
1024
1025 2019-12-02 Martin Liska <mliska@suse.cz>
1026
1027 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1028 function.
1029 (debug_tree_odr_name): New.
1030 * ipa-utils.h (get_odr_name_for_type): New.
1031
1032 2019-12-02 Richard Biener <rguenther@suse.de>
1033
1034 PR tree-optimization/92742
1035 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1036 touch the def-type but verify it is consistent with the
1037 original stmts.
1038
1039 2019-12-02 Jakub Jelinek <jakub@redhat.com>
1040
1041 PR tree-optimization/92712
1042 * match.pd ((A * B) +- A -> (B +- 1) * A,
1043 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1044 even when we don't know anything about range of A, but do know
1045 something about range of B and the simplification won't introduce
1046 new UB.
1047
1048 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
1049
1050 PR ipa/92133
1051 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1052 (ipa-cp-min-recursive-probability): Likewise.
1053 * params.opt (ipa-cp-max-recursive-depth): New.
1054 (ipa-cp-min-recursive-probability): Likewise.
1055 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1056 val_p and unlimited.
1057 (self_recursively_generated_p): New function.
1058 (get_val_across_arith_op): Likewise.
1059 (propagate_vals_across_arith_jfunc): Add constant propagation for
1060 self-recursive function.
1061 (incorporate_penalties): Do not penalize pure self-recursive function.
1062 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1063 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1064 (get_info_about_necessary_edges): Relax hotness check for edge to
1065 self-recursive function.
1066 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1067
1068 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
1069
1070 PR target/92499
1071
1072 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1073 objects of flexible types to be small if they have internal linkage
1074 or are declared extern.
1075 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1076 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
1077 instead of the size of the object initializer.
1078 * tree.c (flexible_array_type_p): Move from C front end, and
1079 generalize to handle fields in non-C structures.
1080 * tree.h (flexible_array_type_p): Declare.
1081
1082 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1083
1084 * profile-count.h (profile_count::operator<): Use IPA value for
1085 comparsion.
1086 (profile_count::operator>): Likewise.
1087 (profile_count::operator<=): Likewise.
1088 (profile_count::operator>=): Likewise.
1089 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1090
1091 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1092
1093 * ipa-inline.c (compute_max_insns): Return int64_t.
1094 (inline_small_functions): Simplify.
1095
1096 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1097
1098 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1099 scaling happen.
1100
1101 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1102
1103 * cgraph.h (symtab_node): Add symver flag.
1104 * cgraphunit.c (process_symver_attribute): New.
1105 (process_common_attributes): Use process_symver_attribute.
1106 * lto-cgraph.c (lto_output_node): Stream symver.
1107 (lto_output_varpool_node): Stream symver.
1108 (input_overwrite_node): Stream symver.
1109 (input_varpool_node): Stream symver.
1110 * output.h (do_assemble_symver): Decalre.
1111 * symtab.c (symtab_node::dump_base): Dump symver.
1112 (symtab_node::verify_base): Verify symver.
1113 (symtab_node::resolve_alias): Handle symver.
1114 * varasm.c (do_assemble_symver): New function.
1115 * varpool.c (varpool_node::assemble_aliases): Use it.
1116 * doc/extend.texi: (symver attribute): Document.
1117 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1118
1119 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1120
1121 * target.h (type_context_kind): New enum.
1122 (verify_type_context): Declare.
1123 * target.def (verify_type_context): New target hook.
1124 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1125 * doc/tm.texi: Regenerate.
1126 * tree.c (verify_type_context): New function.
1127 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1128 Declare.
1129 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1130 New function.
1131 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1132 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1133
1134 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1135
1136 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1137 * cgraph.h (cgraph_node): Add unit_id and
1138 merged_extern_inline.
1139 (symbol_table): Add max_unit.
1140 (symbol_table::symbol_table): Initialize it.
1141 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1142 merged_comdat, merged_extern_inline.
1143 (cgraph_node::create_clone): Likewise.
1144 (cgraph_node::create_version_clone): Likewise.
1145 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1146 calls.
1147 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1148 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1149 * ipa-inline.c (inline_small_functions): Likewise.
1150 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1151 copy merged_comdat and merged_extern_inline.
1152 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1153 merged_extern_inline and unit_id.
1154 (input_overwrite_node): Stream in these.
1155 (input_cgraph_1): Set unit_base.
1156 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1157 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1158
1159 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1160
1161 * gcc.c (process_command): Only warn about an ineffective `-x'
1162 option if any input files have actually been supplied.
1163
1164 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1165
1166 * doc/install.texi (Options specification): Remove the list of
1167 target library subdirectories supporting
1168 `--enable-version-specific-runtime-libs'. Document defaults for
1169 the option.
1170
1171 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1172
1173 PR rtl-optimization/92283
1174 * lra.c (lra): Update reg notes after inheritance sub-pass and
1175 before constraint sub-pass.
1176
1177 2019-11-29 Richard Biener <rguenther@suse.de>
1178
1179 PR tree-optimization/91003
1180 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1181 operand number, avoid handling the non-condition operands of
1182 COND_EXPRs as comparisons.
1183 (vect_get_constant_vectors): Pass down the operand number.
1184 (vect_get_slp_defs): Likewise.
1185
1186 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1187
1188 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1189 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1190 VEC_COND_EXPR can trap.
1191
1192 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1193
1194 PR tree-optimization/92677
1195 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1196 to zero when dissolving a group of strided accesses.
1197
1198 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1199
1200 PR tree-optimization/92596
1201 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1202 operations.
1203 (vectorizable_operation): Likewise, instead of relying on
1204 vect_get_mask_type_for_stmt to do this.
1205 (vect_get_vector_types_for_stmt): Always return a vector type
1206 immediately, rather than deferring the choice for boolean results.
1207 Use a vector mask type instead of a normal vector if
1208 vect_use_mask_type_p.
1209 (vect_get_mask_type_for_stmt): Delete.
1210 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1211 mask_producers argument and special boolean_type_node handling.
1212 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1213 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1214 (vect_determine_vectorization_factor): Update call accordingly.
1215 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1216 boolean_type_node handling.
1217 (vect_slp_analyze_node_operations_1): Likewise.
1218
1219 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1220
1221 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1222 (vect_use_mask_type_p): New function.
1223 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1224 mask precision to the pattern statement.
1225 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1226 and use it to initialize the new stmt's mask precision.
1227 (search_type_for_mask_1): Delete.
1228 (search_type_for_mask): Replace with...
1229 (integer_type_for_mask): ...this new function. Use the information
1230 cached in the stmt_vec_info.
1231 (vect_recog_bool_pattern): Update accordingly.
1232 (build_mask_conversion): Pass the scalar type associated with the
1233 mask type to append_pattern_def_seq.
1234 (vect_recog_mask_conversion_pattern): Likewise. Call
1235 integer_type_for_mask instead of search_type_for_mask.
1236 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1237 of search_type_for_mask.
1238 (possible_vector_mask_operation_p): New function.
1239 (vect_determine_mask_precision): Likewise.
1240 (vect_determine_stmt_precisions): Call it.
1241
1242 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1243
1244 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1245 the slp_tree parameter with a group size parameter.
1246 (vect_get_mask_type_for_stmt): Likewise.
1247 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1248 (vect_get_mask_type_for_stmt): Likewise.
1249 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1250 call accordingly.
1251
1252 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1253
1254 * tree-vect-stmts.c (vectorizable_operation): Punt early
1255 on codes that are handled elsewhere.
1256
1257 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1258
1259 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1260 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1261 operand to a boolean comparison is a natural vector mask,
1262 handle both operands like normal integers instead.
1263
1264 2019-11-29 Richard Biener <rguenther@suse.de>
1265
1266 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1267 out early for too large objects.
1268
1269 2019-11-29 Martin Jambor <mjambor@suse.cz>
1270
1271 PR ipa/92476
1272 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1273 the summary only if the summary exists.
1274 (find_more_scalar_values_for_callers_subset): Check node_dead in
1275 the summary only if the summary exists.
1276 (ipcp_store_bits_results): Ignore nodes without lattices.
1277 (ipcp_store_vr_results): Likewise.
1278 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1279 header files required by them.
1280 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1281
1282 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1283
1284 PR tree-optimization/92710
1285 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1286 vector mask arguments.
1287
1288 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1289
1290 * profile-count.c (profile_count::to_cgraph_frequency,
1291 profile_count::to_sreal_scale): Check for compaibility of counts.
1292 * profile-count.h (compatible_p): Make public; add checking for
1293 global0 versus global types.
1294 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1295
1296 2019-11-29 Richard Biener <rguenther@suse.de>
1297
1298 PR tree-optimization/92715
1299 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1300 out for uniform vectors and source vectors with less elements
1301 than the destination.
1302
1303 2019-11-29 Martin Liska <mliska@suse.cz>
1304
1305 PR lto/91574
1306 * ipa-devirt.c (types_same_for_odr): Check for existence
1307 of TYPE_NAMEs first.
1308
1309 2019-11-29 Richard Biener <rguenther@suse.de>
1310
1311 PR tree-optimization/92704
1312 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1313 in loops performing only loads.
1314
1315 2019-11-29 Julian Brown <julian@codesourcery.com>
1316
1317 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1318 BT_DFLOAT128_PTR) Remove.
1319 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1320 TI_DFLOAT128_PTR_TYPE): Remove.
1321 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1322 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1323 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1324 dfloat128_ptr_type_node): Remove macros.
1325
1326 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1327
1328 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1329 formatting.
1330 (*movdi_internal64): Ditto.
1331
1332 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1333
1334 PR target/92602
1335 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1336 indexed_or_indirect_operand to be memory_operand.
1337 (bswap<mode>2_store for HSI): Ditto.
1338 (bswapdi2_load): Ditto.
1339 (bswapdi2_store): Ditto.
1340
1341 2019-11-28 Martin Liska <mliska@suse.cz>
1342
1343 PR debug/46558
1344 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1345 headers for translation.
1346
1347 2019-11-28 Martin Liska <mliska@suse.cz>
1348
1349 PR lto/92609
1350 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1351 consistently.
1352
1353 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1354
1355 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1356 checks.
1357
1358 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1359
1360 * profile-count.c (profile_count::combine_with_ipa_count): Return
1361 uninitialized count if called on ininitialized count.
1362
1363 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1364
1365 * ipa-inline-transform.c (inline_transform): Scale profile before
1366 redirecting.
1367
1368 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1369
1370 * profile-count.h (profile_count::max): Work on profiles of different
1371 type.
1372 (profile_count::apply_scale): Be sure that ret is not local or global0
1373 type if num is global.
1374
1375 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1376
1377 * profile-count.h (profile_count::max): Work on profiles of different
1378 type.
1379 (profile_count::apply_scale): Be sure that ret is not local or global0
1380 type if num is global.
1381
1382 2019-11-28 Martin Jambor <mjambor@suse.cz>
1383
1384 PR ipa/92697
1385 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1386 ifunc_resolvers.
1387 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1388 Removed trailig whitespace.
1389
1390 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1391
1392 * profile-count.h (profile_count::combine_with_ipa_count_within):
1393 Declare.
1394 * profile-count.c (profile_count::combine_with_ipa_count_within):
1395 New.
1396 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1397 it.
1398
1399 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1400
1401 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1402 of counters are done same way.
1403
1404 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1405
1406 * ipa-cp.c (update_profiling_info): Fix scaling.
1407
1408 2019-11-28 Richard Biener <rguenther@suse.de>
1409
1410 PR tree-optimization/92645
1411 * tree-inline.c (remap_gimple_stmt): When the return value
1412 is not wanted, elide GIMPLE_RETURN.
1413
1414 2019-11-28 Richard Biener <rguenther@suse.de>
1415
1416 PR tree-optimization/92645
1417 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1418 conversions inside a mode class. Remove restriction on
1419 preserving the element size.
1420 (simplify_vector_constructor): Deal with the above and for
1421 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1422 and VEC_PACK_TRUNC_EXPR.
1423
1424 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1425
1426 Must use push insn to pass varargs arguments of DFmode because
1427 otherwise the middle-end generates wrong code.
1428
1429 PR target/92055
1430 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1431
1432 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1433
1434 PR tree-optimization/92691
1435 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1436 in function comment.
1437 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1438 calls, return !handle_printf_call rather than always returning true.
1439 (check_and_optimize_stmt): Describe return value meaning in function
1440 comment. Formatting fix.
1441
1442 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1443
1444 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1445 combination of globa0 and global counters..
1446
1447 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1448
1449 PR target/92566
1450 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1451 by VECTOR_UNIT_NONE_P instead.
1452
1453 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1454
1455 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1456 Refine VF to VF_AVX512VL.
1457
1458 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1459
1460 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1461 (movdi_internal64): Reformat.
1462
1463 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1464
1465 PR bootstrap/92661
1466 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1467 builtin if we don't have an actual type.
1468 (builtin_function_type): If the builtin function uses a DFP type
1469 and decimal float has been disabled, then return NULL_TREE.
1470
1471 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR rtl-optimization/92510
1474 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1475 of comparison into a comparison with different mode if both imode and
1476 omode are scalar integral modes.
1477
1478 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1479
1480 PR rtl-optimization/90007
1481 * recog.c (constrain_operands): Permit hard registers too for
1482 memory when LRA is used.
1483
1484 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1485
1486 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1487 between Coldfire and regular m68k.
1488 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1489
1490 2019-11-27 Richard Biener <rguenther@suse.de>
1491
1492 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1493 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1494 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1495 * optabs-tree.c (supportable_convert_operation): Do not call
1496 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1497 * optabs-tree.h (supportable_convert_operation): Adjust.
1498 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1499 * doc/tm.texi: Regenerate.
1500 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1501 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1502 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1503 unused decl parameter and adjust.
1504 (vect_create_vectorized_promotion_stmts): Likewise.
1505 (vectorizable_conversion): Adjust.
1506
1507 2019-11-27 Richard Biener <rguenther@suse.de>
1508
1509 PR tree-optimization/92690
1510 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1511 converting elements not originally converted.
1512
1513 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1514
1515 PR middle-end/92463
1516 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1517 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1518 mpfr_rnd_t instead of mp_rnd_t.
1519 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1520 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1521 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1522 Use mpfr_exp_t instead of mp_exp_t.
1523 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1524 MPFR_RNDx instead of GMP_RNDx.
1525 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1526 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1527 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1528 of mp_rnd_t and remove MPFR_RNDx poisoning.
1529 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1530
1531 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1532
1533 PR tree-optimization/91790
1534 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1535 DR for vect_setup_realignment when first_stmt_info is different
1536 from first_stmt_info_for_drptr.
1537
1538 2019-11-27 Richard Biener <rguenther@suse.de>
1539
1540 PR tree-optimization/92645
1541 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1542 CTORs with just a subset of the original vectors.
1543
1544 2019-11-27 Richard Biener <rguenther@suse.de>
1545
1546 PR middle-end/92674
1547 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1548 edges and instead record blocks in bitmap.
1549 (gimple_expand_calls_inline): Adjust.
1550 (fold_marked_statements): Delay EH cleanup until all folding is
1551 done.
1552 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1553 inlining finished.
1554
1555 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1556
1557 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1558 LRA is enabled.
1559 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1560 disabled.
1561
1562 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1563
1564 PR debug/92664
1565 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1566
1567 2019-11-26 Martin Sebor <msebor@redhat.com>
1568
1569 PR tree-optimization/92683
1570 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1571 inadvertently removed in a previous change. Rename local variable
1572 for clarity.
1573
1574 2019-11-26 Richard Biener <rguenther@suse.de>
1575
1576 PR middle-end/92669
1577 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1578 NULL pre_order.
1579
1580 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1581
1582 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1583
1584 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR tree-optimization/92644
1587 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1588 next to INTEGER_CST checks.
1589
1590 2019-11-26 Richard Biener <rguenther@suse.de>
1591
1592 PR tree-optimization/92645
1593 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1594 do not build the operation from scalars if the operand is.
1595
1596 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1597
1598 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1599 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1600 definitions.
1601
1602 2019-11-25 Martin Liska <mliska@suse.cz>
1603
1604 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1605 up used dump message.
1606
1607 2019-11-25 Martin Liska <mliska@suse.cz>
1608
1609 PR bootstrap/92653
1610 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1611 too strict checking assert.
1612
1613 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1614
1615 PR c/91985
1616 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1617 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1618 error_mark_node if corresponding global tree node is NULL.
1619 * tree.c (build_common_tree_nodes): Do not initialize
1620 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1621 decimal floating-point not supported.
1622
1623 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1624
1625 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1626 types.
1627
1628 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1629
1630 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1631 Replace code for non-CONST_INT constants with gcc_unreachable.
1632 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1633 compare and test.
1634 (CMPMODE): New mode_iterator.
1635 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1636 cbranch<mode>4.
1637 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1638 cstore<mode>4.
1639 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1640 operand.
1641 (bit test insns patterns): Use nonimmediate_operand, not
1642 register_operand, for source operands that allow memory in
1643 their constraints.
1644 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1645 Use register_operand, not nonimmediate_operand, for the
1646 destinations.
1647 (DBCC): New mode_iterator.
1648 (dbcc peepholes): Use it to reduce duplication.
1649 (trap): Use const_true_rtx, not const1_rtx.
1650 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1651 from m68k_subword_comparison_operand and changed to handle
1652 SImode.
1653
1654 PR target/91851
1655 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1656 declaration.
1657 (m68k_init_cc): New declaration.
1658 (m68k_output_compare_di, m68k_output_compare_si)
1659 (m68k_output_compare_hi, m68k_output_compare_qi)
1660 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1661 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1662 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1663 m68k_output_branch_float, m68k_output_branch_float_rev):
1664 Likewise.
1665 (valid_dbcc_comparison_p_2, flags_in_68881)
1666 (output_btst): Remove declaration.
1667 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1668 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1669 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1670 (flags_compare_op0, flags_compare_op1, flags_operand1,
1671 flags_operand2, flags_valid): New static variables.
1672 (m68k_find_flags_value, m68k_init_cc): New functions.
1673 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1674 remember_compare_flags): New static functions.
1675 (output_dbcc_and_branch): New argument CODE. Use it, and add
1676 PLUS and MINUS to the possible codes. All callers changed.
1677 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1678 and INSN arguments, add CODE arg. Return the comparison code
1679 to use. All callers changed. Use CODE instead of
1680 next_insn_tests_no_inequality, and replace cc_status management
1681 with changing the return code.
1682 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1683 RTX_COMPARE or RTX_COMM_COMPARE.
1684 (output_move_simode, output_move_qimode): Call
1685 handle_flags_for_move.
1686 (notice_update_cc): Delete function.
1687 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1688 m68k_output_compare_hi, m68k_output_compare_qi,
1689 m68k_output_compare_fp, m68k_output_branch_integer,
1690 m68k_output_branch_integer_rev, m68k_output_scc,
1691 m68k_output_branch_float, m68k_output_branch_float_rev,
1692 m68k_output_scc_float): New functions.
1693 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1694 once at the start, and set flags_valid and flags_operand1 if the
1695 flags are usable.
1696 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1697 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1698 definitions.
1699 (CC_STATUS_INIT): Define.
1700 * config/m68k/m68k.md (flags_valid): New define_attr.
1701 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1702 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1703 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1704 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1705 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1706 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1707 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1708 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1709 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1710 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1711 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1712 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1713 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1714 ctrapqi4, conditional_trap): Delete patterns.
1715 (cbranchdi4_insn): New pattern.
1716 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1717 test high part only. When testing EQ or NE, generate beq0_di
1718 and bne0_di patterns directly.
1719 (cstoredi4): When testing LT or GE, test high part only.
1720 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1721 patterns.
1722 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1723 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1724 cmp2_cf_predicate): New define_mode_attrs.
1725 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1726 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1727 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1728 New patterns.
1729 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1730 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1731 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1732 New patterns.
1733 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1734 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1735 Likewise.
1736 (BTST): New define_mode_iterator.
1737 (btst_predicate, btst_constraint, btst_range): New
1738 define_mode_attrs.
1739 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1740 patterns.
1741 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1742 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1743 patterns): Set attr "flags_valid".
1744 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1745 management. Set attr "flags_valid".
1746 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1747 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1748 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1749 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1750 manual CC_STATUS management.
1751 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1752 unnamed strict_lowpart subhi and subqi patterns): Set attr
1753 "flags_valid".
1754 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1755 Remove code to operate on address regs and assert the case
1756 does not occur.
1757 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1758 manual CC_STATUS_INIT.
1759 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1760 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1761 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1762 one_cmplqi2, unnamed strict_lowpart patterns
1763 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1764 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1765 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1766 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1767 CC_STATUS_INIT.
1768 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1769 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1770 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1771 unnamed strict_low_part patterns for HI and
1772 QI versions): Set attr "flags_valid".
1773 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1774 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1775 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1776 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1777 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1778 (various unnamed peepholes): Adjust compare/branch sequences
1779 for new cbranch patterns.
1780 (dbcc peepholes): Likewise, and output the comparison here
1781 as well.
1782 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1783 (fp_src_operand): Allow constant zero.
1784 (address_reg_operand): New predicate.
1785
1786 * rtl.h (inequality_comparisons_p): Remove declaration.
1787 * recog.h (next_insn_tests_no_inequality): Likewise.
1788 * rtlanal.c (inequality_comparisons_p): Delete function.
1789 * recog.c (next_insn_tests_no_inequality): Likewise.
1790
1791 2019-11-25 Richard Biener <rguenther@suse.de>
1792
1793 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1794 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1795 properly re-building the visited hash-map for each lane.
1796
1797 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1798
1799 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1800 gcn_md_reorg): Remove unused variables.
1801 (gcn_emutls_var_init): Add missing (but unreachable) return
1802 to silence warning.
1803 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1804 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1805 an uninitialized variable.
1806
1807 2019-11-25 Martin Jambor <mjambor@suse.cz>
1808
1809 PR ipa/92109
1810 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1811 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1812 (cgraph_materialize_clone): Move removel from clone tree to the
1813 the new method and use it instead.
1814 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1815 bodies of clones, also remove it from the clone tree.
1816
1817 2019-11-25 Martin Jambor <mjambor@suse.cz>
1818
1819 PR ipa/91956
1820 * ipa-sra.c (process_isra_node_results): Put the new node to the
1821 same comdat group as the original node.
1822
1823 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1824
1825 Build double32 / long-double32 multilibs if needed.
1826
1827 PR target/92055
1828 * config/avr/t-avr:
1829 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1830 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1831 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1832 tm_defines and pass to genmultilib.awk.
1833 * config/avr/genmultilib.awk: Use these variables to add double32
1834 and / or long-double32 multilib(s) as needed.
1835 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1836
1837 2019-11-25 Richard Biener <rguenther@suse.de>
1838
1839 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1840 loop body, defaulted to NULL.
1841 (single_likely_exit): Add exit vector argument
1842 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1843 (number_of_iterations_exit): Likewise.
1844 (number_of_iterations_exit_assumptions): Likewise.
1845 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1846 if not NULL.
1847 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1848 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1849 Compute exit vector around call to single_likely_exit.
1850 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1851 loop body to loop_only_exit_p.
1852 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1853 caller.
1854 (number_of_iterations_exit_assumptions): Get loop body from caller
1855 if not NULL.
1856 (number_of_iterations_exit): Pass through new loop body arg.
1857 (infer_loop_bounds_from_undefined): Get loop body from caller.
1858 (estimate_numbers_of_iterations): Compute loop body once.
1859
1860 2019-11-25 Richard Biener <rguenther@suse.de>
1861
1862 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1863 auto_bb_flag instead of an sbitmap for visited handling.
1864
1865 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1866
1867 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1868 iterator.
1869 (vector_fp_comparison_complex): Likewise.
1870 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1871 define_and_split.
1872 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1873 Likewise.
1874 (vector_lt<mode> for VEC_F): Refactor with
1875 vector_fp_comparison_simple.
1876 (vector_le<mode> for VEC_F): Likewise.
1877 (vector_unge<mode> for VEC_F): Likewise.
1878 (vector_unle<mode> for VEC_F): Likewise.
1879 (vector_ne<mode> for VEC_F): Likewise.
1880 (vector_ungt<mode> for VEC_F): Likewise.
1881 (vector_unlt<mode> for VEC_F): Likewise.
1882 (vector_ltgt<mode> for VEC_F): Refactor with
1883 vector_fp_comparison_complex.
1884 (vector_ordered<mode> for VEC_F): Likewise.
1885 (vector_uneq<mode> for VEC_F): Likewise.
1886 (vector_unordered<mode> for VEC_F): Likewise.
1887
1888 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1889
1890 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1891 COMPARE, representing an overflow detection.
1892
1893 * combine.c (combine_instructions): Record costs for jumps.
1894
1895 * combine.c (can_combine_p): Allow autoinc in jumps.
1896
1897 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1898
1899 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1900 * doc/invoke.texi (max-inline-insns-single-O2,
1901 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1902 early-inlining-insns-O2): Remove documentation.
1903 * ipa-fnsummary.c (analyze_function_body,
1904 compute_fn_summary): Use opt_for_fn when accessing parameters.
1905 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1906 inline_insns_auto, can_inline_edge_by_limits_p,
1907 want_early_inline_function_p, big_speedup_p,
1908 want_inline_small_function_p, want_inline_self_recursive_call_p,
1909 recursive_inlining, compute_max_insns, inline_small_functions):
1910 Likewise.
1911 * opts.c (default_options): Add -O3 defaults for
1912 OPT__param_early_inlining_insns_,
1913 OPT__param_inline_heuristics_hint_percent_,
1914 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1915 * params.opt (-param=early-inlining-insns-O2=,
1916 -param=inline-heuristics-hint-percent-O2=,
1917 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1918 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1919 -param=inline-min-speedup=, -param=inline-unit-growth=,
1920 -param=large-function-growth=, -param=large-stack-frame=,
1921 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1922 -param=max-inline-insns-recursive=,
1923 -param=max-inline-insns-recursive-auto=,
1924 -param=max-inline-insns-single=,
1925 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1926 -param=max-inline-recursive-depth=,
1927 -param=max-inline-recursive-depth-auto=,
1928 -param=min-inline-recursive-probability=,
1929 -param=partial-inlining-entry-probability=,
1930 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1931 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1932 Optimization.
1933
1934 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1935
1936 * ipa-fnsummary.c: Fix comment typos.
1937 * ipa-ref.h: Likewise.
1938 * ipa-predicate.h: Likewise.
1939 * ipa-split.c: Likewise.
1940 * ipa-inline-analysis.c: Likewise.
1941 * ipa-predicate.c: Likewise.
1942 * ipa-devirt.c: Likewise.
1943 * ipa-icf.h: Likewise.
1944 * profile-count.c: Likewise.
1945 * ipa-icf.c: Likewise.
1946 (sem_function::equals_wpa): Fix typos in dump messages.
1947 * ipa-icf-gimple.h: Fix comment typos.
1948 * ipa-inline-transform.c: Likewise.
1949 * ipa-polymorphic-call.c: Likewise.
1950 * ipa-fnsummary.h: Likewise.
1951 * ipa-inline.c: Likewise.
1952 (dump_inline_stats): Fix typo in debug dump message.
1953 * profile-count.h: Fix comment typos.
1954
1955 PR target/92615
1956 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1957 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1958 register_operand, force x into register before storing it into dest.
1959 Formatting fix.
1960
1961 PR middle-end/83859
1962 * doc/extend.texi (attribute access): Fix a typo.
1963
1964 PR rtl-optimization/92610
1965 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1966 cse_cfg_altered is set, even when tem is 0.
1967 (rest_of_handle_cse_after_global_opts): Likewise.
1968
1969 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1970
1971 PR c++/92458
1972 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1973 tree_hash): Move to ...
1974 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1975 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1976 types.
1977 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1978
1979 PR tree-optimization/92618
1980 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1981 containing the auto_vec and a tree.
1982 (undistribute_bitref_for_vector): Handle the case when element type
1983 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1984 fixes.
1985
1986 2019-11-22 Martin Sebor <msebor@redhat.com>
1987
1988 PR middle-end/83859
1989 * attribs.h (struct attr_access): New.
1990 * attribs.c (decl_attributes): Add an informational note.
1991 * builtins.c (check_access): Make extern. Consistently set no-warning
1992 after issuing a warning. Handle calls through function pointers. Set
1993 no-warning.
1994 * builtins.h (check_access): Declare.
1995 * calls.c (rdwr_access_hash): New type.
1996 (rdwr_map): Same.
1997 (init_attr_rdwr_indices): New function.
1998 (maybe_warn_rdwr_sizes): Same.
1999 (initialize_argument_information): Call init_attr_rdwr_indices.
2000 Call maybe_warn_rdwr_sizes.
2001 (get_size_range): Avoid null argument.
2002 * doc/extend.texi (attribute access): Document new attribute.
2003
2004 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2005
2006 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2007 (ACC_LDS_SIZE): Define.
2008 (OTHER_LDS_SIZE): Define.
2009 (LDS_SIZE): Redefine using above.
2010 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2011
2012 2019-11-22 Martin Sebor <msebor@redhat.com>
2013
2014 PR middle-end/88226
2015 * builtins.c (check_nul_terminated_array): New function.
2016 (fold_builtin_0): Remove declaration.
2017 (fold_builtin_1): Same.
2018 (fold_builtin_2): Same.
2019 (fold_builtin_3): Same.
2020 (fold_builtin_strpbrk): Add argument.
2021 (fold_builtin_strspn): Same.
2022 (fold_builtin_strcspn): Same.
2023 (expand_builtin_strcat): Call it. Remove unused argument.
2024 (expand_builtin_stpncpy): Same.
2025 (expand_builtin_strncat): Same.
2026 (expand_builtin_strncpy): Same. Adjust indentation.
2027 (expand_builtin_strcmp): Same.
2028 (expand_builtin_strncmp): Same.
2029 (expand_builtin_fork_or_exec): Same.
2030 (expand_builtin): Handle more built-ins.
2031 (fold_builtin_2): Add argument.
2032 (fold_builtin_n): Make static. Add argument.
2033 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2034 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2035 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
2036 (fold_call_stmt): Pass new argument to fold_builtin_n.
2037 * builtins.h: Correct a comment.
2038 * gimple-fold.c (gimple_fold_builtin_strchr): Call
2039 check_nul_terminated_array.
2040 * tree-ssa-strlen.c (handle_builtin_strlen): Call
2041 check_nul_terminated_array.
2042 (handle_builtin_strchr): Same.
2043 (handle_builtin_string_cmp): Same.
2044
2045 2019-11-22 Martin Sebor <msebor@redhat.com>
2046
2047 PR tree-optimization/92501
2048 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2049 handle unterminated arrays. Rename local variables for clarity.
2050
2051 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2052
2053 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2054 granulated_sgprs according to architecture.
2055
2056 2019-11-22 Jan Hubicka <jh@suse.cz>
2057
2058 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2059 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2060 (memory_block_pool::reduce_free_list): ... this one.
2061 (memory_block_pool::trim): New static function.
2062 * memory-block.h (memory_block_pool::freelist_size): New constant
2063 (memory_block_pool::clear_free_list): Rename to ...
2064 (memory_block_pool::reduce_free_list): ... this one.
2065 (memory_block_pool::trim): Declare.
2066
2067 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
2068
2069 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2070 vect_cost_for_stmt.
2071 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2072 here rather than...
2073 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2074
2075 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
2076
2077 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2078 (bic_cmp0_noout): New pattern.
2079 (bic_cmp0): Likewise.
2080 (neg_scc_insn): Remove pattern.
2081 (not_scc_insn): Likewise.
2082
2083 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
2084
2085 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2086
2087 2019-11-21 Joseph Myers <joseph@codesourcery.com>
2088
2089 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2090 pedwarn instead of warning_at for fallthrough not preceding a case
2091 or default label.
2092
2093 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2094
2095 PR tree-optimization/92608
2096 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2097 of dyn_cast.
2098
2099 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2100
2101 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2102 New predicate.
2103 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2104 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2105 special for FP comparisons that need a cror instruction eventually.
2106 (rs6000_emit_fp_cror): New function.
2107 (rs6000_emit_sCOND): Expand all floating point comparisons to one
2108 instruction, for normal FP modes, with HONOR_NANS.
2109 (rs6000_emit_cbranch): Reformat.
2110 * config/rs6000/rs6000.md (fp_rev): New iterator.
2111 (fp_two): New iterator.
2112 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2113 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2114 *cbranch_2insn: New define_insn_and_split.
2115
2116 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2117
2118 PR tree-optimization/92526
2119 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2120 versioning for alignment if the accesses do not have a consistent
2121 mask, rather than asserting that the masks are consistent.
2122
2123 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2124
2125 PR tree-optimization/92595
2126 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2127 check.
2128 (vectorizable_store, vectorizable_load): Likewise.
2129
2130 2019-11-21 Jan Hubicka <jh@suse.cz>
2131
2132 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2133 (resolve_noninline_speculation, inline_small_functions): Avoid
2134 redundant updates.
2135
2136 2019-11-21 Richard Biener <rguenther@suse.de>
2137
2138 * lra.c (lra_insn_recog_data_pool): New.
2139 (free_insn_recog_data): Adjust.
2140 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2141 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2142
2143 2019-11-21 Richard Biener <rguenther@suse.de>
2144
2145 PR tree-optimization/92596
2146 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2147
2148 2019-11-21 Jan Hubicka <jh@suse.cz>
2149
2150 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2151 ready for some vectors to not be allocated.
2152 (evaluate_properties_for_edge): Document better; make
2153 known_vals and known_aggs caller allocated; avoid determining
2154 values of parameters which are not used.
2155 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2156 known_aggs.
2157 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2158 (do_estimate_edge_size): Likewise.
2159 (do_estimate_edge_hints): Likewise.
2160 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2161 values are not known.
2162 (ipa_release_agg_values): Add option to not release vector itself.
2163 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2164
2165 2019-11-21 Richard Biener <rguenther@suse.de>
2166
2167 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2168 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2169 (loop_iterator::loop_iterator): Adjust.
2170 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2171 (compute_dominance_frontiers): ... this. Hoist invariant
2172 get_immediate_dominator call.
2173 (compute_idf): Use a work-set instead of a work-list for more
2174 optimal iteration order and duplicate avoidance.
2175 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2176 the vector all the time, instead pre-allocate the vector only
2177 once.
2178 (delete_update_ssa): Simplify.
2179 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2180
2181 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2182
2183 PR tree-optimization/91355
2184 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2185 for early_bb scaled count with best_bb count comparison.
2186
2187 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2188 preffer -> prefer.
2189 * ipa-inline.c (edge_badness): Likewise.
2190 * lto-streamer.h (class lto_location_cache): Likewise.
2191 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2192 gratutious -> gratuitous.
2193
2194 2019-11-21 Richard Biener <rguenther@suse.de>
2195
2196 Revert
2197 2019-09-17 Richard Biener <rguenther@suse.de>
2198
2199 PR tree-optimization/91790
2200 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2201 use the correct DR for setting up realignment.
2202
2203 2019-11-21 Richard Biener <rguenther@suse.de>
2204
2205 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2206 (equiv_class_obstack): New.
2207 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2208 (perform_var_substitution): Initialize equiv_class_obstack.
2209 (free_var_substitution_info): Free equiv_class_obstack.
2210
2211 2019-11-20 Jan Hubicka <jh@suse.cz>
2212
2213 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2214 edge growth when callee function is very large.
2215 * ipa-inline.h (estimate_min_edge_growth): New.
2216
2217 2019-11-20 Jan Hubicka <jh@suse.cz>
2218
2219 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2220 negative time in calls summary; correct roundoff errors
2221 leading to negative times.
2222 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2223 if present.
2224 (ipa_update_overall_fn_summary): Add RESET parameter.
2225 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2226 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2227
2228 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2229
2230 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2231 def types for two-operation SLP.
2232
2233 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2234
2235 PR testsuite/92366
2236 * doc/sourcebuild.texi (vect_char_add): Document.
2237
2238 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2239
2240 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2241 * function.c (record_final_call): Record even calls that might
2242 have been in the cgraph.
2243 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2244 callees.
2245
2246 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2247
2248 * configure.ac: Use https for gcc.gnu.org
2249 * configure: Regenerated.
2250 * doc/install.texi: Use https for gcc.gnu.org.
2251 * doc/sourcebuild.texi: Likewise.
2252
2253 2019-11-20 Julian Brown <julian@codesourcery.com>
2254
2255 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2256
2257 2019-11-20 Jan Hubicka <jh@suse.cz>
2258
2259 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2260 parameter and update call_size_time_table.
2261 (ipa_fn_summary::max_size_time_table_size): New constant.
2262 (estimate_calls_size_and_time_1): Break out from ...
2263 (estimate_calls_size_and_time): ... here; implement summary production.
2264 (summarize_calls_size_and_time): New function.
2265 (ipa_call_context::estimate_size_and_time): Bypass
2266 estimate_calls_size_and_time for leaf functions.
2267 (ipa_update_overall_fn_summary): Likewise.
2268 * ipa-fnsummary.h (call_size_time_table): New.
2269 (ipa_fn_summary::account_size_time): Update prototype.
2270
2271 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2272
2273 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2274
2275 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2276
2277 PR85678
2278 * common.opt (fcommon): Change init to 1.
2279 * doc/invoke.texi (-fcommon): Update documentation.
2280
2281 2019-11-20 Jan Hubicka <jh@suse.cz>
2282
2283 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2284 to ordinary array.
2285
2286 2019-11-20 Jan Hubicka <jh@suse.cz>
2287
2288 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2289 Add allocator parameter.
2290 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2291 (fibonacci_heap<K,V>::m_allocator): New.
2292 (fibonacci_heap<K,V>::m_own_allocator): New.
2293 (fibonacci_heap<K,V>::insert): Use allocator.
2294 (fibonacci_heap<K,V>::extract_min): Likewise.
2295 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2296 allocator.
2297 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2298 on stack.
2299 * fibonacci_heap.c: Include alloc-pool
2300 (test_empty_heap): Initialize allocator.
2301 (test_union): Likewise.
2302 * bb-reorder.c: Include alloc-pool.h.
2303 * tracer.c: Inlclude alloc-pool.h.
2304
2305 2019-11-20 Jan Hubicka <jh@suse.cz>
2306
2307 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2308 Preallocate for 32 entries.
2309 (DFS::worklist): Likewise.
2310 (DFS::DFS): Do not initialize sccstack and worklist.
2311 (DFS::~DFS): Do not release sccstack.
2312
2313 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2314
2315 PR target/92573
2316 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2317 Handle UNORDERED if !HONOR_NANS.
2318
2319 2019-11-20 Jan Hubicka <jh@suse.cz>
2320
2321 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2322 (edge_badness): ... here.
2323 (inline_small_functions): Use monotonicity of badness calculation
2324 to avoid redundant updates.
2325
2326 2019-11-20 Richard Biener <rguenther@suse.de>
2327
2328 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2329 constructors we are actually analyzing.
2330 (vect_slp_check_for_constructors): Do not vectorize uniform
2331 constuctors, do not dump here.
2332
2333 2019-11-20 Richard Biener <rguenther@suse.de>
2334
2335 PR tree-optimization/92537
2336 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2337 vectorization validity check...
2338 (vect_slp_analyze_operations): ... here.
2339
2340 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2341
2342 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2343 (make_pass_arc_predicate_delay_insns): Likewise.
2344 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2345 method, remove clone.
2346 (class pass_arc_predicate_delay_insns): Likewise.
2347 (arc_init): Remove registering of ARC specific passes.
2348 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2349 * config/arc/arc-passes.def: New file.
2350
2351 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2352
2353 PR middle-end/90840
2354 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2355 and has a mode that doesn't have corresponding integral type.
2356
2357 PR target/90867
2358 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2359 clear opts->x_ix86_isa_flags{,2} here...
2360 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2361 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2362
2363 PR c/90898
2364 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2365 assertion.
2366 (insert_clobbers_for_var): Fix a typo in function comment.
2367
2368 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2369 Jakub Jelinek <jakub@redhat.com>
2370
2371 PR middle-end/91195
2372 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2373 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2374 load.
2375
2376 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2377
2378 Make 0-series device specs work with older versions of avr-gcc.
2379
2380 PR target/92545
2381 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2382 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2383 <*link_pm_base_address>: Don't write spec.
2384 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2385
2386 2019-11-20 Richard Biener <rguenther@suse.de>
2387
2388 PR c/92088
2389 * builtins.c (compute_objsize): Deal with VLAs.
2390
2391 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2392
2393 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2394 from common code.
2395 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2396 call new function.
2397 (power9_sched_reorder2): Call new function.
2398 (rs6000_sched_reorder2): Likewise.
2399
2400 2019-11-18 Jan Hubicka <jh@suse.cz>
2401
2402 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2403 (estimate_calls_size_and_time): Update.
2404
2405 2019-11-18 Jan Hubicka <jh@suse.cz>
2406
2407 * ipa-inline.c (inlining_speedup): New function.
2408 (edge_badness): Use it.
2409
2410 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2411 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2412
2413 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2414 Mark as not having "likely" version.
2415 * config/mips/mips.md (insn_count): The simd_div instruction with
2416 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2417 (can_delay): Exclude simd_branch.
2418 (defile_delay *): Add simd_branch instructions.
2419 They have one regular delay slot.
2420
2421 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2422
2423 Revert:
2424 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2425
2426 * cse.c (cse_insn): Delete no-op register moves too.
2427 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2428 Take a second comparison to control the value for NE.
2429 (mask_to_comparison): Handle unsigned comparisons.
2430 (simplify_logical_relational_operation): Likewise. Update call
2431 to comparison_to_mask. Handle AND if !HONOR_NANs.
2432 (simplify_binary_operation_1): Call the above for AND too.
2433
2434 2019-11-19 Martin Liska <mliska@suse.cz>
2435
2436 * toplev.c (general_init): Move the call...
2437 (toplev::main): ... here as we need init_options_struct
2438 being called.
2439
2440 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2441
2442 PR target/79262
2443 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2444 vec_to_scalar_cost.
2445
2446 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2447
2448 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2449 (armv7-a): Likewise.
2450 (armv7ve): Likewise.
2451
2452 2019-11-19 Richard Biener <rguenther@suse.de>
2453
2454 PR tree-optimization/92581
2455 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2456 condition reduction chains gather all conditions involved
2457 for computing the index reduction vector.
2458
2459 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2460
2461 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2462 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2463 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2464 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2465 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2466 (aarch64_init_memtag_builtins): New.
2467 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2468 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2469 (aarch64_expand_builtin_memtag): New.
2470 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2471 (AARCH64_BUILTIN_SUBCODE): New macro.
2472 (aarch64_resolve_overloaded_memtag): New.
2473 (aarch64_resolve_overloaded_builtin_general): New. Call
2474 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2475 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2476 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2477 (aarch64_resolve_overloaded_builtin): Call
2478 aarch64_resolve_overloaded_builtin_general.
2479 * config/aarch64/aarch64-protos.h
2480 (aarch64_resolve_overloaded_builtin_general): New declaration.
2481 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2482 (TARGET_MEMTAG): Likewise.
2483 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2484 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2485 (irg, gmi, subp, addg, ldg, stg): New instructions.
2486 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2487 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2488 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2489 (__arm_mte_get_tag): Likewise.
2490 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2491 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2492 * config/arm/types.md (memtag): New.
2493 * doc/invoke.texi (-memtag): Update description.
2494
2495 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2496
2497 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2498 to define __GCC_ASM_FLAG_OUTPUTS__.
2499 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2500 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2501 depending on TARGET_THUMB1.
2502 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2503
2504 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2505
2506 PR target/92549
2507 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2508
2509 PR middle-end/91450
2510 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2511 operand is negative and one non-negative, compare the non-negative
2512 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2513 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2514 and s2 == 0, unless one of them is known to be negative. Remove
2515 tem2 variable, use tem where tem2 has been used before.
2516
2517 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2518
2519 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2520
2521 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2522
2523 PR tree-optimization/92557
2524 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2525 vmode rather than asserting it always is.
2526
2527 2019-11-19 Richard Biener <rguenther@suse.de>
2528
2529 PR tree-optimization/92554
2530 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2531 for the actual condition stmt and deal with sign-changes.
2532
2533 2019-11-19 Richard Biener <rguenther@suse.de>
2534
2535 PR tree-optimization/92555
2536 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2537 for non-SLP stmts.
2538
2539 2019-11-19 Martin Liska <mliska@suse.cz>
2540
2541 PR bootstrap/92540
2542 * config/riscv/riscv.c (riscv_address_insns): Initialize
2543 addr in order to remove boostrap -Wmaybe-uninitialized
2544 error.
2545
2546 2019-11-18 Martin Sebor <msebor@redhat.com>
2547
2548 PR tree-optimization/92493
2549 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2550 assignment.
2551
2552 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2553
2554 * cfgloop.c (get_loop_body_in_custom_order): New.
2555 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2556 * tree-loop-distribution.c (class loop_distribution): New.
2557 (bb_top_order_cmp): Remove.
2558 (bb_top_order_cmp_r): New.
2559 (create_rdg_vertices): Move into class loop_distribution.
2560 (stmts_from_loop): Same as above.
2561 (update_for_merge): Same as above.
2562 (partition_merge_into): Same as above.
2563 (get_data_dependence): Same as above.
2564 (data_dep_in_cycle_p): Same as above.
2565 (update_type_for_merge): Same as above.
2566 (build_rdg_partition_for-vertex): Same as above.
2567 (classify_builtin_ldst): Same as above.
2568 (classify_partition): Same as above.
2569 (share_memory_accesses): Same as above.
2570 (rdg_build_partitions): Same as above.
2571 (pg_add_dependence_edges): Same as above.
2572 (build_partition_graph): Same as above.
2573 (merge_dep_scc_partitions): Same as above.
2574 (break_alias_scc_partitions): Same as above.
2575 (finalize_partitions): Same as above.
2576 (distribute_loop): Same as above.
2577 (bb_top_order_init): New method
2578 (bb_top_order_destroy): New method.
2579 (get_bb_top_order_index_size): New method.
2580 (get_bb_top_order_index_index): New method.
2581 (get_bb_top_order_index_index): New method.
2582 (loop_distribution::execute): New method.
2583 (pass_loop_distribution::execute): Instantiate loop_distribution.
2584
2585 2019-11-18 Jan Hubicka <jh@suse.cz>
2586
2587 PR ipa/92508
2588 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2589 caches.
2590 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2591
2592 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2593
2594 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2595 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2596 * doc/md.texi: Document them.
2597 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2598 internal functions.
2599 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2600 * internal-fn.c (check_ptrs_direct): New macro.
2601 (expand_check_ptrs_optab_fn): Likewise.
2602 (direct_check_ptrs_optab_supported_p): Likewise.
2603 (internal_check_ptrs_fn_supported_p): New fuction.
2604 * tree-data-ref.c: Include internal-fn.h.
2605 (create_ifn_alias_checks): New function.
2606 (create_intersect_range_checks): Use it.
2607 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2608 (optab, cmp_op): Handle it.
2609 (raw_war, unspec): New int attributes.
2610 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2611 constants.
2612 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2613 New predicate.
2614 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2615 expander.
2616 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2617 pattern.
2618
2619 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2620
2621 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2622 empty constructors.
2623
2624 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2625
2626 * cse.c (cse_insn): Delete no-op register moves too.
2627 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2628 Take a second comparison to control the value for NE.
2629 (mask_to_comparison): Handle unsigned comparisons.
2630 (simplify_logical_relational_operation): Likewise. Update call
2631 to comparison_to_mask. Handle AND if !HONOR_NANs.
2632 (simplify_binary_operation_1): Call the above for AND too.
2633
2634 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2635
2636 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2637 splitting the main code out into...
2638 (native_encode_vector_part): ...this new function.
2639 (native_decode_vector_tree): New function.
2640 (fold_view_convert_vector_encoding): Likewise.
2641 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2642 to VECTOR_TYPEs.
2643
2644 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2645
2646 * tree-data-ref.c (create_intersect_range_checks_index): If the
2647 alias pair describes simple WAW and WAR dependencies, just check
2648 whether the first B access overlaps later A accesses.
2649 (create_waw_or_war_checks): New function that performs the same
2650 optimization on addresses.
2651 (create_intersect_range_checks): Call it.
2652
2653 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2654
2655 * lra-constraints.c (valid_address_p): Take the operand and a
2656 constraint as argument. If the operand is a MEM and the constraint
2657 is a memory constraint, check whether the eliminated form of the
2658 MEM already satisfies the constraint.
2659 (process_address_1): Update calls accordingly.
2660
2661 2019-11-18 Tom Tromey <tromey@adacore.com>
2662
2663 * doc/tm.texi: Rebuild.
2664 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2665 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2666
2667 2019-11-18 Richard Biener <rguenther@suse.de>
2668
2669 PR tree-optimization/92516
2670 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2671 argument, hoist bst_map creation/destruction to ...
2672 (vect_analyze_slp): ... here, forming a true graph with
2673 SLP instances being the entries.
2674 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2675 (vect_detect_hybrid_slp): Use one visited set for all
2676 graph entries.
2677 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2678 to hash-sets of slp_tree.
2679 (vect_slp_analyze_operations): Likewise.
2680 (vect_bb_slp_scalar_cost): Remove wrapper.
2681 (vect_bb_vectorization_profitable_p): Use one visited set for
2682 all graph entries.
2683 (vect_schedule_slp_instance): Elide bst_map use.
2684 (vect_schedule_slp): Likewise.
2685
2686 2019-11-18 Richard Biener <rguenther@suse.de>
2687
2688 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2689 was vectorized with just external refs fail.
2690
2691 2019-11-18 Martin Liska <mliska@suse.cz>
2692
2693 PR ipa/92525
2694 * ipa-icf.c (sem_function::init): Unset m_checker
2695 at the end of the function.
2696
2697 2019-11-18 Richard Biener <rguenther@suse.de>
2698
2699 PR tree-optimization/92558
2700 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2701 reducting the width of a reduction vector def update new_phis.
2702
2703 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2704
2705 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2706 and s390*-*-linux-musl* targets.
2707 * configure: Regenerate.
2708
2709 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2710
2711 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2712 (MUSL_DYNAMIC_LINKER64): Define.
2713
2714 2019-11-18 Martin Liska <mliska@suse.cz>
2715
2716 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2717 message for an unknown counter.
2718 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2719 (dbg_cnt_process_opt): Remove unreachable code.
2720
2721 2019-11-18 Martin Liska <mliska@suse.cz>
2722
2723 PR ipa/92529
2724 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2725 Compare LHS types of NOP_EXPR.
2726
2727 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2728
2729 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2730 "initial_pass_name" argument -- by running "*clean_state" pass.
2731 Also free the "initial_pass_name" when done.
2732
2733 2019-11-18 Richard Biener <rguenther@suse.de>
2734
2735 PR rtl-optimization/92462
2736 * alias.c (find_base_term): Restrict the look through ANDs.
2737 (find_base_value): Likewise.
2738
2739 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2740
2741 Add support for AVR devices from the 0-series.
2742
2743 PR target/92545
2744 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2745 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2746 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2747 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2748 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2749 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2750 for spec definitions.
2751 * doc/avr-mmcu.texi: Regenerate.
2752
2753 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2754
2755 PR target/92448
2756 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2757 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2758 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2759 (ix86_reassociation_width): Ditto.
2760 * config/i386/i386-options.c (ix86_option_override_internal):
2761 Replace TARGET_AVX128_OPTIAML with
2762 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2763 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2764 (TARGET_AVX128_OPTIMAL): Deleted.
2765 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2766 DEF_TUNE.
2767
2768 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2769
2770 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2771 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2772 just SI.
2773 (cceq_rev_compare): Rename to...
2774 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2775 just SI.
2776 (define_split for <bd>tf_<mode>): Add SImode first argument to
2777 gen_cceq_ior_compare.
2778
2779 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2780
2781 * common/config/powerpcspe: Delete.
2782
2783 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2784
2785 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2786 output in UNSPEC_WRFFR.
2787
2788 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2789
2790 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2791 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2792
2793 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2794
2795 * tree-data-ref.c (create_intersect_range_checks_index)
2796 (create_intersect_range_checks): Print dump messages.
2797
2798 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2799
2800 * tree-data-ref.c (dump_alias_pair): New function.
2801 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2802
2803 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2804
2805 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2806 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2807 merging data references with different steps.
2808 (create_intersect_range_checks_index): Take a
2809 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2810 Bail out if DR_ALIAS_MIXED_STEPS is set.
2811 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2812 instead of two dr_with_seg_lens. Update call to
2813 create_intersect_range_checks_index.
2814 (create_runtime_alias_checks): Update call accordingly.
2815
2816 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2817
2818 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2819 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2820 (dr_with_seg_len_pair_t::sequencing): New enum.
2821 (dr_with_seg_len_pair_t::flags): New member variable.
2822 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2823 parameter and initialize the flags member variable.
2824 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2825 call accordingly.
2826 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2827 Ensure the two data references in an alias pair are in statement
2828 order, if there is a defined order.
2829 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2830 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2831 swapped the references in a dr_with_seg_len_pair_t. OR together
2832 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2833 try to restore the original dr_with_seg_len order, updating the
2834 flags if that fails.
2835
2836 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2837
2838 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2839 swapping the dr_as based on init values until we've decided
2840 whether to merge them.
2841
2842 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2843
2844 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2845 two accesses in each dr_with_seg_len_pair_t before trying to
2846 combine separate dr_with_seg_len_pair_ts.
2847 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2848 that here.
2849 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2850
2851 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2852
2853 * config/aarch64/aarch64-sve.md
2854 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2855 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2856 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2857 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2858 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2859 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2860 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2861 pattern.
2862 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2863 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2864 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2865 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2866
2867 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2868
2869 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2870 (SVE_4HSI): New mode iterators.
2871 (ANY_EXTEND2): New code iterator.
2872 * config/aarch64/aarch64-sve.md
2873 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2874 Extend to...
2875 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2876 ...this, handling extension to partial modes as well as full modes.
2877 Describe the extension as a predicated rather than unpredicated
2878 extension.
2879 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2880 Likewise extend to...
2881 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2882 ...this, making the same adjustments.
2883 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2884 Likewise extend to...
2885 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2886 ...this, making the same adjustments.
2887 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2888 Likewise extend to...
2889 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2890 ...this, making the same adjustments.
2891 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2892 New pattern.
2893 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2894 extension predicate.
2895 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2896 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2897 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2898 Describe the extension as a predicated rather than unpredicated
2899 extension.
2900 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2901 Likewise. Canonicalize to a constant extension predicate.
2902 * config/aarch64/aarch64-sve-builtins-base.cc
2903 (svld1_gather_extend_impl::expand): Add an extra predicate for
2904 the extension.
2905 (svldff1_gather_extend_impl::expand): Likewise.
2906
2907 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2908
2909 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2910 iterators.
2911 * config/aarch64/aarch64-sve.md
2912 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2913 (gather_load<SVE_24:mode><v_int_container>): ...this.
2914 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2915 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2916 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2917 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2918 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2919 New pattern.
2920 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2921 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2922 Allow the nominal extension predicate to be different from the
2923 load predicate.
2924 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2925 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2926
2927 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2928
2929 * config/aarch64/aarch64-sve.md
2930 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2931 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2932 function.
2933 (aarch64_sve_adjust_stmt_cost): Call it.
2934
2935 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2936
2937 * config/aarch64/aarch64-sve.md
2938 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2939 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2940 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2941 Combine into...
2942 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2943 ...this new pattern, handling extension to partial modes as well
2944 as full modes. Describe the extension as a predicated rather than
2945 unpredicated extension.
2946 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2947 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2948 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2949 Combine into...
2950 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2951 ...this new pattern, handling extension to partial modes as well
2952 as full modes. Describe the extension as a predicated rather than
2953 unpredicated extension.
2954 * config/aarch64/aarch64-sve-builtins.cc
2955 (function_expander::use_contiguous_load_insn): Add an extra
2956 predicate for extending loads.
2957 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2958 (aarch64_sve_adjust_stmt_cost): Likewise.
2959 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2960 the cost of SVE vector stmts.
2961
2962 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2963
2964 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2965 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2966 * config/aarch64/aarch64-sve.md
2967 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2968 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2969 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2970 comment. Avoid new narrower_mask ambiguity.
2971 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2972 (*cond_uxt<mode>_2): Update comment.
2973 (*cond_uxt<mode>_any): Likewise.
2974
2975 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2976
2977 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2978 float modes.
2979 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2980 function.
2981 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2982 new vector float modes.
2983 (aarch64_sve_container_bits): New function.
2984 (aarch64_sve_pred_mode): Likewise.
2985 (aarch64_get_mask_mode): Use it.
2986 (aarch64_sve_element_int_mode): Handle structure modes and partial
2987 modes.
2988 (aarch64_sve_container_int_mode): New function.
2989 (aarch64_vectorize_related_mode): Return SVE modes when given
2990 SVE modes. Handle partial modes, taking the preferred number
2991 of units from the size of the given mode.
2992 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2993 in registers.
2994 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2995 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2996 (aarch64_split_sve_subreg_move): Use the mode form of
2997 aarch64_sve_pred_mode.
2998 (aarch64_secondary_reload): Handle partial modes in the same way
2999 as full big-endian vectors.
3000 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3001 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3002 merging with the Advanced SIMD modes. If two modes have the
3003 same size, try the Advanced SIMD mode first.
3004 (aarch64_simd_valid_immediate): Use the container rather than
3005 the element mode for INDEX constants.
3006 (aarch64_simd_vector_alignment): Make the alignment of partial
3007 SVE vector modes the same as their minimum size.
3008 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3009 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3010 (mov<SVE_ALL:mode>): ...this.
3011 (movmisalign<SVE_FULL:mode>): Extend to...
3012 (movmisalign<SVE_ALL:mode>): ...this.
3013 (*aarch64_sve_mov<mode>_le): Rename to...
3014 (*aarch64_sve_mov<mode>_ldr_str): ...this.
3015 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3016 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
3017 partial modes regardless of endianness.
3018 (aarch64_sve_reload_be): Rename to...
3019 (aarch64_sve_reload_mem): ...this and enable for little-endian.
3020 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3021 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3022 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3023 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3024 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3025 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3026 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3027 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3028 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3029 (maskload<SVE_FULL:mode><vpred>): Extend to...
3030 (maskload<SVE_ALL:mode><vpred>): ...this.
3031 (maskstore<SVE_FULL:mode><vpred>): Extend to...
3032 (maskstore<SVE_ALL:mode><vpred>): ...this.
3033 (vec_duplicate<SVE_FULL:mode>): Extend to...
3034 (vec_duplicate<SVE_ALL:mode>): ...this.
3035 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3036 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3037 (sve_ld1r<SVE_FULL:mode>): Extend to...
3038 (sve_ld1r<SVE_ALL:mode>): ...this.
3039 (vec_series<SVE_FULL_I:mode>): Extend to...
3040 (vec_series<SVE_I:mode>): ...this.
3041 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3042 (*vec_series<SVE_I:mode>_plus): ...this.
3043 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3044 new VPRED ambiguity.
3045 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3046 (add<SVE_FULL_I:mode>3): Extend to...
3047 (add<SVE_I:mode>3): ...this.
3048 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3049 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3050 (VPRED, vpred): Likewise.
3051 (Vctype): New iterator.
3052 (vw): Remove SVE modes.
3053
3054 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3055
3056 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3057 (SVE_PARTIAL_I): ...this.
3058 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3059
3060 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3061
3062 * config/aarch64/iterators.md (SVE_ALL): Rename to...
3063 (SVE_FULL): ...this.
3064 (SVE_I): Rename to...
3065 (SVE_FULL_I): ...this.
3066 (SVE_F): Rename to...
3067 (SVE_FULL_F): ...this.
3068 (SVE_BHSI): Rename to...
3069 (SVE_FULL_BHSI): ...this.
3070 (SVE_HSD): Rename to...
3071 (SVE_FULL_HSD): ...this.
3072 (SVE_HSDI): Rename to...
3073 (SVE_FULL_HSDI): ...this.
3074 (SVE_HSF): Rename to...
3075 (SVE_FULL_HSF): ...this.
3076 (SVE_SD): Rename to...
3077 (SVE_FULL_SD): ...this.
3078 (SVE_SDI): Rename to...
3079 (SVE_FULL_SDI): ...this.
3080 (SVE_SDF): Rename to...
3081 (SVE_FULL_SDF): ...this.
3082 (SVE_S): Rename to...
3083 (SVE_FULL_S): ...this.
3084 (SVE_D): Rename to...
3085 (SVE_FULL_D): ...this.
3086 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3087 * config/aarch64/aarch64-sve2.md: Likewise.
3088
3089 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3090
3091 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3092 New option.
3093 * doc/invoke.texi: Document it.
3094 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3095 By default, return VECT_COMPARE_COSTS for SVE.
3096
3097 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3098
3099 * target.h (VECT_COMPARE_COSTS): New constant.
3100 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3101 * doc/tm.texi: Regenerate.
3102 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3103 * targhooks.c (default_autovectorize_vector_modes): Likewise.
3104 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3105 Likewise.
3106 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3107 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3108 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3109 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3110 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3111 (_loop_vec_info::vec_inside_cost): New member variables.
3112 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3113 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3114 (vect_analyze_loop): When autovectorize_vector_modes returns
3115 VECT_COMPARE_COSTS, try vectorizing the loop with each available
3116 vector mode and picking the one with the lowest cost.
3117 (vect_estimate_min_profitable_iters): Record the computed costs
3118 in the loop_vec_info.
3119
3120 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3121
3122 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3123 element type rather than an element mode.
3124 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3125 Use get_vectype_for_scalar_type to query the natural types
3126 for a given element type rather than basing everything on
3127 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3128 query to MAX_FIXED_MODE_SIZE.
3129 (duplicate_and_interleave): Update call accordingly.
3130 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3131
3132 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3133
3134 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3135 optional maximum nunits.
3136 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3137 takes an slp_tree.
3138 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3139 (vect_get_mask_type_for_stmt): Likewise.
3140 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3141 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3142 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3143 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3144 to get an assumed vector type for data references.
3145 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3146 (vect_update_all_shared_vectypes): Likewise.
3147 (vect_build_slp_tree_1): Pass the group size to
3148 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3149 for BB vectorization.
3150 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3151 before building the vectof from scalars.
3152 (vect_analyze_slp_instance): Pass the group size to
3153 get_vectype_for_scalar_type.
3154 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3155 types for BB vectorization here; just handle the case in which
3156 we deferred the choice for booleans.
3157 (vect_get_constant_vectors): Pass the slp_tree to
3158 get_vectype_for_scalar_type.
3159 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3160 (vectorizable_call): Likewise.
3161 (vectorizable_simd_clone_call): Likewise.
3162 (vectorizable_conversion): Likewise.
3163 (vectorizable_shift): Likewise.
3164 (vectorizable_operation): Likewise.
3165 (vectorizable_comparison): Likewise.
3166 (vect_is_simple_cond): Take the slp_tree as argument and
3167 pass it to get_vectype_for_scalar_type.
3168 (vectorizable_condition): Update call accordingly.
3169 (get_vectype_for_scalar_type): Take a group_size argument.
3170 For BB vectorization, limit the the vector to that number
3171 of elements. Also define an overload that takes an slp_tree.
3172 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3173 pass it to get_vectype_for_scalar_type.
3174 (vect_get_vector_types_for_stmt): Add a group_size argument
3175 and pass it to get_vectype_for_scalar_type. Don't use the
3176 cached vector type for BB vectorization if a group size is given.
3177 Handle data references in that case.
3178 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3179 pass it to get_mask_type_for_scalar_type.
3180
3181 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3182
3183 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3184 parameter.
3185 (estimate_edge_time): Use it.
3186 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3187 ret_nonspec_time parameter.
3188
3189 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3190
3191 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3192
3193 2019-11-15 Nick Clifton <nickc@redhat.com>
3194 Szabolcs Nagy <szabolcs.nagy@arm.com>
3195
3196 PR target/65649
3197 * config/microblaze/microblaze.c (print_operand): Print value as long.
3198
3199 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3200
3201 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3202 accidental commit.
3203
3204 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3205
3206 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3207 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3208
3209 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3210
3211 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3212 (gcn_conditional_register_usage): Use constants in place of hard-coded
3213 values.
3214 (gcn_hsa_declare_function_name): Set lower bound for number of
3215 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3216 MAX_NORMAL_VGPR_COUNT.
3217
3218 2019-11-15 Martin Jambor <mjambor@suse.cz>
3219
3220 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3221 declaration.
3222
3223 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3224
3225 * config/gcn/gcn.c (default_requested_args): New.
3226 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3227 set with default_requested_args.
3228 (gcn_conditional_register_usage): Limit register usage of non-kernel
3229 functions. Reassign fixed registers if a non-standard set of args is
3230 requested.
3231 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3232
3233 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3234
3235 PR ipa/92528
3236 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3237 aggregate jump function when inlined-to caller has no edge summary.
3238
3239 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3240
3241 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3242
3243 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3244
3245 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3246 prologue use of v0.
3247 (print_operand_address): Use v1 for zero vector offset.
3248
3249 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3250
3251 PR tree-optimization/92515
3252 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3253 types when converting a vector/scalar shift into a vector/vector one,
3254 using tree_nop_conversion_p instead of useless_type_conversion_p.
3255 Move the conversion code to the transform block.
3256
3257 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3258
3259 * read-rtl-function.c
3260 (function_reader::add_fixup_source_location): Take additional
3261 parameter of a column.
3262 (function_reader::maybe_read_location): Optionally parse column
3263 information and pass to add_fixup_source_location.
3264
3265 2019-11-15 Richard Biener <rguenther@suse.de>
3266
3267 PR tree-optimization/92512
3268 * tree-vect-loop.c (check_reduction_path): Fix operand index
3269 computability check. Add check for second use in COND_EXPRs.
3270
3271 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3272
3273 PR target/92515
3274 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3275 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3276
3277 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3278
3279 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3280 register class for VCC_LO and VCC_HI.
3281 (gcn_spill_class): Use SGPR_REGS to spill registers in
3282 VCC_CONDITIONAL_REG.
3283
3284 2019-11-15 Richard Biener <rguenther@suse.de>
3285
3286 PR tree-optimization/92324
3287 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3288 singedness of SLP reduction epilouge operations. Also reduce
3289 the vector width for SLP reductions before doing elementwise
3290 operations if possible.
3291
3292 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3293
3294 * passes.c (skip_pass): Set epilogue_completed if skipping the
3295 pro_and_epilogue pass.
3296
3297 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3298
3299 * passes.c (should_skip_pass_p): Always run "dfinish".
3300
3301 2019-11-15 Richard Biener <rguenther@suse.de>
3302
3303 * ipa-inline.c (inline_small_functions): Move assignment
3304 to next before call destroying edge.
3305
3306 2019-11-15 Richard Biener <rguenther@suse.de>
3307
3308 PR tree-optimization/92039
3309 PR tree-optimization/91975
3310 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3311 previous change, treat invariants consistently as non-constant.
3312 (tree_estimate_loop_size): Ternary ops with just the first op
3313 constant are not optimized away.
3314
3315 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3316
3317 * gimplify.c (gimplify_call_expr): Don't call
3318 omp_resolve_declare_variant after gimplification.
3319 * omp-general.c (omp_context_selector_matches): For isa that might
3320 match in some other function, defer if in declare simd function.
3321 (omp_context_compute_score): Don't look for " score" in construct
3322 trait set. Set *score to -1 if it can't ever match.
3323 (omp_resolve_declare_variant): If any variants need to be deferred,
3324 don't punt immediately, but compute scores of all variants and if
3325 ther eis a score winner that doesn't need to be deferred, return that.
3326
3327 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3328
3329 * ipa-comdats.c: Fix comments typo.
3330 * ipa-profile.c: Fix comments typo.
3331 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3332 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3333 (gimple_gen_ic_func_profiler): Likewise.
3334 (pass_ipa_tree_profile::gate): Fix comments typo.
3335
3336 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3337
3338 * ipa-inline.c (inline_small_functions): Update iterator of next.
3339
3340 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3341
3342 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3343 register is suitable for the mode.
3344
3345 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3346
3347 * range-op.h (range_operator::fold_range): Return a bool.
3348 * range-op.cc (range_operator::wi_fold): Assert supported type.
3349 (range_operator::fold_range): Assert supported type and return true.
3350 (operator_equal::fold_range): Return true.
3351 (operator_not_equal::fold_range): Same.
3352 (operator_lt::fold_range): Same.
3353 (operator_le::fold_range): Same.
3354 (operator_gt::fold_range): Same.
3355 (operator_ge::fold_range): Same.
3356 (operator_plus::op1_range): Adjust call to fold_range.
3357 (operator_plus::op2_range): Same.
3358 (operator_minus::op1_range): Same.
3359 (operator_minus::op2_range): Same.
3360 (operator_exact_divide::op1_range): Same.
3361 (operator_lshift::fold_range): Return true and adjust fold_range call.
3362 (operator_rshift::fold_range): Same.
3363 (operator_cast::fold_range): Return true.
3364 (operator_logical_and::fold_range): Same.
3365 (operator_logical_or::fold_range): Same.
3366 (operator_logical_not::fold_range): Same.
3367 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3368 (operator_bitwise_not::op1_range): Same.
3369 (operator_cst::fold_range): Return true.
3370 (operator_identity::fold_range): Return true.
3371 (operator_negate::fold_range): Return true and adjust fold_range call.
3372 (operator_addr_expr::fold_range): Return true.
3373 (operator_addr_expr::op1_range): Adjust call to fold_range.
3374 (range_cast): Same.
3375 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3376 (range_fold_unary_symbolics_p): Same.
3377
3378 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3379
3380 PR tree-optimization/92506
3381 * range-op.cc (range_operator::fold_range): Start with range undefined.
3382 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3383 overflow is varying.
3384
3385 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3386
3387 * range-op.cc (*operator*::*range): Remove calls to
3388 range_intersect, range_invert, and range_union in favor of calling
3389 the in-place API methods.
3390 (range_tests): Same.
3391 * range.cc (range_intersect): Remove.
3392 (range_union): Remove.
3393 (range_invert): Remove.
3394 * range.h (range_intersect): Remove.
3395 (range_union): Remove.
3396 (range_intersect): Remove.
3397
3398 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3399
3400 PR rtl-optimization/92430
3401 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3402 (pass_jump_after_combine::execute): Perform jump threading
3403 unconditionally.
3404
3405 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3406 Doug Rupp <rupp@adacore.com>
3407 Olivier Hainque <hainque@adacore.com>
3408
3409 * config.gcc: Collapse the arm-vxworks entries into
3410 a single arm-wrs-vxworks7* one, bpabi based. Update
3411 the default cpu from arm8 to armv7-a
3412 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3413 we always use ARM_UNWIND_INFO.
3414 (DWARF2_UNWIND_INFO): Remove redefinition.
3415 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3416 (VXWORKS_PERSONALITY): Define, to "llvm".
3417 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3418
3419 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3420
3421 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3422 _VX_CPU instead of CPU and handle arm_arch8.
3423
3424 2019-11-14 Doug Rupp <rupp@adacore.com>
3425 Olivier Hainque <hainque@adacore.com>
3426 Jerome Lambourg <lambourg@adacore.com>
3427
3428 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3429 * config/aarch64/aarch64-vxworks.h: New file.
3430 * config/aarch64/t-aarch64-vxworks: New file.
3431
3432 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3433 Olivier Hainque <hainque@adacore.com>
3434
3435 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3436 definition, pointless with a VxWorks specific version
3437 of crtstuff.
3438 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3439 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3440 New local macros, controlling the addition of vxworks specific
3441 crtstuff objects depending on the EH mechanism and kind of
3442 module being linked.
3443 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3444
3445 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3446 Jerome Lambourg <lambourg@adacore.com>
3447 Olivier Hainque <hainque@adacore.com>
3448
3449 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3450 common macro definitions, conveying VXWORKS7 or 64bit general
3451 variations. Add a block to set gcc_cv_initfini_array
3452 unconditionally to "yes" for VxWorks7.
3453 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3454 by default. Update some comments.
3455 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3456 default, to be added the end of VXWORKS_LIBS_RTP.
3457 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3458 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3459 redefine.
3460 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3461 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3462 to account for the now available TLS abilities.
3463 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3464 (VXWORKS_HAVE_TLS): Likewise.
3465
3466 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3467
3468 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3469 (vect_slp_convert_to_external): Likewise.
3470 (vect_slp_analyze_node_operations): If analysis fails, try building
3471 the node from scalars instead.
3472
3473 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3474
3475 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3476 between vector types.
3477 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3478 non-widening and non-narrowing path to handle standard
3479 conversion codes, if the target supports them.
3480 * expr.c (convert_move): Try using the extend and truncate optabs
3481 for vectors.
3482 * optabs-tree.c (supportable_convert_operation): Likewise.
3483 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3484 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3485 (trunc<mode><Vnarrowq>2): New patterns.
3486
3487 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3488
3489 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3490 require vectype and nunits_vectype to have the same size;
3491 instead assert that nunits_vectype has at least as many
3492 elements as vectype. Don't compute a separate nunits_vectype
3493 if the scalar type is obviously the same as vectype's.
3494 Tweak dump messages.
3495
3496 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3497
3498 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3499 function.
3500 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3501 (TARGET_VECTORIZE_RELATED_MODE): Define.
3502
3503 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3504
3505 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3506 (vec_info::used_vector_mode): New member variable.
3507 (vect_chooses_same_modes_p): Declare.
3508 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3509 chosen vector mode in vec_info::used_vector_mode.
3510 (vect_chooses_same_modes_p): New function.
3511 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3512 the same vector statements multiple times.
3513 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3514
3515 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3516
3517 * machmode.h (opt_machine_mode::operator==): New function.
3518 (opt_machine_mode::operator!=): Likewise.
3519 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3520 (get_related_vectype_for_scalar_type): Delete.
3521 (get_vectype_for_scalar_type_and_size): Declare.
3522 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3523 whether analysis passed or failed, and with what vector modes.
3524 Use related_vector_mode to check whether trying a particular
3525 vector mode would be redundant with the autodetected mode,
3526 and print a dump message if we decide to skip it.
3527 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3528 (vect_create_epilog_for_reduction): Use
3529 get_related_vectype_for_scalar_type instead of
3530 get_vectype_for_scalar_type_and_size.
3531 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3532 with...
3533 (get_related_vectype_for_scalar_type): ...this new function.
3534 Take a starting/"prevailing" vector mode rather than a vector size.
3535 Take an optional nunits argument, with the same meaning as for
3536 related_vector_mode. Use related_vector_mode when not
3537 auto-detecting a mode, falling back to mode_for_vector if no
3538 target mode exists.
3539 (get_vectype_for_scalar_type): Update accordingly.
3540 (get_same_sized_vectype): Likewise.
3541 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3542
3543 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3544
3545 * tree-vect-stmts.c (vectorizable_call): Require the types
3546 to have the same size.
3547
3548 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3549
3550 * tree-vect-stmts.c (vectorizable_call): If an operand is
3551 constant or external, use get_vectype_for_scalar_type
3552 rather than get_same_sized_vectype to get its vector type.
3553 (vectorizable_conversion, vectorizable_shift): Likewise.
3554 (vectorizable_operation): Likewise.
3555
3556 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3557
3558 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3559 (vec_info::vector_mode): ...this new field.
3560 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3561 (vect_analyze_loop, vect_transform_loop): Likewise.
3562 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3563 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3564 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3565 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3566 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3567
3568 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3569
3570 * target.h (vector_sizes, auto_vector_sizes): Delete.
3571 (vector_modes, auto_vector_modes): New typedefs.
3572 * target.def (autovectorize_vector_sizes): Replace with...
3573 (autovectorize_vector_modes): ...this new hook.
3574 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3575 Replace with...
3576 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3577 * doc/tm.texi: Regenerate.
3578 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3579 (default_autovectorize_vector_modes): New function.
3580 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3581 (default_autovectorize_vector_modes): New function.
3582 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3583 of autovectorize_vector_sizes. Use the number of units in the mode
3584 to calculate the maximum VF.
3585 * omp-low.c (omp_clause_aligned_alignment): Use
3586 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3587 Use a loop based on related_mode to iterate through all supported
3588 vector modes for a given scalar mode.
3589 * optabs-query.c (can_vec_mask_load_store_p): Use
3590 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3591 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3592 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3593 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3594 Replace with...
3595 (aarch64_autovectorize_vector_modes): ...this new function.
3596 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3597 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3598 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3599 (arc_autovectorize_vector_modes): ...this new function.
3600 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3601 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3602 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3603 (arm_autovectorize_vector_modes): ...this new function.
3604 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3605 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3606 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3607 (ix86_autovectorize_vector_modes): ...this new function.
3608 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3609 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3610 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3611 (mips_autovectorize_vector_modes): ...this new function.
3612 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3613 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3614
3615 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3616
3617 * tree-vect-stmts.c (vectorizable_shift): Check the number
3618 of vector elements as well as the type mode when deciding
3619 whether an op1_vectype is compatible. Reuse the result of
3620 this check when generating vector statements.
3621
3622 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3623
3624 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3625 targetm.vectorize.preferred_simd_mode returns an integer mode,
3626 use mode_for_vector to decide what the vector type's mode
3627 should actually be. Use build_vector_type_for_mode instead
3628 of build_vector_type.
3629
3630 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3631
3632 * target.def (get_mask_mode): Take a vector mode itself as argument,
3633 instead of properties about the vector mode.
3634 * doc/tm.texi: Regenerate.
3635 * targhooks.h (default_get_mask_mode): Update to reflect new
3636 get_mode_mask interface.
3637 * targhooks.c (default_get_mask_mode): Likewise. Use
3638 related_int_vector_mode.
3639 * optabs-query.c (can_vec_mask_load_store_p): Update call
3640 to get_mask_mode.
3641 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3642 first that the original mode really is a vector.
3643 * tree.c (build_truth_vector_type_for): Likewise.
3644 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3645 get_mode_mask interface.
3646 (aarch64_expand_sve_vcond): Update call accordingly.
3647 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3648 get_mode_mask interface.
3649 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3650
3651 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3652
3653 * tree.h (build_truth_vector_type): Delete.
3654 (build_same_sized_truth_vector_type): Likewise.
3655 * tree.c (build_truth_vector_type): Rename to...
3656 (build_truth_vector_type_for): ...this. Make static and take
3657 a vector type as argument.
3658 (truth_type_for): Update accordingly.
3659 (build_same_sized_truth_vector_type): Delete.
3660 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3661 instead of build_same_sized_truth_vector_type.
3662 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3663 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3664 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3665 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3666 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3667 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3668 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3669 (vectorizable_store, vectorizable_condition): Likewise.
3670 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3671 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3672 build_truth_vector_type.
3673 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3674 Use truth_type_for instead of build_same_sized_truth_vector_type.
3675 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3676
3677 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3678
3679 * tree.h (build_truth_vector_type_for_mode): Declare.
3680 * tree.c (build_truth_vector_type_for_mode): New function,
3681 split out from...
3682 (build_truth_vector_type): ...here.
3683 (build_opaque_vector_type): Fix head comment.
3684 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3685 vec_info parameter.
3686 (vect_halve_mask_nunits): Replace vec_info parameter with the
3687 mode of the new vector.
3688 (vect_double_mask_nunits): Likewise.
3689 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3690 (vect_double_mask_nunits): Likewise.
3691 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3692 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3693 to vect_halve_mask_nunits, getting the required mode from the unpack
3694 patterns.
3695 (vect_set_loop_condition_masked): Update call accordingly.
3696 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3697 parameter and update call to vect_double_mask_nunits.
3698 (vectorizable_conversion): Update call accordingly.
3699 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3700 (vectorizable_call): Update call accordingly.
3701 (supportable_widening_operation): Update call to
3702 vect_halve_mask_nunits.
3703 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3704 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3705
3706 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3707
3708 * machmode.h (mode_for_int_vector): Delete.
3709 (related_int_vector_mode): Declare.
3710 * stor-layout.c (mode_for_int_vector): Delete.
3711 (related_int_vector_mode): New function.
3712 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3713 instead of mode_for_int_vector.
3714 (expand_vec_perm_const): Likewise.
3715 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3716 (aarch64_evpc_sve_tbl): Likewise.
3717 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3718 (s390_expand_vcond): Likewise.
3719
3720 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3721
3722 * target.def (related_mode): New hook.
3723 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3724 * doc/tm.texi: Regenerate.
3725 * targhooks.h (default_vectorize_related_mode): Declare.
3726 * targhooks.c (default_vectorize_related_mode): New function.
3727 * machmode.h (related_vector_mode): Declare.
3728 * stor-layout.c (related_vector_mode): New function.
3729 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3730 * optabs-query.c (qimode_for_vec_perm): Likewise.
3731 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3732 (vectorizable_store, vectorizable_load): Likewise
3733
3734 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3735
3736 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3737 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3738 * config/arm/arm-c.c (arm_cpu_builtins): Define
3739 __GCC_ASM_FLAG_OUTPUTS__.
3740 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3741 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3742 Define __GCC_ASM_FLAG_OUTPUTS__.
3743 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3744 * doc/extend.texi (FlagOutputOperands): Add documentation
3745 for ARM and AArch64.
3746
3747 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3748 * config/arm/predicates.md (nz_comparison_operator): Rename
3749 from noov_comparison_operator.
3750 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3751 (arm_gen_dicompare_reg): Likewise.
3752 (maybe_get_arm_condition_code): Likewise.
3753 (thumb1_final_prescan_insn): Likewise.
3754 (arm_emit_coreregs_64bit_shift): Likewise.
3755 * config/arm/arm.md (addsi3_compare0): Likewise.
3756 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3757 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3758 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3759 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3760 (*mulsi3addsi_compare0_scratch): Likewise.
3761 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3762 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3763 (*zeroextractsi_compare0_scratch): Likewise.
3764 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3765 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3766 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3767 (andsi_not_shiftsi_si_scc): Likewise.
3768 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3769 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3770 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3771 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3772 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3773 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3774 (return_addr_mask, *check_arch2): Likewise.
3775 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3776 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3777 (compare_scc splitters): Likewise.
3778 (movcond_addsi): Likewise.
3779 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3780 (*thumb2_addsi3_compare0_scratch): Likewise.
3781 (*thumb2_mulsi_short_compare0): Likewise.
3782 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3783 (compare peephole2s): Likewise.
3784 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3785 nz_comparison_operator names.
3786 (cbranchsi4_insn): Likewise.
3787
3788 * config/arm/constraints.md (c): Use cc_register predicate.
3789
3790 * config/aarch64/constraints.md (c): New constraint.
3791
3792 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3793
3794 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3795 ipa_merge_fn_summary_after_inlining): Micro optimize.
3796
3797 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3798
3799 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3800
3801 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3802
3803 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3804 (ipa_value_range_from_jfunc): New function.
3805 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3806 known_value_ranges parameter; use it to evalulate conditions.
3807 (evaluate_properties_for_edge): Compute known value ranges.
3808 (ipa_fn_summary_t::duplicate): Update use of
3809 evaluate_conditions_for_known_args.
3810 (estimate_ipcp_clone_size_and_time): Likewise.
3811 (ipa_merge_fn_summary_after_inlining): Likewise.
3812 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3813
3814 2019-11-14 Martin Liska <mliska@suse.cz>
3815
3816 * ipa-inline.c (want_inline_small_function_p): Use
3817 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3818 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3819
3820 2019-11-14 Martin Liska <mliska@suse.cz>
3821
3822 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3823 of a callee to get value of the param.
3824 * ipa-inline.c (inline_insns_auto): Use proper
3825 opt_for_fn.
3826 * opts.c (maybe_default_option): Do not overwrite param
3827 value if optimization level does not match. Note that
3828 params usually have default value set via Init() keyword.
3829 * params.opt: Remove -param=max-inline-insns-auto-O2.
3830 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3831 * doc/invoke.texi: Remove documentation of
3832 max-inline-insns-auto-O2.
3833
3834 2019-11-14 Martin Liska <mliska@suse.cz>
3835
3836 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3837 Do not initialize m_other_count.
3838 (switch_conversion::collect): Do not count m_default_count and
3839 m_other_count as we use frequencies for edges.
3840 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3841
3842 2019-11-14 Martin Liska <mliska@suse.cz>
3843
3844 PR other/92329
3845 * doc/invoke.texi: Document -fallocation-dce.
3846
3847 2019-11-14 Martin Liska <mliska@suse.cz>
3848
3849 PR target/92389
3850 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3851 PTA_ICELAKE_CLIENT which is later interited by
3852 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3853
3854 2019-11-14 Martin Liska <mliska@suse.cz>
3855
3856 * ipa-icf.c (sem_item_optimizer::execute): Save
3857 loaded_symbols.
3858 (sem_item_optimizer::parse_nonsingleton_classes):
3859 Return number of loaded symbols.
3860 (sem_item_optimizer::merge_classes): Print
3861 statistics about totally needed symbols.
3862 * ipa-icf.h (parse_nonsingleton_classes): Change return
3863 type.
3864 (merge_classes): Add one argument.
3865
3866 2019-11-14 Martin Liska <mliska@suse.cz>
3867
3868 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3869 func_checker::hash_operand by handling of FIELD_DECLs.
3870
3871 2019-11-14 Martin Liska <mliska@suse.cz>
3872
3873 * ipa-icf-gimple.h (func_checker::func_checker): Add
3874 default constructor.
3875 * ipa-icf.c (sem_function::init): Make operand_equal_p
3876 and hash_operand public.
3877 (sem_item::add_expr): Remove.
3878 (sem_item::add_type): Remove.
3879 (sem_function::hash_stmt): Use m_checker for hashing
3880 of GIMPLE statements.
3881 (sem_function::parse): Init with checker.
3882 (sem_variable::parse): Pass NULL as checker.
3883 (sem_item_optimizer::parse_funcs_and_vars):
3884 Pass checker to ::parse function.
3885 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3886 (sem_variable::parse): New function.
3887 (sem_variable::get_hash): Only return computed hash value.
3888 (sem_variable::init): Initialize hash of a variable.
3889 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3890 to couple of functions as a new argument.
3891
3892 2019-11-14 Martin Liska <mliska@suse.cz>
3893
3894 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3895 bail out reason.
3896 (func_checker::compare_gimple_assign): Likewise.
3897
3898 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3899
3900 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3901 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3902 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3903
3904 * omp-general.c (omp_context_name_list_prop): New function.
3905 (omp_context_selector_matches): Use it. Return 0 if it returns
3906 NULL.
3907 (omp_context_selector_props_compare): Allow equivalency of an
3908 identifier and a string literal containing no embedded zeros.
3909
3910 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3911
3912 * range-op.cc (RANGE3): Remove.
3913 (range_tests): Remove all selftest that check for multi-ranges.
3914 Put tests in namespace selftest.
3915 * selftest.h: Move range_tests into namespace selftest.
3916 * value-range.h (class value_range): Unfriend range_tests.
3917
3918 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3919
3920 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3921 normalize_symbolics and normalize_addresses working in place.
3922 (range_fold_unary_symbolics_p): Same.
3923 (range_fold_unary_symbolics_p): Same.
3924 * value-range.cc (num_pairs): Same.
3925 (lower_bound): Same.
3926 (upper_bound): Same.
3927 (contains_p): Same.
3928 (normalize_addresses): Same.
3929 (normalize_symbolics): Same.
3930 * value-range.h (normalize_symbolics): Same.
3931 (normalize_addresses): Same.
3932
3933 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3934
3935 PR ipa/91682
3936 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3937 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3938 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3939 (ipa_agg_jump_function): Remove member function equal_to.
3940 (ipa_agg_jump_function_p): Remove typedef.
3941 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3942 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3943 information for aggregate jump function.
3944 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3945 record last definition statement.
3946 (load_from_unmodified_param_or_agg): New function.
3947 (ipa_known_agg_contents_list): Add new field type and value, remove
3948 field constant.
3949 (build_agg_jump_func_from_list): Rename parameter const_count to
3950 value_count, build aggregate jump function from ipa_load_agg_data.
3951 (analyze_agg_content_value): New function.
3952 (extract_mem_content): Analyze memory store assignment to prepare
3953 information for aggregate jump function generation.
3954 (determine_known_aggregate_parts): Add new parameter fbi, remove
3955 parameter aa_walk_budeget_p.
3956 (update_jump_functions_after_inlining): Update aggregate jump function.
3957 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3958 (try_make_edge_direct_simple_call): Add new parameter new_root.
3959 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3960 new_root_info.
3961 (update_indirect_edges_after_inlining): Pass new argument to
3962 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3963 (ipa_write_jump_function): Write aggregate jump function to file.
3964 (ipa_read_jump_function): Read aggregate jump function from file.
3965 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3966 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3967 (ipa_agg_value_from_node): Likewise.
3968 (ipa_agg_value_set_from_jfunc): Likewise.
3969 (propagate_vals_across_arith_jfunc): Likewise.
3970 (propagate_aggregate_lattice): Likewise.
3971 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3972 (propagate_vals_across_pass_through): Call
3973 propagate_vals_across_arith_jfunc.
3974 (get_clone_agg_value): Move forward.
3975 (propagate_aggs_across_jump_function): Handle value propagation for
3976 aggregate jump function.
3977 (agg_jmp_p_vec_for_t_vec): Remove.
3978 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3979 with vec<ipa_agg_value>.
3980 (copy_plats_to_inter, intersect_with_plats): Likewise.
3981 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3982 (intersect_aggregate_with_edge): Likewise.
3983 (find_aggregate_values_for_callers_subset): Likewise.
3984 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3985 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3986 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3987 (gather_context_independent_values): Likewise.
3988 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3989 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3990 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3991 (evaluate_properties_for_edge): Likewise.
3992 (estimate_edge_devirt_benefit): Likewise.
3993 (estimate_edge_size_and_time): Likewise.
3994 (estimate_calls_size_and_time): Likewise.
3995 (ipa_call_context::ipa_call_context): Likewise.
3996 (estimate_ipcp_clone_size_and_time): Likewise.
3997 * ipa-fnsummary.h (ipa_call_context): Replace
3998 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3999 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4000 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4001 (do_estimate_edge_size): Likewise.
4002 (do_estimate_edge_hints): Likewise.
4003
4004 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4005
4006 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4007 binary operations.
4008
4009 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4010
4011 * ipa-profile.c (check_argument_count): Check properly that e_info
4012 is non-NULL; do not check descriptors.
4013
4014 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4015
4016 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4017 check for ipa profiles.
4018
4019 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4020
4021 PR c++/92421
4022 * ipa-prop.c (update_indirect_edges_after_inlining):
4023 Mark parameter as used.
4024 * ipa-inline.c (recursive_inlining): Reset node cache
4025 after inlining.
4026 (inline_small_functions): Remove checking ifdef.
4027 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4028 cache consistency.
4029
4030 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4031
4032 PR ipa/92498
4033 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4034 is NULL.
4035 (ipa_profile): Fix reversed test.
4036
4037 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4038
4039 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4040 (propagate_constants_topo): Fix typo.
4041
4042 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4043
4044 * Makefile.in (OBJS): Add value-range.o.
4045 (GTFILES): Add value-range.h.
4046 * gengtype.c (open_base_files): Add value-range.h to list of
4047 header files.
4048 * tree-vrp.c: Move the following value_range related functions:
4049 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4050 constant_p, set_undefined, set_varying, may_contain_p,
4051 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4052 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4053 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4054 value_inside_range, ranges_from_anti_range, union_ranges,
4055 intersect_ranges, intersect_helper, union_helper, union_,
4056 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4057 upper_bound, contains_p, invert, intersect...
4058 * value-range.cc: ...to here.
4059 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4060 associated inline methods from here...
4061 * value-range.h: ...to here.
4062
4063 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4064
4065 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4066 instead of asserting its value.
4067
4068 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4069
4070 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4071 constructors and set methods so value_range_kind is the last
4072 argument and defaults to VR_RANGE.
4073 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4074 * ipa-cp.c (propagate_vr_across_jump_function): Same.
4075 * ipa-prop.c (ipa_get_value_range): Same.
4076 (ipa_compute_jump_functions_for_edge): Same.
4077 * range-op.cc (value_range_from_overflowed_bounds): Same.
4078 (operator_cast::op1_range): Same.
4079 (range_tests): Same.
4080 * range.cc (range_nonzero): Same.
4081 * tree-ssanames.c (get_range_info): Same.
4082 * tree-vrp.c (value_range_equiv::set): Same.
4083 (value_range::value_range): Same.
4084 (value_range_equiv::value_range_equiv): Same.
4085 (value_range_equiv::update): Same.
4086 (value_range_equiv::deep_copy): Same.
4087 (value_range_equiv::move): Same.
4088 (value_range_equiv::set_undefined): Same.
4089 (value_range::set): Same.
4090 (value_range::set_nonzero): Same.
4091 (ranges_from_anti_range): Same.
4092 (extract_range_from_plus_minus_expr): Same.
4093 (value_range::intersect_helper): Same.
4094 (value_range_equiv::intersect): Same.
4095 (value_range::union_helper): Same.
4096 (value_range_equiv::union_): Same.
4097 (value_range::normalize_symbolics): Same.
4098 (value_range::invert): Same.
4099 (determine_value_range_1): Same.
4100 * tree-vrp.h (class value_range): Same.
4101 (class value_range_equiv): Same.
4102 * vr-values.c (set_value_range_to_nonnegative): Same.
4103 (set_value_range_to_truthvalue): Same.
4104 (vr_values::update_value_range): Same.
4105 (vr_values::extract_range_for_var_from_comparison_expr): Same.
4106 (vr_values::extract_range_from_binary_expr): Same.
4107 (vr_values::extract_range_from_comparison): Same.
4108 (vr_values::extract_range_basic): Same.
4109 (vr_values::adjust_range_with_scev): Same.
4110 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4111 (vr_values::extract_range_from_phi_node): Same.
4112
4113 2019-11-13 Ulrich Drepper <drepper@redhat.com>
4114
4115 * tree-dump.c (dequeue_and_dump): Print first tree operand
4116 for VIEW_CONVERT_EXPR.
4117
4118 2019-11-13 Joseph Myers <joseph@codesourcery.com>
4119
4120 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4121 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4122 * real.c (get_max_float): Add norm_max argument.
4123 * real.h (get_max_float): Update prototype.
4124 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4125 get_max_float.
4126
4127 2019-11-13 Martin Liska <mliska@suse.cz>
4128
4129 * dbgcnt.c (test_sorted_dbg_counters): New.
4130 (dbgcnt_c_tests): Likewise.
4131 * selftest-run-tests.c (selftest::run_tests): Likewise.
4132 * selftest.h (dbgcnt_c_tests): Likewise.
4133
4134 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4135 Martin Jambor <mjambor@suse.cz>
4136
4137 PR ipa/92454
4138 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4139 (identify_dead_nodes): Likewise.
4140
4141 2019-11-13 Martin Liska <mliska@suse.cz>
4142
4143 * ipa-icf.c (sem_function::equals_private): Do not overuse
4144 push/pop_cfun functions.
4145
4146 2019-11-13 Martin Liska <mliska@suse.cz>
4147
4148 * common.opt: Document change of -fdbg-cnt option.
4149 * dbgcnt.c (DEBUG_COUNTER): Remove.
4150 (dbg_cnt_is_enabled): Remove.
4151 (dbg_cnt): Work with new intervals.
4152 (dbg_cnt_set_limit_by_index): Set to new
4153 list of intervals.
4154 (dbg_cnt_set_limit_by_name): Likewise.
4155 (dbg_cnt_process_single_pair): Process new format.
4156 (dbg_cnt_process_opt): Likewise.
4157 (dbg_cnt_list_all_counters): Likewise.
4158 * doc/invoke.texi: Document change of -fdbg-cnt option.
4159 (cmp_tuples): New.
4160
4161 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4162
4163 * ipa-inline.c (ipa_inline): Check that function is defined before
4164 flattening.
4165
4166 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4167 Julian Brown <julian@codesourcery.com>
4168
4169 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4170 flag_worker_partitioning is not set.
4171 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4172 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4173
4174 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4175
4176 * config/gcn/gcn-run.c (heap_region): New global variable.
4177 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4178 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4179 (get_kernarg_region): Move contents to ....
4180 (get_memory_region): .... here.
4181 (get_heap_region): New function.
4182 (init_device): Initialize the heap_region.
4183 (device_malloc): Add region parameter.
4184 (struct kernargs): Move heap ....
4185 (heap): ... to global scope.
4186 (main): Allocate heap separate to kernargs.
4187
4188 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4189
4190 * ipa-prop.c (ipa_print_node_jump_functions,
4191 ipa_print_node_params): Print info about missing summaries.
4192
4193 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4194
4195 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4196 the cost of generating loop masks.
4197
4198 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4199
4200 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4201 New function.
4202 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4203 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4204 (vect_transform_loop): Likewise.
4205 (vect_analyze_loop_costing): Don't take the cost of versioning
4206 into account for the static profitability threshold if it turns
4207 out that no versioning is needed.
4208
4209 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4210
4211 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4212 and target_option_default_node to get -fprofile-generate ctors working
4213 right with LTO.
4214
4215 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4216
4217 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4218 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4219 (vectorizable_assignment): Don't add a cost for nop conversions.
4220 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4221 Likewise.
4222 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4223
4224 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4225
4226 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4227 number of ncopies as an additional argument.
4228 (vectorizable_conversion): Update call accordingly. Use "modifier"
4229 to check whether a conversion is between vectors with the same
4230 numbers of units.
4231
4232 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4233
4234 * config/aarch64/aarch64-sve-builtins-functions.h
4235 (unary_count::expand): Use aarch64_sve_int_mode instead of
4236 mode_for_int_vector.
4237
4238 2019-11-13 Martin Liska <mliska@suse.cz>
4239
4240 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4241
4242 2019-11-13 Martin Liska <mliska@suse.cz>
4243
4244 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4245 Remove call to finalize_options_struct.
4246
4247 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4248
4249 PR target/92055
4250 * config/avr/t-avr (avr-mcus): Do not depend on
4251 $(srcdir)/config/avr/t-multilib.
4252
4253 2019-11-13 Richard Biener <rguenther@suse.de>
4254
4255 PR tree-optimization/92473
4256 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4257 direct optab reduction in the correct type.
4258
4259 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4260
4261 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4262 hexadecimal literal.
4263
4264 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4265
4266 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4267 UNORDERED if !HONOR_NANS (DFmode).
4268 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4269 if !HONOR_NANS (<MODE>mode).
4270
4271 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4272
4273 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4274 (ipcp_verify_propagated_values): Likewise.
4275 (propagate_constants_across_call): Likewise.
4276 (propagate_constants_topo): Likewise.
4277 (ipcp_propagate_stage): Likewise.
4278
4279 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4280
4281 PR ipa/92471
4282 * ipa-profile.c (check_argument_count): Break out from ...;
4283 watch for missing summaries.
4284 (ipa_profile): Here.
4285
4286 2019-11-12 Martin Sebor <msebor@redhat.com>
4287
4288 PR tree-optimization/92412
4289 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4290 extern variables.
4291
4292 2019-11-12 Martin Sebor <msebor@redhat.com>
4293
4294 PR middle-end/83688
4295 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4296 (directive::argno): New member.
4297 (format_result::aliases, format_result::alias_count): New data members.
4298 (format_result::append_alias): New member function.
4299 (fmtresult::dst_offset): New data member.
4300 (pass_sprintf_length::call_info::dst_origin): New data member.
4301 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4302 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4303 (get_origin_and_offset): Same.
4304 (format_string): Call it.
4305 (format_directive): Call append_alias and set directive argument
4306 number.
4307 (maybe_warn_overlap): New function.
4308 (pass_sprintf_length::compute_format_length): Call it.
4309 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4310 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4311
4312 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4313
4314 PR rtl-optimization/92430
4315 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4316 dominance info at the beginning.
4317
4318 2019-11-12 Richard Biener <rguenther@suse.de>
4319
4320 PR tree-optimization/92460
4321 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4322 expression before gimplifying.
4323
4324 2019-11-12 Richard Biener <rguenther@suse.de>
4325
4326 PR tree-optimization/92461
4327 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4328 stmt after propagation.
4329
4330 2019-11-12 Martin Liska <mliska@suse.cz>
4331
4332 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4333 Use SET_OPTION_IF_UNSET.
4334 (ix86_option_override_internal): Likewise.
4335 * opts.c (default_options_optimization): Likewise.
4336 (finish_options): Likewise.
4337 (enable_fdo_optimizations): Likewise.
4338 (common_handle_option): Likewise.
4339
4340 2019-11-12 Martin Liska <mliska@suse.cz>
4341
4342 * common/common-target.def: Remove option_validate_param and
4343 option_default_params.
4344 * common/common-targhooks.c (default_option_validate_param):
4345 Remove.
4346 * common/common-targhooks.h (default_option_validate_param):
4347 Remove.
4348 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4349 Remove usage of this.
4350 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4351 (aarch64_option_validate_param): Likewise.
4352 (aarch64_option_default_params): Likewise
4353 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4354 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4355 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4356 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4357 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4358 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4359 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4360 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4361 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4362 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4363 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4364 guard_size here.
4365 * doc/tm.texi: Remove option_default_params and option_validate_param.
4366 * doc/tm.texi.in: Likewise.
4367
4368 2019-11-12 Martin Liska <mliska@suse.cz>
4369
4370 * common/common-target.def:
4371 Do not mention set_default_param_value
4372 and set_param_value.
4373 * doc/tm.texi: Likewise.
4374
4375 2019-11-12 Martin Liska <mliska@suse.cz>
4376
4377 * common.opt: Remove param_values.
4378 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4379 Remove finalize_options_struct.
4380 * gcc.c (driver::decode_argv): Do not call global_init_params
4381 and finish_params.
4382 (driver::finalize): Do not call params_c_finalize
4383 and finalize_options_struct.
4384 * opt-suggestions.c (option_proposer::get_completions): Remove
4385 special casing of params.
4386 (option_proposer::find_param_completions): Remove.
4387 (test_completion_partial_match): Update expected output.
4388 * opt-suggestions.h: Remove find_param_completions.
4389 * opts-common.c (add_misspelling_candidates): Add
4390 --param with a space.
4391 * opts.c (handle_param): Remove.
4392 (init_options_struct):. Remove init_options_struct and
4393 similar calls.
4394 (finalize_options_struct): Remove.
4395 (common_handle_option): Use SET_OPTION_IF_UNSET.
4396 * opts.h (finalize_options_struct): Remove.
4397 * toplev.c (general_init): Do not call global_init_params.
4398 (toplev::finalize): Do not call params_c_finalize and
4399 finalize_options_struct.
4400
4401 2019-11-12 Martin Liska <mliska@suse.cz>
4402
4403 * Makefile.in: Remove PARAMS_H and params.list
4404 and params.options.
4405 * params-enum.h: Remove.
4406 * params-list.h: Remove.
4407 * params-options.h: Remove.
4408 * params.c: Remove.
4409 * params.def: Remove.
4410 * params.h: Remove.
4411 * asan.c: Do not include params.h.
4412 * auto-profile.c: Likewise.
4413 * bb-reorder.c: Likewise.
4414 * builtins.c: Likewise.
4415 * cfgcleanup.c: Likewise.
4416 * cfgexpand.c: Likewise.
4417 * cfgloopanal.c: Likewise.
4418 * cgraph.c: Likewise.
4419 * combine.c: Likewise.
4420 * common/config/aarch64/aarch64-common.c: Likewise.
4421 * common/config/gcn/gcn-common.c: Likewise.
4422 * common/config/ia64/ia64-common.c: Likewise.
4423 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4424 * common/config/rs6000/rs6000-common.c: Likewise.
4425 * common/config/sh/sh-common.c: Likewise.
4426 * config/aarch64/aarch64.c: Likewise.
4427 * config/alpha/alpha.c: Likewise.
4428 * config/arm/arm.c: Likewise.
4429 * config/avr/avr.c: Likewise.
4430 * config/csky/csky.c: Likewise.
4431 * config/i386/i386-builtins.c: Likewise.
4432 * config/i386/i386-expand.c: Likewise.
4433 * config/i386/i386-features.c: Likewise.
4434 * config/i386/i386-options.c: Likewise.
4435 * config/i386/i386.c: Likewise.
4436 * config/ia64/ia64.c: Likewise.
4437 * config/rs6000/rs6000-logue.c: Likewise.
4438 * config/rs6000/rs6000.c: Likewise.
4439 * config/s390/s390.c: Likewise.
4440 * config/sparc/sparc.c: Likewise.
4441 * config/visium/visium.c: Likewise.
4442 * coverage.c: Likewise.
4443 * cprop.c: Likewise.
4444 * cse.c: Likewise.
4445 * cselib.c: Likewise.
4446 * dse.c: Likewise.
4447 * emit-rtl.c: Likewise.
4448 * explow.c: Likewise.
4449 * final.c: Likewise.
4450 * fold-const.c: Likewise.
4451 * gcc.c: Likewise.
4452 * gcse.c: Likewise.
4453 * ggc-common.c: Likewise.
4454 * ggc-page.c: Likewise.
4455 * gimple-loop-interchange.cc: Likewise.
4456 * gimple-loop-jam.c: Likewise.
4457 * gimple-loop-versioning.cc: Likewise.
4458 * gimple-ssa-split-paths.c: Likewise.
4459 * gimple-ssa-sprintf.c: Likewise.
4460 * gimple-ssa-store-merging.c: Likewise.
4461 * gimple-ssa-strength-reduction.c: Likewise.
4462 * gimple-ssa-warn-alloca.c: Likewise.
4463 * gimple-ssa-warn-restrict.c: Likewise.
4464 * graphite-isl-ast-to-gimple.c: Likewise.
4465 * graphite-optimize-isl.c: Likewise.
4466 * graphite-scop-detection.c: Likewise.
4467 * graphite-sese-to-poly.c: Likewise.
4468 * graphite.c: Likewise.
4469 * haifa-sched.c: Likewise.
4470 * hsa-gen.c: Likewise.
4471 * ifcvt.c: Likewise.
4472 * ipa-cp.c: Likewise.
4473 * ipa-fnsummary.c: Likewise.
4474 * ipa-inline-analysis.c: Likewise.
4475 * ipa-inline.c: Likewise.
4476 * ipa-polymorphic-call.c: Likewise.
4477 * ipa-profile.c: Likewise.
4478 * ipa-prop.c: Likewise.
4479 * ipa-split.c: Likewise.
4480 * ipa-sra.c: Likewise.
4481 * ira-build.c: Likewise.
4482 * ira-conflicts.c: Likewise.
4483 * loop-doloop.c: Likewise.
4484 * loop-invariant.c: Likewise.
4485 * loop-unroll.c: Likewise.
4486 * lra-assigns.c: Likewise.
4487 * lra-constraints.c: Likewise.
4488 * modulo-sched.c: Likewise.
4489 * opt-suggestions.c: Likewise.
4490 * opts.c: Likewise.
4491 * postreload-gcse.c: Likewise.
4492 * predict.c: Likewise.
4493 * reload.c: Likewise.
4494 * reorg.c: Likewise.
4495 * resource.c: Likewise.
4496 * sanopt.c: Likewise.
4497 * sched-deps.c: Likewise.
4498 * sched-ebb.c: Likewise.
4499 * sched-rgn.c: Likewise.
4500 * sel-sched-ir.c: Likewise.
4501 * sel-sched.c: Likewise.
4502 * shrink-wrap.c: Likewise.
4503 * stmt.c: Likewise.
4504 * targhooks.c: Likewise.
4505 * toplev.c: Likewise.
4506 * tracer.c: Likewise.
4507 * trans-mem.c: Likewise.
4508 * tree-chrec.c: Likewise.
4509 * tree-data-ref.c: Likewise.
4510 * tree-if-conv.c: Likewise.
4511 * tree-inline.c: Likewise.
4512 * tree-loop-distribution.c: Likewise.
4513 * tree-parloops.c: Likewise.
4514 * tree-predcom.c: Likewise.
4515 * tree-profile.c: Likewise.
4516 * tree-scalar-evolution.c: Likewise.
4517 * tree-sra.c: Likewise.
4518 * tree-ssa-ccp.c: Likewise.
4519 * tree-ssa-dom.c: Likewise.
4520 * tree-ssa-dse.c: Likewise.
4521 * tree-ssa-ifcombine.c: Likewise.
4522 * tree-ssa-loop-ch.c: Likewise.
4523 * tree-ssa-loop-im.c: Likewise.
4524 * tree-ssa-loop-ivcanon.c: Likewise.
4525 * tree-ssa-loop-ivopts.c: Likewise.
4526 * tree-ssa-loop-manip.c: Likewise.
4527 * tree-ssa-loop-niter.c: Likewise.
4528 * tree-ssa-loop-prefetch.c: Likewise.
4529 * tree-ssa-loop-unswitch.c: Likewise.
4530 * tree-ssa-math-opts.c: Likewise.
4531 * tree-ssa-phiopt.c: Likewise.
4532 * tree-ssa-pre.c: Likewise.
4533 * tree-ssa-reassoc.c: Likewise.
4534 * tree-ssa-sccvn.c: Likewise.
4535 * tree-ssa-scopedtables.c: Likewise.
4536 * tree-ssa-sink.c: Likewise.
4537 * tree-ssa-strlen.c: Likewise.
4538 * tree-ssa-structalias.c: Likewise.
4539 * tree-ssa-tail-merge.c: Likewise.
4540 * tree-ssa-threadbackward.c: Likewise.
4541 * tree-ssa-threadedge.c: Likewise.
4542 * tree-ssa-uninit.c: Likewise.
4543 * tree-switch-conversion.c: Likewise.
4544 * tree-vect-data-refs.c: Likewise.
4545 * tree-vect-loop.c: Likewise.
4546 * tree-vect-slp.c: Likewise.
4547 * tree-vrp.c: Likewise.
4548 * tree.c: Likewise.
4549 * value-prof.c: Likewise.
4550 * var-tracking.c: Likewise.
4551
4552 2019-11-12 Martin Liska <mliska@suse.cz>
4553
4554 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4555 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4556 macro.
4557 (asan_sanitize_allocas_p): Likewise.
4558 (asan_emit_stack_protection): Likewise.
4559 (asan_protect_global): Likewise.
4560 (instrument_derefs): Likewise.
4561 (instrument_builtin_call): Likewise.
4562 (asan_expand_mark_ifn): Likewise.
4563 * auto-profile.c (auto_profile): Likewise.
4564 * bb-reorder.c (copy_bb_p): Likewise.
4565 (duplicate_computed_gotos): Likewise.
4566 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4567 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4568 (try_crossjump_bb): Likewise.
4569 * cfgexpand.c (defer_stack_allocation): Likewise.
4570 (stack_protect_classify_type): Likewise.
4571 (pass_expand::execute): Likewise.
4572 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4573 (estimate_reg_pressure_cost): Likewise.
4574 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4575 * combine.c (combine_instructions): Likewise.
4576 (record_value_for_reg): Likewise.
4577 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4578 (aarch64_option_default_params): Likewise.
4579 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4580 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4581 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4582 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4583 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4584 (aarch64_allocate_and_probe_stack_space): Likewise.
4585 (aarch64_expand_epilogue): Likewise.
4586 (aarch64_override_options_internal): Likewise.
4587 * config/alpha/alpha.c (alpha_option_override): Likewise.
4588 * config/arm/arm.c (arm_option_override): Likewise.
4589 (arm_valid_target_attribute_p): Likewise.
4590 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4591 * config/i386/i386.c (get_probe_interval): Likewise.
4592 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4593 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4594 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4595 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4596 (get_stack_clash_protection_guard_size): Likewise.
4597 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4598 * config/s390/s390.c (allocate_stack_space): Likewise.
4599 (s390_emit_prologue): Likewise.
4600 (s390_option_override_internal): Likewise.
4601 * config/sparc/sparc.c (sparc_option_override): Likewise.
4602 * config/visium/visium.c (visium_option_override): Likewise.
4603 * coverage.c (get_coverage_counts): Likewise.
4604 (coverage_compute_profile_id): Likewise.
4605 (coverage_begin_function): Likewise.
4606 (coverage_end_function): Likewise.
4607 * cse.c (cse_find_path): Likewise.
4608 (cse_extended_basic_block): Likewise.
4609 (cse_main): Likewise.
4610 * cselib.c (cselib_invalidate_mem): Likewise.
4611 * dse.c (dse_step1): Likewise.
4612 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4613 (get_max_insn_count): Likewise.
4614 (make_debug_insn_raw): Likewise.
4615 (init_emit): Likewise.
4616 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4617 * final.c (compute_alignments): Likewise.
4618 * fold-const.c (fold_range_test): Likewise.
4619 (fold_truth_andor): Likewise.
4620 (tree_single_nonnegative_warnv_p): Likewise.
4621 (integer_valued_real_single_p): Likewise.
4622 * gcse.c (want_to_gcse_p): Likewise.
4623 (prune_insertions_deletions): Likewise.
4624 (hoist_code): Likewise.
4625 (gcse_or_cprop_is_too_expensive): Likewise.
4626 * ggc-common.c: Likewise.
4627 * ggc-page.c (ggc_collect): Likewise.
4628 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4629 (MAX_DATAREFS): Likewise.
4630 (OUTER_STRIDE_RATIO): Likewise.
4631 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4632 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4633 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4634 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4635 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4636 (imm_store_chain_info::output_merged_store): Likewise.
4637 (pass_store_merging::process_store): Likewise.
4638 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4639 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4640 (scop_to_isl_ast): Likewise.
4641 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4642 (optimize_isl): Likewise.
4643 * graphite-scop-detection.c (build_scops): Likewise.
4644 * haifa-sched.c (set_modulo_params): Likewise.
4645 (rank_for_schedule): Likewise.
4646 (model_add_to_worklist): Likewise.
4647 (model_promote_insn): Likewise.
4648 (model_choose_insn): Likewise.
4649 (queue_to_ready): Likewise.
4650 (autopref_multipass_dfa_lookahead_guard): Likewise.
4651 (schedule_block): Likewise.
4652 (sched_init): Likewise.
4653 * hsa-gen.c (init_prologue): Likewise.
4654 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4655 (cond_move_process_if_block): Likewise.
4656 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4657 (merge_agg_lats_step): Likewise.
4658 (devirtualization_time_bonus): Likewise.
4659 (hint_time_bonus): Likewise.
4660 (incorporate_penalties): Likewise.
4661 (good_cloning_opportunity_p): Likewise.
4662 (ipcp_propagate_stage): Likewise.
4663 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4664 (set_switch_stmt_execution_predicate): Likewise.
4665 (analyze_function_body): Likewise.
4666 (compute_fn_summary): Likewise.
4667 * ipa-inline-analysis.c (estimate_growth): Likewise.
4668 * ipa-inline.c (caller_growth_limits): Likewise.
4669 (inline_insns_single): Likewise.
4670 (inline_insns_auto): Likewise.
4671 (can_inline_edge_by_limits_p): Likewise.
4672 (want_early_inline_function_p): Likewise.
4673 (big_speedup_p): Likewise.
4674 (want_inline_small_function_p): Likewise.
4675 (want_inline_self_recursive_call_p): Likewise.
4676 (edge_badness): Likewise.
4677 (recursive_inlining): Likewise.
4678 (compute_max_insns): Likewise.
4679 (early_inliner): Likewise.
4680 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4681 * ipa-profile.c (ipa_profile): Likewise.
4682 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4683 (ipa_analyze_node): Likewise.
4684 (ipcp_transform_function): Likewise.
4685 * ipa-split.c (consider_split): Likewise.
4686 * ipa-sra.c (allocate_access): Likewise.
4687 (process_scan_results): Likewise.
4688 (ipa_sra_summarize_function): Likewise.
4689 (pull_accesses_from_callee): Likewise.
4690 * ira-build.c (loop_compare_func): Likewise.
4691 (mark_loops_for_removal): Likewise.
4692 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4693 * loop-doloop.c (doloop_optimize): Likewise.
4694 * loop-invariant.c (gain_for_invariant): Likewise.
4695 (move_loop_invariants): Likewise.
4696 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4697 (decide_unroll_runtime_iterations): Likewise.
4698 (decide_unroll_stupid): Likewise.
4699 (expand_var_during_unrolling): Likewise.
4700 * lra-assigns.c (spill_for): Likewise.
4701 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4702 * modulo-sched.c (sms_schedule): Likewise.
4703 (DFA_HISTORY): Likewise.
4704 * opts.c (default_options_optimization): Likewise.
4705 (finish_options): Likewise.
4706 (common_handle_option): Likewise.
4707 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4708 (if): Likewise.
4709 * predict.c (get_hot_bb_threshold): Likewise.
4710 (maybe_hot_count_p): Likewise.
4711 (probably_never_executed): Likewise.
4712 (predictable_edge_p): Likewise.
4713 (predict_loops): Likewise.
4714 (expr_expected_value_1): Likewise.
4715 (tree_predict_by_opcode): Likewise.
4716 (handle_missing_profiles): Likewise.
4717 * reload.c (find_equiv_reg): Likewise.
4718 * reorg.c (redundant_insn): Likewise.
4719 * resource.c (mark_target_live_regs): Likewise.
4720 (incr_ticks_for_insn): Likewise.
4721 * sanopt.c (pass_sanopt::execute): Likewise.
4722 * sched-deps.c (sched_analyze_1): Likewise.
4723 (sched_analyze_2): Likewise.
4724 (sched_analyze_insn): Likewise.
4725 (deps_analyze_insn): Likewise.
4726 * sched-ebb.c (schedule_ebbs): Likewise.
4727 * sched-rgn.c (find_single_block_region): Likewise.
4728 (too_large): Likewise.
4729 (haifa_find_rgns): Likewise.
4730 (extend_rgns): Likewise.
4731 (new_ready): Likewise.
4732 (schedule_region): Likewise.
4733 (sched_rgn_init): Likewise.
4734 * sel-sched-ir.c (make_region_from_loop): Likewise.
4735 * sel-sched-ir.h (MAX_WS): Likewise.
4736 * sel-sched.c (process_pipelined_exprs): Likewise.
4737 (sel_setup_region_sched_flags): Likewise.
4738 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4739 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4740 * toplev.c (print_version): Likewise.
4741 (process_options): Likewise.
4742 * tracer.c (tail_duplicate): Likewise.
4743 * trans-mem.c (tm_log_add): Likewise.
4744 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4745 * tree-data-ref.c (split_constant_offset): Likewise.
4746 (compute_all_dependences): Likewise.
4747 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4748 * tree-inline.c (remap_gimple_stmt): Likewise.
4749 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4750 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4751 (create_parallel_loop): Likewise.
4752 * tree-predcom.c (determine_unroll_factor): Likewise.
4753 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4754 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4755 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4756 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4757 (dse_optimize_redundant_stores): Likewise.
4758 (dse_classify_store): Likewise.
4759 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4760 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4761 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4762 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4763 (try_peel_loop): Likewise.
4764 (tree_unroll_loops_completely): Likewise.
4765 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4766 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4767 (MAX_CONSIDERED_GROUPS): Likewise.
4768 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4769 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4770 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4771 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4772 (L1_CACHE_SIZE_BYTES): Likewise.
4773 (L2_CACHE_SIZE_BYTES): Likewise.
4774 (should_issue_prefetch_p): Likewise.
4775 (schedule_prefetches): Likewise.
4776 (determine_unroll_factor): Likewise.
4777 (volume_of_references): Likewise.
4778 (add_subscript_strides): Likewise.
4779 (self_reuse_distance): Likewise.
4780 (mem_ref_count_reasonable_p): Likewise.
4781 (insn_to_prefetch_ratio_too_small_p): Likewise.
4782 (loop_prefetch_arrays): Likewise.
4783 (tree_ssa_prefetch_arrays): Likewise.
4784 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4785 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4786 (convert_mult_to_fma): Likewise.
4787 (math_opts_dom_walker::after_dom_children): Likewise.
4788 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4789 (hoist_adjacent_loads): Likewise.
4790 (gate_hoist_loads): Likewise.
4791 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4792 (compute_partial_antic_aux): Likewise.
4793 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4794 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4795 (vn_reference_lookup): Likewise.
4796 (do_rpo_vn): Likewise.
4797 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4798 * tree-ssa-sink.c (select_best_block): Likewise.
4799 * tree-ssa-strlen.c (new_stridx): Likewise.
4800 (new_addr_stridx): Likewise.
4801 (get_range_strlen_dynamic): Likewise.
4802 (class ssa_name_limit_t): Likewise.
4803 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4804 (create_variable_info_for_1): Likewise.
4805 (init_alias_vars): Likewise.
4806 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4807 (tail_merge_optimize): Likewise.
4808 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4809 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4810 (thread_jumps::find_jump_threads_backwards): Likewise.
4811 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4812 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4813 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4814 (jump_table_cluster::can_be_handled): Likewise.
4815 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4816 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4817 (param_switch_conversion_branch_ratio): Likewise.
4818 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4819 (vect_enhance_data_refs_alignment): Likewise.
4820 (vect_prune_runtime_alias_test_list): Likewise.
4821 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4822 (vect_get_datarefs_in_loop): Likewise.
4823 (vect_analyze_loop): Likewise.
4824 * tree-vect-slp.c (vect_slp_bb): Likewise.
4825 * tree-vectorizer.h: Likewise.
4826 * tree-vrp.c (find_switch_asserts): Likewise.
4827 (vrp_prop::check_mem_ref): Likewise.
4828 * tree.c (wide_int_to_tree_1): Likewise.
4829 (cache_integer_cst): Likewise.
4830 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4831 (reverse_op): Likewise.
4832 (vt_find_locations): Likewise.
4833
4834 2019-11-12 Martin Liska <mliska@suse.cz>
4835
4836 * Makefile.in: Include params.opt.
4837 * flag-types.h (enum parloops_schedule_type): Add
4838 parloops_schedule_type used in params.opt.
4839 * params.opt: New file.
4840
4841 2019-11-12 Martin Liska <mliska@suse.cz>
4842
4843 * common.opt: Remove --param and --param= options.
4844 * opt-functions.awk: Mark CL_PARAMS for options
4845 that have Param keyword.
4846 * opts-common.c (decode_cmdline_options_to_array):
4847 Replace --param key=value with --param=key=value.
4848 * opts.c (print_filtered_help): Remove special
4849 printing of params.
4850 (print_specific_help): Update title for params.
4851 (common_handle_option): Do not handle OPT__param.
4852 opts.h (SET_OPTION_IF_UNSET): New macro.
4853 * doc/options.texi: Document Param keyword.
4854
4855 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4856 Frederik Harwath <frederik@codesourcery.com>
4857 Thomas Schwinge <thomas@codesourcery.com>
4858
4859 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4860 enumeration constant.
4861 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4862 (is_gimple_omp_offloaded): Likewise.
4863 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4864 constant. Adjust the value of ORT_NONE accordingly.
4865 (is_gimple_stmt): Handle OACC_SERIAL.
4866 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4867 (gomp_needs_data_present): Likewise.
4868 (gimplify_adjust_omp_clauses): Likewise.
4869 (gimplify_omp_workshare): Handle OACC_SERIAL.
4870 (gimplify_expr): Likewise.
4871 * omp-expand.c (expand_omp_target):
4872 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4873 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4874 * omp-low.c (is_oacc_parallel): Rename function to...
4875 (is_oacc_parallel_or_serial): ... this.
4876 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4877 (scan_sharing_clauses): Adjust accordingly.
4878 (scan_omp_for): Likewise.
4879 (lower_oacc_head_mark): Likewise.
4880 (convert_from_firstprivate_int): Likewise.
4881 (lower_omp_target): Likewise.
4882 (check_omp_nesting_restrictions): Handle
4883 GF_OMP_TARGET_KIND_OACC_SERIAL.
4884 (lower_oacc_reductions): Likewise.
4885 (lower_omp_target): Likewise.
4886 * tree.def (OACC_SERIAL): New tree code.
4887 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4888
4889 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4890
4891 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4892
4893 PR target/92449
4894 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4895 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4896
4897 PR tree-optimization/92452
4898 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4899 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4900 MINUS_EXPR on it.
4901
4902 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4903
4904 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4905 safelen with 0.
4906
4907 2019-11-12 Alan Modra <amodra@gmail.com>
4908
4909 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4910 element of unspec vec.
4911 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4912 PC-relative TLS.
4913 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4914 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4915 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4916 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4917
4918 2019-11-12 Alan Modra <amodra@gmail.com>
4919
4920 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4921 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4922 (IS_NOMARK_TLSGETADDR): Likewise.
4923 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4924 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4925 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4926 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4927 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4928 (rs6000_indirect_call_template_1): Likewise.
4929 (rs6000_pltseq_template): Likewise.
4930 (rs6000_opt_vars): Remove "tls-markers" entry.
4931 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4932 with TARGET_ELF.
4933 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4934 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4935 (pltseq_plt_pcrel<mode>): Likewise.
4936 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4937 (call_value_local64): Likewise.
4938 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4939 output and length attribute sub-expression.
4940 (call_value_nonlocal_sysv<mode>),
4941 (call_value_nonlocal_sysv_secure<mode>),
4942 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4943 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4944 (call_value_indirect_pcrel<mode>): Likewise.
4945 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4946 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4947 * configure: Regenerate.
4948 * config.in: Regenerate.
4949
4950 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4951
4952 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4953 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4954 address being a prefixed load/store.
4955 (stack_protect_testdi): Deal with either address being a prefixed
4956 load.
4957
4958 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4959
4960 PR bootstrap/92433
4961 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4962 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4963 std::swap.
4964
4965 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4966
4967 PR tree-optimization/92420
4968 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4969 up file.
4970 (get_group_load_store_type): Use it for reversed SLP accesses.
4971
4972 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4973
4974 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4975 summary.
4976 (ipcp_transformation_t::duplicate): Break out from ...
4977 (ipa_node_params_t::duplicate): ... here; add copying of agg
4978 replacements.
4979 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4980 (ipcp_transformation_t): Add duplicate.
4981
4982 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4983
4984 PR fortran/91828
4985 * doc/install.texi: Document that the minimum MPFR version is
4986 3.1.0.
4987
4988 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4989
4990 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4991 use new register constraint letters.
4992
4993 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4994
4995 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4996 as well, if interesting recover the symbol and re-legitimize the
4997 pic address.
4998
4999 2019-11-11 Martin Liska <mliska@suse.cz>
5000
5001 * dbgcnt.def (DEBUG_COUNTER): Sort counters
5002 alphabetically.
5003
5004 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
5005
5006 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5007 account when checking if there are enough iterations to vectorize
5008 epilogue.
5009
5010 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5011 Kwok Cheung Yeung <kcy@codesourcery.com>
5012
5013 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5014 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5015 (LANG_HOOKS_DECLS): Rename also here.
5016 * langhooks.h (lang_hooks_for_decls): Rename
5017 omp_is_optional_argument to omp_check_optional_argument; take
5018 additional bool argument.
5019 * omp-general.h (omp_check_optional_argument): Likewise.
5020 * omp-general.h (omp_check_optional_argument): Likewise.
5021 * omp-low.c (lower_omp_target): Update calls; handle absent
5022 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5023
5024 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
5025
5026 PR target/87833
5027 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5028 -fPIC and -shared the last to create offload image.
5029
5030 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5031
5032 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5033 of 'offset'.
5034
5035 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5036 (config.status): Use/depend on it.
5037 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5038 * configure: Regenerate.
5039
5040 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
5041
5042 PR tree-optimization/88760
5043 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5044 * common/config/rs6000/rs6000-common.c
5045 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5046 Turn on -funroll-loops and -munroll-only-small-loops.
5047 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5048 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5049 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5050 Turn off -munroll-only-small-loops for explicit -funroll-loops.
5051 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5052 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
5053
5054 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
5055
5056 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5057 Make scalar_load, vector_load, unaligned_load and
5058 vector_gather_load cost more to conform hardware latency and
5059 insn cost settings.
5060
5061 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
5062
5063 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5064 (MACHO_SYMBOL_LINKER_VIS_P): New.
5065
5066 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
5067
5068 * lra-spills.c (assign_spill_hard_regs): Do not spill into
5069 registers in eliminable_regset.
5070
5071 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5072
5073 * ipa-inline.c (compute_uninlined_call_time,
5074 compute_inlined_call_time): Take edge frequency as
5075 parameter rather than computing it by itself.
5076 (big_speedup_p, edge_badness): Manually CSE sreal
5077 frequency calculations.
5078
5079 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5080
5081 * profile-count.c (profile_count::to_sreal_scale): Short circuit
5082 case where profiles are same.
5083
5084 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5085
5086 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5087
5088 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5089
5090 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5091 args summaries of inlined edge unless it holds info about
5092 described reference.
5093
5094 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5095
5096 * config/rs6000/rs6000.md (CC_any): New mode iterator.
5097 (*movcc_internal1): Rename to...
5098 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
5099
5100 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5101
5102 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5103 (cgraph_node::create_virtual_clone): Copy it.
5104 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5105 summaries.
5106 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5107 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5108 is disabled.
5109 (propagate_constants_across_call): If callee is not analyzed, give up.
5110 (propagate_constants_topo): Lower to bottom latties of all callees of
5111 functions with ipa-cp disabled.
5112 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5113 (cgraph_edge_brings_value_p): Check for availability first.
5114 (create_specialized_node): Set ipcp_clone.
5115 (ipcp_store_bits_results): Check that info is present.
5116 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5117 thunks.
5118 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5119 conservative when callee summary is missing.
5120 (remap_edge_summaries): Lookup call summary only when needed.
5121 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5122 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5123 Use get_create.
5124 (ipa_analyze_node): Use get_create.
5125 (propagate_controlled_uses): Do not propagate when function is not
5126 analyzed.
5127 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5128 (ipa_read_node_info): Use get_create.
5129 * ipa-prop.h (IPA_NODE_REF): Use get.
5130 (IPA_NODE_REF_GET_CREATE): New.
5131
5132 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5133
5134 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5135 on function symbol.
5136
5137 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5138
5139 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5140 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5141 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5142 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5143
5144 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5145
5146 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5147 capping the growth cumulated.
5148 (offline_size): Break out from ...
5149 (estimate_growth): ... here.
5150 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5151 parameters.
5152 (growth_likely_positive): Turn to ...
5153 (growth_positive_p): Re-implement.
5154 * ipa-inline.h (growth_likely_positive): Remove.
5155 (growth_positive_p): Declare.
5156 * ipa-inline.c (want_inline_small_function_p): Use
5157 growth_positive_p.
5158 (want_inline_function_to_all_callers_p): Likewise.
5159
5160 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5161
5162 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5163 calculation of min_size.
5164 (ipa_update_overall_fn_summary): Likewise.
5165
5166 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5167
5168 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5169 estimate_edge_devirt_benefit when not computing hints;
5170 do not compute time when not asked for.
5171 (estimate_calls_size_and_time): Pass NULL hints and time when
5172 these are not computed; do not evaluate hint predicates when these are
5173 not computed.
5174 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5175 frequency.
5176
5177 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5178
5179 PR tree-optimization/92401
5180 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5181 if res_op->code is an expression with code length 1.
5182 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5183 if res_op->code is an expression with code length 2.
5184 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5185 if res_op->code is an expression with code length 3.
5186
5187 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5188
5189 * config/darwin.c (machopic_mcount_stub_name): Validate the
5190 symbol stub name when it is created.
5191 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5192 stub validation.
5193
5194 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5195
5196 * symtab.c: Fix comment typos.
5197 * cgraphunit.c: Likewise.
5198 * cgraph.h: Likewise.
5199 * cgraphclones.c: Likewise.
5200 * cgraph.c: Likewise.
5201 * varpool.c: Likewise.
5202 * tree-ssa-strlen.c: Likewise.
5203 * ipa-sra.c: Likewise.
5204 (scan_expr_access, check_all_callers_for_issues): Fix typo
5205 in a dump message.
5206
5207 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5208
5209 * config/darwin-protos.h: Add include quard.
5210
5211 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5212
5213 * range-op.h (range_operator::fold_range): Return result in a
5214 reference parameter instead of by value.
5215 (range_operator::wi_fold): Same.
5216 * range-op.cc (range_operator::wi_fold): Return result in a reference
5217 parameter instead of by value.
5218 (range_operator::fold_range): Same.
5219 (value_range_from_overflowed_bounds): Same.
5220 (value_range_with_overflow): Same
5221 (create_possibly_reversed_range): Same.
5222 (operator_equal::fold_range): Same.
5223 (operator_not_equal::fold_range): Same.
5224 (operator_lt::fold_range): Same.
5225 (operator_le::fold_range): Same.
5226 (operator_gt::fold_range): Same.
5227 (operator_ge::fold_range): Same.
5228 (operator_plus::wi_fold): Same.
5229 (operator_plus::op1_range): Change call to fold_range.
5230 (operator_plus::op2_range): Change call to fold_range.
5231 (operator_minus::wi_fold): Return result via reference parameter.
5232 (operator_minus::op1_range): Change call to fold_range.
5233 (operator_minus::op2_range): Change call to fold_range.
5234 (operator_min::wi_fold): Return result via reference parameter.
5235 (operator_max::wi_fold): Same.
5236 (cross_product_operator::wi_cross_product): Same.
5237 (operator_mult::wi_fold): Same.
5238 (operator_div::wi_fold): Same.
5239 (operator_div op_floor_div): Fix whitespace.
5240 (operator_exact_divide::op1_range): Change call to fold_range.
5241 (operator_lshift::fold_range): Return result via reference parameter.
5242 (operator_lshift::wi_fold): Same.
5243 (operator_rshift::fold_range): Same.
5244 (operator_rshift::wi_fold): Same.
5245 (operator_cast::fold_range): Same.
5246 (operator_cast::op1_range): Change calls to fold_range.
5247 (operator_logical_and::fold_range): Return result via reference.
5248 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5249 (operator_bitwise_and::wi_fold): Return result via reference.
5250 (operator_logical_or::fold_range): Same.
5251 (operator_bitwise_or::wi_fold): Same.
5252 (operator_bitwise_xor::wi_fold): Same.
5253 (operator_trunc_mod::wi_fold): Same.
5254 (operator_logical_not::fold_range): Same.
5255 (operator_bitwise_not::fold_range): Same.
5256 (operator_bitwise_not::op1_range): Change call to fold_range.
5257 (operator_cst::fold_range): Return result via reference.
5258 (operator_identity::fold_range): Same.
5259 (operator_abs::wi_fold): Same.
5260 (operator_absu::wi_fold): Same.
5261 (operator_negate::fold_range): Same.
5262 (operator_negate::op1_range): Change call to fold_range.
5263 (operator_addr_expr::fold_range): Return result via reference.
5264 (operator_addr_expr::op1_range): Change call to fold_range.
5265 (operator_pointer_plus::wi_fold): Return result via reference.
5266 (operator_pointer_min_max::wi_fold): Same.
5267 (operator_pointer_and::wi_fold): Same.
5268 (operator_pointer_or::wi_fold): Same.
5269 (range_op_handler): Change call to fold_range.
5270 (range_cast): Same.
5271 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5272 fold_range.
5273 (range_fold_unary_symbolics_p): Same.
5274 (range_fold_binary_expr): Same.
5275 (range_fold_unary_expr): Same.
5276
5277 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5278
5279 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5280 vector type as an argument rather than reading it from the
5281 stmt_vec_info.
5282 (vect_create_epilog_for_reduction): Update accordingly.
5283 (vectorizable_reduction): Likewise.
5284 (vect_transform_cycle_phi): Likewise.
5285
5286 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5287
5288 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5289 the comparison codes that make sense for the mode used, and only the
5290 codes that can be done with a single branch instruction.
5291
5292 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5293
5294 PR tree-optimization/92351
5295 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5296 peeling the main loop for alignment, make sure to set the misalignment
5297 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5298
5299 2019-11-08 Richard Biener <rguenther@suse.de>
5300
5301 * dbgcnt.def (ivopts_loop): Add.
5302 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5303 ivopts_loop before optimizing a loop.
5304
5305 2019-11-08 Richard Biener <rguenther@suse.de>
5306
5307 PR ipa/92409
5308 * tree-inline.c (declare_return_variable): Properly handle
5309 type mismatches for the return slot.
5310
5311 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5312
5313 PR target/92095
5314 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5315 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5316 change.
5317 (got_helper_needed): New static variable.
5318 (output_load_pcrel_sym): New function.
5319 (get_pc_thunk_name): Remove after inlining...
5320 (load_got_register): ...here. Rework the initialization of the GOT
5321 register and of the GOT helper.
5322 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5323 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5324 helper must be emitted. Use output_asm_insn instead of fprintf.
5325 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5326 if optimization is enabled.
5327 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5328 by calling output_load_pcrel_sym.
5329
5330 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5331
5332 * tree-sra.c (create_access): Delay disqualifying the base
5333 for poly_int values until we know we have a base.
5334
5335 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5336
5337 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5338 for loops with SIMDUID set. Enable epilogue vectorization for loops
5339 with SIMDLEN set after finding a main loop with a VF that matches it.
5340
5341 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5342
5343 PR target/92038
5344 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5345 value only, return non-NULL if there is a single non-clobber
5346 constituent store even if there are constituent clobbers and return
5347 one of clobber constituent stores if all constituent stores are
5348 clobbers.
5349 (split_group): Handle clobbers.
5350 (imm_store_chain_info::output_merged_store): When computing
5351 bzero_first, look after all clobbers at the start. Don't count
5352 clobber stmts in orig_num_stmts, except if the first orig store is
5353 a clobber covering the whole area and split_stores cover the whole
5354 area, consider equal number of stmts ok. Punt if split_stores
5355 contains only ->orig stores and their number plus number of original
5356 clobbers is equal to original number of stmts. For ->orig, look past
5357 clobbers in the constituent stores.
5358 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5359 stmts.
5360 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5361 rhs.
5362 (store_valid_for_store_merging_p): Allow clobber stmts.
5363 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5364
5365 PR c++/92384
5366 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5367 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5368 slot.
5369 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5370 force creation of a unique data.stack_parm slot.
5371
5372 2019-11-08 Richard Biener <rguenther@suse.de>
5373
5374 * genmatch.c (expr::gen_transform): Use the resimplify
5375 member function instead of hard-coding the gimple_resimplifyN variant.
5376 (dt_simplify::gen_1): Likewise.
5377
5378 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5379
5380 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5381 POLY_INT_CST.
5382
5383 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5384
5385 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5386 instead of INTEGER_CST.
5387
5388 2019-11-08 Richard Biener <rguenther@suse.de>
5389
5390 PR tree-optimization/92324
5391 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5392 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5393 sign-conversions as necessary.
5394 (vectorizable_reduction): Reject conversions in the chain
5395 that are not sign-conversions, base analysis on a non-converting
5396 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5397 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5398 for debug stmts.
5399 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5400 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5401
5402 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5403
5404 PR target/92055
5405 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5406 Fix a missing '-' when displaying these options in the
5407 help screen.
5408
5409 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5410
5411 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5412
5413 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5414
5415 * config/aarch64/aarch64-builtins.c
5416 (aarch64_builtin_vectorized_function): Remove bswap handling.
5417
5418 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5419
5420 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5421 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5422 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5423 Treat the vector types as indivisible.
5424
5425 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5426
5427 * optabs.def (gather_load_optab, mask_gather_load_optab)
5428 (scatter_store_optab, mask_scatter_store_optab): Turn into
5429 conversion optabs, with the offset mode given explicitly.
5430 * doc/md.texi: Update accordingly.
5431 * config/aarch64/aarch64-sve-builtins-base.cc
5432 (svld1_gather_impl::expand): Likewise.
5433 (svst1_scatter_impl::expand): Likewise.
5434 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5435 (expand_scatter_store_optab_fn): Likewise.
5436 (direct_gather_load_optab_supported_p): Likewise.
5437 (direct_scatter_store_optab_supported_p): Likewise.
5438 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5439 to be argument 4.
5440 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5441 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5442 argument with the offset vector type. Require the two vector
5443 types to have the same number of elements but allow their element
5444 sizes to be different. Treat the optabs as conversion optabs.
5445 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5446 prototype accordingly.
5447 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5448 (supports_vec_convert_optab_p): ...this new function.
5449 (supports_vec_gather_load_p): Update accordingly.
5450 (supports_vec_scatter_store_p): Likewise.
5451 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5452 Replace the offset sign and bits parameters with a scalar type tree.
5453 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5454 Pass back the offset vector type instead of the scalar element type.
5455 Allow the offset to be wider than the memory elements. Search for
5456 an offset type that the target supports, stopping once we've
5457 reached the maximum of the element size and pointer size.
5458 Update call to internal_gather_scatter_fn_supported_p.
5459 (vect_check_gather_scatter): Update calls accordingly.
5460 When testing a new scale before knowing the final offset type,
5461 check whether the scale is supported for any signed or unsigned
5462 offset type. Check whether the target supports the source and
5463 target types of a conversion before deciding whether to look
5464 through the conversion. Record the chosen offset_vectype.
5465 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5466 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5467 directly from the gs_info's offset_vectype instead. Pass a zero
5468 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5469 * tree-vect-stmts.c (check_load_store_masking): Update call to
5470 internal_gather_scatter_fn_supported_p, passing the offset vector
5471 type recorded in the gs_info.
5472 (vect_truncate_gather_scatter_offset): Update call to
5473 vect_check_gather_scatter, leaving it to search for a valid
5474 offset vector type.
5475 (vect_use_strided_gather_scatters_p): Convert the offset to the
5476 element type of the gs_info's offset_vectype.
5477 (vect_get_gather_scatter_ops): Get the offset vector type directly
5478 from the gs_info.
5479 (vect_get_strided_load_store_ops): Likewise.
5480 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5481 and IFN_MASK_GATHER_LOAD.
5482 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5483 (gather_load<mode><v_int_equiv>): ...this.
5484 (mask_gather_load<mode>): Rename to...
5485 (mask_gather_load<mode><v_int_equiv>): ...this.
5486 (scatter_store<mode>): Rename to...
5487 (scatter_store<mode><v_int_equiv>): ...this.
5488 (mask_scatter_store<mode>): Rename to...
5489 (mask_scatter_store<mode><v_int_equiv>): ...this.
5490
5491 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5492
5493 PR target/92132
5494 * config/rs6000/predicates.md
5495 (signed_or_equality_comparison_operator): New predicate.
5496 (unsigned_or_equality_comparison_operator): Likewise.
5497 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5498 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5499 * config/rs6000/vector.md
5500 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5501 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5502 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5503 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5504 vector modes and same-size integer vector modes.
5505 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5506 (vector_lt<mode> for VEC_F): New expand.
5507 (vector_le<mode> for VEC_F): Likewise.
5508 (vector_ne<mode> for VEC_F): Likewise.
5509 (vector_unge<mode> for VEC_F): Likewise.
5510 (vector_ungt<mode> for VEC_F): Likewise.
5511 (vector_unle<mode> for VEC_F): Likewise.
5512 (vector_unlt<mode> for VEC_F): Likewise.
5513 (vector_uneq<mode>): Expose name.
5514 (vector_ltgt<mode>): Likewise.
5515 (vector_unordered<mode>): Likewise.
5516 (vector_ordered<mode>): Likewise.
5517
5518 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5519
5520 PR target/92295
5521 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5522 Enhance ix86_expand_vector_init_concat.
5523
5524 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5525
5526 * doc/invoke.texi (-Wold-style-definition): Document () not being
5527 considered an old-style definition for C2x.
5528
5529 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5530
5531 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5532 Enhance comment.
5533 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5534 insn patterns using ldcw instruction.
5535 (memory_barrier): Remove insn pattern using sync instruction.
5536 * config/pa/pa.opt (coherent-ldcw): New option.
5537 (ordered): New option.
5538
5539 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5540
5541 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5542 valid conditions.
5543
5544 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5545
5546 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5547 typo - mistmatch -> mismatch.
5548 * ipa-profile.c (ipa_profile): Likewise.
5549 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5550 - mistmatch -> mismatch.
5551
5552 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5553
5554 * simplify-rtx.c (comparison_to_mask): New function.
5555 (mask_to_comparison): New function.
5556 (simplify_logical_relational_operation): New function.
5557 (simplify_binary_operation_1): Call
5558 simplify_logical_relational_operation.
5559
5560 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5561
5562 PR other/92090
5563 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5564 modes for integer constants.
5565
5566 2019-11-07 Jan Hubicka <jh@suse.cz>
5567
5568 PR ipa/92406
5569 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5570 summary.
5571
5572 2019-11-07 Jan Hubicka <jh@suse.cz>
5573
5574 * optc-save-gen.awk: Generate cl_target_option_free
5575 and cl_optimization_option_free.
5576 * opth-en.awk: Declare cl_target_option_free
5577 and cl_optimization_option_free.
5578 * tree.c (free_node): Use it.
5579
5580 2019-11-06 Jan Hubicka <jh@suse.cz>
5581
5582 * lto-streamer-in.c: Include alloc-pool.h.
5583 (freeing_string_slot_hasher): Remove.
5584 (string_slot_allocator): New object allocator.
5585 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5586 (file_name_obstack): New obstack.
5587 (canon_file_name): Allocate in obstack and allocator.
5588 (lto_reader_init): Initialize obstack and allocator.
5589 (lto_free_file_name_hash): New function.
5590 * lto-streamer.h (lto_free_file_name_hash): New.
5591
5592 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5593
5594 PR tree-optimization/89134
5595 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5596 * params.def: Add min-loop-cond-split-prob.
5597 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5598 outside checks on loop into the function.
5599 (split_info): New class.
5600 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5601 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5602 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5603 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5604 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5605 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5606 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5607 (split_loop_on_cond): Likewise.
5608 (tree_ssa_split_loops): Add loop split on conditional statement.
5609
5610 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5611
5612 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5613 pattern.
5614
5615 2019-11-07 Richard Biener <rguenther@suse.de>
5616
5617 PR tree-optimization/92405
5618 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5619 restrict lane-reducing ops to single stmt chains.
5620
5621 2019-11-07 Martin Jambor <mjambor@suse.cz>
5622
5623 PR lto/70929
5624 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5625 * cgraph.h (gimple_check_call_matching_types): Remove
5626 * cgraph.c (gimple_check_call_args): Likewise.
5627 (gimple_check_call_matching_types): Likewise.
5628 (symbol_table::create_edge): Do not call
5629 gimple_check_call_matching_types.
5630 (cgraph_edge::make_direct): Likewise.
5631 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5632 * value-prof.h (check_ic_target): Remove.
5633 * value-prof.c (check_ic_target): Remove.
5634 (gimple_ic_transform): Do nat call check_ic_target.
5635 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5636 (afdo_indirect_call): Likewise.
5637 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5638 gimple_check_call_matching_types.
5639 * ipa-inline.c (early_inliner): Likewise.
5640
5641 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5642
5643 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5644 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5645 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5646 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5647 * config/arm/iterators.md (USSAT16): New int_iterator.
5648 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5649 (sup): Likewise.
5650 * config/arm/predicates.md (ssat16_imm): New predicate.
5651 (usat16_imm): Likewise.
5652 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5653
5654 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5655
5656 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5657 New define_insns.
5658 (arm_<simd32_op>): New define_expands.
5659 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5660 __smuad, __smuadx): Define.
5661 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5662 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5663 (SIMD32_BINOP_Q): Likewise.
5664 (simd32_op): Handle the above.
5665 * config/arm/unspecs.md: Define unspecs for the above.
5666
5667 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5668
5669 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5670 * config/arm/arm.md (APSRGE_REGNUM): Define.
5671 (arm_<simd32_op>): New define_insn.
5672 (arm_sel): Likewise.
5673 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5674 (CALL_USED_REGISTERS): Likewise.
5675 (REG_ALLOC_ORDER): Likewise.
5676 (FIRST_PSEUDO_REGISTER): Update value.
5677 (ARM_GE_BITS_READ): Define.
5678 * config/arm/arm.c (arm_conditional_register_usage): Clear
5679 APSRGE_REGNUM from operand_reg_set.
5680 (arm_ge_bits_access): Define.
5681 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5682 ARM_BUIILTIN_sel.
5683 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5684 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5685 FAIL if ARM_GE_BITS_READ.
5686 (*arm_add<mode>3): New define_insn.
5687 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5688 (*arm_sub<mode>3): New define_insn.
5689 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5690 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5691 __usub16): Define.
5692 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5693 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5694 (simd32_op): Handle the above.
5695 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5696 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5697 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5698 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5699
5700 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5701
5702 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5703 (arm_smlabb): New define_expand.
5704 (*maddhisi4tb): Rename to...
5705 (maddhisi4tb): ... This.
5706 (*maddhisi4tt): Rename to...
5707 (maddhisi4tt): ... This.
5708 (arm_smlatb_setq): New define_insn.
5709 (arm_smlatb): New define_expand.
5710 (arm_smlatt_setq): New define_insn.
5711 (arm_smlatt): New define_expand.
5712 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5713 (arm_<smlaw_op>): New define_expand.
5714 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5715 __smlawb, __smlawt): Define.
5716 * config/arm_acle_builtins.def: Define builtins for the above.
5717 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5718 (slaw_op): New int_attribute.
5719 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5720
5721 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5722
5723 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5724 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5725 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5726 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5727 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5728 (ss_op): New code_attr.
5729
5730 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5731
5732 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5733 * config/arm/arm.md (APSRQ_REGNUM): Define.
5734 (add_setq): New define_subst.
5735 (add_clobber_q_name): New define_subst_attr.
5736 (add_clobber_q_pred): Likewise.
5737 (maddhisi4): Change to define_expand. Split into mult and add if
5738 ARM_Q_BIT_READ.
5739 (arm_maddhisi4): New define_insn.
5740 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5741 (*maddhisi4tt): Likewise.
5742 (arm_ssat): New define_expand.
5743 (arm_usat): Likewise.
5744 (arm_get_apsr): New define_insn.
5745 (arm_set_apsr): Likewise.
5746 (arm_saturation_occurred): New define_expand.
5747 (arm_set_saturation): Likewise.
5748 (*satsi_<SAT:code>): Rename to...
5749 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5750 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5751 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5752 (CALL_USED_REGISTERS): Mark apsrq.
5753 (FIRST_PSEUDO_REGISTER): Update value.
5754 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5755 (machine_function): Add q_bit_access.
5756 (ARM_Q_BIT_READ): Define.
5757 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5758 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5759 operand_reg_set.
5760 (arm_q_bit_access): Define.
5761 * config/arm/arm-builtins.c: Include stringpool.h.
5762 (arm_sat_binop_imm_qualifiers,
5763 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5764 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5765 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5766 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5767 SET_SAT_QUALIFIERS): Likewise.
5768 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5769 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5770 Handle 0 argument expander.
5771 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5772 (arm_check_builtin_call): Define.
5773 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5774 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5775 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5776 (arm_q_bit_access): Likewise.
5777 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5778 __saturation_occurred, __set_saturation_occurred): Define.
5779 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5780 saturation_occurred, set_saturation_occurred.
5781 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5782 (UNSPEC_APSR_READ): Likewise.
5783 (VUNSPEC_APSR_WRITE): Likewise.
5784 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5785 (*arm_ssadd<mode>3): New define_insn.
5786 (sssub<mode>3): Convert to define_expand.
5787 (*arm_sssub<mode>3): New define_insn.
5788 (ssmulsa3): Convert to define_expand.
5789 (*arm_ssmulsa3): New define_insn.
5790 (usmulusa3): Convert to define_expand.
5791 (*arm_usmulusa3): New define_insn.
5792 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5793 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5794 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5795
5796 2019-11-07 Martin Liska <mliska@suse.cz>
5797
5798 PR c++/92354
5799 * cgraph.c (delete_function_version): Clear global
5800 variable version_info_node if equal to deleted
5801 function.
5802
5803 2019-11-07 Martin Liska <mliska@suse.cz>
5804
5805 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5806 of CONSTRUCTOR_NO_CLEARING.
5807 (operand_compare::hash_operand): Likewise.
5808
5809 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5810
5811 Support 64-bit double and 64-bit long double configurations.
5812
5813 PR target/92055
5814 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5815 --with-long-double=.
5816 * config/avr/t-multilib: Remove.
5817 * config/avr/t-avr: Output of genmultilib.awk is now fully
5818 dynamically generated and no more part of the repo.
5819 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5820 Pass them down to...
5821 * config/avr/genmultilib.awk: ...here and handle them.
5822 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5823 (-mlong-double=, avr_long_double). New option and var.
5824 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5825 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5826 Set default as requested by --with-double=
5827 (TARGET_HANDLE_OPTION): Define to this...
5828 (avr_handle_option): ...new hook worker.
5829 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5830 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5831 (avr_double_lib): New proto for spec function.
5832 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5833 (DRIVER_SELF_SPECS): Call %:double-lib.
5834 * config/avr/avr.c (avr_option_override): Assert
5835 sizeof(long double) >= sizeof(double) for the target.
5836 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5837 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5838 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5839 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5840 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5841 New built-in define depending on --with-double=, --with-long-double=.
5842 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5843 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5844 * doc/install.texi (Cross-Compiler-Specific Options)
5845 <--with-double=, --with-long-double=>: Doc.
5846
5847 2019-11-07 Richard Biener <rguenther@suse.de>
5848
5849 * dbgcnt.def (gimple_unroll): New.
5850 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5851 gimple_unroll debug counter before applying transform.
5852 (try_peel_loop): Likewise.
5853
5854 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5855
5856 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5857 frame pointer in multiple registers.
5858 (ira_setup_eliminable_regset): Setup eliminable_regset,
5859 ira_no_alloc_regs and regs_ever_live for frame pointer in
5860 multiple registers.
5861
5862 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5863
5864 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5865 V2DI modes.
5866
5867 2019-11-06 Jan Hubicka <jh@suse.cz>
5868
5869 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5870 allocations.
5871 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5872 Do not silently ignore summary corruptions.
5873
5874 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5875
5876 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5877 the epilogue if there are peeled iterations for it to handle.
5878
5879 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5880
5881 * config/arc/arc.c (arc_split_ior): Add asserts.
5882 (arc_split_mov_const): Likewise.
5883 (arc_check_ior_const): Do not match known short immediate values.
5884 * config/arc/arc.md (movsi): Don't split predicated instructions
5885 (iorsi): Likewise.
5886
5887 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5888
5889 * config/arc/arc.opt (mea): Update help string.
5890 * doc/invoke.texi(ARC): Update mea option info.
5891
5892 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5893
5894 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5895 (zero_extendqisi2_ac): Likewise.
5896 (zero_extendhisi2_i): Likewise.
5897 (extendqihi2_i): Likewise.
5898 (extendqisi2_ac): Likewise.
5899 (extendhisi2_i): Likewise.
5900
5901 2019-11-06 Richard Biener <rguenther@suse.de>
5902
5903 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5904 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5905 Simplify single_defuse_cycle condition.
5906
5907 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5908
5909 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5910 epilogue loop, make sure that the VF is small enough or that
5911 the epilogue loop can be fully-masked.
5912
5913 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5914
5915 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5916 loop when we've finished, rather than returning directly from
5917 the loop. Use a local variable to track whether we're still
5918 searching for the preferred simdlen. Make vect_epilogues
5919 record whether the next iteration should try to treat the
5920 loop as an epilogue.
5921
5922 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5923
5924 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5925 __arc_hard_float__, __ARC_HARD_FLOAT__,
5926 __arc_soft_float__, __ARC_SOFT_FLOAT__
5927
5928 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5929
5930 PR tree-optimization/92317
5931 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5932 update phi's with constant phi arguments.
5933
5934 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5935 Alexandre Oliva <oliva@adacore.com>
5936
5937 * common.opt (-fcallgraph-info[=]): New option.
5938 * doc/invoke.texi (Developer options): Document it.
5939 * opts.c (common_handle_option): Handle it.
5940 * builtins.c (expand_builtin_alloca): Record allocation if
5941 -fcallgraph-info=da.
5942 * calls.c (expand_call): If -fcallgraph-info, record the call.
5943 (emit_library_call_value_1): Likewise.
5944 * flag-types.h (enum callgraph_info_type): New type.
5945 * explow.c: Include stringpool.h.
5946 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5947 * function.c (allocate_stack_usage_info): New.
5948 (allocate_struct_function): Call it for -fcallgraph-info.
5949 (prepare_function_start): Call it otherwise.
5950 (record_final_call, record_dynamic_alloc): New.
5951 * function.h (struct callinfo_callee): New.
5952 (CALLEE_FROM_CGRAPH_P): New.
5953 (struct callinfo_dalloc): New.
5954 (struct stack_usage): Add callees and dallocs.
5955 (record_final_call, record_dynamic_alloc): Declare.
5956 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5957 object if -fcallgraph-info=da.
5958 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5959 * print-tree.h (print_decl_identifier): Declare.
5960 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5961 * print-tree.c: Include print-tree.h.
5962 (print_decl_identifier): New function.
5963 * toplev.c: Include print-tree.h.
5964 (callgraph_info_file): New global variable.
5965 (callgraph_info_external_printed): Likewise.
5966 (output_stack_usage): Rename to...
5967 (output_stack_usage_1): ... this. Make it static, add cf
5968 parameter. If -fcallgraph-info=su, print stack usage to cf.
5969 If -fstack-usage, use print_decl_identifier for
5970 pretty-printing.
5971 (INDIRECT_CALL_NAME): New.
5972 (dump_final_node_vcg_start): New.
5973 (dump_final_callee_vcg, dump_final_node_vcg): New.
5974 (output_stack_usage): New.
5975 (lang_dependent_init): Open and start file if
5976 -fcallgraph-info. Allocated callgraph_info_external_printed.
5977 (finalize): If callgraph_info_file is not null, finish it,
5978 close it, and release callgraph_info_external_printed.
5979
5980 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5981 Frederik Harwath <frederik@codesourcery.com>
5982 Thomas Schwinge <thomas@codesourcery.com>
5983
5984 * omp-low.c (struct omp_context): New fields
5985 local_reduction_clauses, outer_reduction_clauses.
5986 (new_omp_context): Initialize these.
5987 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5988 (scan_omp_for): Check reduction clauses for incorrect nesting.
5989
5990 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5991
5992 PR inline-asm/92352
5993 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5994 operands with non-memory constraints.
5995
5996 2019-11-05 Martin Sebor <msebor@redhat.com>
5997
5998 PR tree-optimization/92373
5999 * tree.c (component_ref_size): Only consider initializers of objects
6000 of matching struct types.
6001 Return null for instances of interior zero-length arrays.
6002
6003 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
6004
6005 * doc/md.texi (Insn Splitting): Fix combiner documentation.
6006
6007 2019-11-05 Jason Merrill <jason@redhat.com>
6008
6009 PR tree-optimization/91825
6010 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6011
6012 2019-11-05 Jim Wilson <jimw@sifive.com>
6013
6014 PR middle-end/92263
6015 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6016 optimize_insn_for_speed_p is true.
6017
6018 2019-11-05 Martin Sebor <msebor@redhat.com>
6019
6020 PR middle-end/92333
6021 PR middle-end/82608
6022 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6023 size.
6024 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6025 name and location for a temporary variable.
6026
6027 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6028
6029 * tree-vrp.c (value_range::value_range): Fix whitespace.
6030 (defined_ranges_p): Same.
6031 (range_fold_binary_symbolics_p): Same.
6032 (value_range::intersect_helper): Same.
6033 (value_range::union_helper): Same.
6034 * tree-vrp.h (range_fold_binary_expr): Same.
6035
6036 2019-11-04 Martin Sebor <msebor@redhat.com>
6037
6038 PR middle-end/92341
6039 PR middle-end/82612
6040 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6041 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6042 of message printed in a warning for empty arrays.
6043 (vrp_prop::check_mem_ref): Also handle function parameters and
6044 empty arrays.
6045
6046 2019-11-05 Richard Biener <rguenther@suse.de>
6047
6048 PR tree-optimization/92371
6049 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6050 on the original stmt of live stmts in the chain.
6051 (vectorizable_live_operation): Look at the original stmt when
6052 checking STMT_VINFO_REDUC_DEF.
6053
6054 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6055
6056 * gimple-fold.c, gimple-loop-versioning.cc,
6057 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6058 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6059 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6060 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6061 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6062 value_range_equiv, and value_range_base to value_range.
6063
6064 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6065
6066 * expr.c (build_personality_function): Fix generated type to
6067 match actual personality functions.
6068
6069 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6070
6071 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6072 enough bytes for the NULL character.
6073
6074 2019-11-05 Richard Biener <rguenther@suse.de>
6075
6076 PR tree-optimization/92280
6077 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6078 had a single use do not create a new CTOR.
6079 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6080 BIT_FIELD_REF of a CTOR via GENERIC.
6081
6082 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
6083
6084 * config/s390/s390.c (s390_vector_alignment): Check if the value
6085 fits into uhwi before using it.
6086
6087 2019-11-05 Martin Liska <mliska@suse.cz>
6088
6089 * symbol-summary.h: Use ggc_delete.
6090
6091 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6092
6093 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6094 Change vec_perm field to 10.
6095
6096 2019-11-05 Arnaud Charlet <charlet@adacore.com>
6097
6098 * doc/install.texi: Further fix syntax for html generation.
6099
6100 2019-11-05 Martin Liska <mliska@suse.cz>
6101
6102 * symbol-summary.h: Rename allocator to m_allocator and
6103 add comment.
6104
6105 2019-11-05 Richard Biener <rguenther@suse.de>
6106
6107 PR tree-optimization/92324
6108 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6109 all signed or unsigned operations.
6110
6111 2019-11-05 Jan Hubicka <jh@suse.cz>
6112
6113 * hsa-brig.c: Include alloc-pool.h
6114 * hsa-dump.c: Likewise.
6115 * hsa-gen.c: Likewise.
6116 * hse-regalloc.c: Likewise.
6117 * ipa-hsa.c: Likewise.
6118 * ipa-predicate.c: Likewise.
6119 * ipa-reference.c: Likewise.
6120 * ipa-sra.c: Likewise.
6121 * omp-expand.c: Likewise.
6122 * omp-general.c: Likewise.
6123 * omp-low.c: Likewise.
6124 * sumbol-summary.h (function_summary_base): Add allocator.
6125 (function_summary<T *>::function_summary): Update construction.
6126 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6127 (call_summary_base): Add allcator.
6128 (call_summary<T *>::call_summary): Update construction.
6129 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6130
6131 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6132
6133 PR tree-optimization/91945
6134 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6135 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6136 Formatting fix.
6137
6138 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6139
6140 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6141 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6142 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6143 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6144 (vrp_set_zero_nonzero_bits): Move to...
6145 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6146 (vr_values::simplify_bit_ops_using_ranges): Rename
6147 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6148
6149 2019-11-05 Martin Liska <mliska@suse.cz>
6150
6151 PR c++/92339
6152 * fold-const.c (operand_compare::hash_operand): Remove
6153 FIELD_DECL handling.
6154
6155 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6156
6157 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6158 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6159 static.
6160
6161 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6162
6163 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6164 properly handle symbolics.
6165 (range_compatible_p): Remove.
6166
6167 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6168
6169 * common.opt (-fabi-version): Document =14.
6170 * doc/invoke.texi (C++ Dialect Options): Likewise.
6171
6172 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6173
6174 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6175
6176 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6177
6178 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6179 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6180 gcn_omp_device_kind_arch_isa.
6181 * config/gcn/t-omp-device: New file.
6182 * configure.ac: Support gcn for omp_device_property.
6183 * configure: Regenerate.
6184
6185 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6186
6187 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6188 (vrp_val_max): Same.
6189 (vrp_val_is_min): Same.
6190 (vrp_val_is_max): Same.
6191 (value_range_base::nonzero_p): Remove last argument to
6192 vrp_val_is_max.
6193 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6194 (vrp_val_max): Same.
6195 (vrp_val_is_min): Same.
6196 (vrp_val_is_max): Same.
6197 (value_range_base::set_varying): Remove last argument to vrp_val*.
6198 (value_range_base::dump): Same.
6199 (value_range_base::set): Same.
6200 (value_range_base::normalize_symbolics): Same.
6201 (value_range_base::num_pairs): Same.
6202 (value_range_base::lower_bound): Same.
6203 (value_range_base::upper_bound): Same.
6204 (ranges_from_anti_range): Remove handle_pointers argument.
6205 (value_range_base::singleton_p): Remove last argument to
6206 ranges_from_anti_range.
6207
6208 2019-11-04 Jan Hubicka <jh@suse.cz>
6209
6210 * ipa-reference.c (init_function_info): Initialize
6211 info->global.statics_read.
6212
6213 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6214
6215 * tree-vrp.c (value_range_base::invert): Use constructors to build
6216 range.
6217
6218 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6219
6220 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6221 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6222
6223 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6224
6225 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6226 VR_UNDEFINED.
6227
6228 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6229
6230 * tree-vrp.c (dump_assert_info): New.
6231 (dump_asserts_info): New.
6232
6233 2019-11-04 Jan Hubicka <jh@suse.cz>
6234
6235 * ipa-inline-transform.c: Include ipa-utils.h
6236 (inline_call): Set thunk_expansion flag.
6237 * ipa-utils.h (thunk_expansion): Declare.
6238 * ipa-devirt.c (thunk_expansion): New global var.
6239 (devirt_node_removal_hook): Do not invalidate cache while
6240 doing thunk expansion.
6241
6242 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6243
6244 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6245
6246 2019-11-04 Martin Sebor <msebor@redhat.com>
6247
6248 PR tree-optimization/92349
6249 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6250 memebers have constant sizes.
6251
6252 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6253
6254 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6255 parameter.
6256 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6257 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6258 vect_analyze_loop.
6259
6260 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6261
6262 * expr.c (store_constructor): Modify to handle single element vectors.
6263 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6264 constructors.
6265 (vect_slp_check_for_constructors): New function.
6266 (vect_slp_analyze_bb_1): Call new function to check for vector
6267 constructors.
6268 (vectorize_slp_instance_root_stmt): New function.
6269 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6270 constructors.
6271 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6272
6273 2019-11-04 Richard Biener <rguenther@suse.de>
6274
6275 PR tree-optimization/92345
6276 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6277 we produced a reduction chain.
6278 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6279 LOOP_VINFO_REDUCTIONS.
6280
6281 2019-11-04 Jan Hubicka <jh@suse.cz>
6282
6283 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6284 duplicate summaries.
6285 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6286 first.
6287 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6288 access call summaries.
6289 (dump_ipa_call_summary): Be ready for missing edge summaries.
6290 (analyze_function_body): Use get instead of get_create to access
6291 edge summary.
6292 (estimate_calls_size_and_time): Do not access summaries of
6293 inlined edges; sanity check they are missing.
6294 (ipa_call_context::estimate_size_and_time): Use get instead
6295 of get_create to access node summary.
6296 (inline_update_callee_summaries): Do not update depth of
6297 inlined edge.
6298 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6299 growth caches.
6300 (ipa_merge_fn_summary_after_inlining): Use get instead
6301 of get_create.
6302 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6303 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6304 fast summary.
6305 (initialize_growth_caches): Update.
6306 (do_estimate_edge_time): Remove redundant copy of context.
6307 (ipa_remove_from_growth_caches): New function.
6308 * ipa-inline.c (flatten_function): Update overall summary
6309 only when optimizing.
6310 (inline_to_all_callers): Update overall summary of function
6311 inlined to.
6312 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6313 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6314 to false.
6315
6316 2019-11-04 Richard Biener <rguenther@suse.de>
6317
6318 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6319 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6320
6321 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6322
6323 * ggc-common.c: Include system.h before malloc.h.
6324
6325 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6326
6327 * configure.ac: Pass --enable-obsolete=* and
6328 --enable-option-checking=* down to build configure, and fail
6329 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6330 * configure: Rebuild.
6331 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6332 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6333
6334 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6335
6336 * config.in: Regenerate.
6337 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6338 -mtiny-printf is used without GCC being configured with
6339 --enable-newlib-nano-formatted-io.
6340 * config/msp430/msp430.h (LINK_SPEC): Pass
6341 "--wrap puts --wrap printf" when -mtiny-printf is used.
6342 * config/msp430/msp430.opt: Document -mtiny-printf.
6343 * configure: Regenerate.
6344 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6345 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6346 --enable-newlib-nano-formatted-io is passed.
6347 * doc/invoke.texi: Document -mtiny-printf.
6348
6349 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6350
6351 * configure: Regenerate.
6352
6353 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6354
6355 * config/msp430/driver-msp430.c
6356 (msp430_get_linker_devices_include_path): New spec function.
6357 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6358 (extract_devices_dir_from_exec_prefix): New function.
6359 (extract_devices_dir_from_collect_gcc): New function.
6360 (msp430_check_env_var_for_devices): New function.
6361 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6362 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6363 devices.csv was not found using other methods.
6364 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6365 New prototype.
6366 (msp430_dirname): Likewise.
6367 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6368 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6369 msp430_get_linker_devices_include_path.
6370 (TARGET_EXTRA_PRE_INCLUDES): Define.
6371 * doc/invoke.texi: Document new ways of searching for support files.
6372
6373 2019-11-04 Richard Biener <rguenther@suse.de>
6374
6375 PR tree-optimization/92301
6376 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6377 as required by epilogue generation
6378
6379 2019-11-04 Martin Liska <mliska@suse.cz>
6380
6381 PR ipa/92304
6382 * fold-const.c (operand_compare::hash_operand): Fix field
6383 hashing of CONSTRUCTOR.
6384
6385 2019-11-04 Martin Liska <mliska@suse.cz>
6386
6387 * ggc.h (ggc_delete): New function.
6388 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6389 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6390 (ipa_free_all_node_params): Likewise.
6391 * ipa-sra.c (ipa_sra_analysis): Likewise.
6392
6393 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6394
6395 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6396 set_switch_stmt_execution_predicate, compute_bb_predicates,
6397 will_be_nonconstant_expr_predicate,
6398 phi_result_unknown_predicate,
6399 analyze_function_body): Pass arround params summary.
6400 (ipa_call_context::duplicate_from): New comment;
6401 only duplicate useful values.
6402 (ipa_call_context::equal_to): Only compare useful values.
6403 (remap_edge_summaries): Pass params_summary.
6404 (remap_hint_predicate): Likewise.
6405 (ipa_merge_fn_summary_after_inlining): Likewise.
6406 (inline_read_section): Initialize params summary used flags.
6407 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6408 around param_summary.
6409 (add_condition): Initialized used params summary flags.
6410 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6411 (inline_param_summary::useless_p): New predicate.
6412 (remap_after_inlining, add_condition): Update prototype
6413 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6414 move_cost.
6415 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6416 summaries.
6417 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6418 (ipa_analyze_virtual_call_uses): Likewise.
6419 (update_indirect_edges_after_inlining): Update param summaries.
6420 (ipa_print_node_params): Print used flags.
6421 (ipa_read_indirect_edge_info): Update param summareis.
6422 * ipa-prop.h (ipa_param_descriptor): Add
6423 used_by_ipa_predicates, used_by_indirect_call
6424 and used_by_polymorphic_call.
6425 (ipa_set_param_used_by_ipa_predicates,
6426 ipa_set_param_used_by_indirect_call,
6427 ipa_set_param_used_by_polymorphic_call,
6428 ipa_is_param_used_by_ipa_predicates,
6429 ipa_is_param_used_by_indirect_call,
6430 ipa_is_param_used_by_polymorphic_call): New inline functions.
6431
6432 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6433
6434 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6435 member function.
6436 (ipa_call_context::release): Add ALL parameter.
6437 (ipa_call_context::equal_to): New member function.
6438 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6439 duplicate_form, release, equal_to and exists_p member functoins.
6440 * ipa-inline-analysis.c (node_context_cache_entry): New
6441 class.
6442 (node_context_summary): Likewise.
6443 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6444 node_context_clear): New static vars.
6445 (initialize_growth_caches): New function.
6446 (free_growth_caches): Also delete node_context_cache; output stats.
6447 (do_estimate_edge_time): Cache contexts.
6448 (reset_node_cache): New function.
6449 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6450 (inline_small_functions): Initialize growth caches.
6451 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6452 Declare.
6453 * ipa-predicate.h (inline_param_summary::equal_to): New.
6454 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6455 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6456 (ipa_agg_jump_function): Implement equal_to member function.
6457
6458 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6459
6460 * ipa-fnsummary.c (inline_read_section): Set vector size
6461 ahead of time.
6462
6463 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6464
6465 * ipa-fnsummary.c (ipa_call_context): New constructor.
6466 (estimate_node_size_and_time): Turn to ...
6467 (ipa_call_context::estimate_size_and_time): ... this one.
6468 (ipa_call_context::release): New.
6469 * ipa-fnsummary.h (ipa_call_context): New class.
6470 (estimate_node_size_and_time): Remove.
6471 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6472 do_estimate_edge_hints): Update.
6473
6474 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6475
6476 * config.in: Regenerate.
6477 * configure: Regenerate.
6478 * configure.ac: Check for mallinfo.
6479 * ggc-common.c: Include malloc.h if available;
6480 include options.h
6481 (report_heap_memory_use): New functoin.
6482 * ggc-page.c (ggc_grow): Do not print "start".
6483 * ggc.h (report_heap_memory_use): Declare.
6484 * pases.c (execute_one_pass): Report memory after IPA passes.
6485 (ipa_read_summaries_1): Likewise.
6486 (ipa_read_optimization_summaries_1): Likewise.
6487
6488 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6489
6490 * gimplify.h (omp_construct_selector_matches): Change return
6491 type to int, add a new SCORES argument.
6492 * gimplify.c (omp_construct_selector_matches): Likewise. If
6493 SCORES is non-NULL, compute scores of each construct.
6494 * omp-general.h (omp_get_context_selector): Declare.
6495 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6496 Adjust omp_construct_selector_matches callers.
6497 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6498 (omp_context_compute_score): New function.
6499 (omp_resolve_declare_variant): Compute scores and decide based on
6500 that.
6501
6502 PR bootstrap/92314
6503 * configure.ac: Don't look for omp-device-properties files from
6504 installed offloading compilers. Instead add tmake_file snippets
6505 for configured offloading targets and use files they generate.
6506 * Makefile.in (install): Don't depend on
6507 install-omp-device-properties.
6508 (install-omp-device-properties): Remove goal.
6509 * config/i386/t-omp-device: New file.
6510 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6511 * config/nvptx/t-omp-device: New file.
6512 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6513 * configure: Regenerated.
6514
6515 * omp-general.h (omp_context_selector_set_compare): Declare.
6516 * omp-general.c (omp_construct_simd_compare,
6517 omp_context_selector_props_compare, omp_context_selector_set_compare,
6518 omp_context_selector_compare): New functions.
6519 (omp_resolve_declare_variant): Prune variants that are strict subset
6520 of another variant.
6521
6522 2019-11-01 Martin Sebor <msebor@redhat.com>
6523
6524 PR middle-end/91679
6525 PR middle-end/91647
6526 PR middle-end/91463
6527 PR middle-end/92312
6528 * doc/invoke.texi (-Wzero-length-bounds): Document.
6529 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6530 instead of a hand-rolled loop to avoid PR 92323.
6531 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6532 with initializers.
6533 (vrp_prop::check_mem_ref): Handle declared struct objects.
6534 * tree.c (last_field): New function.
6535 (array_at_struct_end_p): Handle MEM_REF.
6536 (get_initializer_for): New helper.
6537 (component_ref_size): Add argument. Rename locals. Call
6538 get_initializer_for instead of fold_ctor_reference. Correct handling
6539 of flexible array members.
6540 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6541
6542 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6543
6544 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6545 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6546 UNSPEC_VSX_CVSPUXDS): Remove.
6547 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6548 (vsx_xvcvspdp_be): ... this. New. And...
6549 (vsx_xvcvspdp_le): ... this. New.
6550 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6551 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6552 (vsx_xvcv<su>xwdp_le): ... this. New.
6553 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6554 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6555 (vsx_xvcvsp<su>xds_le): ... this. New.
6556
6557 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6558
6559 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6560 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6561 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6562 UNSPEC_VSX_XVCVSPSXWS): Remove.
6563 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6564 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6565
6566 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6567
6568 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6569 (UNSPEC_VSX_XVCDPSP): Remove.
6570 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6571 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6572
6573 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6574
6575 * hooks.c (hook_tree_tree_bool_null): New.
6576 * hooks.h (hook_tree_tree_bool_null): Declare.
6577 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6578 (LANG_HOOKS_DECLS): Add it.
6579 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6580 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6581 (lower_omp_target): Handle Fortran array with descriptor in
6582 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6583
6584 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6585
6586 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6587 Assert that the type we store in abi_vector_types is its own
6588 main variant.
6589 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6590
6591 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6592
6593 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6594 from a CONST_INT address when TARGET_THUMB2.
6595
6596 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6597
6598 * config/arm/arm.md (add_not_cin): New insn.
6599 (add_not_shift_cin): Likewise.
6600
6601 2019-10-31 Martin Liska <mliska@suse.cz>
6602
6603 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6604 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6605 and compare_memory_operand.
6606
6607 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6608
6609 * configure.ac: Compute and substitute omp_device_properties and
6610 omp_device_property_deps.
6611 * Makefile.in (generated_files): Add omp-device-properties.h.
6612 (omp-general.o): Depend on omp-device-properties.h.
6613 (omp_device_properties): New make variable.
6614 (omp-device-properties.h, s-omp-device-properties-h,
6615 install-omp-device-properties): New goals.
6616 (install): Depend on install-omp-device-properties for accelerators.
6617 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6618 * target.h (enum omp_device_kind_arch_isa): New enum.
6619 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6620 documentation.
6621 * omp-general.c: Include omp-device-properties.h.
6622 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6623 colon instead of comma.
6624 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6625 functions.
6626 (omp_context_selector_matches): Implement device set arch/isa
6627 selectors, improve device set kind selector handling.
6628 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6629 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6630 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6631 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6632 ix86_omp_device_kind_arch_isa.
6633 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6634 definition from ix86_target_string to file scope.
6635 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6636 to file scope.
6637 (ix86_omp_device_kind_arch_isa): New function.
6638 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6639 isa_opts definitions to file scope.
6640 * config/i386/t-intelmic (omp-device-properties): New goal.
6641 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6642 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6643 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6644 nvptx_omp_device_kind_arch_isa.
6645 * configure: Regenerate.
6646 * doc/tm.texi: Regenerate.
6647
6648 PR middle-end/92231
6649 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6650 DECL_BUILT_IN in comment. Remove redundant ()s around return
6651 argument.
6652 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6653 before calling fndecl_built_in_p.
6654 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6655 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6656 fndecl_built_in_p on it.
6657
6658 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6659
6660 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6661
6662 2019-10-31 Martin Liska <mliska@suse.cz>
6663
6664 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6665 of cgraph_local_info and use local_info_node instead.
6666 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6667 (bfin_function_ok_for_sibcall): Likewise.
6668 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6669 (must_reload_pic_reg_p): Likewise.
6670
6671 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6672
6673 PR c++/90947
6674 * tree.h (type_initializer_zero_p): Remove.
6675 * tree.c (type_initializer_zero_p): Remove.
6676
6677 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6678
6679 * doc/invoke.texi (-Wshadow, -Wshadow=global
6680 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6681
6682 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6683
6684 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6685 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6686 and 'target exit data'.
6687
6688 2019-10-30 Martin Jambor <mjambor@suse.cz>
6689
6690 ipa/92278
6691 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6692 availability comparison.
6693
6694 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6695
6696 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6697 calls to __mspabi_mpy* functions.
6698 * config/msp430/msp430.md (mulhisi3): New define_expand.
6699 (umulhisi3): New define_expand.
6700 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6701 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6702
6703 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6704
6705 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6706 (msp430_check_plus_not_high_mem): New.
6707 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6708 might be in low memory.
6709 Indicate that a 16-bit absolute address is in lower memory.
6710
6711 2019-10-30 Martin Jambor <mjambor@suse.cz>
6712
6713 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6714 ultimate_alias_target.
6715
6716 2019-10-30 Richard Biener <rguenther@suse.de>
6717
6718 PR tree-optimization/92275
6719 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6720 Copy all loop-closed PHIs.
6721
6722 2019-10-30 Martin Liska <mliska@suse.cz>
6723
6724 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6725 const_tree as function argument.
6726 (func_checker::compare_decl): Likewise.
6727 (func_checker::operand_equal_p): Likewise.
6728 (func_checker::compare_variable_decl): Likewise.
6729 (func_checker::parse_labels): Likewise.
6730 * ipa-icf-gimple.h: Likewise.
6731
6732 2019-10-30 Martin Liska <mliska@suse.cz>
6733
6734 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6735 Do not compare alias sets. It's handled by operand_equal_p.
6736
6737 2019-10-30 Martin Liska <mliska@suse.cz>
6738
6739 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6740 initialize m_compare_polymorphic.
6741 (func_checker::compare_decl): Do not compare polymorphic types.
6742 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6743 * ipa-icf.c (sem_function::equals_private): Do not call
6744 compare_polymorphic_p.
6745
6746 2019-10-30 Martin Liska <mliska@suse.cz>
6747
6748 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6749 compare_operand.
6750 (func_checker::compare_memory_operand): Remove.
6751 (func_checker::compare_cst_or_decl): Remove.
6752 (func_checker::operand_equal_valueize): Do not handle
6753 FIELD_DECL.
6754 (func_checker::compare_gimple_call): Call compare_operand.
6755 (func_checker::compare_gimple_assign): Likewise.
6756 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6757 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6758 * ipa-icf.h (icf_handled_component_p): Remove.
6759
6760 2019-10-30 Martin Liska <mliska@suse.cz>
6761
6762 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6763 (func_checker::compare_cst_or_decl): Remove handling
6764 of FIELD_DECL.
6765 (func_checker::compare_operand): Transform to ...
6766 (func_checker::operand_equal_p): ... this.
6767 * ipa-icf-gimple.h (class func_checker): Add
6768 operand_equal_p and hash_operand.
6769 * ipa-icf.c (sem_function::equals_private): Fix
6770 pushing and popping of cfun.
6771
6772 2019-10-30 Martin Liska <mliska@suse.cz>
6773
6774 * fold-const.c (operand_equal_p): Move to ...
6775 (operand_compare::operand_equal_p): ... here.
6776 (operand_compare::verify_hash_value): New.
6777 (add_expr): Move to ...
6778 (operand_compare::hash_operand): ... here.
6779 * fold-const.h (operand_equal_p): Move to the class.
6780 (class operand_compare): New.
6781 * tree.c (add_expr): Remove.
6782
6783 2019-10-30 Martin Liska <mliska@suse.cz>
6784
6785 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6786 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6787
6788 2019-10-30 Martin Liska <mliska@suse.cz>
6789
6790 PR lto/91393
6791 PR lto/88220
6792 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6793 from a first_clone in order to get proper LTO section
6794 in LTO stream.
6795 (cgraph_node::get_untransformed_body):
6796 Use lto_get_section_data where symtab_node::order
6797 must be provided.
6798 * cgraphclones.c (cgraph_node::find_replacement):
6799 Update also symbol order.
6800 * ipa-fnsummary.c (ipa_fn_summary_read):
6801 Use new function lto_get_summary_section_data.
6802 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6803 * ipa-icf.c (sem_item_optimizer::read_summary):
6804 Likewise.
6805 * ipa-prop.c (ipa_prop_read_jump_functions):
6806 Likewise.
6807 (ipcp_read_transformation_summaries): Likewise.
6808 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6809 * lto-cgraph.c (input_node): Add also order_base.
6810 (input_varpool_node): Likewise.
6811 (input_cgraph_1): Assign the order_base.
6812 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6813 * lto-opts.c (lto_write_options): Pass new argument.
6814 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6815 (lto_get_summary_section_data): New.
6816 (lto_get_raw_section_data): Add order argument.
6817 (lto_create_simple_input_block): Likewise.
6818 * lto-section-out.c (lto_destroy_simple_output_block):
6819 Likewise.
6820 * lto-streamer-in.c (lto_input_toplevel_asms):
6821 Use lto_get_summary_section_data.
6822 (lto_input_mode_table): Likewise.
6823 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6824 (lto_output_toplevel_asms): Pass new argument.
6825 (copy_function_or_variable): Likewise.
6826 (produce_lto_section):Likewise.
6827 (produce_symtab): Likewise.
6828 (lto_write_mode_table): Likewise.
6829 (produce_asm_for_decls): Likewise.
6830 * lto-streamer.c (lto_get_section_name): Concat symbol name
6831 and symbol order.
6832 * lto-streamer.h (lto_get_section_data): Add order argument.
6833 (lto_get_summary_section_data): New.
6834 (lto_get_raw_section_data): Add order argument.
6835 (lto_get_section_name): Likewise.
6836 * varpool.c (varpool_node::get_constructor): Pass order argument.
6837
6838 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6839
6840 PR tree-optimization/92262
6841 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6842 ubase or cbase here.
6843 (remove_unused_ivs): Unshare comp before using it.
6844
6845 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6846
6847 * ipa-prop.c (update_jump_functions_after_inlining):
6848 Watch for missing summaries.
6849
6850 2019-10-30 Richard Biener <rguenther@suse.de>
6851
6852 PR tree-optimization/65930
6853 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6854 chains also allow a leading and trailing conversion.
6855 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6856 intermediate reduction chains.
6857 (vect_analyze_slp_instance): Likewise. Build a SLP
6858 node for a trailing conversion manually.
6859
6860 2019-10-30 Martin Liska <mliska@suse.cz>
6861
6862 * cgraph.c (cgraph_node::local_info): Transform to ...
6863 (cgraph_node::local_info_node): ... this.
6864 (cgraph_node::dump): Remove cgraph_local_info and
6865 put its fields directly into cgraph_node.
6866 (cgraph_node::get_availability): Likewise.
6867 (cgraph_node::make_local): Likewise.
6868 (cgraph_node::verify_node): Likewise.
6869 * cgraph.h (struct GTY): Likewise.
6870 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6871 (duplicate_thunk_for_node): Likewise.
6872 (cgraph_node::create_clone): Likewise.
6873 (cgraph_node::create_virtual_clone): Likewise.
6874 (cgraph_node::create_version_clone): Likewise.
6875 * cgraphunit.c (cgraph_node::reset): Likewise.
6876 (cgraph_node::finalize_function): Likewise.
6877 (cgraph_node::add_new_function): Likewise.
6878 (analyze_functions): Likewise.
6879 * combine.c (setup_incoming_promotions): Likewise.
6880 * config/i386/i386.c (ix86_function_regparm): Likewise.
6881 (ix86_function_sseregparm): Likewise.
6882 (init_cumulative_args): Likewise.
6883 * ipa-cp.c (determine_versionability): Likewise.
6884 (count_callers): Likewise.
6885 (set_single_call_flag): Likewise.
6886 (initialize_node_lattices): Likewise.
6887 (estimate_local_effects): Likewise.
6888 (create_specialized_node): Likewise.
6889 (identify_dead_nodes): Likewise.
6890 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6891 (ipa_fn_summary_generate): Likewise.
6892 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6893 (process_hsa_functions): Likewise.
6894 * ipa-icf.c (set_local): Likewise.
6895 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6896 * ipa-inline.c (speculation_useful_p): Likewise.
6897 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6898 (ipa_profile): Likewise.
6899 * ipa-split.c (split_function): Likewise.
6900 (execute_split_functions): Likewise.
6901 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6902 (ipa_sra_ipa_function_checks): Likewise.
6903 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6904 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6905 * lto-cgraph.c (lto_output_node): Likewise.
6906 (input_overwrite_node): Likewise.
6907 * multiple_target.c (expand_target_clones): Likewise.
6908 * omp-simd-clone.c (simd_clone_create): Likewise.
6909 * trans-mem.c (expand_call_tm): Likewise.
6910 (ipa_tm_mayenterirr_function): Likewise.
6911 (ipa_tm_diagnose_tm_safe): Likewise.
6912 (ipa_tm_diagnose_transaction): Likewise.
6913 (ipa_tm_create_version): Likewise.
6914 (ipa_tm_transform_calls_redirect): Likewise.
6915 (ipa_tm_execute): Likewise.
6916 * tree-inline.c (expand_call_inline): Likewise.
6917
6918 2019-10-29 Martin Liska <mliska@suse.cz>
6919
6920 * symbol-summary.h (function_summary): Pass memory location
6921 to underlaying hash_map (or vec).
6922 (V>::fast_function_summary): Likewise.
6923
6924 2019-10-29 Martin Liska <mliska@suse.cz>
6925
6926 * ggc.h (ggc_alloc_no_dtor): New function.
6927 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6928 destructor and ggc_free.
6929 (ipa_free_size_summary): Call delete instead
6930 of release.
6931 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6932 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6933 (ipa_free_all_edge_args): Call destructor and ggc_free.
6934 (ipa_free_all_node_params): Likewise.
6935 (ipcp_free_transformation_sum): Likewise.
6936 * ipa-prop.h (ipa_check_create_node_params):
6937 Call new ggc_alloc_no_dtor.
6938 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6939 (ipa_sra_analysis): Call destructor and ggc_free.
6940 Replace release with delete operator.
6941 * symbol-summary.h (release): Remove ..
6942 (V>::~fast_function_summary): and move logic here.
6943 Likewise for other classes.
6944
6945 2019-10-29 Richard Biener <rguenther@suse.de>
6946
6947 PR tree-optimization/92260
6948 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6949 lane-reducing ops.
6950
6951 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6952
6953 PR tree-optimization/88915
6954 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6955 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6956 and make the valueize function pointer also take a void pointer.
6957 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6958 around vn_valueize, to call it without a context.
6959 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6960 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6961 (~_loop_vec_info): Release epilogue_vinfos.
6962 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6963 number of iterations of epilogue.
6964 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6965 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6966 versioning threshold needed for main loop.
6967 (vect_analyze_loop): Likewise.
6968 (find_in_mapping): New helper function.
6969 (update_epilogue_loop_vinfo): New function.
6970 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6971 on main loop and call update_epilogue_loop_vinfo to update it.
6972 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6973 stmts on loop preheader edge.
6974 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6975 we decided to vectorize epilogues. Update epilogues NITERS and
6976 construct ADVANCE to update epilogues data references where needed.
6977 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6978 (vect_do_peeling, vect_update_inits_of_drs,
6979 determine_peel_for_niter, vect_analyze_loop): Add or update
6980 declarations.
6981 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6982 created loop_vec_info's for epilogues when available. Otherwise analyse
6983 epilogue separately.
6984
6985 2019-10-29 Richard Biener <rguenther@suse.de>
6986
6987 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6988 example.
6989
6990 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6991
6992 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6993 index for the COND_EXPR from stmt_info rather than reduc_info.
6994
6995 2019-10-29 Richard Biener <rguenther@suse.de>
6996
6997 PR tree-optimization/65930
6998 * tree-vect-loop.c (check_reduction_path): Relax single-use
6999 check allowing out-of-loop uses.
7000 (vect_is_simple_reduction): SLP reduction chains cannot have
7001 intermediate stmts used outside of the loop.
7002 (vect_create_epilog_for_reduction): The adjustment might need
7003 to be converted.
7004 (vectorizable_reduction): Annotate live stmts of the reduction
7005 chain with STMT_VINFO_REDUC_DEF.
7006 * tree-vect-stms.c (process_use): Remove no longer true asserts.
7007
7008 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7009
7010 * calls.c (pass_by_reference): Leave the target to decide whether
7011 POLY_INT_CST-sized arguments should be passed by value or reference,
7012 rather than forcing them to be passed by reference.
7013 (must_pass_in_stack_var_size): Likewise.
7014 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7015 V31_REGNUM to P15_REGNUM.
7016 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7017 Take an extra "silent_p" parameter, defaulting to false.
7018 (aarch64_sve::svbool_type_p): Declare.
7019 (aarch64_sve::nvectors_if_data_type): Likewise.
7020 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7021 (aarch64_frame::reg_offset): Turn into poly_int64s.
7022 (aarch64_frame::save_regs_size): Likewise.
7023 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7024 (aarch64_frame::sve_callee_adjust): Likewise.
7025 (aarch64_frame::spare_reg_reg): Likewise.
7026 (ARM_PCS_SVE): New arm_pcs value.
7027 (CUMULATIVE_ARGS::aapcs_nprn): New field.
7028 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7029 (CUMULATIVE_ARGS::silent_p): Likewise.
7030 (BITS_PER_SVE_PRED): New macro.
7031 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7032 function. Reject aarch64_vector_pcs attributes on SVE functions.
7033 (aarch64_attribute_table): Use the above handler.
7034 (aarch64_sve_abi): New function.
7035 (aarch64_sve_argument_p): Likewise.
7036 (aarch64_returns_value_in_sve_regs_p): Likewise.
7037 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7038 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7039 descriptor for them.
7040 (aarch64_simd_decl_p): Delete.
7041 (aarch64_emit_cfi_for_reg_p): New function.
7042 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7043 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
7044 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7045 as partly clobbered for the SVE PCS.
7046 (aarch64_function_ok_for_sibcall): Check whether the two functions
7047 use the same ABI, rather than checking specifically for whether
7048 they're aarch64_vector_pcs functions.
7049 (aarch64_pass_by_reference): Raise an error for attempts to pass
7050 SVE arguments when SVE is disabled. Pass SVE arguments by reference
7051 if there are not enough free registers left, or if the argument is
7052 variadic.
7053 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7054 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7055 tuples in memory.
7056 (aarch64_layout_arg): Take a function_arg_info rather than
7057 individual properties. Handle SVE predicates, vectors and tuples.
7058 Raise an error if they are passed to unprototyped functions.
7059 (aarch64_function_arg): If the silent_p flag is set, suppress the
7060 usual error about using float registers without TARGET_FLOAT.
7061 (aarch64_init_cumulative_args): Take a silent_p parameter and store
7062 it in the cumulative_args structure. Initialize aapcs_nprn and
7063 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
7064 error about using float registers without TARGET_FLOAT.
7065 If the silent_p flag is not set, also raise an error about
7066 using SVE functions when SVE is disabled.
7067 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7068 and call it for SVE functions too. Update aapcs_nprn similarly
7069 to the other register counts.
7070 (aarch64_layout_frame): If a big-endian function needs to save
7071 and restore Z8-Z15, search for a spare predicate that it can use.
7072 Store SVE predicates at the bottom of the register save area,
7073 followed by SVE vectors, then followed by the normal slots.
7074 Keep pointing the hard frame pointer at the base of the normal slots,
7075 above the SVE vectors. Update the various frame creation and
7076 tear-down strategies for the new layout, initializing the new
7077 sve_callee_adjust field. Add an additional layout for frames
7078 whose saved registers are all SVE registers.
7079 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7080 (aarch64_return_address_signing_enabled): Likewise.
7081 (aarch64_push_regs, aarch64_pop_regs): Update calls to
7082 aarch64_reg_save_mode.
7083 (aarch64_adjust_sve_callee_save_base): New function.
7084 (aarch64_add_cfa_expression): Move earlier in file. Take the
7085 saved register as an rtx rather than a register number and use
7086 its mode for the MEM slot.
7087 (aarch64_save_callee_saves): Remove the mode argument and instead
7088 use aarch64_reg_save_mode to get the mode of each save slot.
7089 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
7090 offsets. Allow GP offsets to be saved at a VL-based offset from
7091 the stack, handling this case using the frame pointer if available
7092 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
7093 big-endian SVE functions; use normal moves for other SVE saves.
7094 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7095 returns true. Add explicit CFA notes when not storing via the
7096 stack pointer. Do not try to pair SVE saves.
7097 (aarch64_restore_callee_saves): Cope with poly_int64 register
7098 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7099 use normal moves for other SVE restores. Only add CFA restore notes
7100 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
7101 SVE restores.
7102 (aarch64_get_separate_components): Always keep the first SVE save
7103 in the prologue if we need to use it as a stack probe. Don't allow
7104 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7105 Likewise the spare predicate register that they need. Update the
7106 offset calculation to account for the SVE save area. Use the
7107 appropriate range check for SVE LDR and STR instructions.
7108 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7109 (aarch64_process_components): Likewise. Update the offset
7110 calculation to account for the SVE save area. Only mark the
7111 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7112 Do not try to pair SVE saves.
7113 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7114 reg_offsets. When handling the final allocation, expect the
7115 first SVE register save to be part of the initial allocation
7116 and for it to act as a probe at SP. Account for the SVE callee
7117 save area in the dump information.
7118 (aarch64_expand_prologue): Update the frame diagram. Fold the
7119 SVE callee allocation into the initial allocation if stack clash
7120 protection is enabled. Use new variables to track the offset
7121 of the frame chain (and hard frame pointer) from the current
7122 stack pointer, and likewise the offset of the bottom of the
7123 register save area. Update calls to aarch64_save_callee_saves
7124 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7125 saving the FP&SIMD registers. Save the predicate registers.
7126 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7127 into account when setting the stack pointer from the frame pointer,
7128 and when deciding whether we can inherit the initial adjustment
7129 amount from the prologue. Restore the predicate registers after
7130 the vector registers, then apply sve_callee_adjust, then restore
7131 the general registers.
7132 (aarch64_secondary_reload): Don't use secondary SVE reloads
7133 for VNx16BImode.
7134 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7135 (aarch64_short_vector_p): Return false for SVE types.
7136 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7137 at the start of the function. Return false for SVE types.
7138 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7139 functions too.
7140 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7141 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7142 to big-endian targets for bytewise moves.
7143 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7144
7145 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7146 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7147 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7148
7149 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7150 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7151 aarch64-sve-builtins-base.o to extra_objs. Add
7152 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7153 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7154 (aarch64-sve-builtins-shapes.o): Likewise.
7155 (aarch64-sve-builtins-base.o): New rules.
7156 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7157 (aarch64_resolve_overloaded_builtin): Likewise.
7158 (aarch64_check_builtin_call): Likewise.
7159 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7160 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7161 pragma.
7162 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7163 (aarch64_svprfop): New enum.
7164 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7165 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7166 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7167 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7168 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7169 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7170 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7171 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7172 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7173 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7174 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7175 (aarch64_sve::mangle_builtin_type): Likewise.
7176 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7177 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7178 (aarch64_sve::expand_builtin): Likewise.
7179 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7180 (aarch64_sve_int_mode): Likewise.
7181 (aarch64_ptrue_all_mode): New function.
7182 (aarch64_convert_sve_data_to_pred): Make public.
7183 (svprfop_token): New function.
7184 (aarch64_output_sve_prefetch): Likewise.
7185 (aarch64_fold_sve_cnt_pat): Likewise.
7186 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7187 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7188 instead of gen_while_ult.
7189 (aarch64_replace_reg_mode): Make public.
7190 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7191 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7192 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7193 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7194 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7195 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7196 (aarch64_sve_ptrue_svpattern_p): Likewise.
7197 (aarch64_sve_pred_valid_immediate): Check
7198 aarch64_sve_ptrue_svpattern_p.
7199 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7200 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7201 functions.
7202 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7203 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7204 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7205 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7206 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7207 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7208 New unspecs.
7209 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7210 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7211 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7212 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7213 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7214 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7215 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7216 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7217 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7218 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7219 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7220 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7221 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7222 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7223 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7224 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7225 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7226 (Vesize): Handle partial vector modes.
7227 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7228 mode attributes.
7229 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7230 iterators.
7231 (s, paired_extend, inc_dec): New code attributes.
7232 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7233 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7234 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7235 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7236 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7237 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7238 UNSPEC_COND_FMULX.
7239 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7240 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7241 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7242 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7243 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7244 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7245 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7246 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7247 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7248 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7249 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7250 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7251 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7252 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7253 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7254 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7255 UNSPEC_COND_FSCALE.
7256 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7257 (binqops_op, binqops_op_rev, last_op): New int attributes.
7258 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7259 (fn, ab): New int attributes.
7260 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7261 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7262 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7263 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7264 UNSPEC_RBIT.
7265 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7266 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7267 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7268 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7269 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7270 UNSPEC_COND_FMULX.
7271 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7272 (brk_reg_con, brk_reg_opno): New int attributes.
7273 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7274 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7275 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7276 UNSPEC_COND_FMIN.
7277 (max_elem_bits): New int attribute.
7278 (min_elem_bits): Handle UNSPEC_RBIT.
7279 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7280 TRUNCATE as well as SUBREG.
7281 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7282 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7283 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7284 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7285 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7286 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7287 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7288 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7289 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7290 (aarch64_gather_scale_operand_h): New predicates.
7291 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7292 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7293 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7294 (*aarch64_sve_reinterpret<mode>): Allow any source register
7295 instead of requiring an exact match.
7296 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7297 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7298 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7299 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7300 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7301 (aarch64_update_ffrt): New patterns.
7302 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7303 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7304 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7305 (@aarch64_ld<fn>f1<mode>): New patterns.
7306 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7307 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7308 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7309 (@aarch64_ldnt1<mode>): New patterns.
7310 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7311 the scalar part of the address.
7312 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7313 scalar part of the addresse and add an alternative for handling
7314 nonzero offsets.
7315 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7316 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7317 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7318 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7319 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7320 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7321 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7322 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7323 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7324 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7325 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7326 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7327 (@aarch64_sve_prefetch<mode>): New patterns.
7328 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7329 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7330 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7331 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7332 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7333 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7334 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7335 (@aarch64_stnt1<mode>): New patterns.
7336 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7337 the scalar part of the address.
7338 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7339 the scalar part of the addresse and add an alternative for handling
7340 nonzero offsets.
7341 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7342 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7343 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7344 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7345 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7346 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7347 New patterns.
7348 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7349 (extract_last_<mode>): Generalize to...
7350 (@extract_<LAST:last_op>_<mode>): ...this.
7351 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7352 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7353 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7354 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7355 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7356 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7357 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7358 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7359 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7360 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7361 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7362 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7363 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7364 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7365 (*aarch64_adr_uxtw_unspec): Likewise.
7366 (*aarch64_adr_uxtw): Rename to...
7367 (*aarch64_adr_uxtw_and): ...this.
7368 (@aarch64_adr<mode>_shift): New expander.
7369 (*aarch64_adr_shift_sxtw): New pattern.
7370 (aarch64_<su>abd<mode>_3): Rename to...
7371 (@aarch64_pred_<su>abd<mode>): ...this.
7372 (<su>abd<mode>_3): Update accordingly.
7373 (@aarch64_cond_<su>abd<mode>): New expander.
7374 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7375 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7376 (*<su>mul<mode>3_highpart): Rename to...
7377 (@aarch64_pred_<optab><mode>): ...this.
7378 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7379 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7380 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7381 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7382 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7383 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7384 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7385 (*v<ASHIFT:optab><mode>3): Rename to...
7386 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7387 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7388 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7389 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7390 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7391 (@cond_asrd<mode>): New expander.
7392 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7393 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7394 (*sdiv_pow2<mode>3): Delete.
7395 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7396 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7397 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7398 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7399 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7400 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7401 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7402 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7403 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7404 (*add<SVE_F:mode>3): Rename to...
7405 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7406 for SVE_STRICT_GP.
7407 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7408 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7409 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7410 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7411 (*sub<SVE_F:mode>3): Rename to...
7412 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7413 for SVE_STRICT_GP.
7414 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7415 (*fabd<SVE_F:mode>3): Rename to...
7416 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7417 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7418 (*mul<SVE_F:mode>3): Rename to...
7419 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7420 for SVE_STRICT_GP.
7421 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7422 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7423 to...
7424 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7425 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7426 (*<nlogical><PRED_ALL:mode>3): Rename to...
7427 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7428 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7429 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7430 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7431 (aarch64_pred_<logical_nn><mode>_z): ...this.
7432 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7433 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7434 (*fma<SVE_I:mode>4): Rename to...
7435 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7436 (*fnma<SVE_I:mode>4): Rename to...
7437 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7438 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7439 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7440 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7441 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7442 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7443 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7444 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7445 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7446 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7447 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7448 (@aarch64_sve_tmad<mode>): Likewise.
7449 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7450 (*aarch64_sel_dup<mode>): Rename to...
7451 (@aarch64_sel_dup<mode>): ...this.
7452 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7453 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7454 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7455 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7456 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7457 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7458 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7459 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7460 (*fcm<cmp_op><mode>): Rename to...
7461 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7462 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7463 (*fcmuo<mode>): Rename to...
7464 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7465 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7466 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7467 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7468 (fold_extract_last_<mode>): Generalize to...
7469 (@fold_extract_<last_op>_<mode>): ...this.
7470 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7471 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7472 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7473 DImode result explicit.
7474 (reduc_plus_scal_<mode>): Update accordingly.
7475 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7476 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7477 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7478 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7479 (*aarch64_sve_tbl<mode>): Rename to...
7480 (@aarch64_sve_tbl<mode>): ...this.
7481 (@aarch64_sve_compact<mode>): New pattern.
7482 (*aarch64_sve_dup_lane<mode>): Rename to...
7483 (@aarch64_sve_dup_lane<mode>): ...this.
7484 (@aarch64_sve_dupq_lane<mode>): New pattern.
7485 (@aarch64_sve_splice<mode>): Likewise.
7486 (aarch64_sve_<perm_insn><mode>): Rename to...
7487 (@aarch64_sve_<perm_insn><mode>): ...this.
7488 (*aarch64_sve_ext<mode>): Rename to...
7489 (@aarch64_sve_ext<mode>): ...this.
7490 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7491 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7492 to...
7493 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7494 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7495 Rename to...
7496 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7497 ...this.
7498 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7499 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7500 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7501 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7502 to...
7503 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7504 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7505 a "@" marker.
7506 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7507 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7508 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7509 pattern.
7510 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7511 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7512 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7513 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7514 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7515 "@" marker.
7516 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7517 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7518 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7519 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7520 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7521 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7522 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7523 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7524 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7525 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7526 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7527 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7528 (aarch64_sve_cnt_pat): Likewise.
7529 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7530 (*aarch64_sve_incsi_pat): Likewise.
7531 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7532 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7533 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7534 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7535 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7536 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7537 (*aarch64_sve_decsi_pat): Likewise.
7538 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7539 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7540 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7541 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7542 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7543 (@aarch64_pred_cntp<mode>): Likewise.
7544 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7545 New expander.
7546 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7547 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7548 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7549 New expander.
7550 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7551 New pattern.
7552 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7553 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7554 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7555 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7556 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7557 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7558 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7559 New expander.
7560 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7561 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7562 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7563 New expander.
7564 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7565 New pattern.
7566 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7567 expander.
7568 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7569 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7570 expander.
7571 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7572 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7573 expander.
7574 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7575 * config/aarch64/arm_sve.h: New file.
7576 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7577 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7578 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7579 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7580 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7581 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7582 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7583 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7584 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7585
7586 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7587
7588 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7589 New pattern.
7590 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7591 SVE modes.
7592
7593 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7594
7595 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7596 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7597 FFRT_REGNUM + 1.
7598 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7599 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7600 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7601 (aarch64_hard_regno_nregs): Handle the new register classes.
7602 (aarch64_hard_regno_mode_ok): Likewise.
7603 (aarch64_regno_regclass): Likewise.
7604 (aarch64_class_max_nregs): Likewise.
7605 (aarch64_register_move_cost): Likewise.
7606 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7607 as general register_operands.
7608
7609 2019-10-29 Martin Liska <mliska@suse.cz>
7610
7611 * ggc-common.c: One can't subtract unsigned types
7612 in compare function.
7613
7614 2019-10-29 Martin Liska <mliska@suse.cz>
7615
7616 * cgraphunit.c (symbol_table::compile): Pass
7617 title as dump_memory_report argument.
7618 * toplev.c (dump_memory_report): New argument.
7619 (finalize): Pass new argument.
7620 * toplev.h (dump_memory_report): Add argument.
7621
7622 2019-10-29 Martin Liska <mliska@suse.cz>
7623
7624 * ggc-common.c: Move Leak to the first column.
7625
7626 2019-10-29 Martin Liska <mliska@suse.cz>
7627
7628 * cgraphunit.c (symbol_table::compile): Remove argument
7629 for dump_memory_report.
7630 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7631 (compare_final): Remove in order to make report
7632 better readable.
7633 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7634 * mem-stats.h (mem_alloc_description::get_list):
7635 Do not pass cmp.
7636 (mem_alloc_description::dump): Likewise here.
7637 * toplev.c (dump_memory_report): Remove final
7638 argument.
7639 (finalize): Likewise.
7640 * toplev.h (dump_memory_report): Remove argument.
7641
7642 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7643
7644 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7645 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7646 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7647 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7648 accept "const".
7649
7650 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7651
7652 * coretypes.h (string_int_pair): New typedef.
7653 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7654 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7655 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7656
7657 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7658
7659 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7660 (simulate_builtin_function_decl): Declare.
7661 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7662 (LANG_HOOKS_INITIALIZER): Include it.
7663 * langhooks.c (add_builtin_function_common): Rename to...
7664 (build_builtin_function): ...this. Add a location parameter and use
7665 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7666 the decl instead.
7667 (add_builtin_function): Update accordingly, passing the returned
7668 decl to the lang hook.
7669 (add_builtin_function_ext_scope): Likewise
7670 (simulate_builtin_function_decl): New function.
7671
7672 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7673
7674 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7675 example, use actual names of supported offload targets.
7676
7677 PR target/92258
7678 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7679
7680 2019-10-28 Martin Sebor <msebor@redhat.com>
7681
7682 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7683 (handle_store): Pass argument to get_addr_stridx.
7684
7685 2019-10-28 Martin Sebor <msebor@redhat.com>
7686
7687 PR tree-optimization/92226
7688 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7689 the offset is in the open range outlined by SI's length.
7690
7691 2019-10-28 Martin Sebor <msebor@redhat.com>
7692
7693 PR c/66970
7694 * doc/cpp.texi (__has_builtin): Document.
7695 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7696
7697 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7698
7699 PR target/82981
7700 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7701 doubleword and low doubleword result of multiplication on
7702 MIPS64R6.
7703
7704 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7705 pure qualifier to the built-in.
7706 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7707 built-ins.
7708 (struct mips_builtin_description): Add is_pure flag.
7709 (mips_init_builtins): Mark built-in as pure if the flag in the
7710 corresponding mips_builtin_description struct is set.
7711
7712 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7713 alternative which covers the floating-point input value. Also
7714 forbid the split of insert.d pattern for floating-point values.
7715
7716 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7717
7718 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7719 * config/riscv/riscv-sr.c: New file.
7720 * config/riscv/riscv.c (riscv_reorg): New function.
7721 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7722 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7723 (riscv_remove_unneeded_save_restore_calls): Declare.
7724 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7725
7726 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7727
7728 PR tree-optimization/92163
7729 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7730 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7731 before calling bitmap_set_bit.
7732 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7733 delete_dead_or_redundant_assignment.
7734 (dse_dom_walker::dse_optimize_stmt): Likewise.
7735 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7736
7737 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7738
7739 PR middle-end/91272
7740 * tree-vect-stmts.c (vectorizable_condition): Support
7741 EXTRACT_LAST_REDUCTION with fully-masked loops.
7742
7743 2019-10-28 Richard Biener <rguenther@suse.de>
7744
7745 PR tree-optimization/92252
7746 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7747 STMT_VINFO_REDUC_IDX when swapping operands.
7748
7749 2019-10-28 Richard Biener <rguenther@suse.de>
7750
7751 PR tree-optimization/92241
7752 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7753 we failed to update the reduction index do not use the pattern
7754 stmts for the reduction chain.
7755 (vectorizable_reduction): When the reduction chain is corrupt,
7756 fail.
7757 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7758 fail to update the reduction chain.
7759
7760 2019-10-28 Richard Biener <rguenther@suse.de>
7761
7762 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7763 STMT_VINFO_REDUC_IDX from the actual stmt.
7764 (vect_transform_reduction): Likewise.
7765 (vectorizable_reduction): Compute the reduction chain length,
7766 do not recompute the reduction operand index. Remove no longer
7767 necessary restriction for condition reduction chains.
7768
7769 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7770
7771 PR target/92225
7772 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7773 condition for V2DImode.
7774
7775 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7776
7777 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7778 Remove %k operand modifier.
7779 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7780
7781 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7782
7783 PR rtl-optimization/92007
7784 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7785 call it after reload if hot/cold partitioning has been done.
7786 (class pass_postreload_jump): Rename to
7787 pass_jump_after_combine.
7788 (make_pass_postreload_jump): Rename to
7789 make_pass_jump_after_combine.
7790 * passes.def(pass_postreload_jump): Move before reload, rename
7791 to pass_jump_after_combine.
7792 * tree-pass.h (make_pass_postreload_jump): Rename to
7793 make_pass_jump_after_combine.
7794
7795 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7796
7797 PR ipa/92242
7798 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7799 for missing EDGE_REF
7800 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7801
7802 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7803
7804 PR tree-optimization/88760
7805 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7806 Enable -funroll-loops for -O2 and above.
7807 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7808 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7809 do not turn on web and rngreg implicitly, if the unroller is not
7810 explicitly enabled.
7811
7812 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7813
7814 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7815 jump functions.
7816
7817 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7818
7819 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7820 * cgraph.h (cgraph_node::rtl_info): Likewise.
7821
7822 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7823
7824 * ipa-cp.c (propagate_constants_across_call): If args are not available
7825 just drop everything to varying.
7826 (find_aggregate_values_for_callers_subset): Watch for missing
7827 edge summary.
7828 (find_more_scalar_values_for_callers_subs): Likewise.
7829 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7830 update_jump_functions_after_inlining, propagate_controlled_uses):
7831 Watch for missing summaries.
7832 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7833 is finished.
7834 (ipa_write_node_info): Watch for missing summaries.
7835 (ipa_read_edge_info): Create new ref.
7836 (ipa_edge_args_sum_t): Add remove.
7837 (IPA_EDGE_REF_GET_CREATE): New macro.
7838 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7839 edge summary.
7840 (remap_edge_change_prob): Likewise.
7841
7842 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7843
7844 * ipa-inline-transform.c (inline_call): update function summaries
7845 after expanidng thunk.
7846
7847 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7848
7849 * ipa-icf.c (sem_function::merge): Update function summaries.
7850 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7851
7852 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7853
7854 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7855 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7856 operand already has scalar mode.
7857 (iptr): Remove SF/DF.
7858
7859 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7860
7861 PR target/91289
7862 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7863 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7864 this.
7865
7866 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7867
7868 * config/i386/sse.md
7869 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7870 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7871 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7872 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7873 <sse>_vmmaskcmp<mode>3):
7874 Change predicates from vector_operand to nonimmediate_operand,
7875 constraints xBm to xm, since scalar operations don't need
7876 memory address alignment.
7877 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7878 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7879 round_saeonly_nimm_predicate with
7880 round_saeonly_nimm_scalar_predicate.
7881 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7882 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7883 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7884 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7885 avx512f_vmfmadd_<mode>_mask3<round_name>,
7886 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7887 *avx512f_vmfmsub_<mode>_mask<round_name>,
7888 avx512f_vmfmsub_<mode>_mask3<round_name>,
7889 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7890 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7891 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7892 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7893 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7894 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7895 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7896 cvtusi2<ssescalarmodesuffix>32<round_name>,
7897 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7898 round_nimm_predicate with round_nimm_scalr_predicate.
7899 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7900 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7901 avx512er_vmrcp28<mode><round_saeonly_name>,
7902 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7903 ): Replace round_saeonly_nimm_predicate with
7904 round_saeonly_nimm_scalar_predicate.
7905 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7906 vector_operand with nonimmediate_operand.
7907 * config/i386/subst.md (round_scalar_nimm_predicate,
7908 round_saeonly_scalar_nimm_predicate): Replace
7909 vector_operand with nonimmediate_operand.
7910
7911 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7912
7913 PR target/89071
7914 * config/i386/i386.md (*rcpsf2_sse): Add
7915 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7916 (*rsqrtsf2_sse): Ditto.
7917 (*sqrt<mode>2_sse): Ditto.
7918 (sse4_1_round<mode>2): separate constraint vm, add
7919 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7920 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7921 by pass rpad.
7922 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7923 Ditto.
7924 (*sse_vmrsqrtv4sf2): Ditto.
7925 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7926 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7927 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7928 <iptr> pointer size modifier since vround support memory operand.
7929
7930 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7931
7932 PR target/85969
7933 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7934 static function.
7935
7936 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7937 Tobias Burnus <tobias@codesourcery.com>
7938
7939 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7940 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7941 common block decls.
7942
7943 2019-10-25 Richard Biener <rguenther@suse.de>
7944
7945 PR tree-optimization/92222
7946 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7947 (_slp_oprnd_info::second_pattern): Likewise.
7948 (_slp_oprnd_info::any_pattern): New.
7949 (vect_create_oprnd_info): Adjust.
7950 (vect_get_and_check_slp_defs): Compute whether any stmt is
7951 in a pattern.
7952 (vect_build_slp_tree_2): Avoid building up a node from scalars
7953 if any of the operand defs, not just the first, is in a pattern.
7954
7955 2019-10-25 Richard Biener <rguenther@suse.de>
7956
7957 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7958 swapping if we actually have to modify the IL on a shared stmt.
7959 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7960 because we no longer modify the IL.
7961
7962 2019-10-25 Martin Liska <mliska@suse.cz>
7963
7964 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7965
7966 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7967
7968 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7969 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7970 handled by vect_transform_reduction. Allow fully-masked loops
7971 to be used with reduction chains.
7972 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7973 operations in fully-masked loops.
7974 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7975 operations in fully-masked loops.
7976
7977 2019-10-25 Richard Biener <rguenther@suse.de>
7978
7979 * tree-vect-loop.c (vectorizable_reduction): Verify
7980 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7981 correctly.
7982 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7983 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7984 stmts.
7985
7986 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7987
7988 * gimplify.h (omp_construct_selector_matches): Declare.
7989 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7990 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7991 called function if needed for flag_openmp.
7992 (gimplify_scan_omp_clauses): Set ctx->code.
7993 (omp_construct_selector_matches): New function.
7994 * omp-general.h (omp_constructor_traits_to_codes,
7995 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7996 * omp-general.c (omp_constructor_traits_to_codes,
7997 omp_context_selector_matches, omp_resolve_declare_variant): New
7998 functions.
7999
8000 * config/arc/arc.c (hwloop_optimize): Add missing space in string
8001 literal.
8002 * config/rx/rx.c (rx_print_operand): Likewise.
8003 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8004 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8005 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8006 Likewise.
8007 * genemit.c (emit_c_code): Likewise.
8008 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
8009
8010 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8011
8012 * symbols-summary.h (fast_function_summary<T *, V>::release,
8013 fast_call_summary<T *, V>::release): Free m_vector.
8014
8015 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8016
8017 * cgraphunit.c (symbol_table::process_new_functions): Call
8018 ipa_free_size_summary.
8019 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8020 (devirtualization_time_bonus): Update.
8021 (ipcp_propagate_stage): Update.
8022 * ipa-fnsummary.c (ipa_size_summaries): New.
8023 (ipa_fn_summary_alloc): Alloc size summary.
8024 (dump_ipa_call_summary): Update.
8025 (ipa_dump_fn_summary): Update.
8026 (analyze_function_body): Update.
8027 (compute_fn_summary): Likewise.
8028 (ipa_get_stack_frame_offset): New function.
8029 (inline_update_callee_summaries): Do not update frame offsets.
8030 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8031 remove call and function summary.
8032 (ipa_update_overall_fn_summary): Update.
8033 (inline_read_section): Update.
8034 (ipa_fn_summary_write): Update.
8035 (ipa_free_fn_summary): Do not remove summaries.
8036 (ipa_free_size_summary): New.
8037 (release summary pass): Also run at WPA.
8038 * ipa-fnsummary.h (ipa_size_summary): Declare.
8039 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8040 estimated_self_stack_size.
8041 (ipa_size_summary_t): New type.
8042 (ipa_size_summaries): Declare.
8043 (ipa_free_size_summary): Declare.
8044 (ipa_get_stack_frame_offset): Declare.
8045 * ipa-icf.c (sem_function::merge): Update.
8046 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8047 (estimate_growth): Update.
8048 (growth_likely_positive): Update.
8049 (clone_inlined_nodes): Update.
8050 (inline_call): Update.
8051 * ipa-inline.c (caller_growth_limits): Update.
8052 (edge_badness): Update.
8053 (recursive_inlining): Update.
8054 (inline_small_functions): Update.
8055 (inline_to_all_callers_1): Update.
8056 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8057
8058 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
8059
8060 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8061 (uavg<mode>3_ceil): ... This.
8062 (altivec_vavgs<VI_char>): Rename to...
8063 (avg<mode>3_ceil): ... This.
8064 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8065 VAVGUW, VAVGSW): Adjust.
8066
8067 2019-10-24 Nathan Sidwell <nathan@acm.org>
8068
8069 * dumpfile.c (dump_begin): Reorder decls to use RAII.
8070
8071 2019-10-24 Martin Liska <mliska@suse.cz>
8072
8073 * symbol-summary.h (gt_pch_nx): Mark all functions
8074 with gcc_unreachable as we do not expect to be called.
8075
8076 2019-10-24 Richard Biener <rguenther@suse.de>
8077
8078 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8079 chains try harder with operand swapping and instead of
8080 putting a shifted chain into the reduction operands put
8081 a repetition of the final reduction op there as if we'd
8082 reassociate the expression.
8083
8084 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8085
8086 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8087 statics_not_read and statics_not_written to statics_read and
8088 statics_written respectively.
8089 (no_module_statics): New static var.
8090 (ipa_reference_get_not_read_global): Rename to ...
8091 (ipa_reference_get_read_global): ... this.
8092 (ipa_reference_get_not_written_global): Rename to ...
8093 (ipa_reference_get_written_global): ... this.
8094 (dump_static_vars_set_to_file): Dump no_module_statics.
8095 (copy_static_var_set): Add for propagation parameter.
8096 (ipa_init): Initialize no_module_statics.
8097 (ipa_ref_opt_summary_t::duplicate): Update.
8098 (ipa_ref_opt_summary_t::remove): Update.
8099 (propagate): Update.
8100 (write_node_summary_p): Look correctly for bitmap differences.
8101 (ipa_reference_write_optimization_summary): Update.
8102 (ipa_reference_read_optimization_summary): Update.
8103 * ipa-reference.h
8104 (ipa_reference_get_not_read_global): Rename to ...
8105 (ipa_reference_get_read_global): ... this.
8106 (ipa_reference_get_not_written_global): Rename to ...
8107 (ipa_reference_get_written_global): ... this.
8108 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8109 (call_may_clobber_ref_p_1): Update.
8110
8111 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8112
8113 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8114 and add comment.
8115 (msp430_hard_regno_nregs_with_padding): Remove.
8116
8117 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8118
8119 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8120 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8121 shift amount is between 1 and 4.
8122 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8123 is between 1 and 4.
8124
8125 2019-10-24 Richard Biener <rguenther@suse.de>
8126
8127 PR tree-optimization/92205
8128 * tree-vect-loop.c (vectorizable_reduction): Restrict
8129 search for alternate vectype_in to lane-reducing patterns
8130 we support.
8131
8132 2019-10-24 Richard Biener <rguenther@suse.de>
8133
8134 PR tree-optimization/92203
8135 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8136 Skip eliminating conversion stmts inserted by insertion.
8137
8138 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8139
8140 * config/s390/s390.c (s390_get_thread_pointer): Use
8141 gen_get_thread_pointer.
8142 (s390_expand_split_stack_prologue): Likewise.
8143 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8144 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8145 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8146 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8147 parameterized name.
8148
8149 2019-10-24 Richard Biener <rguenther@suse.de>
8150
8151 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8152 SLP discovery fails try to handle the reduction as part
8153 of SLP reduction discovery.
8154
8155 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8156
8157 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8158 declaration.
8159 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8160 attribute if it exists, rather than the insn size. If we use the
8161 insn size, adjust the size to remove the extra size that prefixed
8162 instructions take.
8163 (rs6000_adjust_insn_length): New function.
8164 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8165 update the instruction sized if prefixed instructions are used.
8166 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8167 (non_prefixed_length attribute): Delete.
8168 (num_insns attribute): New insn attribute to return the number of
8169 instructions.
8170 (max_prefixed_insns attribute): New insn attribute to return the
8171 maximum number of prefixed instructions in an insn.
8172 (length attribute): Do not adjust for prefix instructions here,
8173 punt to ADJUST_INSN_LENGTH.
8174 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8175 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8176 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8177 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8178 max_prefixed_insns and num_insns.
8179
8180 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8181 (movtd_64bit_nodm): Reformat.
8182 (mov<mode>_32bit): Reformat.
8183 (mov<mode>_softfloat): Reformat.
8184 (FMOVE128_GPR splitter): Reformat.
8185 (DIFD splitter): Reformat.
8186 (TI2 splitter): Reformat.
8187 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8188 bits of the offset for the memory address are non-zero, use PLWA
8189 if prefixed instructions are available.
8190
8191 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8192
8193 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8194
8195 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8196
8197 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8198 previous patch.
8199
8200 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8201
8202 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8203 (cmp_symbol_files): New.
8204 (lto_output): Copy sections in file order.
8205 * lto-streamer.h (lto_file_decl_data): Add field order.
8206
8207 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8208
8209 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8210 * ipa-reference.c (reference_vars_map_t): new type.
8211 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8212 (ipa_reference_var_uid): Implement.
8213 (varpool_node_hooks): New static var.
8214 (varpool_removal_hook): New function.
8215 (is_improper): Do not check bitmap for id==-1
8216 (get_static_name): Update.
8217 (ipa_init): Initialize new datastructures.
8218 (analyze_function): Do not recompute ids.
8219 (propagate): Free reference_vars_to_consider.
8220 (stream_out_bitmap): Update.
8221 (ipa_reference_read_optimization_summary): Update.
8222
8223 2019-10-23 qing zhao <qing.zhao@oracle.com>
8224
8225 PR gcov-profile/91971
8226 * coverage.c (coverage_init): Mangle the full path of filename when
8227 filename is a absolute path.
8228
8229 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8230
8231 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8232 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8233 (msp430_has_hwmult): New.
8234 (msp430_output_labelref):
8235 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8236 * config/msp430/msp430.md (mulhisi3): Likewise.
8237 (umulhisi3): Likewise.
8238 (mulsidi3): Likewise.
8239 (umulsidi3): Likewise.
8240
8241 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8242
8243 PR ipa/92074
8244 * params.def (inline-heuristics-hint-percent): Set to 600.
8245
8246 2019-10-23 Richard Biener <rguenther@suse.de>
8247
8248 PR tree-optimization/65930
8249 * tree-vect-loop.c (check_reduction_path): Allow conversions
8250 that only change the sign.
8251 (vectorizable_reduction): Relax latch def stmts we handle further.
8252
8253 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8254
8255 PR debug/90231
8256 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8257 (remove_unused_ivs): Use it instead of get_computation_at. When
8258 choosing best candidate, only consider candidates where
8259 get_debug_computation_at actually returns non-NULL.
8260
8261 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8262
8263 PR tree-optimization/92131
8264 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8265 range would be symbolic, drop to varying for any explicit overflow
8266 in the constant part or if neither range is a singleton.
8267
8268 2019-10-23 Martin Liska <mliska@suse.cz>
8269
8270 PR middle-end/81669
8271 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8272 Initialize m_data.
8273
8274 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8275
8276 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8277 int_mode_for_mode rather than mode_for_int_vector for scalars.
8278
8279 2019-10-23 Richard Biener <rguenther@suse.de>
8280
8281 PR tree-optimization/92179
8282 * tree-vect-stmts.c (vectorizable_shift): For shift args
8283 that are all the same remove type restriction in the SLP case.
8284 Adjust SLP code to handle converting of the shift arg to
8285 only apply in case the modes are different.
8286
8287 2019-10-23 Martin Liska <mliska@suse.cz>
8288
8289 PR ipa/91969
8290 * ipa-inline.c (recursive_inlining): Do not print
8291 when curr->count is not initialized.
8292
8293 2019-10-23 Richard Biener <rguenther@suse.de>
8294
8295 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8296 op from scalars in case there's a constant operand in its
8297 definition.
8298
8299 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8300
8301 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8302 against out of range max skip or log values.
8303
8304 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8305
8306 * cgraph.c (dump_graphviz): Change name to dump_name
8307
8308 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8309
8310 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8311 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8312 subtraction from a carry operation.
8313
8314 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8315
8316 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8317
8318 2019-10-22 Richard Biener <rguenther@suse.de>
8319
8320 PR tree-optimization/92173
8321 * tree-vect-loop.c (vectorizable_reduction): If
8322 vect_transform_reduction cannot handle code-generation try without
8323 the single-def-use-cycle optimization. Pass optab_vector to
8324 optab_for_tree_code to get vector shifts as that's what we'd
8325 generate.
8326
8327 2019-10-22 Michael Matz <matz@suse.de>
8328
8329 PR middle-end/90796
8330 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8331 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8332 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8333
8334 2019-10-22 Richard Biener <rguenther@suse.de>
8335
8336 PR tree-optimization/92173
8337 * tree-vect-loop.c (vectorizable_reduction): If
8338 vect_transform_reduction cannot handle code-generation try without
8339 the single-def-use-cycle optimization. Pass optab_vector to
8340 optab_for_tree_code to get vector shifts as that's what we'd
8341 generate.
8342
8343 2019-10-22 Martin Liska <mliska@suse.cz>
8344
8345 * diagnostic-format-json.cc (json_from_expanded_location):
8346 Use json::integer_number.
8347 * gcov.c (output_intermediate_json_line): Use new
8348 json::integer_number.
8349 (output_json_intermediate_file): Likewise.
8350 * json.cc (number::print): Move to ...
8351 (float_number::print): ... this.
8352 (integer_number::print): New.
8353 (test_writing_numbers): Move to ...
8354 (test_writing_float_numbers): ... this.
8355 (test_writing_integer_numbers): New.
8356 (json_cc_tests): Register test_writing_integer_numbers.
8357 * json.h (class value): Add forward declaration
8358 for float_number and integer_number.
8359 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8360 (class number): Move to ...
8361 (class float_number): ... this.
8362 (class integer_number): New.
8363 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8364 Use json::integer_number.
8365 (optrecord_json_writer::location_to_json): Likewise.
8366 (optrecord_json_writer::profile_count_to_json): Likewise.
8367 (optrecord_json_writer::pass_to_json): Likewise.
8368
8369 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8370
8371 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8372 autodetected_vector_size rather than vector_size is zero.
8373 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8374 Set autodetected_vector_size immediately after calling
8375 vect_analyze_loop_2. Check for a fatal error before advancing
8376 next_size.
8377
8378 2019-10-21 Jason Merrill <jason@redhat.com>
8379
8380 * lock-and-run.sh: Check for process existence rather than timeout.
8381
8382 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8383
8384 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8385 widening multiplication.
8386
8387 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8388
8389 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8390 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8391 type attribute.
8392 (subsi3_carryin_shift): Separate into register and constant controlled
8393 alternatives. Use shift_amount_operand for operand 4. Set shift
8394 attribute and simplify type attribute.
8395 (subsi3_carryin_shift_alt): Likewise.
8396 (rsbsi3_carryin_shift): Likewise.
8397 (rsbsi3_carryin_shift_alt): Likewise.
8398 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8399 and register controlled shifts into distinct alternatives.
8400 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8401 (andsi_not_shiftsi_si_scc): Likewise.
8402 (arm_cmpsi_negshiftsi_si): Likewise.
8403 (not_shiftsi): Remove redundant M constraint from alternative 1.
8404 (not_shiftsi_compare0): Likewise.
8405 (arm_cmpsi_insn): Remove redundant alternative 2.
8406 (cmpsi_shift_swp): Likewise.
8407 (sub_shiftsi): Likewise.
8408 (sub_shiftsi_compare0_scratch): Likewise.
8409 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8410 (thumb2_cmpsi_neg_shiftsi): Likewise.
8411
8412 2019-10-21 Richard Biener <rguenther@suse.de>
8413
8414 PR tree-optimization/92162
8415 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8416 STMT_VINFO_REDUC_IDX in reduc_info.
8417 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8418
8419 2019-10-21 Richard Biener <rguenther@suse.de>
8420
8421 * tree-vectorizer.h (_slp_tree::ops): New member.
8422 (SLP_TREE_SCALAR_OPS): New.
8423 (vect_get_slp_defs): Adjust prototype.
8424 * tree-vect-slp.c (vect_free_slp_tree): Release
8425 SLP_TREE_SCALAR_OPS.
8426 (vect_create_new_slp_node): Initialize it. New overload for
8427 initializing by an operands array.
8428 (_slp_oprnd_info::ops): New member.
8429 (vect_create_oprnd_info): Initialize it.
8430 (vect_free_oprnd_info): Release it.
8431 (vect_get_and_check_slp_defs): Populate the operands array.
8432 Do not swap operands in the IL when not necessary.
8433 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8434 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8435 swap operands in the operands array. Do not swap operands in
8436 the IL.
8437 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8438 (vect_gather_slp_loads): Fix.
8439 (vect_detect_hybrid_slp_stmts): Likewise.
8440 (vect_slp_analyze_node_operations_1): Search for a internal
8441 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8442 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8443 the def-type push/pop dance.
8444 (vect_get_constant_vectors): Compute number_of_vectors here.
8445 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8446 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8447 (vect_get_slp_defs): Simplify greatly.
8448 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8449 (vect_transform_reduction): Likewise.
8450 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8451 (vectorizable_call): Likewise.
8452 (vectorizable_operation): Likewise.
8453 (vectorizable_load): Likewise.
8454 (vectorizable_condition): Likewise.
8455 (vectorizable_comparison): Likewise.
8456
8457 2019-10-21 Richard Biener <rguenther@suse.de>
8458
8459 PR tree-optimization/92161
8460 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8461 for reductions.
8462
8463 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8464
8465 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8466 (aarch64_rndr): New define_insn.
8467 (aarch64_rndrrs): Likewise.
8468 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8469 (TARGET_RNG): Likewise.
8470 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8471 argument.
8472 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8473 Add fourth argument in prototype.
8474 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8475 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8476 (aarch64_init_rng_builtins): Define.
8477 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8478 (aarch64_expand_rng_builtin): Define.
8479 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8480 RNG builtins.
8481 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8482 __ARM_FEATURE_RNG when TARGET_RNG.
8483 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8484
8485 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8486
8487 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8488 alignment is more restrictive.
8489
8490 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8491
8492 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8493 (vect_update_max_nunits): Update comment.
8494 (current_vector_size): Delete.
8495 * tree-vect-stmts.c (current_vector_size): Likewise.
8496 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8497 of current_vector_size.
8498 (get_mask_type_for_scalar_type): Likewise.
8499 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8500 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8501 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8502 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8503 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8504 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8505
8506 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8507
8508 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8509 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8510 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8511 accordingly.
8512
8513 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8514
8515 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8516 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8517 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8518 call accordingly.
8519 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8520
8521 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8522
8523 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8524 a loop_vec_info.
8525 (vect_set_loop_condition_masked): Update call accordingly.
8526
8527 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8528
8529 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8530 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8531 (simple_integer_narrowing): Update call accordingly.
8532 (vectorizable_conversion): Likewise.
8533
8534 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8535
8536 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8537 (vectorizable_call): Update call accordingly.
8538
8539 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8540
8541 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8542 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8543 (duplicate_and_interleave): Update call accordingly.
8544 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8545
8546 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8547
8548 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8549 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8550 (vect_get_constant_vectors): Update call accordingly.
8551 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8552
8553 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8554
8555 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8556 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8557 (vect_prologue_cost_for_slp_op): Update call accordingly.
8558 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8559 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8560 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8561 (get_mask_type_for_scalar_type): Likewise.
8562 (vect_get_vector_types_for_stmt): Likewise.
8563 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8564 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8565 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8566 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8567 (vect_split_statement, vect_convert_input): Likewise.
8568 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8569 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8570 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8571 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8572 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8573 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8574 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8575 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8576 (vect_recog_mask_conversion_pattern): Likewise.
8577 (vect_add_conversion_to_pattern): Likewise.
8578 (vect_recog_gather_scatter_pattern): Likewise.
8579 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8580 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8581
8582 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8583
8584 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8585 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8586 (vect_check_load_store_mask): Update call accordingly.
8587 (vect_get_mask_type_for_stmt): Likewise.
8588 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8589 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8590 (vect_convert_mask_for_vectype): Likewise.
8591
8592 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8593
8594 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8595 a vec_info.
8596 (vect_recog_dot_prod_pattern): Update call accordingly.
8597 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8598 (vect_recog_widen_sum_pattern): Likewise.
8599
8600 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8601
8602 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8603 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8604 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8605 accordingly.
8606
8607 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8608
8609 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8610 get_vectype_for_scalar_type_and_size instead of
8611 get_vectype_for_scalar_type.
8612
8613 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8614
8615 * common.opt (-fcommon): Fix description.
8616
8617 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8618
8619 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8620 * config/i386/i386.c (ix86_pre_reload_split): New function.
8621 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8622 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8623 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8624 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8625 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8626 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8627 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8628 *<shift_insn><dwi>3_doubleword_mask,
8629 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8630 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8631 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8632 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8633 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8634 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8635 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8636 *avx2_<code>v8qiv8si2<mask_name>_2,
8637 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8638 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8639 *avx512f_<code>v8qiv8di2<mask_name>_2,
8640 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8641 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8642 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8643 sse4_2_pcmpistr): Likewise.
8644
8645 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8646
8647 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8648 now defaults to https.
8649
8650 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8651
8652 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8653 skip non-zero array accesses.
8654
8655 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8656
8657 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8658 and return a boolean success value. Move the allocation and
8659 initialization of the bb_vec_info to...
8660 (vect_slp_bb_region): ...here. Update call accordingly.
8661 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8662 than in vect_slp_analyze_bb_1.
8663
8664 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8665
8666 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8667 when processing the given datarefs for the first time and
8668 check_datarefs subsequently.
8669 (vect_slp_bb_region): New function, split out of...
8670 (vect_slp_bb): ...here. Don't recompute the region bounds and
8671 dataref sets when retrying with a different vector size.
8672
8673 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8674 Uroš Bizjak <ubizjak@gmail.com>
8675
8676 PR target/92140
8677 * config/i386/predicates.md (int_nonimmediate_operand): New special
8678 predicate.
8679 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8680 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8681 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8682 define_insn_and_split patterns.
8683
8684 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8685
8686 * config/rs6000/rs6000.md: Delete out--of-date comment about
8687 special-casing integer loads.
8688
8689 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8690
8691 * escaped_string.h (escaped_string): New header.
8692 * tree.c (escaped_string): Remove escaped_string class.
8693
8694 2019-10-18 Martin Sebor <msebor@redhat.com>
8695
8696 PR tree-optimization/92157
8697 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8698 compute_string_length to return a negative result.
8699
8700 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8701
8702 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8703 (negvsi3, negvdi3): Delete.
8704 (negdi2_compare): Delete.
8705
8706 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8707
8708 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8709 operations.
8710 (subdi3_compare1): Delete pattern.
8711 (subvsi3_borrow): New insn pattern.
8712 (subvsi3_borrow_imm): Likewise.
8713
8714 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8715
8716 * config/arm/arm.md (subv<mode>4): Delete.
8717 (subvdi4): New expander pattern.
8718 (subvsi4): Likewise. Handle some immediate values.
8719 (subvsi3_intmin): New insn pattern.
8720 (subvsi3): Likewise.
8721 (subvsi3_imm1): Likewise.
8722 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8723 idioms.
8724
8725 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8726
8727 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8728 incoming operands. Early split the calculation into SImode
8729 operations.
8730 (usubvsi3_borrow): New insn pattern.
8731 (usubvsi3_borrow_imm): Likewise.
8732
8733 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8734
8735 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8736 (usubvsi4): New pattern. Allow some immediate values for inputs.
8737 (usubvdi4): New pattern.
8738
8739 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8740
8741 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8742 or second operand of the PLUS inside a DImode equality test to be
8743 sign-extend when selecting CC_Vmode.
8744 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8745 instructions.
8746 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8747 expand patterns.
8748 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8749 (addsi3_cin_vout_0): Likewise.
8750 (adddi3_compareV): Delete.
8751
8752 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8753
8754 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8755 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8756 to transform this back into the summation version when that leads
8757 to smaller code.
8758
8759 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8760
8761 * config/arm/arm.md (addv<mode>4): Delete.
8762 (addvsi4): New pattern. Handle immediate values that the architecture
8763 supports.
8764 (addvdi4): New pattern.
8765 (addsi3_compareV): Rename to ...
8766 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8767 and use COMPARE rather than NE.
8768 (addsi3_compareV_imm): New pattern.
8769 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8770 a signed-overflow check.
8771
8772 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8773
8774 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8775 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8776 CC_ADCmode.
8777 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8778 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8779 with overflow.
8780 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8781 expand patterns.
8782 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8783 (addsi3_cin_cout_imm_insn): Likewise.
8784 (adddi3_compareC): Delete insn.
8785 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8786
8787 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8788
8789 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8790 * (uaddv<mode>4): Delete expansion pattern.
8791 (uaddvsi4): New pattern.
8792 (uaddvdi4): Likewise.
8793 (addsi3_compareC): Delete pattern, change callers to use
8794 addsi3_compare_op1.
8795 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8796 reduce the number of alternatives and re-work type attribute handling.
8797 (addsi3_compare_op2): Clean up constraints to reduce the number of
8798 alternatives and re-work type attribute handling.
8799 (compare_addsi2_op0): Likewise.
8800 (compare_addsi2_op1): Likewise.
8801
8802 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8803
8804 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8805 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8806 for DImode operands.
8807 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8808 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8809 CC_NCVmode.
8810 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8811 (arm_cmpdi_unsigned): Delete.
8812
8813 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8814
8815 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8816 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8817 unchanged only if that will be cheaper.
8818 (arm_select_cc_mode): Recognize a swapped comparison that will
8819 be regenerated using RSBS or RSCS. Relax restriction on selecting
8820 CC_RSBmode.
8821 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8822 a constant.
8823 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8824 is CC_RSBmode.
8825 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8826 as CCmode.
8827 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8828 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8829
8830 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8831
8832 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8833 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8834 need these modes.
8835 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8836 of EQ, NE, LT, GE, LTU and GEU.
8837 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8838 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8839 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8840 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8841 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8842
8843 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8844
8845 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8846 operand 2.
8847 (cstoredi4): Similarly, but for operand 3.
8848 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8849 canonicalization of unsigned compares with a constant on Arm.
8850 Prefer using const+1 and adjusting the comparison over swapping the
8851 operands whenever the original constant was not valid.
8852 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8853 register here.
8854 (arm_validize_comparison): Do not force invalid DImode operands to
8855 registers here.
8856
8857 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8858
8859 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8860 return CC_Zmode if comparing against a constant where one word is
8861 zero.
8862 (arm_gen_compare_reg): Split DImode handling to ...
8863 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8864 against simple constants.
8865 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8866
8867 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8868
8869 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8870 (rsbsi3_carryin_shift_alt): Likewise.
8871
8872 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8873
8874 * config/arm/arm.md (negscc_borrow): New pattern.
8875 (mov_negscc): Don't split if the insn would match negscc_borrow.
8876 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8877 (thumb2_mov_negscc_strict_it): Likewise.
8878
8879 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8880
8881 * config/arm/arm.c (arm_insn_cost): New function.
8882 (TARGET_INSN_COST): Override default definition.
8883
8884 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8885
8886 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8887 borrow operations.
8888
8889 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8890
8891 * config/arm/arm.c (strip_carry_operation): New function.
8892 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8893 for SImode.
8894
8895 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8896
8897 * config/arm/predicates.md (arm_carry_operation): New special
8898 predicate.
8899 * config/arm/iterators.md (LTUGEU): Delete iterator.
8900 (cnb): Delete code attribute.
8901 (optab): Delete ltu and geu elements.
8902 * config/arm/arm.md (addsi3_carryin): Renamed from
8903 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8904 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8905 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8906 (addsi3_carryin_clobercc): Similarly.
8907 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8908 Thumb2 state.
8909
8910 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8911
8912 * config/arm/arm.md (arm_subdi3): Delete insn.
8913 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8914
8915 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8916
8917 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8918 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8919 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8920 return CC_RSBmode.
8921 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8922 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8923 expand.
8924 (subdi3): Rewrite to early-expand the sub-operations.
8925 (rsb_im_compare): New pattern.
8926 (negdi2): Delete.
8927 (negdi2_insn): Delete.
8928 (arm_negsi2): Correct type attribute to alu_imm.
8929 (negsi2_0compare): New insn pattern.
8930 (negsi2_carryin): New insn pattern.
8931
8932 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8933
8934 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8935 operand 2.
8936
8937 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8938
8939 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8940 to match canonical form.
8941
8942 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8943
8944 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8945 (extend<mode>di2): Likewise.
8946
8947 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8948
8949 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8950 * config/arm/arm.c (arm_decompose_di_binop): New function.
8951 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8952 If not generating Thumb-1 code, decompose the operation into 32-bit
8953 pieces.
8954 * add0si_carryin_<optab>: New pattern.
8955
8956 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8957
8958 * arm.md (adddi3): Only accept register operands.
8959 (arm_adddi3): Convert to simple insn with no split. Do not accept
8960 constants.
8961 (adddi_sesidi_di): Delete patern.
8962 (adddi_zesidi_di): Likewise.
8963 (uaddv<mode>4): Use LTU as condition for branch.
8964 (adddi3_compareV): Convert to simple insn with no split.
8965 (addsi3_compareV_upper): Delete pattern.
8966 (adddi3_compareC): Convert to simple insn with no split. Correct
8967 flags setting expression.
8968 (addsi3_compareC_upper): Delete pattern.
8969 (addsi3_compareC): Correct flags setting expression.
8970 (subdi3_compare1): Convert to simple insn with no split.
8971 (subsi3_carryin_compare): Delete pattern.
8972 (arm_subdi3): Convert to simple insn with no split.
8973 (subdi_zesidi): Delete pattern.
8974 (subdi_di_sesidi): Delete pattern.
8975 (subdi_zesidi_di): Delete pattern.
8976 (subdi_sesidi_di): Delete pattern.
8977 (subdi_zesidi_zesidi): Delete pattern.
8978 (negvdi3): Use s_register_operand.
8979 (negdi2_compare): Convert to simple insn with no split.
8980 (negdi2_insn): Likewise.
8981 (negsi2_carryin_compare): Delete pattern.
8982 (negdi_zero_extendsidi): Delete pattern.
8983 (arm_cmpdi_insn): Convert to simple insn with no split.
8984 (negdi2): Don't call gen_negdi2_neon.
8985 * config/arm/neon.md (adddi3_neon): Delete pattern.
8986 (subdi3_neon): Delete pattern.
8987 (negdi2_neon): Delete pattern.
8988 (splits for negdi2_neon): Delete splits.
8989
8990 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8991
8992 PR middle-end/92153
8993 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8994 than after it.
8995
8996 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8997
8998 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8999 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
9000 new multilib variants and new mappings.
9001
9002 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
9003
9004 PR target/86040
9005 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9006
9007 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9008 Richard Sandiford <richard.sandiford@arm.com>
9009
9010 PR target/86753
9011 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9012 and define hashmap traits for it.
9013 (loop_vec_info::scalar_cond_masked_set): New member.
9014 (vect_record_loop_mask): Adjust prototype.
9015 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9016 Implement method.
9017 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9018 vect_record_loop_mask.
9019 (vectorizable_live_operation): Likewise.
9020 (vect_record_loop_mask): New param scalar_mask. Add entry
9021 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9022 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9023 Pass it as last arg to vect_record_loop_mask.
9024 (vectorizable_call): Pass scalar_mask as last arg to
9025 vect_record_loop_mask.
9026 (vectorizable_store): Likewise.
9027 (vectorizable_load): Likewise.
9028 (vectorizable_condition): Check if another part of vectorized code
9029 applies loop_mask to condition or to it's inverse, and if yes,
9030 apply loop_mask to result of vector comparison.
9031
9032 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
9033
9034 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9035
9036 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9037
9038 PR tree-optimization/92056
9039 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9040 before calling compute_builtin_object_size.
9041
9042 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
9043
9044 PR target/65342
9045 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9046 (movdi_low_st): Delete.
9047 * config/rs6000/rs6000.c
9048 (darwin_rs6000_legitimate_lo_sum_const_p): New.
9049 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9050 * config/rs6000/rs6000.md (movsi_low): Delete.
9051
9052 2019-10-17 Jason Merrill <jason@redhat.com>
9053
9054 * gimplify.h (get_initialized_tmp_var): Add default argument to
9055 post_p.
9056 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9057 NULL post_p argument.
9058 * targhooks (std_gimplify_va_arg_expr): Likewise.
9059
9060 2019-10-17 Richard Biener <rguenther@suse.de>
9061
9062 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9063 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9064 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9065 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9066 * tree-vect-loop.c (vect_is_simple_reduction): Set
9067 STMT_VINFO_REDUC_CODE.
9068 (vectorizable_reduction): Remove dead and redundant code, use
9069 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9070
9071 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
9072
9073 Fix breakage introduced by r276985.
9074
9075 * config/avr/avr.c (avr_option_override): Remove set of
9076 PARAM_ALLOW_STORE_DATA_RACES.
9077 * common/config/avr/avr-common.c (avr_option_optimization_table)
9078 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9079
9080 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
9081
9082 * config/i386/i386.h (processor_costs): Add clear_ratio.
9083 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9084 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9085 of 6 and move_ratio in all cost models.
9086
9087 2019-10-17 Richard Biener <rguenther@suse.de>
9088
9089 * tree-vect-loop.c (check_reduction_path): Compute reduction
9090 operation here.
9091 (vect_is_simple_reduction): Remove special-case of single-stmt
9092 reduction path detection.
9093
9094 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
9095
9096 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9097
9098 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
9099
9100 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9101 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9102 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9103 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9104 New combine patterns.
9105 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9106 above.
9107 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9108
9109 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
9110
9111 * tree-vrp.c (value_range_base::dump): Display +INF for both
9112 pointers and integers when appropriate.
9113
9114 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9115
9116 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9117 when to use versioning threshold.
9118
9119 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9120
9121 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9122 outlined code from ...
9123 (vect_analyze_loop_2): ... here.
9124
9125 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9126
9127 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9128 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9129 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9130
9131 2019-10-17 Richard Biener <rguenther@suse.de>
9132
9133 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9134 (vect_is_simple_reduction): Move all validity checks ...
9135 (vectorizable_reduction): ... here. Compute whether we
9136 need a fold-left reduction here.
9137 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9138 both overloads, check needs_fold_left_reduction_p directly.
9139 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9140
9141 2019-10-17 Richard Biener <rguenther@suse.de>
9142
9143 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9144 TARGET_MEM_REF creation.
9145
9146 2019-10-17 Richard Biener <rguenther@suse.de>
9147
9148 PR tree-optimization/92129
9149 * tree-vect-loop.c (vectorizable_reduction): Also fail
9150 on GIMPLE_SINGLE_RHS.
9151
9152 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9153
9154 PR tree-optimization/92056
9155 * tree-object-size.c (cond_expr_object_size): Return early if then_
9156 processing resulted in unknown size.
9157
9158 PR tree-optimization/92115
9159 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9160 temporary if it could trap.
9161
9162 2019-10-17 Richard Biener <rguenther@suse.de>
9163
9164 PR debug/91887
9165 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9166 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9167
9168 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9169
9170 * tree-ssa-strlen.c (maybe_invalidate): Use
9171 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9172
9173 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9174 Jim Wilson <jimw@sifive.com>
9175
9176 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9177 regs to SIBCALL_REGS.
9178 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9179 passing regs to SIBCALL_REGS.
9180
9181 2019-10-16 Martin Sebor <msebor@redhat.com>
9182
9183 PR tree-optimization/83821
9184 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9185 the length of a string when available.
9186 (handle_builtin_memset) Add argument.
9187 (handle_store, strlen_check_and_optimize_call): Same.
9188 (check_and_optimize_stmt): Same. Pass it to callees.
9189
9190 2019-10-16 Martin Sebor <msebor@redhat.com>
9191
9192 PR tree-optimization/91996
9193 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9194 information.
9195 (compare_nonzero_chars): Add an overload.
9196 (count_nonzero_bytes): Add an argument. Call overload above.
9197 Handle non-constant lengths in some range.
9198 (handle_store): Add an argument.
9199 (check_and_optimize_stmt): Pass an argument to handle_store.
9200
9201 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9202
9203 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9204
9205 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9206
9207 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9208 operands which correspond to the same input-output register to
9209 have the same pseudo assigned to them.
9210
9211 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9212
9213 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9214
9215 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9216
9217 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9218 Apply reasonable limit to symbol offsets.
9219
9220 2019-10-16 Richard Biener <rguenther@suse.de>
9221
9222 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9223 (vect_is_simple_reduction): Delay checking to
9224 vectorizable_reduction and relax the checking.
9225 (vectorizable_reduction): Check we have a simple use. Check
9226 for bogus condition reductions.
9227 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9228 are looking at the last stmt in a pattern sequence when
9229 filling in backedge PHI values.
9230
9231 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9232 Jiufu Guo <guojiufu@linux.ibm.com>
9233
9234 PR target/70010
9235 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9236 the callee explicitly disables some isa_flags the caller is using.
9237
9238 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9239
9240 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9241
9242 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9243
9244 * genmodes.c (mode_data::order): New field.
9245 (blank_mode): Update accordingly.
9246 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9247 (make_vector_modes): Likewise.
9248 (VECTOR_MODES): Update use accordingly.
9249 (cmp_modes): Sort by the new order field ahead of sorting by size.
9250 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9251 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9252 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9253 (aarch64_classify_vector_mode): Handle the new partial modes.
9254 (aarch64_vl_bytes): New function.
9255 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9256 when counting the number of registers in an SVE mode.
9257 (aarch64_class_max_nregs): Likewise.
9258 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9259 in registers yet.
9260 (aarch64_classify_address): Treat partial vectors analogously
9261 to full vectors.
9262 (aarch64_print_address_internal): Consolidate the printing of
9263 MUL VL addresses, using aarch64_vl_bytes as the number of
9264 bytes represented by "VL".
9265 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9266
9267 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9268
9269 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9270 rather than known_lt when choosing frame layouts.
9271
9272 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9273
9274 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9275 that all the adjustments add up to the full frame size.
9276 Use crtl->outgoing_args_size directly as the final adjustment
9277 where appropriate.
9278
9279 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9280
9281 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9282 "frame" reference instead of always referring directly to
9283 "cfun->machine->frame".
9284
9285 2019-10-16 Richard Biener <rguenther@suse.de>
9286
9287 PR tree-optimization/92119
9288 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9289 against missing bswap lhs.
9290
9291 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9292
9293 PR middle-end/92033
9294 * poly-int.h (constant_lower_bound_with_limit): New function.
9295 (constant_upper_bound_with_limit): Likewise.
9296 * doc/poly-int.texi: Document them.
9297 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9298 into the worst-case INTEGER_CST bounds.
9299
9300 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9301
9302 PR ipa/91088
9303 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9304 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9305 * ipa-predicat.h (struct expr_eval_op): New struct.
9306 (expr_eval_ops): New typedef.
9307 (struct condition): Add type and param_ops fields, remove size field.
9308 (add_condition): Replace size parameter with type parameter, add
9309 param_ops parameter.
9310 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9311 (predicate::add_clause): Add comparisons on type and param_ops.
9312 (dump_condition): Add debug dump for param_ops.
9313 (remap_after_inlining): Adjust call arguments to add_condition.
9314 (add_condition): Replace size parameter with type parameter, add
9315 param_ops parameter. Unshare constant value used in conditions.
9316 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9317 parameter expressions using param_ops.
9318 (decompose_param_expr): New function.
9319 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9320 to replace call to unmodified_parm_or_parm_agg_item.
9321 (set_switch_stmt_execution_predicate): Likewise.
9322 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9323 with type.
9324 (inline_read_section): Read param_ops from summary stream.
9325 (ipa_fn_summary_write): Write param_ops to summary stream.
9326
9327 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9328
9329 PR rtl-optimization/92107
9330 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9331 expression written.
9332
9333 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9334
9335 * config/darwin.c: Update description of fix and continue.
9336
9337 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9338
9339 * config/darwin.c (darwin_binds_local_p): Update to call
9340 default_binds_local_p_3 () directly. amend comments.
9341
9342 2019-10-15 Richard Biener <rguenther@suse.de>
9343
9344 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9345 (tree_is_indexable): Use it.
9346 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9347 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9348 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9349
9350 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9351
9352 * config/msp430/msp430.md (zero_extendqipsi2): New.
9353 (zero_extendqisi2): Optimize case where src register and base dst
9354 register are the same.
9355 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9356 (zero_extendpsisi2): Optimize r->m case.
9357 Add unnamed insn patterns to catch insns combine searches for when
9358 optimizing pointer manipulation.
9359
9360 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9361
9362 * config/msp430/msp430.md: Group zero_extend* insns together.
9363
9364 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9365
9366 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9367 constraint.
9368 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9369 POST_INC.
9370 (msp430_subreg): Likewise.
9371 (msp430_split_addsi): Likewise.
9372 (msp430_print_operand_addr): Likewise.
9373 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9374 (USE_STORE_POST_INCREMENT): Define.
9375 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9376 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9377 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9378 (msp430_general_dst_operand): New.
9379 (msp430_general_dst_nonv_operand): New.
9380 (msp430_nonsubreg_operand): Remove.
9381 (msp430_nonsubreg_dst_operand): New.
9382 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9383 of defunct msp430_nonsubreg_operand.
9384 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9385
9386 2019-10-15 Richard Biener <rguenther@suse.de>
9387
9388 PR tree-optimization/91929
9389 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9390 (get_or_alloc_expr_for_name): Initialize it.
9391 (get_or_alloc_expr_for_constant): Likewise.
9392 (phi_translate_1): Copy it.
9393 (create_expression_by_pieces): Use the original location
9394 of the expression for the inserted stmt.
9395 (compute_avail): Record the location of the stmt for the
9396 expressions created.
9397
9398 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9399
9400 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9401 before using tree_to_uhwi.
9402
9403 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9404
9405 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9406
9407 2019-10-15 Richard Biener <rguenther@suse.de>
9408
9409 PR tree-optimization/92094
9410 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9411 do not adjust the reduction definition def type.
9412 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9413 defines the latch argument of the PHI.
9414
9415 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9416
9417 PR target/92035
9418 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9419 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9420 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9421 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9422 _mm_maskz_roundscale_round_sd): New intrinsics.
9423 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9424 __builtin_ia32_rndscales?_mask_round builtins instead of
9425 __builtin_ia32_rndscales?_round.
9426 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9427 __builtin_ia32_rndscalesd_round): Remove.
9428 (__builtin_ia32_rndscaless_mask_round,
9429 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9430 * config/i386/sse.md
9431 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9432 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9433 ... this, adjust and add subst atrributes to make it maskable.
9434
9435 2019-10-15 Richard Biener <rguenther@suse.de>
9436
9437 PR middle-end/92046
9438 * common.opt (fallow-store-data-races): New.
9439 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9440 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9441 * doc/invoke.texi (fallow-store-data-races): Document.
9442 (--param allow-store-data-races): Remove docs.
9443 * opts.c (default_options_table): Enable -fallow-store-data-races
9444 at -Ofast.
9445 (default_options_optimization): Do not enable --param
9446 allow-store-data-races at -Ofast.
9447 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9448 instead of PARAM_ALLOW_STORE_DATA_RACES.
9449 * tree-ssa-loop-im.c (execute_sm): Likewise.
9450
9451 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9452
9453 PR tree-optimization/92085
9454 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9455 instead of calling it unconditionally after
9456 delete_dead_or_redundant_assignment and fix indentation.
9457
9458 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9459
9460 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9461 TARGET_VFP_DOUBLE.
9462 (*fmsub<SDF:mode>4): Likewise.
9463 *fnmsub<SDF:mode>4): Likewise.
9464 (*fnmadd<SDF:mode>4): Likewise.
9465
9466 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9467
9468 * doc/tree-ssa.texi: Update renamed macro name.
9469
9470 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9471
9472 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9473 vector constants.
9474
9475 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9476
9477 * config/darwin.c: Use unsigned ints for the picbase label
9478 counters, initialise the vars explicitly.
9479 (update_pic_label_number_if_needed): Move a variable declaration
9480 to where it's needed.
9481 (machopic_output_function_base_name): Use a more strict checking
9482 assert, and and unsigned int for the picbase label counter.
9483 (machopic_get_function_picbase): Likewise.
9484
9485 2019-10-14 Richard Biener <rguenther@suse.de>
9486
9487 PR middle-end/92046
9488 * dse.c (scan_insn): Use param max_active_local_stores.
9489 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9490 based on optimization level.
9491 * loop-invariant.c (move_loop_invariants): Adjust
9492 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9493 * opts.c (default_options_optimization): Do not adjust
9494 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9495 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9496
9497 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9498
9499 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9500
9501 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9502
9503 * config/arm/arm.c (arm_option_override): Don't override sched
9504 pressure algorithm.
9505
9506 2019-10-14 Richard Biener <rguenther@suse.de>
9507
9508 PR tree-optimization/92069
9509 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9510 cycles do not set vect_nested_cycle on the latch definition.
9511
9512 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9513
9514 * function-abi.h (expr_callee_abi): Declare.
9515 * function-abi.cc (expr_callee_abi): New function.
9516
9517 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9518
9519 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9520 into [1,MAX].
9521 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9522 non-zero being represented as [1,MAX].
9523
9524 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9525
9526 * tree-sra.c (dump_access): Add missing braces.
9527
9528 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9529
9530 * config/darwin.c (machopic_indirection_name): Rework the
9531 function to emit linker-visible symbols only for indirections
9532 in the data section. Clean up the code and update comments.
9533
9534 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9535
9536 * config/darwin.c (machopic_indirect_data_reference): Remove
9537 redundant code.
9538
9539 2019-10-13 Nathan Sidwell <nathan@acm.org>
9540
9541 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9542
9543 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9544
9545 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9546 c99_runtime.
9547
9548 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9549
9550 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9551 so non-virutal are before virutals.
9552 (output_function): Avoid body modifications.
9553
9554 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9555
9556 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9557 %r22. Load function address before global pointer.
9558 (pa_attr_length_indirect_call): Adjust length of inline versions of
9559 $$dyncall.
9560 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9561 before normal cases. Update inline $$dyncall sequences to preserve
9562 function descriptor address in register %r22.
9563 (TRAMPOLINE_CODE_SIZE): Adjust.
9564 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9565 register %r22 contains trampoline address.
9566 (pa_trampoline_init): Adjust offsets.
9567 (pa_trampoline_adjust_address): Likewise.
9568 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9569
9570 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9571
9572 PR target/67183
9573 * config/darwin.c (machopic_indirection): New field to flag
9574 non-lazy-symbol-pointers in the data section.
9575 (machopic_indirection_name): Compute if an indirection should
9576 appear in the data section.
9577 (machopic_output_data_section_indirection): New callback split
9578 from machopic_output_indirection.
9579 (machopic_output_stub_indirection): Likewise.
9580 (machopic_output_indirection): Retain the code for non-lazy
9581 symbol pointers in their regular section.
9582 (machopic_finish): Use the new callbacks to order the indirection
9583 output.
9584
9585 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9586
9587 * config/darwin-protos.h (machopic_finish): Delete.
9588 * config/darwin.c (machopic_finish): Make static.
9589
9590 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9591
9592 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9593 sections when building kernel extension code.
9594
9595 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9596
9597 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9598 later standard."
9599
9600 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9601
9602 * config/pa/pa.c (pa_option_override): Remove trailing comma
9603 from warning.
9604
9605 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9606
9607 PR middle-end/92063
9608 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9609 <case VEC_COND_EXPR>: Return false with *handled = false.
9610 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9611 recursing on the first operand.
9612 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9613 instead of tree_could_trap_p.
9614 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9615
9616 2019-10-11 Jim Wilson <jimw@sifive.com>
9617
9618 PR rtl-optimization/91860
9619 * combine.c (subst): If new_rtx is a constant, also check for
9620 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9621
9622 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9623
9624 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9625 INTVAL when calling store_bit_field.
9626
9627 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9628
9629 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9630 size.
9631
9632 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9633
9634 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9635 vectorizable_live_operation.
9636 (vectorizable_live_operation): Adjust parameters.
9637 * tree-vect-stmts.c (vect_init_vector,
9638 vect_gen_widened_results_half): Fix typo in function comment.
9639 (can_vectorize_live_stmts): Adjust function comment.
9640 Adjust parameters. Adjust call to vectorizable_live_operation.
9641 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9642 (vect_transform_stmt): Adjust function comment. Adjust call to
9643 can_vectorize_live_stmts.
9644 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9645
9646 2019-10-11 Richard Biener <rguenther@suse.de>
9647
9648 PR tree-optimization/90883
9649 PR tree-optimization/91091
9650 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9651 alias-sets both for recording VN table entries and continuing
9652 walking after translating through copies. Handle same-sized
9653 reads from SSA names by returning the plain SSA name.
9654 (eliminate_dom_walker::eliminate_stmt): Properly handle
9655 non-size precision stores in redundant store elimination.
9656
9657 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9658
9659 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9660 (ggc_collect): Dump later to not interfere with release_page dump.
9661 (ggc_trim): New function.
9662 * ggc-none.c (ggc_trim): New.
9663 * ggc.h (ggc_trim): Declare.
9664
9665 2019-10-11 Richard Biener <rguenther@suse.de>
9666
9667 PR tree-optimization/92066
9668 PR tree-optimization/92046
9669 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9670 Fix bogus cost model check.
9671
9672 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9673
9674 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9675 (LANG_HOOKS_DECLS): Add it.
9676 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9677 update comment for omp_is_optional_argument.
9678 * omp-general.c (omp_is_allocatable_or_ptr): New.
9679 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9680 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9681 Fortran's optional arguments and allocatable/pointer scalars
9682 with use_device_addr.
9683
9684 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9685
9686 PR target/77918
9687 * config/s390/2827.md: Add new opcodes.
9688 * config/s390/2964.md: Likewise.
9689 * config/s390/3906.md: Likewise.
9690 * config/s390/8561.md: Likewise.
9691 * config/s390/s390-builtins.def (s390_vfchesb): Use
9692 the new vec_cmpgev4sf_quiet_nocc.
9693 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9694 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9695 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9696 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9697 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9698 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9699 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9700 * config/s390/s390-modes.def (CCSFPS): New mode.
9701 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9702 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9703 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9704 (s390_expand_vec_compare): Use non-signaling patterns where
9705 necessary.
9706 (s390_reverse_condition): Support CCSFPS.
9707 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9708 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9709 (asm_fcmp_op): Likewise.
9710 (*smaxv2df3_vx): Use pattern for quiet comparison.
9711 (*sminv2df3_vx): Likewise.
9712 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9713 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9714 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9715 (vec_cmplt<mode>_quiet_nocc): New expander.
9716 (vec_cmpge<mode>_quiet_nocc): New pattern.
9717 (vec_cmple<mode>_quiet_nocc): New expander.
9718 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9719 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9720 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9721 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9722 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9723 (vec_cmpungt<mode>): New expander.
9724 (vec_cmpunge<mode>): Likewise.
9725 (vec_cmpuneq<mode>): Use quiet patterns.
9726 (vec_cmpltgt<mode>): Allow only on z14+.
9727 (vec_cmpordered<mode>): Use quiet patterns.
9728 (vec_cmpunordered<mode>): Likewise.
9729 (VEC_CMP_EXPAND): Add ungt and unge.
9730
9731 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9732
9733 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9734 parameter.
9735 * lto-streamer-out.c: Include tree-dfa.h.
9736 (output_cfg): Do not use cfun.
9737 (lto_prepare_function_for_streaming): New.
9738 (output_function): Do not push cfun; do not initialize loop optimizer.
9739 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9740 * passes.c (ipa_write_summaries): Use it.
9741 (ipa_write_optimization_summaries): Do not modify bodies.
9742 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9743 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9744 * tree-ssa-dse.c (pass_dse::execute): Update use of
9745 renumber_gimple_stmt_uids.
9746 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9747
9748 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9749
9750 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9751 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9752
9753 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9754
9755 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9756 macros.
9757 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9758 Also define DFP macros for these conditions.
9759 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9760 DEC128_SUBNORMAL_MIN): Do not define.
9761 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9762 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9763
9764 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9765 Sandra Loosemore <sandra@codesourcery.com>
9766
9767 PR middle-end/26241
9768 * doc/lto.texi (IPA): Reference to the IPA passes.
9769 * doc/passes.texi (Pass manager): Add node IPA passes and
9770 description for each IPA pass.
9771
9772 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9773
9774 * ipa-reference.c: Do not include splay-tree.h
9775 (reference_vars_to_consider): Turn to hash map.
9776 (get_static_name, ipa_init, analyze_function, propagate,
9777 stream_out_bitmap, ipa_reference_write_optimization_summary,
9778 ipa_reference_write_optimization_summary): Update.
9779
9780 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9781
9782 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9783
9784 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9785
9786 * config/darwin.c: Lookup Objective C metadata and force indirection
9787 for IVAR refs.
9788
9789 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9790
9791 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9792 addresses.
9793 (mem_operand_gpr): Add check for prefixed addresses.
9794 (mem_operand_ds_form): Add check for prefixed addresses.
9795 (rs6000_legitimate_offset_address_p): If we support prefixed
9796 addresses, check for a 34-bit offset instead of 16-bit.
9797 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9798 Do not allow load/store with update if the address is prefixed.
9799 (rs6000_mode_dependent_address): If we support prefixed
9800 addresses, check for a 34-bit offset instead of 16-bit.
9801
9802 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9803
9804 PR target/77918
9805 * config/s390/vector.md (vcond_comparison_operator): New
9806 predicate.
9807 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9808
9809 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9810
9811 PR 87488
9812 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9813 -D.
9814 * configure.ac (--with-documentation-root-url): New option.
9815 * configure: Regenerate.
9816 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9817 option URL, add it as a new string field of the diagnostic option.
9818 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9819 (print_option_information): If get_option_url is non-NULL, call
9820 it, and if the result is non-NULL, potentially emit an escape
9821 sequence to markup the option text with the resulting URL.
9822 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9823 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9824 example of JSON output.
9825 * opts-diagnostic.h (get_option_url): New decl.
9826 * opts.c (get_option_url): New function.
9827 * toplev.c (general_init): Initialize the get_option_url callback.
9828
9829 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9830
9831 PR 87488
9832 * common.opt (fdiagnostics-urls=): New option.
9833 (diagnostic-url.h): Add SourceInclude.
9834 (diagnostic_url_rule): New enum.
9835 * diagnostic-color.c: Include "diagnostic-url.h".
9836 (diagnostic_urls_enabled_p): New function.
9837 * diagnostic-url.h: New file.
9838 * diagnostic.c: Include "diagnostic-url.h".
9839 (diagnostic_urls_init): New function.
9840 * diagnostic.h (diagnostic_urls_init): New decl.
9841 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9842 -fdiagnostics-urls to the list.
9843 (-fdiagnostics-urls): New option.
9844 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9845 (driver::global_initializations): Call diagnostic_urls_init.
9846 * opts-global.c (init_options_once): Likewise.
9847 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9848 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9849 show_urls.
9850 (pp_begin_url): New function.
9851 (pp_end_url): New function.
9852 (selftest::test_urls): New selftest.
9853 (selftest::pretty_print_c_tests): Call it.
9854 * pretty-print.h (pretty_printer::show_urls): New field.
9855 (pp_begin_url): New decl.
9856 (pp_end_url): New decl.
9857
9858 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9859
9860 PR target/92022
9861 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9862
9863 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9864
9865 PR target/88630
9866 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9867 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9868 also for TARGET_FPU_SH4_300.
9869 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9870 TARGET_SH4_300.
9871 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9872 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9873 (*negsf2_i): Split into ...
9874 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9875 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9876 (**abssf2_i): Split into ...
9877 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9878 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9879 (*negdf2_i): Split into ...
9880 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9881 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9882 (**abssf2_i): Split into ...
9883 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9884
9885 2019-10-10 Richard Biener <rguenther@suse.de>
9886
9887 PR middle-end/92046
9888 * opts.c (finish_options): Do not influence global --params
9889 from options that are adjustable per function.
9890 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9891 Apply --param adjustment based on active cost-model.
9892 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9893 further store-sinking when vectorization or if-conversion
9894 are not enabled.
9895
9896 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9897
9898 PR middle-end/92037
9899 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9900 rather than ggc_alloc_cleared to alloc symbol table.
9901 * toplev.c (general_init): Likewise.
9902 * cgraph.h (symbol_table): Explicitly construct every field.
9903
9904 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9905
9906 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9907 (PF_Z15): ... this.
9908 * config.gcc: Add z15 as option for --with-arch and --with-tune
9909 configure switches.
9910 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9911 error reporting for unsupported builtins.
9912 * config/s390/s390-opts.h (enum processor_type): Rename
9913 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9914 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9915 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9916 Likewise.
9917 * config/s390/s390-builtins.def: Likewise.
9918 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9919 (s390_expand_builtin): Add missing check for unsupported builtins.
9920 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9921 (s390_rtx_costs): Likewise.
9922 (s390_get_sched_attrmask): Rename arch13 to z15.
9923 (s390_get_unit_mask): Likewise.
9924 (s390_is_fpd): Likewise.
9925 (s390_is_fxd): Likewise.
9926 * config/s390/s390.h (enum processor_flags): Likewise.
9927 * config/s390/s390.md: Likewise.
9928 * config/s390/vector.md: Likewise.
9929 * config/s390/vx-builtins.md: Likewise.
9930 * config/s390/s390.opt: Add z15 to processor_type value.
9931
9932 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9933
9934 PR target/91035
9935 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9936 prototype.
9937 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9938 ("split_stack_data", "split_stack_call")
9939 ("split_stack_call_<mode>", "split_stack_cond_call")
9940 ("split_stack_cond_call_<mode>"): Remove.
9941 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9942 insn definition.
9943 * config/s390/s390.c (s390_output_split_stack_data): New function.
9944 (s390_expand_split_stack_prologue): Use the merged expander.
9945
9946 2019-10-09 Martin Sebor <msebor@redhat.com>
9947
9948 PR tree-optimization/90879
9949 * builtins.c (check_access): Avoid using maxbound when null.
9950 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9951 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9952 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9953 conditional.
9954 (get_range_strlen): Overwrite initial maxbound when non-null.
9955 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9956 changes.
9957 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9958 (used_only_for_zero_equality): New function.
9959 (handle_builtin_memcmp): Call it.
9960 (determine_min_objsize): Return an integer instead of tree.
9961 (get_len_or_size, strxcmp_eqz_result): New functions.
9962 (maybe_warn_pointless_strcmp): New function.
9963 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9964 between a longer string and a smaller array.
9965 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9966
9967 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9968
9969 * config/darwin.c (darwin_override_options): Make the check for
9970 Objective-C ABI version more specific for 64bit code.
9971
9972 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9973
9974 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9975 indicate that the new symbol is an indirection.
9976 (machopic_indirect_call_target): Likewise.
9977 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9978 (MACHO_SYMBOL_INDIRECTION_P): New.
9979 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9980
9981 2019-10-08 Jason Merrill <jason@redhat.com>
9982
9983 * doc/invoke.texi: Document -fconcepts-ts.
9984
9985 2019-10-09 Richard Biener <rguenther@suse.de>
9986
9987 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9988 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9989
9990 2019-10-08 Richard Biener <rguenther@suse.de>
9991
9992 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9993 (_stmt_vec_info::force_single_cycle): Likewise.
9994 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9995 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9996 * tree-vect-loop.c (vectorizable_reduction): Set
9997 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9998 (vect_transform_reduction): Use them to remove redundant code.
9999 (vect_transform_cycle_phi): Likewise.
10000
10001 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10002
10003 PR tree-optimization/90836
10004 * match.pd (popcount): New pattern.
10005
10006 2019-10-08 Martin Sebor <msebor@redhat.com>
10007
10008 PR middle-end/92026
10009 PR middle-end/92014
10010 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10011 again once nbytes has been set. Set the access size when not yet set.
10012
10013 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10014
10015 * config/darwin.c (machopic_select_section): Remove dead code for
10016 old Objective-C section selection method, replace with unreachable.
10017
10018 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10019
10020 * config/darwin.c (machopic_indirect_data_reference): Check for
10021 required indirections before making direct access to defined
10022 values.
10023 (machopic_output_indirection): Place the indirected pointes for
10024 required indirections into the non-lazy symbol pointers section.
10025 (darwin_encode_section_info):
10026 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10027 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10028
10029 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
10030
10031 PR target/91994
10032 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10033 instead of ALL_SSE_REG to check if function call preserves some
10034 256-bit SSE registers.
10035
10036 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10037
10038 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10039 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10040 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10041
10042 2019-10-08 Richard Biener <rguenther@suse.de>
10043
10044 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10045 (_stmt_vec_info::is_reduc_info): Add.
10046 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10047 (vectorizable_condition): Remove.
10048 (vectorizable_shift): Likewise.
10049 (vectorizable_reduction): Adjust.
10050 (info_for_reduction): New.
10051 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10052 (vect_analyze_scalar_cycles_1): ... here.
10053 (vect_analyze_loop_operations): Adjust.
10054 (needs_fold_left_reduction_p): Simplify for single caller.
10055 (vect_is_simple_reduction): Likewise. Remove stmt restriction
10056 for nested cycles not part of double reductions.
10057 (vect_model_reduction_cost): Pass in the reduction type.
10058 (info_for_reduction): New function.
10059 (vect_create_epilog_for_reduction): Use it, access reduction
10060 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
10061 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10062 (vectorize_fold_left_reduction): Remove pointless assert.
10063 (vectorizable_reduction): Analyze the full reduction when
10064 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
10065 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
10066 stmt code-generation to vectorizable_* in most cases. Verify
10067 code-generation only for cases handled by
10068 vect_transform_reductuon.
10069 (vect_transform_reduction): Use info_for_reduction to get at
10070 reduction meta. Simplify.
10071 (vect_transform_cycle_phi): Likewise.
10072 (vectorizable_live_operation): Likewise.
10073 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10074 at the PHI node for STMT_VINFO_REDUC_TYPE.
10075 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10076 longer necessary code.
10077 * tree-vect-stmts.c (vectorizable_shift): Make static again.
10078 (vectorizable_condition): Likewise. Get at reduction related
10079 info via info_for_reduction.
10080 (vect_analyze_stmt): Adjust.
10081 (vect_transform_stmt): Likewise.
10082 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10083 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10084
10085 2019-10-08 Joseph Myers <joseph@codesourcery.com>
10086
10087 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10088 -fno-fp-int-builtin-inexact default for C2X.
10089
10090 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10091 Richard Biener <rguenther@suse.de>
10092
10093 PR tree-optimization/91532
10094 * tree-if-conv.c: Include tree-ssa-dse.h.
10095 (ifcvt_local_dce): Change param from bb to loop,
10096 and call dse_classify_store.
10097 (tree_if_conversion): Pass loop instead of loop->header as arg
10098 to ifcvt_local_dce.
10099 * tree-ssa-dse.c: Include tree-ssa-dse.h.
10100 (delete_dead_or_redundant_assignment): Remove static qualifier from
10101 declaration, and add prototype in tree-ssa-dse.h.
10102 (dse_store_status): Move to tree-ssa-dse.h.
10103 (dse_classify_store): Remove static qualifier and add new tree param
10104 stop_at_vuse, and add prototype in tree-ssa-dse.h.
10105 * tree-ssa-dse.h: New header.
10106
10107 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10108
10109 * config/darwin.c (machopic_output_indirection): Don't put
10110 hidden symbol indirections into the .data section, use the
10111 non-lazy symbol pointers section as normal.
10112 (darwin_encode_section_info): Record if a symbol is hidden.
10113 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10114 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10115
10116 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10117
10118 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10119 predicates instead of accessing bits directly.
10120 (machopic_indirect_call_target): Likewise.
10121 (machopic_output_indirection): Likewise.
10122 (darwin_encode_section_info): Improve description. Use renamed
10123 symbol flags. Use predicate macros for variables and functions.
10124 * config/darwin.h:
10125 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10126 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10127 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10128 (MACHO_SYMBOL_VARIABLE_P): New.
10129 (MACHO_SYMBOL_DEFINED_P):New.
10130 (MACHO_SYMBOL_STATIC_P): New.
10131 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10132 (SYMBOL_FLAG_SUBT_DEP): New.
10133 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10134
10135 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10136
10137 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10138 (msp430_expand_epilogue): Likewise.
10139 * config/msp430/predicates.md: Likewise.
10140 * config/msp430/msp430.md: Likewise.
10141 Replace blocks of 8 spaces with tabs.
10142
10143 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10144
10145 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10146 * config/msp430/msp430.c (msp430_split_addsi): New.
10147 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10148 a block of C code for splitting addsi.
10149
10150 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10151
10152 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10153 ix86_expand_rounddf_32): Reorder functions.
10154 * config/i386/i386-protos.h: Update.
10155
10156 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10157
10158 * config.in: Regenerate.
10159 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10160 Add new "Yx" constraint.
10161 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10162 function.
10163 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10164 prototype.
10165 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10166 code/data region to be selected in the small memory model.
10167 (msp430_section_attr): Don't warn if the "section" and "lower"
10168 attributes are used together.
10169 (msp430_handle_generic_attribute): Likewise.
10170 (msp430_var_in_low_mem): New function.
10171 (TARGET_ENCODE_SECTION_INFO): Define.
10172 (msp430_encode_section_info): New function.
10173 (gen_prefix): Return early in the small memory model.
10174 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10175 ".lower" prefix if -m{code,data}-region=lower have been passed.
10176 (msp430_output_aligned_decl_common): Emit common symbols when
10177 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10178 set.
10179 (TARGET_ASM_FILE_END): Define.
10180 (msp430_file_end): New function.
10181 (msp430_do_not_relax_short_jumps): Allow relaxation when
10182 function will be in the lower region.
10183 (msp430_op_not_in_high_mem): New function.
10184 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10185 the 'X' operand selector.
10186 Clarify comment for 'x' operand selector.
10187 * config/msp430/msp430.h (LINK_SPEC): Propagate
10188 -m{code,data}-region to the linker via spec function
10189 msp430_propagate_region_opt.
10190 (msp430_propagate_region_opt): New prototype.
10191 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10192 (SYMBOL_FLAG_LOW_MEM): Define.
10193 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10194 selector.
10195 (zero_extendqihi2): Fix operand number used by "%X" selector.
10196 (zero_extendqisi2): Likewise.
10197 (zero_extendhisi2): Likewise.
10198 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10199 (movhi): Likewise.
10200 (addqi3): Likewise.
10201 (addhi3): Likewise.
10202 (addsi3): Likewise.
10203 (addhi3_cy): Likewise.
10204 (addchi4_cy): Likewise.
10205 (subqi3): Likewise.
10206 (subhi3): Likewise.
10207 (subsi3): Likewise.
10208 (bic<mode>3): Likewise.
10209 (and<mode>3): Likewise.
10210 (ior<mode>3): Likewise.
10211 (xor<mode>3): Likewise.
10212 (slli_1): Add missing "%X" operand selector.
10213 (slll_1): Likewise.
10214 (slll_2): Likewise.
10215 (srai_1): Likewise.
10216 (sral_1): Likewise.
10217 (sral_2): Likewise.
10218 (srli_1): Likewise.
10219 (srll_1): Likewise.
10220 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10221 selector.
10222 (cbranchhi4_real): Likewise.
10223 (cbranchqi4_reversed): Likewise.
10224 (cbranchhi4_reversed): Likewise.
10225 (*bitbranch<mode>4): Likewise.
10226 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10227 * config/msp430/msp430.opt (mcode-region=): Set default to
10228 MSP430_REGION_LOWER. Improve docstring.
10229 (mdata-region=): Likewise.
10230 (muse-lower-region-prefix): New option.
10231 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10232 mdata-region=none multilib.
10233 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10234 mdata-region=none multilib.
10235 MULTILIB_EXCEPTIONS: Remove.
10236 MULTILIB_REQUIRED: Define.
10237 * configure: Regenerate.
10238 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10239 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10240 * doc/extend.texi: Clarify comment for {upper,lower,either}
10241 function attributes.
10242 Add separate description for "lower" variable attribute.
10243
10244 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10245
10246 PR target/77918
10247 * optabs-tree.c (vcond_icode_p): New function.
10248 (vcond_eq_icode_p): Likewise.
10249 (expand_vec_cond_expr_p): Use vcond_icode_p and
10250 vcond_eq_icode_p.
10251 * optabs.c (can_vcond_compare_p): New function.
10252 * optabs.h (can_vcond_compare_p): Likewise.
10253
10254 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10255
10256 PR target/77918
10257 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10258 caller passes a non-trapping condition.
10259 (is_gimple_condexpr): Allow trapping conditions.
10260 (is_gimple_condexpr_1): New helper function.
10261 (is_gimple_condexpr_for_cond): New function, acts like old
10262 is_gimple_condexpr.
10263 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10264 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10265 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10266 * gimplify.c (gimplify_cond_expr): Use
10267 is_gimple_condexpr_for_cond.
10268 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10269 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10270 VEC_COND_EXPR.
10271 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10272 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10273 is_gimple_condexpr_for_cond, remove pointless tmp check
10274 (forward_propagate_into_cond): Remove pointless tmp check.
10275
10276 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10277
10278 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10279 match that of other gsi_next_* functions. Adjust the comment.
10280 (gsi_start_nonvirtual_phis): New function.
10281 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10282 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10283
10284 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10285
10286 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10287 setjmp situation here. Fix a verb's ending: "the exact variables or
10288 elements for which there are warnings depends" -> "... depend".
10289
10290 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10291
10292 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10293
10294 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10295
10296 * ipa-prop.c (ipa_vr::nonzero_p): New.
10297 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10298 non-zero range.
10299 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10300 * tree-vrp.c (range_has_numeric_bounds_p): New.
10301 (range_int_cst_p): Use range_has_numeric_bounds_p.
10302 (get_range_op_handler): New.
10303 (supported_types_p): New.
10304 (defined_ranges_p): New.
10305 (drop_undefines_to_varying): New.
10306 (range_fold_binary_symbolics_p): New.
10307 (range_fold_unary_symbolics_p): New.
10308 (range_fold_unary_expr): Extract out into above functions.
10309 (range_fold_binary_expr): Same.
10310 (value_range_base::normalize_addresses): New.
10311 (value_range_base::normalize_symbolics): Normalize addresses.
10312 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10313
10314 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10315
10316 * tree-vrp.c (value_range_base::singleton_p): Use
10317 value_range_base::num_pairs instead of vrp_val_is* to check
10318 if a range has one sub-range.
10319
10320 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10321
10322 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10323 DEF is not a true earlyclobber but is tied to a specific input
10324 operand, and so is effectively earlyclobber wrt inputs that have
10325 different values.
10326 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10327
10328 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10329
10330 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10331 (pod_mode): Mark operators likewise.
10332 (scalar_int_mode): Mark non-default constructors and
10333 operators with CONSTEXPR.
10334 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10335 (fixed_size_mode): Likewise.
10336
10337 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10338
10339 PR target/91994
10340 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10341 and wrap the unspec_volatile in a parallel.
10342 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10343 the unspec_volatile.
10344 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10345 unspec_volatile to be wrapped in a parallel.
10346 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10347 (ix86_add_reg_usage_to_vzerouppers): New functions.
10348 (rest_of_handle_insert_vzeroupper): Use them to add register
10349 usage information to the vzeroupper instructions.
10350
10351 2019-10-07 Richard Biener <rguenther@suse.de>
10352
10353 PR tree-optimization/91975
10354 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10355 handle invariants.
10356
10357 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10358
10359 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10360 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10361
10362 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10363
10364 * config/darwin.c (darwin_override_options): Adjust objective-c
10365 ABI version error messages to avoid punctuation and contracted
10366 negations.
10367
10368 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10369
10370 * ipa-inline.c: Fix type; compute size rather than self_size
10371 for size of caller function.
10372
10373 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10374
10375 PR target/59888
10376 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10377 choose const_data section for constants with relocations.
10378 (machopic_select_section): Pass relocation flag to
10379 darwin_rodata_section ().
10380
10381 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10382
10383 PR tree-optimization/91734
10384 * generic-match-head.c: Include fold-const-call.h.
10385 * match.pd (sqrt(x) cmp c): Check the boundary value and
10386 in case inexact computation of c*c affects comparison of the boundary,
10387 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10388 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10389 for -frounding-math. For c2, try the next smaller or larger floating
10390 point constant depending on comparison code and if it has the same
10391 sqrt as c2, use it instead of c2.
10392
10393 2019-10-04 Martin Sebor <msebor@redhat.com>
10394
10395 PR middle-end/91977
10396 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10397 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10398 uninitialized objects.
10399
10400 2019-10-04 Martin Sebor <msebor@redhat.com>
10401
10402 * builtins.c (compute_objsize): Add an argument.
10403 * tree-object-size.c (addr_object_size): Same.
10404 (compute_builtin_object_size): Same.
10405 * tree-object-size.h (compute_builtin_object): Same.
10406
10407 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10408
10409 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10410
10411 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10412
10413 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10414
10415 2019-10-04 Martin Jambor <mjambor@suse.cz>
10416
10417 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10418 fntype when switching to calling memcpy instead of memset.
10419
10420 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10421
10422 * hash-table.h (hash_table::empty_slow): Don't assign
10423 size_t values to int variables.
10424
10425 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10426
10427 * expr.c (convert_mode_scalar): Remove shadowing local var.
10428 (emit_block_move): Rename local vars.
10429 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10430 (emit_push_insn): Rename local vars.
10431 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10432 shadowing local vars.
10433 (store_constructor): Remove shadowing local vars. Rename local var.
10434 (store_field, expand_cond_expr_using_cmove,
10435 expand_expr_real_2): Remove shadowing local vars.
10436 (expand_expr_real_1,
10437 do_store_flag): Remove shadowing local vars. Rename local vars.
10438
10439 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10440
10441 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10442
10443 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10444
10445 * genmatch.c (commutate): Rename local var.
10446 (lower_cond): Reuse local var.
10447 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10448 dt_operand::gen, dt_operand::gen_gimple_expr,
10449 dt_simplify::gen): Add a param. Rename generated vars.
10450 (decision_tree::insert_operand,
10451 (capture_info::walk_match, capture_info::walk_result,
10452 capture_info::walk_c_expr): Rename local vars.
10453 (expr::gen_transform): Rename generated vars.
10454 Use snprintf. Rename local vars.
10455 (capture::gen_transform, dt_operand::get_name,
10456 dt_operand::gen_opname): Rename generated vars.
10457 (write_predicate): Adjust call to gen_kids.
10458 (parser::get_internal_capture_id): Rename generated vars.
10459 (parser::parse_expr): Rename local vars.
10460 (parser::parse_if): Remove local var.
10461 (parser::parse_pattern, add_operator): Rename local vars.
10462
10463 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10464
10465 * builtins.def (DEF_C2X_BUILTIN): New macro.
10466 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10467 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10468 (strndup): Use DEF_C2X_BUILTIN.
10469 * coretypes.h (enum function_class): Add function_c2x_misc.
10470
10471 2019-10-04 Maya Rashish <coypu@sdf.org>
10472
10473 * ira-color.c (update_costs_from_allocno): Call
10474 ira_init_register_move_cost_if_necessary.
10475
10476 2019-10-04 Jeff Law <law@redhat.com>
10477
10478 * config/h8300/h8300.md (cpymemsi): Disable.
10479 (movmd, movmd_internal_<mode>, movstr, movsd):
10480 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10481 (movmd splitter, movsd splitter): Likewise.
10482
10483 * range-op.cc (range_tests): Avoid two tests when ints and
10484 shorts are the same size.
10485
10486 2019-10-04 Richard Biener <rguenther@suse.de>
10487
10488 PR lto/91968
10489 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10490 BLOCK_VARS.
10491
10492 2019-10-04 Richard Biener <rguenther@suse.de>
10493
10494 PR tree-optimization/91982
10495 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10496 against EXTRACT_LAST_REDUCTION.
10497 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10498
10499 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10500
10501 * range-op.o (value_range_from_overflowed_bounds): Rename from
10502 adjust_overflow_bound.
10503 (value_range_with_overflow): Rename from
10504 create_range_with_overflow.
10505 (create_possibly_reversed_range): Adjusted for above renames.
10506 (operator_*::wi_fold): Same.
10507 (cross_product_operator::wi_cross_productor): Same.
10508
10509 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10510
10511 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10512 -Wshadow=compatible-local): Fix description.
10513 Add an example where -Wshadow=compatible-local does not
10514 warn.
10515
10516 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10517
10518 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10519
10520 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10521 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10522
10523 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10524
10525 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10526 can_move_by_pieces issue.
10527
10528 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10529
10530 PR target/87243
10531 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10532 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10533 is available and the user has not set one on the command line.
10534
10535 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10536
10537 PR target/91769
10538 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10539 instead of REGNO equality check on addr.reg.
10540
10541 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10542
10543 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10544 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10545 * doc/invoke.texi (inline-heuristics-hint-percent,
10546 inline-heuristics-hint-percent-O2): Document.
10547 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10548 hint attribute.
10549 (can_inline_edge_by_limits_p): Use it.
10550
10551 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10552
10553 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10554 to print CONST_DOUBLEs.
10555
10556 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10557
10558 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10559 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10560 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10561
10562 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10563
10564 * Makefile.in (OBJS): Add range.o and range-op.o.
10565 Remove wide-int-range.o.
10566 * function-tests.c (test_ranges): New.
10567 (function_tests_c_tests): Call test_ranges.
10568 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10569 range_fold_unary_expr instead of extract_range_from_unary_expr.
10570 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10571 * range-op.cc: New file.
10572 * range-op.h: New file.
10573 * range.cc: New file.
10574 * range.h: New file.
10575 * selftest.h (range_tests): New prototype.
10576 * ssa.h: Include range.h.
10577 * tree-vrp.c (value_range_base::value_range_base): New
10578 constructors.
10579 (value_range_base::singleton_p): Do not call
10580 ranges_from_anti_range until sure we will need to.
10581 (value_range_base::type): Rename gcc_assert to
10582 gcc_checking_assert.
10583 (vrp_val_is_max): New argument.
10584 (vrp_val_is_min): Same.
10585 (wide_int_range_set_zero_nonzero_bits): Move from
10586 wide-int-range.cc.
10587 (extract_range_into_wide_ints): Remove.
10588 (extract_range_from_multiplicative_op): Remove.
10589 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10590 from extract_range_from_binary_expr.
10591 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10592 from extract_range_from_binary_expr.
10593 (extract_range_from_binary_expr): Remove.
10594 (normalize_for_range_ops): New.
10595 (range_fold_binary_expr): New.
10596 (range_fold_unary_expr): New.
10597 (value_range_base::num_pairs): New.
10598 (value_range_base::lower_bound): New.
10599 (value_range_base::upper_bound): New.
10600 (value_range_base::upper_bound): New.
10601 (value_range_base::contains_p): New.
10602 (value_range_base::invert): New.
10603 (value_range_base::union_): New.
10604 (value_range_base::intersect): New.
10605 (range_compatible_p): New.
10606 (value_range_base::operator==): New.
10607 (determine_value_range_1): Call range_fold_*expr instead of
10608 extract_range_from_*expr.
10609 * tree-vrp.h (class value_range_base): Add new constructors.
10610 Add methods for union_, intersect, operator==, contains_p,
10611 num_pairs, lower_bound, upper_bound, invert.
10612 (vrp_val_is_min): Add handle_pointers argument.
10613 (vrp_val_is_max): Same.
10614 (extract_range_from_unary_expr): Remove.
10615 (extract_range_from_binary_expr): Remove.
10616 (range_fold_unary_expr): New.
10617 (range_fold_binary_expr): New.
10618 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10619 range_fold_binary_expr instead of extract_range_from_binary_expr.
10620 (vr_values::extract_range_basic): Same.
10621 (vr_values::extract_range_from_unary_expr): Call
10622 range_fold_unary_expr instead of extract_range_from_unary_expr.
10623 * wide-int-range.cc: Remove.
10624 * wide-int-range.h: Remove.
10625
10626 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10627
10628 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10629 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10630 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10631 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10632 macro.
10633
10634 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10635
10636 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10637 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10638 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10639 * glimits.h: Likewise.
10640
10641 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10642
10643 PR rtl-optimization/91976
10644 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10645 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10646 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10647
10648 2019-10-02 Martin Sebor <msebor@redhat.com>
10649
10650 PR tree-optimization/80936
10651 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10652
10653 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10654
10655 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10656 instead of reg_class_contents[ALL_REGS].
10657
10658 2019-09-30 Jason Merrill <jason@redhat.com>
10659
10660 Add some hash_map_safe_* functions like vec_safe_*.
10661 * hash-map.h (default_hash_map_size): New variable.
10662 (create_ggc): Use it as default argument.
10663 (hash_map_maybe_create, hash_map_safe_get)
10664 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10665
10666 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10667
10668 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10669 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10670 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10671 (can_inline_edge_by_limits_p): Use it.
10672 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10673 (want_inline_small_function_p): Use O2 bounds.
10674 (edge_badness): LIkewise.
10675 * opts.c (default_options): Add OPT_finline_functions.
10676 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10677 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10678 New parameters.
10679 * doc/invoke.texi (-finline-functions): Update documentation.
10680 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10681 inline-min-speedup-O2): Document.
10682 (early-inlining-insns-O2): Simplify docs.
10683
10684 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10685
10686 PR rtl-optimization/87047
10687 * ifcvt.c (average_cost): New static function. Use it...
10688 (noce_process_if_block): ... here.
10689
10690 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10691
10692 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10693 * config/rs6000/rs6000-string.c (expand_block_move): Add
10694 might_overlap parm.
10695 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10696 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10697
10698 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10699
10700 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10701 (expand_builtin_memcpy): Use might_overlap parm.
10702 (expand_builtin_mempcpy_args): Use might_overlap parm.
10703 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10704 (expand_builtin_memory_copy_args): Add might_overlap parm.
10705 * expr.c (emit_block_move_via_cpymem): Rename to
10706 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10707 or movmem optab as appropriate.
10708 (emit_block_move_hints): Add might_overlap parm, do the right
10709 thing for might_overlap==true.
10710 * expr.h (emit_block_move_hints): Update prototype.
10711
10712 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10713
10714 * tree-eh.h (unsplit_eh_edges): Declare.
10715 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10716 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10717 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10718 (struct store_immediate_info): Add lp_nr field.
10719 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10720 initialize lp_nr with it.
10721 (struct merged_store_group): Add lp_nr and only_constants fields.
10722 (merged_store_group::merged_store_group): Initialize them.
10723 (merged_store_group::can_be_merged_into): Deal with them.
10724 (pass_store_merging): Rename terminate_and_release_chain into
10725 terminate_and_process_chain.
10726 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10727 renaming and remove useless assertions.
10728 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10729 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10730 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10731 instead of always recomputing it and compare lp_nr.
10732 (imm_store_chain_info::output_merged_store): If the group is in an
10733 active EH region, register new stores if they can throw. Moreover,
10734 if the insertion has created new basic blocks, adjust the PHI nodes
10735 of the post landing pad.
10736 (imm_store_chain_info::output_merged_stores): If the original stores
10737 are in an active EH region, deregister them.
10738 (lhs_valid_for_store_merging_p): Prettify.
10739 (adjust_bit_pos): New function extracted from...
10740 (mem_valid_for_store_merging): ...here. Use it for the base address
10741 and also for the offset if it is the addition of a constant.
10742 (lp_nr_for_store): New function.
10743 (pass_store_merging::process_store): Change return type to bool.
10744 Call lp_nr_for_store to initialize the store info. Propagate the
10745 return status of various called functions to the return value.
10746 (store_valid_for_store_merging_p): New predicate.
10747 (enum basic_block_status): New enumeration.
10748 (get_status_for_store_merging): New function.
10749 (pass_store_merging::execute): If the function can throw and catch
10750 non-call exceptions, unsplit the EH edges on entry and clean up the
10751 CFG on exit if something changed. Call get_status_for_store_merging
10752 for every basic block and keep the chains open across basic blocks
10753 when possible. Terminate and process open chains at the end, if any.
10754
10755 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10756
10757 * reginfo.c (globalize_reg): Fix shadowed variable in
10758 function_abis walk.
10759
10760 2019-10-02 Martin Jambor <mjambor@suse.cz>
10761
10762 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10763 do not compute some stuff when set.
10764 (cgraph_node::create_edge): Likewise.
10765 (cgraph_node::create_indirect_edge): Renamed last parameter to
10766 coning_p and flipped its meaning, don't even calculate
10767 inline_failed when set.
10768 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10769 (symbol_table::::create_edge): Likewise.
10770 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10771 the default value.
10772 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10773 call graph edge creating functions.
10774
10775 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10776
10777 PR c++/91222
10778 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10779 namespace types.
10780
10781 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10782
10783 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10784
10785 2019-10-02 Richard Biener <rguenther@suse.de>
10786
10787 * tree-vectorizer.h (vect_transform_reduction): Declare.
10788 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10789 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10790 stmt transform to ...
10791 (vect_transform_reduction): ... this.
10792
10793 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10794
10795 * omp-low.c (lower_omp_target): Dereference optional argument
10796 to work with the right pointer.
10797
10798 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10799
10800 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10801 false.
10802 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10803 * langhooks.h (omp_is_optional_argument): New hook.
10804 * omp-general.c (omp_is_optional_argument): New.
10805 * omp-general.h (omp_is_optional_argument): New declaration.
10806 * omp-low.c (lower_omp_target): Create temporary for received value
10807 and take the address for new_var if the original variable was a
10808 DECL_BY_REFERENCE. Use size of referenced object when a
10809 pass-by-reference optional argument used as argument to firstprivate.
10810
10811 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10812
10813 PR tree-optimization/91940
10814 * tree-vect-patterns.c: Include tree-vector-builder.h and
10815 vec-perm-indices.h.
10816 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10817 unpromoting the argument back to uint16_t, or by converting into a
10818 rotate, or into shifts plus ior.
10819
10820 2019-10-02 Richard Biener <rguenther@suse.de>
10821
10822 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10823 New.
10824 (vect_transform_cycle_phi): Declare.
10825 * tree-vect-stmts.c (vect_transform_stmt): Call
10826 vect_transform_cycle_phi.
10827 * tree-vect-loop.c (vectorizable_reduction): Split out
10828 PHI transformation stage to ...
10829 (vect_transform_cycle_phi): ... here.
10830
10831 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10832
10833 PR middle-end/91957
10834 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10835 eliminable registers.
10836 (make_hard_regno_live): Likewise, and don't make them live.
10837
10838 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10839
10840 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10841 Call pp_emit_prefix.
10842 (layout::print_source_line): Likewise.
10843 (layout::start_annotation_line): Likewise.
10844 (diagnostic_show_locus): Remove call to temporarily clear the
10845 prefix.
10846 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10847 interaction of pp_set_prefix with rulers and fix-it hints.
10848 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10849 prefix when calling diagnostic_show_locus, rather than destroying
10850 it afterwards.
10851 (print_parseable_fixits): Temporarily clear prefix.
10852 * pretty-print.c (pp_format): Save and restore line_length, rather
10853 than assuming it is zero.
10854 (pp_output_formatted_text): Remove assertion that line_length is
10855 zero.
10856
10857 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10858
10859 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10860 Rename to ...
10861 (nonoverlapping_refs_since_match_p): ... this; handle also
10862 ARRAY_REFs.
10863 (alias_stats): Update stats.
10864 (dump_alias_stats): Likewise.
10865 (cheap_array_ref_low_bound): New function.
10866 (aliasing_matching_component_refs_p): Add partial_overlap
10867 argument;
10868 pass it to nonoverlapping_refs_since_match_p.
10869 (aliasing_component_refs_walk): Update call of
10870 aliasing_matching_component_refs_p
10871 (nonoverlapping_array_refs_p): New function.
10872 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10873 indirect_refs_may_alias_p): Update calls of
10874 nonoverlapping_refs_since_match_p.
10875
10876 2019-10-01 Maya Rashish <coypu@sdf.org>
10877
10878 PR target/85401
10879 * ira-color.c (allocno_copy_cost_saving): Call
10880 ira_init_register_move_cost_if_necessary.
10881
10882 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10883
10884 * Makefile.in (gnat_install_lib): New variable.
10885 * configure.ac: Substitute it.
10886 * configure: Regenerate.
10887
10888 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10889
10890 PR lto/91222
10891 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10892 is matched with non-C++ type
10893
10894 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10895
10896 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10897 after local CSE.
10898
10899 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10900
10901 * doc/invoke.texi (early-inlining-insns-O2): Document.
10902 (early-inlining-insns): Update.
10903 * params.def (early-inlining-insns-O2): New bound.
10904 (early-inlining-insns): Update docs.
10905 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10906
10907 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10908
10909 PR target/88562
10910 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10911 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10912 a memory access insn.
10913
10914 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10915
10916 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10917 vpmsumd.
10918
10919 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10920
10921 PR target/77918
10922 * config/s390/s390.c (s390_expand_vec_compare): Use
10923 gen_vec_cmpordered and gen_vec_cmpunordered.
10924 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10925 vec_unordered): Delete.
10926 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10927 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10928 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10929 (vec_cmp<code>): Generic dispatcher.
10930
10931 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10932
10933 PR target/77918
10934 * config/s390/vector.md (V_HW): Add V1TI in order to make
10935 vcond$a$b generate vcondv1tiv1tf.
10936
10937 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10938
10939 PR rtl-optimization/91948
10940 * ira-build.c (ira_create_allocno): Initialize
10941 ALLOCNO_CROSSED_CALLS_ABIS.
10942 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10943 than regno to ira_need_caller_save_p.
10944
10945 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10946
10947 * config/i386/i386-options.c
10948 (ix86_recompute_optlev_based_flags): New, moved out of...
10949 (ix86_option_override_internal): ... this. Call it.
10950 (ix86_override_options_after_change): Call it here too.
10951
10952 PR debug/91507
10953 * dwarf2out.c (override_type_for_decl_p): New.
10954 (gen_variable_die): Use it.
10955
10956 2019-10-01 Richard Biener <rguenther@suse.de>
10957
10958 * tree-vect-loop.c (vectorizable_reduction): Move variables
10959 to where they are used.
10960
10961 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10962
10963 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10964 (build_def_use): Use PC instead of CC0 in a comment.
10965
10966 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10967
10968 * rtl.def (CLOBBER_HIGH): Delete.
10969 * doc/rtl.texi (clobber_high): Remove documentation.
10970 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10971 (reg_is_clobbered_by_clobber_high): Delete.
10972 (gen_hard_reg_clobber_high): Likewise.
10973 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10974 * cfgexpand.c (expand_gimple_stmt): Likewise.
10975 * combine-stack-adj.c (single_set_for_csa): Likewise.
10976 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10977 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10978 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10979 * cse.c (invalidate_reg): Remove clobber_high parameter.
10980 (invalidate): Update call accordingly.
10981 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10982 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10983 (count_reg_usage, insn_live_p): Likewise.
10984 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10985 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10986 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10987 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10988 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10989 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10990 (mark_nonreg_stores_2): Likewise.
10991 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10992 (df_get_call_refs): Likewise.
10993 * dwarf2out.c (mem_loc_descriptor): Likewise.
10994 * emit-rtl.c (verify_rtx_sharing): Likewise.
10995 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10996 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10997 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10998 * genemit.c (gen_exp, gen_insn): Likewise.
10999 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11000 * haifa-sched.c (haifa_classify_rtx): Likewise.
11001 * ira-build.c (create_insn_allocnos): Likewise.
11002 * ira-costs.c (scan_one_insn): Likewise.
11003 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11004 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11005 * jump.c (mark_jump_label_1): Likewise.
11006 * lra-int.h (lra_insn_reg::clobber_high): Delete.
11007 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11008 handling.
11009 (mark_not_eliminable): Likewise.
11010 * lra-lives.c (process_bb_lives): Likewise.
11011 * lra.c (new_insn_reg): Remove clobber_high parameter.
11012 (collect_non_operand_hard_regs): Likewise. Update call to new
11013 insn_reg. Remove CLOBBER_HIGH handling.
11014 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
11015 to collect_non_operand_hard_regs.
11016 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11017 Update call to new_insn_reg.
11018 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11019 * postreload.c (reload_cse_simplify, reload_combine_note_use)
11020 (move2add_note_store): Likewise.
11021 * print-rtl.c (print_pattern): Likewise.
11022 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11023 (if_test_bypass_p): Likewise.
11024 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11025 * reginfo.c (reg_scan_mark_refs): Likewise.
11026 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11027 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11028 (forget_old_reloads_1): Likewise.
11029 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11030 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11031 (dbr_schedule): Likewise.
11032 * resource.c (update_live_status, mark_referenced_resources)
11033 (mark_set_resources): Likewise.
11034 * rtl.c (copy_rtx): Likewise.
11035 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11036 (note_pattern_stores): Likewise.
11037 (reg_is_clobbered_by_clobber_high): Delete.
11038 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11039 CLOBBER_HIGH handling.
11040
11041 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11042
11043 PR target/91452
11044 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11045 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11046 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11047 Handle ARM_PCS_TLSDESC.
11048 (aarch64_tlsdesc_abi_id): New function.
11049 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11050 rtx instead of a list of clobbers and clobber_highs.
11051 (tlsdesc_small_<mode>): Update accordingly.
11052
11053 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11054
11055 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11056 extra callee_abi argument.
11057 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11058 Insert a CALLEE_ABI unspec into the call pattern as the second
11059 element in the PARALLEL.
11060 (aarch64_simd_call_p): Delete.
11061 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11062 the new CALLEE_ABI element of the PARALLEL.
11063 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11064 from the function type, if given.
11065 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11066 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
11067 when passed the function_arg_info end marker.
11068 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11069 final argument of gen_sibcall.
11070 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11071 (call): Make operand 2 a const_int_operand and pass it to expand_call.
11072 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11073 pattern.
11074 (call_value): Likewise operand 3.
11075 (sibcall): Likewise operand 2. Place the unspec before rather than
11076 after the return.
11077 (sibcall_value): Likewise operand 3.
11078 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11079 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11080 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
11081 constraint strings.
11082 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11083
11084 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11085
11086 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11087 choose_hard_reg_mode.
11088 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11089
11090 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11091
11092 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11093 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11094 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11095
11096 2019-09-30 David Malcolm <dmalcolm@redhat.com>
11097
11098 * diagnostic-show-locus.c (line_label::line_label): Initialize
11099 m_has_vbar.
11100 (line_label::comparator): Reverse the sort order by m_state_idx,
11101 so that when the list is walked backwards the labels appear in
11102 order of insertion into the rich_location.
11103 (line_label::m_has_vbar): New field.
11104 (layout::print_any_labels): When dealing with multiple labels at
11105 the same line and column, only print vertical bars for the one
11106 with the highest label_line.
11107 (selftest::test_one_liner_labels): Update test for multiple labels
11108 to expect the labels to be in the order of insertion into the
11109 rich_location. Add a test for many such labels, where the column
11110 numbers are out-of-order relative to the insertion order.
11111
11112 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11113
11114 * config/i386/i386.h (ix86_frame::expensive_p): New field.
11115 (ix86_frame::expensive_count): Likewise.
11116 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11117 of use_fast_prologue_epilogue robust against incidental changes
11118 in function size.
11119
11120 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11121
11122 PR target/77918
11123 * config/s390/vector.md (vec_unordered<mode>): Call
11124 gen_vec_ordered<mode>.
11125
11126 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11127
11128 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11129 New pattern for ASRD.
11130 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11131 * internal-fn.def (IFN_DIV_POW2): New internal function.
11132 * optabs.def (sdiv_pow2_optab): New optab.
11133 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11134 Modify pattern to support new operation.
11135 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11136 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11137 Document new target selector.
11138
11139 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11140
11141 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11142 to test whether we're compiling a vector PCS function and to test
11143 whether the function needs to save a particular register.
11144 Remove the vector PCS handling of df_set_regs_ever_live.
11145 (aarch64_components_for_bb): Use crtl->abi to test whether
11146 the function needs to save a particular register.
11147 (aarch64_process_components): Use crtl->abi to test whether
11148 we're compiling a vector PCS function.
11149 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11150 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11151
11152 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11153
11154 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11155 Delete.
11156 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11157 whether the block calls a function that clobbers more registers
11158 than the current function is allowed to.
11159 (aarch64_use_simple_return_insn_p): Delete.
11160 * config/aarch64/aarch64.md (simple_return): Remove condition.
11161
11162 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11163
11164 * function-abi.h (function_abi_aggregator): New class.
11165 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11166 function.
11167 * ira.c (update_equiv_regs_prescan): New function. Call
11168 set_paradoxical_subreg here rather than...
11169 (update_equiv_regs): ...here.
11170 (ira): Call update_equiv_regs_prescan.
11171
11172 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11173
11174 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11175 IN_TARGET_CODE.
11176 (call_used_or_fixed_regs): Likewise.
11177 (call_used_or_fixed_reg_p): Likewise.
11178 * reginfo.c (regs_invalidated_by_call): New macro.
11179
11180 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11181
11182 * shrink-wrap.c: Include function-abi.h.
11183 (requires_stack_frame_p): Use crtl->abi to test whether the
11184 current function can use a register without saving it first.
11185
11186 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11187
11188 * sel-sched-ir.h (_def::crosses_call): Replace with...
11189 (_def::crossed_call_abis): ..this new field.
11190 (def_list_add): Take a mask of ABIs instead of a crosses_call
11191 boolean.
11192 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11193 of _def accordingly.
11194 * sel-sched.c: Include function-abi.h.
11195 (hard_regs_data::regs_for_call_clobbered): Delete.
11196 (reg_rename::crosses_call): Replace with...
11197 (reg_rename::crossed_call_abis): ...this new field.
11198 (fur_static_params::crosses_call): Replace with...
11199 (fur_static_params::crossed_call_abis): ...this new field.
11200 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11201 (init_hard_regs_data): Use crtl->abi to test which registers the
11202 current function would need to save before it uses them.
11203 (mark_unavailable_hard_regs): Update handling of call-clobbered
11204 registers, using call_clobbers_in_region to find out which registers
11205 might be call-clobbered (but without taking -fipa-ra into account
11206 for now). Remove separate handling of partially call-clobbered
11207 registers.
11208 (verify_target_availability): Use crossed_call_abis instead of
11209 crosses_call.
11210 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11211 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11212
11213 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11214
11215 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11216 function to test whether a register is fully or partly clobbered.
11217
11218 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11219
11220 * rtlanal.c: Include function-abi.h.
11221 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11222 function and clobbers_reg_p to test whether the register
11223 is call-clobbered.
11224 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11225 to get the ABI of the called function and full_reg_clobbers to
11226 get the set of fully call-clobbered registers. Warn about the
11227 pitfalls of using this mode.
11228
11229 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11230
11231 * reload.c: Include function-abi.h.
11232 (find_equiv_reg): Use clobbers_reg_p to test whether either
11233 of the equivalent registers is clobbered by a call.
11234 * reload1.c: Include function-abi.h.
11235 (reg_reloaded_call_part_clobbered): Delete.
11236 (reload): Use crtl->abi to test which registers would need
11237 saving in the prologue before use.
11238 (find_reg): Likewise.
11239 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11240 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11241 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11242
11243 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11244
11245 * regrename.h (du_head::call_clobber_mask): New field.
11246 (du_head::need_caller_save_reg): Replace with...
11247 (du_head::call_abis): ...this new field.
11248 * regrename.c: Include function-abi.h.
11249 (call_clobbered_in_chain_p): New function.
11250 (check_new_reg_p): Use crtl->abi when deciding whether a register
11251 is free for use after RA. Use call_clobbered_in_chain_p to test
11252 whether a candidate register would be clobbered by a call.
11253 (find_rename_reg): Don't add call-clobber conflicts here.
11254 (rename_chains): Check call_abis instead of need_caller_save_reg.
11255 (merge_chains): Update for changes to du_head.
11256 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11257 target. Record the ABI identifier in call_abis and the set of
11258 fully or partially clobbered registers in call_clobber_mask.
11259 Add fully-clobbered registers to hard_conflicts here rather
11260 than in find_rename_reg.
11261 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11262 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11263 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11264 function-abi.h.
11265 * config/c6x/c6x.c: Likewise.
11266
11267 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11268
11269 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11270 mode of the register when deciding whether it is no longer
11271 available after a call.
11272
11273 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11274
11275 * recog.c: Include function-abi.h.
11276 (peep2_find_free_register): Use crtl->abi when deciding whether
11277 a register is free for use after RA.
11278
11279 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11280
11281 * postreload-gcse.c: Include regs.h and function-abi.h.
11282 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11283 call insn target. Conservatively assume that partially-clobbered
11284 registers are altered.
11285
11286 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11287
11288 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11289 when deciding whether a register is free for use after RA.
11290 (reload_combine): Remove unnecessary use of fixed_reg_set.
11291 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11292 call insn target. Use reg_mode when testing whether a register
11293 is no longer available.
11294
11295 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11296
11297 * target.def (return_call_with_max_clobbers): Delete.
11298 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11299 * doc/tm.texi: Regenerate.
11300 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11301 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11302 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11303 (lra_reg::call_insn): Delete.
11304 * lra.c: Include function-abi.h.
11305 (initialize_lra_reg_info_element): Don't initialize the fields above.
11306 (lra): Use crtl->abi to test whether the current function needs to
11307 save a register in the prologue. Remove special pre-inheritance
11308 lra_create_live_ranges pass for flag_ipa_ra.
11309 * lra-assigns.c: Include function-abi.h
11310 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11311 function needs to save a register in the prologue.
11312 (lra_assign): Assert that registers aren't allocated to a
11313 conflicting register, rather than checking only for overlaps
11314 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11315 and for registers that are not live across a call.
11316 * lra-constraints.c (last_call_for_abi): New variable.
11317 (full_and_partial_call_clobbers): Likewise.
11318 (setup_next_usage_insn): Remove the register from
11319 full_and_partial_call_clobbers.
11320 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11321 whether the register needs a caller save.
11322 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11323 of call_used_or_fixed_regs.
11324 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11325 full_and_partial_call_clobbers.
11326 * lra-lives.c (check_pseudos_live_through_calls): Replace
11327 last_call_used_reg_set and call_insn arguments with an abi argument.
11328 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11329 as the set of conflicting registers.
11330 (calls_have_same_clobbers_p): Delete.
11331 (process_bb_lives): Track the ABI of the last call instead of an
11332 insn/HARD_REG_SET pair. Update calls to
11333 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11334 the set of registers that could be clobbered by an EH edge.
11335 Include partially-clobbered as well as fully-clobbered registers.
11336 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11337 * lra-remat.c: Include function-abi.h.
11338 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11339 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11340 registers and bitmap_view to combine them into dead_regs.
11341 (call_used_input_regno_present_p): Take a function_abi argument
11342 and use it to test whether a register is call-clobbered.
11343 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11344 call insn target. Update tje call to call_used_input_regno_present_p.
11345 (do_remat): Likewise.
11346 (lra_remat): Remove the initialization of call_used_regs_arr_len
11347 and call_used_regs_arr.
11348
11349 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11350
11351 * loop-iv.c: Include regs.h and function-abi.h.
11352 (simplify_using_initial_values): Use insn_callee_abi to get the
11353 ABI of the call insn target. Conservatively assume that
11354 partially-clobbered registers are altered.
11355
11356 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11357
11358 * function-abi.h (call_clobbers_in_region): Declare.
11359 (call_clobbered_in_region_p): New function.
11360 * function-abi.cc (call_clobbers_in_region): Likewise.
11361 * ira-int.h: Include function-abi.h.
11362 (ira_allocno::crossed_calls_abis): New field.
11363 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11364 (ira_need_caller_save_regs): New function.
11365 (ira_need_caller_save_p): Likewise.
11366 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11367 of call_used_or_fixed_regs.
11368 (do_reload): Use crtl->abi to test whether the current function
11369 needs to save a register in the prologue. Count registers that
11370 need to be saved rather than registers that don't.
11371 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11372 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11373 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11374 (propagate_some_info_from_allocno): Likewise.
11375 (copy_info_to_removed_store_destinations): Likewise.
11376 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11377 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11378 (ira_build): Use ira_need_caller_save_regs instead of
11379 call_used_or_fixed_regs.
11380 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11381 whether the current function would need to save a register
11382 before using it.
11383 (calculate_spill_cost): Likewise.
11384 (allocno_reload_assign): Use ira_need_caller_save_regs and
11385 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11386 * ira-conflicts.c (ira_build_conflicts): Use
11387 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11388 as the set of call-clobbered registers. Remove the
11389 call_used_or_fixed_regs mask from the calculation of
11390 temp_hard_reg_set and mask its use instead. Remove special
11391 handling of partially-clobbered registers.
11392 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11393 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11394 calculate the set of conflicting registers for calls that
11395 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11396 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11397 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11398 Use eh_edge_abi to calculate the set of registers that could
11399 be clobbered by an EH edge. Include partially-clobbered as
11400 well as fully-clobbered registers.
11401
11402 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11403
11404 * haifa-sched.c: Include function-abi.h.
11405 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11406 the function would need to save a register before using it.
11407
11408 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11409
11410 * gcse.c: Include function-abi.h.
11411 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11412 the call insn target. Invalidate partially call-clobbered
11413 registers as well as fully call-clobbered ones.
11414
11415 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11416
11417 * function.c (aggregate_value_p): Work out which ABI the
11418 function is using before testing which registers are at least
11419 partly preserved by a call.
11420
11421 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11422
11423 * early-remat.c: Include regs.h and function-abi.h.
11424 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11425 registers here.
11426 (early_remat::restrict_remat_for_unavail_regs): New function.
11427 (early_remat::restrict_remat_for_call): Likewise.
11428 (early_remat::process_block): Before calling emit_remat_insns
11429 for a previous call in the block, invalidate any candidates
11430 that would clobber call-preserved registers.
11431 (early_remat::emit_remat_insns_for_block): Likewise for the
11432 final call in a block. Do the same thing for live-in registers
11433 when calling emit_remat_insns at the head of a block.
11434
11435 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11436
11437 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11438 whether the current function needs to save at least part of a
11439 register before using it.
11440 (df_get_exit_block_use_set): Likewise for epilogue restores.
11441
11442 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11443
11444 * df-problems.c: Include regs.h and function-abi.h.
11445 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11446 sparse_invalidated_by_eh and dense_invalidated_by_call to
11447 dense_invalidated_by_eh.
11448 (df_print_bb_index): Update accordingly.
11449 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11450 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11451 that are clobbered by an EH edge. Clobber partially-clobbered
11452 registers as well as fully-clobbered ones.
11453 (df_md_confluence_n): Likewise.
11454 (df_rd_local_compute): Likewise. Update for changes to
11455 df_rd_problem_data.
11456 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11457 of registers that are clobbered by an EH edge. Includde partially-
11458 clobbered registers as well as fully-clobbered ones.
11459
11460 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11461
11462 * cselib.c (cselib_process_insn): If we know what mode a
11463 register was set in, check whether it is clobbered in that
11464 mode by a call. Only fall back to reg_raw_mode if that fails.
11465
11466 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11467
11468 * cse.c: Include regs.h and function-abi.h.
11469 (invalidate_for_call): Take the call insn as an argument.
11470 Use insn_callee_abi to get the ABI of the call and invalidate
11471 partially clobbered registers as well as fully clobbered ones.
11472 (cse_insn): Update call accordingly.
11473
11474 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11475
11476 * combine.c: Include function-abi.h.
11477 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11478 of the target of call insns. Invalidate partially-clobbered
11479 registers as well as fully-clobbered ones.
11480
11481 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11482
11483 * cfgloopanal.c: Include regs.h and function-abi.h.
11484 (init_set_costs): Use default_function_abi to test whether
11485 a general register is call-clobbered.
11486
11487 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11488
11489 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11490 instead of the call-clobbered sets.
11491
11492 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11493
11494 * caller-save.c (setup_save_areas): Remove redundant |s of
11495 fixed_reg_set.
11496 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11497 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11498 value is useful.
11499
11500 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11501
11502 * rtl.h (predefined_function_abi): Declare.
11503 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11504 instead of a boolean call_save flag.
11505 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11506 accordingly.
11507 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11508 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11509 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11510 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11511 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11512 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11513 * reginfo.c (init_reg_modes_target): Likewise.
11514 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11515 instead of a boolean call_save flag.
11516 * targhooks.c: Include function-abi.h.
11517 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11518 using eh_edge_abi to choose the mode.
11519
11520 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11521
11522 * target.def (hard_regno_call_part_clobbered): Take an ABI
11523 identifier instead of an rtx_insn.
11524 * doc/tm.texi: Regenerate.
11525 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11526 (hook_bool_uint_uint_mode_false): New function.
11527 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11528 (hook_bool_uint_uint_mode_false): New function.
11529 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11530 Take an ABI identifier instead of an rtx_insn.
11531 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11532 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11533 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11534 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11535 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11536 Likewise.
11537 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11538 * cselib.c: Include function-abi.h.
11539 (cselib_process_insn): Update call to
11540 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11541 to get the appropriate ABI identifier.
11542 * function-abi.cc (predefined_function_abi::initialize): Update call
11543 to targetm.hard_regno_call_part_clobbered.
11544 * ira-conflicts.c (ira_build_conflicts): Likewise.
11545 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11546 * lra-constraints.c: Include function-abi.h.
11547 (need_for_call_save_p): Update call to
11548 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11549 to get the appropriate ABI identifier.
11550 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11551 * regcprop.c (copyprop_hardreg_forward_1): Update call
11552 to targetm.hard_regno_call_part_clobbered.
11553 * reginfo.c (choose_hard_reg_mode): Likewise.
11554 * regrename.c (check_new_reg_p): Likewise.
11555 * reload.c (find_equiv_reg): Likewise.
11556 * reload1.c (emit_reload_insns): Likewise.
11557 * sched-deps.c: Include function-abi.h.
11558 (deps_analyze_insn): Update call to
11559 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11560 to get the appropriate ABI identifier.
11561 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11562 call to targetm.hard_regno_call_part_clobbered.
11563 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11564
11565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11566
11567 * config/i386/i386.c: Include function-abi.h.
11568 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11569 if they preserve some 256-bit or 512-bit SSE registers.
11570
11571 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11572
11573 * target.def (insn_callee_abi): New hook.
11574 (remove_extra_call_preserved_regs): Delete.
11575 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11576 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11577 * doc/tm.texi: Regenerate.
11578 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11579 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11580 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11581 insn argument.
11582 (aarch64_remove_extra_call_preserved_regs): Delete.
11583 (aarch64_insn_callee_abi): New function.
11584 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11585 (TARGET_INSN_CALLEE_ABI): New macro.
11586 * rtl.h (get_call_fndecl): Declare.
11587 (cgraph_rtl_info): Fix formatting. Tweak comment for
11588 function_used_regs. Remove function_used_regs_valid.
11589 * rtlanal.c (get_call_fndecl): Moved from final.c
11590 * function-abi.h (insn_callee_abi): Declare.
11591 (target_function_abi_info): Mention insn_callee_abi.
11592 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11593 way to get_call_reg_set_usage did.
11594 (insn_callee_abi): New function.
11595 * regs.h (get_call_reg_set_usage): Delete.
11596 * final.c: Include function-abi.h.
11597 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11598 function_used_regs before the main loop rather than afterwards.
11599 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11600 if function_used_regs ends up not being useful.
11601 (get_call_fndecl): Move to rtlanal.c
11602 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11603 * caller-save.c: Include function-abi.h.
11604 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11605 instead of get_call_reg_set_usage.
11606 * cfgcleanup.c: Include function-abi.h.
11607 (old_insns_match_p): Use insn_callee_abi instead of
11608 get_call_reg_set_usage.
11609 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11610 a tree.
11611 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11612 function_used_regs.
11613 * df-scan.c: Include function-abi.h.
11614 (df_get_call_refs): Use insn_callee_abi instead of
11615 get_call_reg_set_usage.
11616 * ira-lives.c: Include function-abi.h.
11617 (process_bb_node_lives): Use insn_callee_abi instead of
11618 get_call_reg_set_usage.
11619 * lra-lives.c: Include function-abi.h.
11620 (process_bb_lives): Use insn_callee_abi instead of
11621 get_call_reg_set_usage.
11622 * postreload.c: Include function-abi.h.
11623 (reload_combine): Use insn_callee_abi instead of
11624 get_call_reg_set_usage.
11625 * regcprop.c: Include function-abi.h.
11626 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11627 get_call_reg_set_usage.
11628 * resource.c: Include function-abi.h.
11629 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11630 instead of get_call_reg_set_usage.
11631 * var-tracking.c: Include function-abi.h.
11632 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11633 get_call_reg_set_usage.
11634
11635 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11636
11637 * target.def (fntype_abi): New target hook.
11638 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11639 * doc/tm.texi: Regenerate.
11640 * target.h (predefined_function_abi): Declare.
11641 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11642 if defined.
11643 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11644 * config/aarch64/aarch64.c: Include function-abi.h.
11645 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11646 (TARGET_FNTYPE_ABI): Define.
11647
11648 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11649
11650 * Makefile.in (OBJS): Add function-abi.o.
11651 (GTFILES): Add function-abi.h.
11652 * function-abi.cc: New file.
11653 * function-abi.h: Likewise.
11654 * emit-rtl.h (rtl_data::abi): New field.
11655 * function.c: Include function-abi.h.
11656 (prepare_function_start): Initialize crtl->abi.
11657 * read-rtl-function.c: Include regs.h and function-abi.h.
11658 (read_rtl_function_body): Initialize crtl->abi.
11659 (read_rtl_function_body_from_file_range): Likewise.
11660 * reginfo.c: Include function-abi.h.
11661 (init_reg_sets_1): Initialize default_function_abi.
11662 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11663 when making a register global.
11664 * target-globals.h (this_target_function_abi_info): Declare.
11665 (target_globals::function_abi_info): New field.
11666 (restore_target_globals): Copy it.
11667 * target-globals.c: Include function-abi.h.
11668 (default_target_globals): Initialize the function_abi_info field.
11669 (target_globals): Allocate it.
11670 (save_target_globals): Free it.
11671
11672 2019-09-30 Nick Clifton <nickc@redhat.com>
11673
11674 PR target/85978
11675 * config/frv/frv.c (frv_register_move_cost): Add break statements
11676 to avoid falling through to the wrong cases. Tidy code.
11677
11678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11679
11680 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11681 For multi-registers modes, test how big each register part is.
11682
11683 2019-09-30 Nick Clifton <nickc@redhat.com>
11684
11685 PR target/59205
11686 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11687 (TARGET_ASM_SELECT_SECTION): Remove definition.
11688 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11689
11690 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11691
11692 * emit-rtl.c (init_raw_REG): New function.
11693 (gen_raw_REG): Use init_raw_REG.
11694 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11695 macros.
11696 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11697 * rtl.h (rtx_init): New function.
11698 (rtx_alloca): New function.
11699 (init_raw_REG): New function.
11700 (alloca_raw_REG): New macro.
11701
11702 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11703
11704 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11705 (pcrel_local_address): Replace pcrel_address predicate, use the
11706 new function address_to_insn_form.
11707 (pcrel_external_address): Replace with new implementation using
11708 address_to_insn_form..
11709 (prefixed_mem_operand): Delete predicate which is now unused.
11710 (pcrel_external_mem_operand): Delete predicate which is now
11711 unused.
11712 * config/rs6000/rs6000-protos.h (enum insn_form): New
11713 enumeration.
11714 (enum non_prefixed_form): New enumeration.
11715 (address_to_insn_form): New declaration.
11716 (prefixed_load_p): New declaration.
11717 (prefixed_store_p): New declaration.
11718 (prefixed_paddi_p): New declaration.
11719 (rs6000_asm_output_opcode): New declaration.
11720 (rs6000_final_prescan_insn): Move declaration and update calling
11721 signature.
11722 (address_is_prefixed): New helper inline function.
11723 * config/rs6000/rs6000.c(print_operand_address): Check for either
11724 PC-relative local symbols or PC-relative external symbols.
11725 (rs6000_emit_move): Support loading PC-relative addresses.
11726 (mode_supports_prefixed_address_p): Delete, no longer used.
11727 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11728 (address_to_insn_form): New function to decode an address format.
11729 (reg_to_non_prefixed): New function to identify what the
11730 non-prefixed memory instruction format is for a register.
11731 (prefixed_load_p): New function to identify prefixed loads.
11732 (prefixed_store_p): New function to identify prefixed stores.
11733 (prefixed_paddi_p): New function to identify prefixed load
11734 immediates.
11735 (next_insn_prefixed_p): New static state variable.
11736 (rs6000_final_prescan_insn): New function to determine if an insn
11737 uses a prefixed instruction.
11738 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11739 prefixed instruction.
11740 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11741 (ASM_OUTPUT_OPCODE): New target hook.
11742 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11743 prefixed instructions.
11744 (prefixed_length): New insn attribute for the size of prefixed
11745 instructions.
11746 (non_prefixed_length): New insn attribute for the size of
11747 non-prefixed instructions.
11748 (pcrel_local_addr): New insn to load up a local PC-relative
11749 address.
11750 (pcrel_extern_addr): New insn to load up an external PC-relative
11751 address.
11752 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11753 GPR and loading a 128-bit floating point type to a GPR.
11754
11755 2019-09-30 Richard Biener <rguenther@suse.de>
11756
11757 * gimple.c (gimple_get_lhs): For PHIs return the result.
11758 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11759 SLP instance as argument.
11760 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11761 double-reduction PHIs with vectorizable_lc_phi.
11762 (vect_analyze_loop_operations): Adjust.
11763 (vect_create_epilog_for_reduction): Remove all code not dealing
11764 with reduction LC PHI or epilogue generation.
11765 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11766 for live stmts of reductions.
11767 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11768 do not handle defs that are not vect_internal_def.
11769 (can_vectorize_live_stmts): Adjust.
11770 (vect_analyze_stmt): When the vectorized stmt defined a value
11771 used on backedges adjust the backedge uses of vectorized PHIs.
11772
11773 2019-09-30 Martin Jambor <mjambor@suse.cz>
11774
11775 PR ipa/91853
11776 * tree-inline.c (force_value_to_type): New function.
11777 (setup_one_parameter): Use force_value_to_type to convert type.
11778 * tree-inline.c (force_value_to_type): Declare.
11779 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11780 with register type mismatches.
11781
11782 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11783
11784 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11785 32-bit PowerPC.
11786 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11787 * config/rs6000/t-freebsd64: Make use of the above define and build
11788 the 32-bit libraries with secure-plt.
11789
11790 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11791
11792 PR target/91931
11793 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11794 gen_int_mode instead of GEN_INT.
11795
11796 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11797
11798 * config/darwin.c (gen_macho_low): Amend to include the mode
11799 argument.
11800 (machopic_indirect_data_reference): Amend gen_macho_low call
11801 to include mode argument
11802 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11803 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11804 the macho_high expander and two define_insn entries.
11805
11806 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11807
11808 PR bootstrap/90543
11809 * optc-save-gen.awk: Fix up printing string option differences.
11810
11811 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11812
11813 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11814 vec_perm cost to 1 for non-Power7 VSX architectures.
11815
11816 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11817
11818 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11819 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11820 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11821
11822 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11823
11824 * config/darwin.c (gen_macho_high): Amend to include the mode
11825 argument.
11826 (machopic_indirect_data_reference): Amend gen_macho_high call
11827 to include mode argument.
11828 (machopic_legitimize_pic_address): Likewise.
11829 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11830 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11831 the macho_high expander and two define_insn entries.
11832
11833 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11834
11835 PR target/86805
11836 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11837
11838 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11839
11840 PR target/80672
11841 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11842 std::string::compare instead of std::string::find.
11843
11844 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11845
11846 * configure: Regenerate.
11847
11848 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11849
11850 PR middle-end/91920
11851 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11852 variables as shared.
11853
11854 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11855
11856 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11857 replaces the expander and two define_insn entries.
11858 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11859 call.
11860 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11861
11862 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11863
11864 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11865 (fibonacci_heap::nodes): Likewise.
11866 (fibonacci_heap::min_key): Likewise.
11867 (fibonacci_heap::min): Likewise.
11868
11869 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11870
11871 * cgraph.c (cgraph_node::get_fun): Make const.
11872 * cgraph.h (cgraph_node::get_fun): Likewise.
11873
11874 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11875
11876 PR target/91919
11877 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11878 of SImode MULT.
11879
11880 2019-09-27 Richard Biener <rguenther@suse.de>
11881
11882 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11883 (STMT_VINFO_REDUC_FN): Likewise.
11884 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11885 STMT_VINFO_REDUC_FN.
11886 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11887 for condition reductions.
11888 (vect_create_epilog_for_reduction): Compute all required state
11889 from the stmt to be vectorized.
11890 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11891 invocation and remove then dead code. For single def-use chains
11892 record only a single vector stmt.
11893
11894 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11895
11896 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11897 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11898 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11899 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11900 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11901 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11902 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11903 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11904 (aarch64_general_builtin_rsqrt): Declare.
11905 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11906 New function.
11907 (aarch64_mangle_builtin_type): Rename to...
11908 (aarch64_general_mangle_builtin_type): ...this.
11909 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11910 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11911 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11912 aarch64_general_add_builtin instead of add_builtin_function.
11913 (aarch64_init_builtins): Rename to...
11914 (aarch64_general_init_builtins): ...this. Use
11915 aarch64_general_add_builtin instead of add_builtin_function.
11916 (aarch64_builtin_decl): Rename to...
11917 (aarch64_general_builtin_decl): ...this and remove the unused
11918 arguments.
11919 (aarch64_expand_builtin): Rename to...
11920 (aarch64_general_expand_builtin): ...this and remove the unused
11921 arguments.
11922 (aarch64_builtin_rsqrt): Rename to...
11923 (aarch64_general_builtin_rsqrt): ...this.
11924 (aarch64_fold_builtin): Rename to...
11925 (aarch64_general_fold_builtin): ...this. Take the function subcode
11926 and return type as arguments. Remove the "ignored" argument.
11927 (aarch64_gimple_fold_builtin): Rename to...
11928 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11929 subcode and gcall as arguments, and return the new function call.
11930 * config/aarch64/aarch64.c (aarch64_init_builtins)
11931 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11932 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11933 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11934 instead of aarch64_builtin_rsqrt.
11935 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11936 instead of aarch64_mangle_builtin_type.
11937
11938 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11939
11940 * target.def (check_builtin_call): New target hook.
11941 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11942 * doc/tm.texi: Regenerate.
11943
11944 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11945
11946 PR tree-optimization/91909
11947 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11948 reduc_index parameter. When handling COND_REDUCTION, make sure
11949 that the reduction phi operand is in the correct arm of the
11950 VEC_COND_EXPR.
11951 (vectorizable_reduction): Pass reduc_index to the above.
11952
11953 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11954
11955 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11956 New combine pattern.
11957
11958 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11959
11960 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11961 loop instruction into new basic block before the loop when basic
11962 block that precedes the loop is empty.
11963
11964 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11965
11966 * function.c (gimplify_parameters): Use build_clobber function.
11967 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11968 * tree-inline.c (expand_call_inline): Likewise.
11969 * tree-sra.c (clobber_subtree): Likewise.
11970 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11971 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11972 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11973 lower_omp_target): Likewise.
11974 * omp-expand.c (expand_omp_for_generic): Likewise.
11975 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11976
11977 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11978
11979 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11980 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11981 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11982 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11983 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11984 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11985 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11986 LD_ELEMREV_V16QI): Use the PURE attribute.
11987
11988 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11989
11990 * config/rs6000/darwin.md: Replace the expanders for
11991 load_macho_picbase and reload_macho_picbase with use of '@'
11992 and <mode> in their respective define_insns.
11993 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11994 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11995 Pmode to gen_load_macho_picbase.
11996 * config/rs6000/rs6000.md: Likewise.
11997
11998 2019-09-25 Richard Biener <rguenther@suse.de>
11999
12000 PR tree-optimization/91896
12001 * tree-vect-loop.c (vectorizable_reduction): The single
12002 def-use cycle optimization cannot apply when there's more
12003 than one pattern stmt involved.
12004
12005 2019-09-26 Richard Biener <rguenther@suse.de>
12006
12007 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12008 loop-closed PHIs that are vect_internal_def.
12009 (vect_create_epilog_for_reduction): Exit early for nested cycles.
12010 Simplify.
12011 (vectorizable_lc_phi): New.
12012 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12013 (vect_transform_stmt): Likewise.
12014 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12015 (vectorizable_lc_phi): Declare.
12016
12017 2019-09-26 Richard Biener <rguenther@suse.de>
12018
12019 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12020 vectorizable_reduction for vect_double_reduction_def.
12021 (vect_transform_loop): Likewise.
12022 (vect_create_epilog_for_reduction): Move double-reduction
12023 PHI creation and preheader argument setting of PHIs ...
12024 (vectorizable_reduction): ... here. Also process
12025 vect_double_reduction_def PHIs, creating the vectorized
12026 PHI nodes, remembering the scalar adjustment computed for
12027 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12028 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12029 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12030 Initialize STMT_VINFO_REDUC_CODE.
12031 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12032 (_stmt_vec_info::reduc_code): Likewise.
12033 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12034 (STMT_VINFO_REDUC_CODE): Likewise.
12035
12036 2019-09-26 Matt Turner <mattst88@gmail.com>
12037
12038 PR driver/69471
12039 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12040 (mtune=): Add Negative(mtune=).
12041 (mcpu=): Add Negative(mcpu=).
12042 * config/arm/arm.opt: Likewise.
12043
12044 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12045
12046 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12047 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12048 Define.
12049 * config/arm/arm_acle.h: Define builtins for the above.
12050 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12051 (simd32_op): Handle the above.
12052 * config/arm/unspecs.md: Define unspecs for the above.
12053
12054 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12055
12056 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12057 (arm_<sup>xtb16): Likewise.
12058 (arm_usada8): Likewise.
12059 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12060 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12061 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12062 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12063 __sxtb16, __uxtab16, __uxtb16): Define.
12064 * config/arm/arm_acle_builtins.def: Define builtins for the above.
12065 * config/arm/unspecs.md: Define unspecs for the above.
12066 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12067 (USXTB16): Likewise.
12068 (simd32_op): New int_attribute.
12069 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12070 * doc/sourcebuild.exp (arm_simd32_ok): Document.
12071
12072 2019-09-26 Martin Jambor <mjambor@suse.cz>
12073
12074 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12075 internal_error.
12076
12077 2019-09-26 Martin Jambor <mjambor@suse.cz>
12078
12079 * ipa-sra.c (process_scan_results): Fix continue condition.
12080
12081 2019-09-26 Martin Liska <mliska@suse.cz>
12082
12083 PR tree-optimization/91885
12084 * tree-vectorizer.c (try_vectorize_loop_1): Add
12085 TODO_update_ssa_only_virtuals similarly to what slp pass does.
12086
12087 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
12088
12089 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12090 aarch64_plus_immediate rather than aarch64_uimm12_shift
12091 to test for valid PLUS immediates.
12092
12093 2019-09-25 Martin Jambor <mjambor@suse.cz>
12094
12095 * tree-sra.c (no_accesses_p): Remove.
12096 (no_accesses_representant): Likewise.
12097
12098 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12099
12100 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12101 consistenly.
12102 (vaba_s16): Likewise.
12103 (vaba_s32): Likewise.
12104 (vaba_u8): Likewise.
12105 (vaba_u16): Likewise.
12106 (vaba_u32): Likewise.
12107 (vabal_high_s8): Likewise.
12108 (vabal_high_s16): Likewise.
12109 (vabal_high_s32): Likewise.
12110 (vabal_high_u8): Likewise.
12111 (vabal_high_u16): Likewise.
12112 (vabal_high_u32): Likewise.
12113 (vabal_s8): Likewise.
12114 (vabal_s16): Likewise.
12115 (vabal_s32): Likewise.
12116 (vabal_u8): Likewise.
12117 (vabal_u16): Likewise.
12118 (vabal_u32): Likewise.
12119 (vabaq_s8): Likewise.
12120 (vabaq_s16): Likewise.
12121 (vabaq_s32): Likewise.
12122 (vabaq_u8): Likewise.
12123 (vabaq_u16): Likewise.
12124 (vabaq_u32): Likewise.
12125 (vabd_s8): Likewise.
12126 (vabd_s16): Likewise.
12127 (vabd_s32): Likewise.
12128 (vabd_u8): Likewise.
12129 (vabd_u16): Likewise.
12130 (vabd_u32): Likewise.
12131 (vabdl_high_s8): Likewise.
12132 (vabdl_high_s16): Likewise.
12133 (vabdl_high_s32): Likewise.
12134 (vabdl_high_u8): Likewise.
12135 (vabdl_high_u16): Likewise.
12136 (vabdl_high_u32): Likewise.
12137 (vabdl_s8): Likewise.
12138 (vabdl_s16): Likewise.
12139 (vabdl_s32): Likewise.
12140 (vabdl_u8): Likewise.
12141 (vabdl_u16): Likewise.
12142 (vabdl_u32): Likewise.
12143 (vabdq_s8): Likewise.
12144 (vabdq_s16): Likewise.
12145 (vabdq_s32): Likewise.
12146 (vabdq_u8): Likewise.
12147 (vabdq_u16): Likewise.
12148 (vabdq_u32): Likewise.
12149 (vaddlv_s8): Likewise.
12150 (vaddlv_s16): Likewise.
12151 (vaddlv_u8): Likewise.
12152 (vaddlv_u16): Likewise.
12153 (vaddlvq_s8): Likewise.
12154 (vaddlvq_s16): Likewise.
12155 (vaddlvq_s32): Likewise.
12156 (vaddlvq_u8): Likewise.
12157 (vaddlvq_u16): Likewise.
12158 (vaddlvq_u32): Likewise.
12159 (vcvtx_f32_f64): Likewise.
12160 (vcvtx_high_f32_f64): Likewise.
12161 (vcvtxd_f32_f64): Likewise.
12162 (vmla_n_f32): Likewise.
12163 (vmla_n_s16): Likewise.
12164 (vmla_n_s32): Likewise.
12165 (vmla_n_u16): Likewise.
12166 (vmla_n_u32): Likewise.
12167 (vmla_s8): Likewise.
12168 (vmla_s16): Likewise.
12169 (vmla_s32): Likewise.
12170 (vmla_u8): Likewise.
12171 (vmla_u16): Likewise.
12172 (vmla_u32): Likewise.
12173 (vmlal_high_n_s16): Likewise.
12174 (vmlal_high_n_s32): Likewise.
12175 (vmlal_high_n_u16): Likewise.
12176 (vmlal_high_n_u32): Likewise.
12177 (vmlal_high_s8): Likewise.
12178 (vmlal_high_s16): Likewise.
12179 (vmlal_high_s32): Likewise.
12180 (vmlal_high_u8): Likewise.
12181 (vmlal_high_u16): Likewise.
12182 (vmlal_high_u32): Likewise.
12183 (vmlal_n_s16): Likewise.
12184 (vmlal_n_s32): Likewise.
12185 (vmlal_n_u16): Likewise.
12186 (vmlal_n_u32): Likewise.
12187 (vmlal_s8): Likewise.
12188 (vmlal_s16): Likewise.
12189 (vmlal_s32): Likewise.
12190 (vmlal_u8): Likewise.
12191 (vmlal_u16): Likewise.
12192 (vmlal_u32): Likewise.
12193 (vmlaq_n_f32): Likewise.
12194 (vmlaq_n_s16): Likewise.
12195 (vmlaq_n_s32): Likewise.
12196 (vmlaq_n_u16): Likewise.
12197 (vmlaq_n_u32): Likewise.
12198 (vmlaq_s8): Likewise.
12199 (vmlaq_s16): Likewise.
12200 (vmlaq_s32): Likewise.
12201 (vmlaq_u8): Likewise.
12202 (vmlaq_u16): Likewise.
12203 (vmlaq_u32): Likewise.
12204 (vmls_n_f32): Likewise.
12205 (vmls_n_s16): Likewise.
12206 (vmls_n_s32): Likewise.
12207 (vmls_n_u16): Likewise.
12208 (vmls_n_u32): Likewise.
12209 (vmls_s8): Likewise.
12210 (vmls_s16): Likewise.
12211 (vmls_s32): Likewise.
12212 (vmls_u8): Likewise.
12213 (vmls_u16): Likewise.
12214 (vmls_u32): Likewise.
12215 (vmlsl_high_n_s16): Likewise.
12216 (vmlsl_high_n_s32): Likewise.
12217 (vmlsl_high_n_u16): Likewise.
12218 (vmlsl_high_n_u32): Likewise.
12219 (vmlsl_high_s8): Likewise.
12220 (vmlsl_high_s16): Likewise.
12221 (vmlsl_high_s32): Likewise.
12222 (vmlsl_high_u8): Likewise.
12223 (vmlsl_high_u16): Likewise.
12224 (vmlsl_high_u32): Likewise.
12225 (vmlsl_n_s16): Likewise.
12226 (vmlsl_n_s32): Likewise.
12227 (vmlsl_n_u16): Likewise.
12228 (vmlsl_n_u32): Likewise.
12229 (vmlsl_s8): Likewise.
12230 (vmlsl_s16): Likewise.
12231 (vmlsl_s32): Likewise.
12232 (vmlsl_u8): Likewise.
12233 (vmlsl_u16): Likewise.
12234 (vmlsl_u32): Likewise.
12235 (vmlsq_n_f32): Likewise.
12236 (vmlsq_n_s16): Likewise.
12237 (vmlsq_n_s32): Likewise.
12238 (vmlsq_n_u16): Likewise.
12239 (vmlsq_n_u32): Likewise.
12240 (vmlsq_s8): Likewise.
12241 (vmlsq_s16): Likewise.
12242 (vmlsq_s32): Likewise.
12243 (vmlsq_u8): Likewise.
12244 (vmlsq_u16): Likewise.
12245 (vmlsq_u32): Likewise.
12246 (vmovl_high_s8): Likewise.
12247 (vmovl_high_s16): Likewise.
12248 (vmovl_high_s32): Likewise.
12249 (vmovl_high_u8): Likewise.
12250 (vmovl_high_u16): Likewise.
12251 (vmovl_high_u32): Likewise.
12252 (vmovl_s8): Likewise.
12253 (vmovl_s16): Likewise.
12254 (vmovl_s32): Likewise.
12255 (vmovl_u8): Likewise.
12256 (vmovl_u16): Likewise.
12257 (vmovl_u32): Likewise.
12258 (vmovn_high_s16): Likewise.
12259 (vmovn_high_s32): Likewise.
12260 (vmovn_high_s64): Likewise.
12261 (vmovn_high_u16): Likewise.
12262 (vmovn_high_u32): Likewise.
12263 (vmovn_high_u64): Likewise.
12264 (vmovn_s16): Likewise.
12265 (vmovn_s32): Likewise.
12266 (vmovn_s64): Likewise.
12267 (vmovn_u16): Likewise.
12268 (vmovn_u32): Likewise.
12269 (vmovn_u64): Likewise.
12270 (vmull_high_n_s16): Likewise.
12271 (vmull_high_n_s32): Likewise.
12272 (vmull_high_n_u16): Likewise.
12273 (vmull_high_n_u32): Likewise.
12274 (vmull_high_p8): Likewise.
12275 (vmull_high_s8): Likewise.
12276 (vmull_high_s16): Likewise.
12277 (vmull_high_s32): Likewise.
12278 (vmull_high_u8): Likewise.
12279 (vmull_high_u16): Likewise.
12280 (vmull_high_u32): Likewise.
12281 (vmull_n_s16): Likewise.
12282 (vmull_n_s32): Likewise.
12283 (vmull_n_u16): Likewise.
12284 (vmull_n_u32): Likewise.
12285 (vmull_p8): Likewise.
12286 (vmull_s8): Likewise.
12287 (vmull_s16): Likewise.
12288 (vmull_s32): Likewise.
12289 (vmull_u8): Likewise.
12290 (vmull_u16): Likewise.
12291 (vmull_u32): Likewise.
12292 (vpadal_s8): Likewise.
12293 (vpadal_s16): Likewise.
12294 (vpadal_s32): Likewise.
12295 (vpadal_u8): Likewise.
12296 (vpadal_u16): Likewise.
12297 (vpadal_u32): Likewise.
12298 (vpadalq_s8): Likewise.
12299 (vpadalq_s16): Likewise.
12300 (vpadalq_s32): Likewise.
12301 (vpadalq_u8): Likewise.
12302 (vpadalq_u16): Likewise.
12303 (vpadalq_u32): Likewise.
12304 (vpaddl_s8): Likewise.
12305 (vpaddl_s16): Likewise.
12306 (vpaddl_s32): Likewise.
12307 (vpaddl_u8): Likewise.
12308 (vpaddl_u16): Likewise.
12309 (vpaddl_u32): Likewise.
12310 (vpaddlq_s8): Likewise.
12311 (vpaddlq_s16): Likewise.
12312 (vpaddlq_s32): Likewise.
12313 (vpaddlq_u8): Likewise.
12314 (vpaddlq_u16): Likewise.
12315 (vpaddlq_u32): Likewise.
12316 (vpaddq_s8): Likewise.
12317 (vpaddq_s16): Likewise.
12318 (vpaddq_s32): Likewise.
12319 (vpaddq_s64): Likewise.
12320 (vpaddq_u8): Likewise.
12321 (vpaddq_u16): Likewise.
12322 (vpaddq_u32): Likewise.
12323 (vpaddq_u64): Likewise.
12324 (vqdmulh_n_s16): Likewise.
12325 (vqdmulh_n_s32): Likewise.
12326 (vqdmulhq_n_s16): Likewise.
12327 (vqdmulhq_n_s32): Likewise.
12328 (vqmovn_high_s16): Likewise.
12329 (vqmovn_high_s32): Likewise.
12330 (vqmovn_high_s64): Likewise.
12331 (vqmovn_high_u16): Likewise.
12332 (vqmovn_high_u32): Likewise.
12333 (vqmovn_high_u64): Likewise.
12334 (vqmovun_high_s16): Likewise.
12335 (vqmovun_high_s32): Likewise.
12336 (vqmovun_high_s64): Likewise.
12337 (vqrdmulh_n_s16): Likewise.
12338 (vqrdmulh_n_s32): Likewise.
12339 (vqrdmulhq_n_s16): Likewise.
12340 (vqrdmulhq_n_s32): Likewise.
12341 (vrsqrte_u32): Likewise.
12342 (vrsqrteq_u32): Likewise.
12343 (vtst_p8): Likewise.
12344 (vtst_p16): Likewise.
12345 (vtst_p64): Likewise.
12346 (vtstq_p8): Likewise.
12347 (vtstq_p16): Likewise.
12348 (vtstq_p64): Likewise.
12349 (vaddlv_s32): Likewise.
12350 (vaddlv_u32): Likewise.
12351 (vqtbl1_p8): Likewise.
12352 (vqtbl1_s8): Likewise.
12353 (vqtbl1_u8): Likewise.
12354 (vqtbl1q_p8): Likewise.
12355 (vqtbl1q_s8): Likewise.
12356 (vqtbl1q_u8): Likewise.
12357 (vqtbx1_s8): Likewise.
12358 (vqtbx1_u8): Likewise.
12359 (vqtbx1_p8): Likewise.
12360 (vqtbx1q_s8): Likewise.
12361 (vqtbx1q_u8): Likewise.
12362 (vqtbx1q_p8): Likewise.
12363 (vtbl1_s8): Likewise.
12364 (vtbl1_u8): Likewise.
12365 (vtbl1_p8): Likewise.
12366 (vtbl2_s8): Likewise.
12367 (vtbl2_u8): Likewise.
12368 (vtbl2_p8): Likewise.
12369 (vtbl3_s8): Likewise.
12370 (vtbl3_u8): Likewise.
12371 (vtbl3_p8): Likewise.
12372 (vtbl4_s8): Likewise.
12373 (vtbl4_u8): Likewise.
12374 (vtbl4_p8): Likewise.
12375 (vtbx2_s8): Likewise.
12376 (vtbx2_u8): Likewise.
12377 (vtbx2_p8): Likewise.
12378 (vld1_f32): Likewise.
12379 (vld1_f64): Likewise.
12380 (vld1_p8): Likewise.
12381 (vld1_p16): Likewise.
12382 (vld1_p64): Likewise.
12383 (vld1_s8): Likewise.
12384 (vld1_s16): Likewise.
12385 (vld1_s32): Likewise.
12386 (vld1_s64): Likewise.
12387 (vld1_u8): Likewise.
12388 (vld1_u16): Likewise.
12389 (vld1_u32): Likewise.
12390 (vld1_u64): Likewise.
12391 (vld1q_f32): Likewise.
12392 (vld1q_f64): Likewise.
12393 (vld1q_p8): Likewise.
12394 (vld1q_p16): Likewise.
12395 (vld1q_p64): Likewise.
12396 (vld1q_s8): Likewise.
12397 (vld1q_s16): Likewise.
12398 (vld1q_s32): Likewise.
12399 (vld1q_s64): Likewise.
12400 (vld1q_u8): Likewise.
12401 (vld1q_u16): Likewise.
12402 (vld1q_u32): Likewise.
12403 (vld1q_u64): Likewise.
12404 (vpmax_s8): Likewise.
12405 (vpmax_s16): Likewise.
12406 (vpmax_s32): Likewise.
12407 (vpmax_u8): Likewise.
12408 (vpmax_u16): Likewise.
12409 (vpmax_u32): Likewise.
12410 (vpmaxq_s8): Likewise.
12411 (vpmaxq_s16): Likewise.
12412 (vpmaxq_s32): Likewise.
12413 (vpmaxq_u8): Likewise.
12414 (vpmaxq_u16): Likewise.
12415 (vpmaxq_u32): Likewise.
12416 (vpmax_f32): Likewise.
12417 (vpmaxq_f32): Likewise.
12418 (vpmaxq_f64): Likewise.
12419 (vpmaxqd_f64): Likewise.
12420 (vpmaxs_f32): Likewise.
12421 (vpmaxnm_f32): Likewise.
12422 (vpmaxnmq_f32): Likewise.
12423 (vpmaxnmq_f64): Likewise.
12424 (vpmaxnmqd_f64): Likewise.
12425 (vpmaxnms_f32): Likewise.
12426 (vpmin_s8): Likewise.
12427 (vpmin_s16): Likewise.
12428 (vpmin_s32): Likewise.
12429 (vpmin_u8): Likewise.
12430 (vpmin_u16): Likewise.
12431 (vpmin_u32): Likewise.
12432 (vpminq_s8): Likewise.
12433 (vpminq_s16): Likewise.
12434 (vpminq_s32): Likewise.
12435 (vpminq_u8): Likewise.
12436 (vpminq_u16): Likewise.
12437 (vpminq_u32): Likewise.
12438 (vpmin_f32): Likewise.
12439 (vpminq_f32): Likewise.
12440 (vpminq_f64): Likewise.
12441 (vpminqd_f64): Likewise.
12442 (vpmins_f32): Likewise.
12443 (vpminnm_f32): Likewise.
12444 (vpminnmq_f32): Likewise.
12445 (vpminnmq_f64): Likewise.
12446 (vpminnmqd_f64): Likewise.
12447 (vpminnms_f32): Likewise.
12448 (vmla_f32): Likewise.
12449 (vmlaq_f32): Likewise.
12450 (vmlaq_f64): Likewise.
12451 (vmls_f32): Likewise.
12452 (vmlsq_f32): Likewise.
12453 (vmlsq_f64): Likewise.
12454 (vqtbl2_s8): Likewise.
12455 (vqtbl2_u8): Likewise.
12456 (vqtbl2_p8): Likewise.
12457 (vqtbl2q_s8): Likewise.
12458 (vqtbl2q_u8): Likewise.
12459 (vqtbl2q_p8): Likewise.
12460 (vqtbl3_s8): Likewise.
12461 (vqtbl3_u8): Likewise.
12462 (vqtbl3_p8): Likewise.
12463 (vqtbl3q_s8): Likewise.
12464 (vqtbl3q_u8): Likewise.
12465 (vqtbl3q_p8): Likewise.
12466 (vqtbl4_s8): Likewise.
12467 (vqtbl4_u8): Likewise.
12468 (vqtbl4_p8): Likewise.
12469 (vqtbl4q_s8): Likewise.
12470 (vqtbl4q_u8): Likewise.
12471 (vqtbl4q_p8): Likewise.
12472 (vqtbx2_s8): Likewise.
12473 (vqtbx2_u8): Likewise.
12474 (vqtbx2_p8): Likewise.
12475 (vqtbx2q_s8): Likewise.
12476 (vqtbx2q_u8): Likewise.
12477 (vqtbx2q_p8): Likewise.
12478 (vqtbx3_s8): Likewise.
12479 (vqtbx3_u8): Likewise.
12480 (vqtbx3_p8): Likewise.
12481 (vqtbx3q_s8): Likewise.
12482 (vqtbx3q_u8): Likewise.
12483 (vqtbx3q_p8): Likewise.
12484 (vqtbx4_s8): Likewise.
12485 (vqtbx4_u8): Likewise.
12486 (vqtbx4_p8): Likewise.
12487 (vqtbx4q_s8): Likewise.
12488 (vqtbx4q_u8): Likewise.
12489 (vqtbx4q_p8): Likewise.
12490 (vrev16_p8): Likewise.
12491 (vrev16_s8): Likewise.
12492 (vrev16_u8): Likewise.
12493 (vrev16q_p8): Likewise.
12494 (vrev16q_s8): Likewise.
12495 (vrev16q_u8): Likewise.
12496 (vrev32_p8): Likewise.
12497 (vrev32_p16): Likewise.
12498 (vrev32_s8): Likewise.
12499 (vrev32_s16): Likewise.
12500 (vrev32_u8): Likewise.
12501 (vrev32_u16): Likewise.
12502 (vrev32q_p8): Likewise.
12503 (vrev32q_p16): Likewise.
12504 (vrev32q_s8): Likewise.
12505 (vrev32q_s16): Likewise.
12506 (vrev32q_u8): Likewise.
12507 (vrev32q_u16): Likewise.
12508 (vrev64_f32): Likewise.
12509 (vrev64_p8): Likewise.
12510 (vrev64_p16): Likewise.
12511 (vrev64_s8): Likewise.
12512 (vrev64_s16): Likewise.
12513 (vrev64_s32): Likewise.
12514 (vrev64_u8): Likewise.
12515 (vrev64_u16): Likewise.
12516 (vrev64_u32): Likewise.
12517 (vrev64q_f32): Likewise.
12518 (vrev64q_p8): Likewise.
12519 (vrev64q_p16): Likewise.
12520 (vrev64q_s8): Likewise.
12521 (vrev64q_s16): Likewise.
12522 (vrev64q_s32): Likewise.
12523 (vrev64q_u8): Likewise.
12524 (vrev64q_u16): Likewise.
12525 (vrev64q_u32): Likewise.
12526 (vsha1cq_u32): Likewise.
12527 (vsha1mq_u32): Likewise.
12528 (vsha1pq_u32): Likewise.
12529 (vsha1h_u32): Likewise.
12530 (vsha1su0q_u32): Likewise.
12531 (vsha1su1q_u32): Likewise.
12532 (vsha256hq_u32): Likewise.
12533 (vsha256h2q_u32): Likewise.
12534 (vsha256su0q_u32): Likewise.
12535 (vsha256su1q_u32): Likewise.
12536 (vmull_p64): Likewise.
12537 (vmull_high_p64): Likewise.
12538 (vsqrt_f32): Likewise.
12539 (vsqrtq_f32): Likewise.
12540 (vsqrt_f64): Likewise.
12541 (vsqrtq_f64): Likewise.
12542 (vst1_f32): Likewise.
12543 (vst1_f64): Likewise.
12544 (vst1_p8): Likewise.
12545 (vst1_p16): Likewise.
12546 (vst1_p64): Likewise.
12547 (vst1_s8): Likewise.
12548 (vst1_s16): Likewise.
12549 (vst1_s32): Likewise.
12550 (vst1_s64): Likewise.
12551 (vst1_u8): Likewise.
12552 (vst1_u16): Likewise.
12553 (vst1_u32): Likewise.
12554 (vst1_u64): Likewise.
12555 (vst1q_f32): Likewise.
12556 (vst1q_f64): Likewise.
12557 (vst1q_p8): Likewise.
12558 (vst1q_p16): Likewise.
12559 (vst1q_p64): Likewise.
12560 (vst1q_s8): Likewise.
12561 (vst1q_s16): Likewise.
12562 (vst1q_s32): Likewise.
12563 (vst1q_s64): Likewise.
12564 (vst1q_u8): Likewise.
12565 (vst1q_u16): Likewise.
12566 (vst1q_u32): Likewise.
12567 (vst1q_u64): Likewise.
12568 (vst1_s64_x2): Likewise.
12569 (vst1_u64_x2): Likewise.
12570 (vst1_f64_x2): Likewise.
12571 (vst1_s8_x2): Likewise.
12572 (vst1_p8_x2): Likewise.
12573 (vst1_s16_x2): Likewise.
12574 (vst1_p16_x2): Likewise.
12575 (vst1_s32_x2): Likewise.
12576 (vst1_u8_x2): Likewise.
12577 (vst1_u16_x2): Likewise.
12578 (vst1_u32_x2): Likewise.
12579 (vst1_f16_x2): Likewise.
12580 (vst1_f32_x2): Likewise.
12581 (vst1_p64_x2): Likewise.
12582 (vst1q_s8_x2): Likewise.
12583 (vst1q_p8_x2): Likewise.
12584 (vst1q_s16_x2): Likewise.
12585 (vst1q_p16_x2): Likewise.
12586 (vst1q_s32_x2): Likewise.
12587 (vst1q_s64_x2): Likewise.
12588 (vst1q_u8_x2): Likewise.
12589 (vst1q_u16_x2): Likewise.
12590 (vst1q_u32_x2): Likewise.
12591 (vst1q_u64_x2): Likewise.
12592 (vst1q_f16_x2): Likewise.
12593 (vst1q_f32_x2): Likewise.
12594 (vst1q_f64_x2): Likewise.
12595 (vst1q_p64_x2): Likewise.
12596 (vst1_s64_x3): Likewise.
12597 (vst1_u64_x3): Likewise.
12598 (vst1_f64_x3): Likewise.
12599 (vst1_s8_x3): Likewise.
12600 (vst1_p8_x3): Likewise.
12601 (vst1_s16_x3): Likewise.
12602 (vst1_p16_x3): Likewise.
12603 (vst1_s32_x3): Likewise.
12604 (vst1_u8_x3): Likewise.
12605 (vst1_u16_x3): Likewise.
12606 (vst1_u32_x3): Likewise.
12607 (vst1_f16_x3): Likewise.
12608 (vst1_f32_x3): Likewise.
12609 (vst1_p64_x3): Likewise.
12610 (vst1q_s8_x3): Likewise.
12611 (vst1q_p8_x3): Likewise.
12612 (vst1q_s16_x3): Likewise.
12613 (vst1q_p16_x3): Likewise.
12614 (vst1q_s32_x3): Likewise.
12615 (vst1q_s64_x3): Likewise.
12616 (vst1q_u8_x3): Likewise.
12617 (vst1q_u16_x3): Likewise.
12618 (vst1q_u32_x3): Likewise.
12619 (vst1q_u64_x3): Likewise.
12620 (vst1q_f16_x3): Likewise.
12621 (vst1q_f32_x3): Likewise.
12622 (vst1q_f64_x3): Likewise.
12623 (vst1q_p64_x3): Likewise.
12624 (vst2_s64): Likewise.
12625 (vst2_u64): Likewise.
12626 (vst2_f64): Likewise.
12627 (vst2_s8): Likewise.
12628 (vst2_p8): Likewise.
12629 (vst2_s16): Likewise.
12630 (vst2_p16): Likewise.
12631 (vst2_s32): Likewise.
12632 (vst2_u8): Likewise.
12633 (vst2_u16): Likewise.
12634 (vst2_u32): Likewise.
12635 (vst2_f16): Likewise.
12636 (vst2_f32): Likewise.
12637 (vst2_p64): Likewise.
12638 (vst2q_s8): Likewise.
12639 (vst2q_p8): Likewise.
12640 (vst2q_s16): Likewise.
12641 (vst2q_p16): Likewise.
12642 (vst2q_s32): Likewise.
12643 (vst2q_s64): Likewise.
12644 (vst2q_u8): Likewise.
12645 (vst2q_u16): Likewise.
12646 (vst2q_u32): Likewise.
12647 (vst2q_u64): Likewise.
12648 (vst2q_f16): Likewise.
12649 (vst2q_f32): Likewise.
12650 (vst2q_f64): Likewise.
12651 (vst2q_p64): Likewise.
12652 (vst3_s64): Likewise.
12653 (vst3_u64): Likewise.
12654 (vst3_f64): Likewise.
12655 (vst3_s8): Likewise.
12656 (vst3_p8): Likewise.
12657 (vst3_s16): Likewise.
12658 (vst3_p16): Likewise.
12659 (vst3_s32): Likewise.
12660 (vst3_u8): Likewise.
12661 (vst3_u16): Likewise.
12662 (vst3_u32): Likewise.
12663 (vst3_f16): Likewise.
12664 (vst3_f32): Likewise.
12665 (vst3_p64): Likewise.
12666 (vst3q_s8): Likewise.
12667 (vst3q_p8): Likewise.
12668 (vst3q_s16): Likewise.
12669 (vst3q_p16): Likewise.
12670 (vst3q_s32): Likewise.
12671 (vst3q_s64): Likewise.
12672 (vst3q_u8): Likewise.
12673 (vst3q_u16): Likewise.
12674 (vst3q_u32): Likewise.
12675 (vst3q_u64): Likewise.
12676 (vst3q_f16): Likewise.
12677 (vst3q_f32): Likewise.
12678 (vst3q_f64): Likewise.
12679 (vst3q_p64): Likewise.
12680 (vst4_s64): Likewise.
12681 (vst4_u64): Likewise.
12682 (vst4_f64): Likewise.
12683 (vst4_s8): Likewise.
12684 (vst4_p8): Likewise.
12685 (vst4_s16): Likewise.
12686 (vst4_p16): Likewise.
12687 (vst4_s32): Likewise.
12688 (vst4_u8): Likewise.
12689 (vst4_u16): Likewise.
12690 (vst4_u32): Likewise.
12691 (vst4_f16): Likewise.
12692 (vst4_f32): Likewise.
12693 (vst4_p64): Likewise.
12694 (vst4q_s8): Likewise.
12695 (vst4q_p8): Likewise.
12696 (vst4q_s16): Likewise.
12697 (vst4q_p16): Likewise.
12698 (vst4q_s32): Likewise.
12699 (vst4q_s64): Likewise.
12700 (vst4q_u8): Likewise.
12701 (vst4q_u16): Likewise.
12702 (vst4q_u32): Likewise.
12703 (vst4q_u64): Likewise.
12704 (vst4q_f16): Likewise.
12705 (vst4q_f32): Likewise.
12706 (vst4q_f64): Likewise.
12707 (vst4q_p64): Likewise.
12708 (vtbx4_s8): Likewise.
12709 (vtbx4_u8): Likewise.
12710 (vtbx4_p8): Likewise.
12711 (vtrn_f32): Likewise.
12712 (vtrn_p8): Likewise.
12713 (vtrn_p16): Likewise.
12714 (vtrn_s8): Likewise.
12715 (vtrn_s16): Likewise.
12716 (vtrn_s32): Likewise.
12717 (vtrn_u8): Likewise.
12718 (vtrn_u16): Likewise.
12719 (vtrn_u32): Likewise.
12720 (vtrnq_f32): Likewise.
12721 (vtrnq_p8): Likewise.
12722 (vtrnq_p16): Likewise.
12723 (vtrnq_s8): Likewise.
12724 (vtrnq_s16): Likewise.
12725 (vtrnq_s32): Likewise.
12726 (vtrnq_u8): Likewise.
12727 (vtrnq_u16): Likewise.
12728 (vtrnq_u32): Likewise.
12729 (vrsqrte_f16): Likewise.
12730 (vrsqrteq_f16): Likewise.
12731 (vsqrt_f16): Likewise.
12732 (vsqrtq_f16): Likewise.
12733 (vabd_f16): Likewise.
12734 (vabdq_f16): Likewise.
12735 (vpadd_f16): Likewise.
12736 (vpaddq_f16): Likewise.
12737 (vpmax_f16): Likewise.
12738 (vpmaxq_f16): Likewise.
12739 (vpmaxnm_f16): Likewise.
12740 (vpmaxnmq_f16): Likewise.
12741 (vpmin_f16): Likewise.
12742 (vpminq_f16): Likewise.
12743 (vpminnm_f16): Likewise.
12744 (vpminnmq_f16): Likewise.
12745 (vrsqrts_f16): Likewise.
12746 (vrsqrtsq_f16): Likewise.
12747
12748 2019-09-25 Richard Biener <rguenther@suse.de>
12749
12750 PR tree-optimization/91896
12751 * tree-vect-loop.c (vectorizable_reduction): The single
12752 def-use cycle optimization cannot apply when there's more
12753 than one pattern stmt involved.
12754
12755 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12756
12757 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12758 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12759 (reload_macho_picbase_<mode>): Likewise.
12760
12761 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12762
12763 * config/rs6000/rs6000.md: Move darwin.md include until
12764 after the definition of the mode iterators.
12765
12766 2019-09-23 Martin Sebor <msebor@redhat.com>
12767
12768 PR tree-optimization/91570
12769 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12770 non-constant minlen, maxlen and maxbound.
12771
12772 2019-09-24 Richard Biener <rguenther@suse.de>
12773
12774 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12775 Rename to...
12776 (_stmt_vec_info::cond_reduc_code): ... this.
12777 (_stmt_vec_info::induc_cond_initial_val): Add.
12778 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12779 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12780 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12781 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12782 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12783 the reduction code.
12784 (vect_create_epilog_for_reduction): Drop special
12785 induction condition reduction params, pass in reduction code
12786 and simplify.
12787 (vectorizable_reduction): Perform condition reduction kind
12788 selection only at analysis time. Adjust passing on state.
12789
12790 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12791
12792 * config/aarch64/aarch64.md (mov<mode>): Don't call
12793 aarch64_split_dimode_const_store on volatile MEM.
12794
12795 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12796
12797 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12798 Update hwcap string for fp16fml.
12799
12800 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12801
12802 PR middle-end/91866
12803 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12804 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12805
12806 2019-09-24 Martin Liska <mliska@suse.cz>
12807
12808 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12809 instead of if-elseif-elseif-...
12810 * gimple-expr.c (extract_ops_from_tree): Likewise.
12811 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12812 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12813
12814 2019-09-24 Martin Jambor <mjambor@suse.cz>
12815
12816 PR ipa/91831
12817 * ipa-param-manipulation.c (carry_over_param): Make a method of
12818 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12819 in case of a context mismatch.
12820 (ipa_param_body_adjustments::common_initialization): Adjust call to
12821 carry_over_param.
12822 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12823 private method carry_over_param.
12824
12825 2019-09-24 Martin Jambor <mjambor@suse.cz>
12826
12827 PR ipa/91832
12828 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12829
12830 2019-09-24 Richard Biener <rguenther@suse.de>
12831
12832 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12833 base.
12834
12835 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12836
12837 * config/arm/t-arm (arm-builtins.o): Add dependency on
12838 arm_acle_builtins.def.
12839
12840 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12841
12842 PR target/91823
12843 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12844 canonical CONST_INTs. Use gen_rtvec.
12845
12846 2019-09-23 Richard Biener <rguenther@suse.de>
12847
12848 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12849 avoid adjusting by + 0 or * 1.
12850 (vect_create_epilog_for_reduction): Get reduction code only
12851 when necessary. Deal with adjustment_def only when necessary.
12852
12853 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12854
12855 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12856 memmodel index.
12857
12858 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12859
12860 PR ipa/91835
12861 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12862 "ipa-sra".
12863
12864 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12865
12866 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12867 code. Merge code blocks with common conditionals. Use declared
12868 macro instead of a magic number for PIC level.
12869
12870 2019-09-21 Martin Sebor <msebor@redhat.com>
12871
12872 PR middle-end/91830
12873 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12874 Simplify computation of the offset of the referenced subobject.
12875
12876 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12877
12878 * config/darwin.c (machopic_legitimize_pic_address): Check
12879 for lra not reload.
12880
12881 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12882
12883 * ira-conflicts.c (can_use_same_reg_p): New function.
12884 (process_reg_shuffles): Take an insn parameter. Ignore cases
12885 in which input operand op_num could seemingly never be allocated
12886 to the same register as the destination.
12887 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12888
12889 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12890
12891 * simplify-rtx.c (neg_const_int): Replace with...
12892 (neg_poly_int_rtx): ...this new function.
12893 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12894 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12895 (simplify_plus_minus): Likewise for constant terms here.
12896
12897 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12898
12899 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12900 HOST_WIDE_PRINT_UNSIGNED.
12901
12902 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12903
12904 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12905 character.
12906
12907 2019-09-20 Maya Rashish <coypu@sdf.org>
12908
12909 PR target/86811
12910 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12911 Define to speculation_safe_value_not_needed.
12912
12913 2019-09-20 Richard Biener <rguenther@suse.de>
12914 Uros Bizjak <ubizjak@gmail.com>
12915
12916 PR target/91814
12917 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12918 previous change.
12919 (general_scalar_chain::convert_op): Force not suitable memory
12920 operands to a register.
12921
12922 2019-09-20 Richard Biener <rguenther@suse.de>
12923
12924 PR tree-optimization/91821
12925 * tree-vect-loop.c (check_reduction_path): Check we can compute
12926 reduc_idx.
12927 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12928 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12929 operands in canonical order.
12930 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12931 STMT_VINFO_REDUC_IDX.
12932 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12933 (STMT_VINFO_REDUC_IDX): Likewise.
12934
12935 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12936
12937 PR target/91269
12938 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12939
12940 2019-09-20 Richard Biener <rguenther@suse.de>
12941
12942 PR tree-optimization/91822
12943 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12944 parameter.
12945 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12946 for reduc_index in nested cycles, adjust vectorizable_condition
12947 calls.
12948 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12949 parameter.
12950 (vect_analyze_stmt): Adjust.
12951 (vect_transform_stmt): Likewise.
12952
12953 2019-09-20 Richard Biener <rguenther@suse.de>
12954
12955 PR target/91767
12956 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12957 Ensure there's a sequence point between allocating the new register
12958 and passing a reference to a reg via regno_reg_rtx.
12959
12960 2019-09-20 Martin Jambor <mjambor@suse.cz>
12961
12962 * coretypes.h (cgraph_edge): Declare.
12963 * ipa-param-manipulation.c: Rewrite.
12964 * ipa-param-manipulation.h: Likewise.
12965 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12966 (OBJS): Added ipa-sra.o.
12967 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12968 and ref_p, added fields param_adjustments and performed_splits.
12969 (struct cgraph_clone_info): Remove ags_to_skip and
12970 combined_args_to_skip, new field param_adjustments.
12971 (cgraph_node::create_clone): Changed parameters to use
12972 ipa_param_adjustments.
12973 (cgraph_node::create_virtual_clone): Likewise.
12974 (cgraph_node::create_virtual_clone_with_body): Likewise.
12975 (tree_function_versioning): Likewise.
12976 (cgraph_build_function_type_skip_args): Removed.
12977 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12978 using ipa_param_adjustments.
12979 (clone_of_p): Likewise.
12980 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12981 (build_function_decl_skip_args): Likewise.
12982 (duplicate_thunk_for_node): Adjust parameters using
12983 ipa_param_body_adjustments, copy param_adjustments instead of
12984 args_to_skip.
12985 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12986 (cgraph_node::create_virtual_clone): Likewise.
12987 (cgraph_node::create_version_clone_with_body): Likewise.
12988 (cgraph_materialize_clone): Likewise.
12989 (symbol_table::materialize_all_clones): Likewise.
12990 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12991 ipa_replace_map check.
12992 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12993 (initialize_node_lattices): Make aware that some parameters might have
12994 already been removed.
12995 (want_remove_some_param_p): New function.
12996 (create_specialized_node): Convert to using ipa_param_adjustments and
12997 deal with possibly pre-existing adjustments.
12998 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12999 (output_node_opt_summary): Do not stream removed fields. Stream
13000 parameter adjustments instead of argumetns to skip.
13001 (input_node_opt_summary): Likewise.
13002 (input_node_opt_summary): Likewise.
13003 * lto-section-in.c (lto_section_name): Added ipa-sra section.
13004 * lto-streamer.h (lto_section_type): Likewise.
13005 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13006 param_body_adjs.
13007 (copy_decl_to_var): Declare.
13008 * tree-inline.c (update_clone_info): Do not remap old_tree.
13009 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13010 statements, walk all extra generated statements and remap their
13011 operands.
13012 (redirect_all_calls): Add killed SSA names to a hash set.
13013 (remap_ssa_name): Do not remap killed SSA names.
13014 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13015 half of functionality moved to ipa_param_body_adjustments.
13016 (copy_decl_to_var): Make exported.
13017 (copy_body): Destroy killed_new_ssa_names hash set.
13018 (expand_call_inline): Remap performed splits.
13019 (update_clone_info): Likewise.
13020 (tree_function_versioning): Simplify tree_map processing. Updated to
13021 accept ipa_param_adjustments and use ipa_param_body_adjustments.
13022 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13023 for the new interface.
13024 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13025 (simd_clone_compute_base_data_type): Likewise.
13026 (simd_clone_init_simd_arrays): Adjust for the new interface.
13027 (simd_clone_adjust_argument_types): Likewise.
13028 (struct modify_stmt_info): Likewise.
13029 (ipa_simd_modify_stmt_ops): Likewise.
13030 (ipa_simd_modify_function_body): Likewise.
13031 (simd_clone_adjust): Likewise.
13032 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
13033 (type_internals_preclude_sra_p): Make public.
13034 * tree-sra.h: New file.
13035 * ipa-inline-transform.c (save_inline_function_body): Update to
13036 refelct new tree_function_versioning signature.
13037 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13038 ipa_param_adjustments to get current parameter indices.
13039 (ipcp_modif_dom_walker::before_dom_children): Likewise.
13040 (ipcp_update_bits): Likewise.
13041 (ipcp_update_vr): Likewise.
13042 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13043 * ipa-sra.c: New file.
13044 * multiple_target.c (create_target_clone): Update to reflet new type
13045 of create_version_clone_with_body.
13046 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13047 tree_function_versioning.
13048 (modify_function): Update to reflect new type of
13049 tree_function_versioning.
13050 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13051 * passes.def: Remove old IPA-SRA and add new one.
13052 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13053 (make_pass_ipa_sra): Declare.
13054 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
13055 ipa_sra_retvalues.
13056 * doc/invoke.texi (ipa-sra-max-replacements): New.
13057
13058 2019-09-19 Martin Sebor <msebor@redhat.com>
13059
13060 PR middle-end/91631
13061 * builtins.c (component_size): Correct trailing array computation,
13062 rename to component_ref_size and move...
13063 (compute_objsize): Adjust.
13064 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13065 (builtin_access::strict): Do not consider memmove.
13066 (builtin_access::write_off): New function.
13067 (builtin_memref::builtin_memref): Initialize refsize.
13068 (builtin_memref::set_base_and_offset): Adjust refoff and compute
13069 refsize.
13070 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13071 Handle refsize.
13072 (builtin_access::builtin_access): Initialize dstoff to destination
13073 refeence offset here instead of in maybe_diag_overlap. Adjust
13074 referencess even to unrelated objects. Adjust sizrange of bounded
13075 string functions to reflect bound. For strcat, adjust destination
13076 sizrange by that of source.
13077 (builtin_access::strcat_overlap): Adjust offsets and sizes
13078 to reflect the increase in destination sizrange above.
13079 (builtin_access::overlap): Do not set dstoff here but instead
13080 in builtin_access::builtin_access.
13081 (check_bounds_or_overlap): Use builtin_access::write_off.
13082 (maybe_diag_access_bounds): Add argument. Add informational notes.
13083 (dump_builtin_memref, dump_builtin_access): New functions.
13084 * tree.c (component_ref_size): ...to here.
13085 * tree.h (component_ref_size): Declare.
13086 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13087 nul in the size of the source string.
13088
13089 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
13090
13091 PR c/67224
13092 * doc/cpp.texi: Document support for extended characters in
13093 identifiers.
13094 * doc/cppopts.texi: Likewise.
13095
13096 2019-09-19 Richard Biener <rguenther@suse.de>
13097
13098 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13099 (check_reduction_path): New overload having the path as result.
13100 (vect_is_simple_reduction): From the detected reduction
13101 path build a SLP reduction chain if possible.
13102
13103 2019-09-19 Richard Biener <rguenther@suse.de>
13104
13105 PR target/91814
13106 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13107 Force operand to a register if it isn't nonimmediate_operand.
13108
13109 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13110
13111 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13112 * config/arm/iterators.md (optab): Add and, ior, xor entries.
13113 (logical_op): Remove code attribute.
13114 (logical_OP): Likewise.
13115
13116 2019-09-19 Martin Liska <mliska@suse.cz>
13117
13118 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13119 Use proper casting.
13120
13121 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13122
13123 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13124 registers with %R.
13125
13126 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13127 for NE comparison of TImode values.
13128 (aarch64_emit_load_exclusive): Add support for TImode.
13129 (aarch64_emit_store_exclusive): Likewise.
13130 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13131 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13132 Change iterator from ALLI to ALLI_TI.
13133 (@atomic_compare_and_swap<JUST_TI>): New.
13134 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13135 (aarch64_load_exclusive_pair): New.
13136 (aarch64_store_exclusive_pair): New.
13137 * config/aarch64/iterators.md (JUST_TI): New.
13138
13139 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13140 strong_zero_p for aarch64_track_speculation; unify some code paths;
13141 use aarch64_gen_compare_reg instead of open-coding.
13142
13143 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13144 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13145 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13146 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13147 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13148 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13149 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13150 (atomic_<atomic_op><ALLI>): Likewise.
13151 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13152 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13153 * doc/invoke.texi: Document -moutline-atomics.
13154
13155 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13156
13157 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13158 trivial predicate for condition branch.
13159 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13160 for switch case.
13161 (compute_bb_predicates): Update predicate based on post-dominating
13162 relationship.
13163 (analyze_function_body): Calculate post-dominating information.
13164
13165 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13166
13167 * tree-vectorizer.h (vectorizable_condition): Take an int
13168 reduction index instead of a boolean flag.
13169 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13170 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13171 reductions if the reduction accumulator is the "then" rather
13172 than the "else" value.
13173 (vect_analyze_stmt): Update call accordingly.
13174 (vect_transform_stmt): Likewise.
13175 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13176 asserting that the index is > 0.
13177
13178 2019-09-19 Martin Liska <mliska@suse.cz>
13179
13180 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13181 (sort_congruence_classes_by_decl_uid): Likewise.
13182 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13183 easier sorting.
13184 (sem_item_optimizer::merge_classes): Likewise.
13185
13186 2019-09-19 Richard Biener <rguenther@suse.de>
13187
13188 PR tree-optimization/91812
13189 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13190 volatile loads.
13191
13192 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13193
13194 * defaults.h (TARGET_UNIT): New macro.
13195 (target_unit): New type.
13196 * rtl.h (native_encode_rtx, native_decode_rtx)
13197 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13198 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13199 * rtlanal.c (subreg_lsb_1): Delete.
13200 (subreg_size_lsb): New function.
13201 * simplify-rtx.c: Include rtx-vector-builder.h
13202 (simplify_immed_subreg): Delete.
13203 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13204 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13205 functions.
13206 (simplify_subreg): Use them.
13207 (test_vector_subregs_modes, test_vector_subregs_repeating)
13208 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13209 (test_vector_subregs): New functions.
13210 (test_vector_ops): Call test_vector_subregs for integer vector
13211 modes with at least 2 elements.
13212
13213 2019-09-19 Richard Biener <rguenther@suse.de>
13214
13215 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13216 LOOP_VINFO_OPERANDS_SWAPPED.
13217 (parloops_is_simple_reduction): Likewise.
13218 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13219 initialize operands_swapped.
13220 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13221 (vect_is_slp_reduction): Do not swap operands.
13222 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13223 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13224
13225 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13226
13227 PR target/87007
13228 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13229 Add avx_partial_xmm_update.
13230
13231 2019-09-18 Jim Wilson <jimw@sifive.com>
13232
13233 PR target/91683
13234 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13235 (riscv_move_integer): Likewise.
13236 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13237 riscv_move_integer arg.
13238 (riscv_legitimize_move): Likewise.
13239 (riscv_force_temporary): New parameter in_splitter. Don't call
13240 force_reg if true.
13241 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13242 arg.
13243 (riscv_add_offset): Likewise.
13244 (riscv_split_symbol): New parameter in_splitter. Pass to
13245 riscv_force_temporary.
13246 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13247 arg.
13248 (riscv_move_integer): New parameter in_splitter. New local
13249 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13250 in_splitter TRUE.
13251 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13252 riscv_split_symbol, and riscv_force_temporary args.
13253 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13254 riscv_move_integer arg.
13255 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13256
13257 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13258
13259 PR target/90878
13260 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13261 hard register store cost to 6.
13262
13263 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13264
13265 PR target/91446
13266 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13267 pseudo register store cost from 3 to 6 to make it the same as
13268 QImode and HImode.
13269
13270 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13271
13272 PR target/91738
13273 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13274 (one_cmpldi2): Likewise.
13275 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13276 of the constant parts is simple.
13277 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13278 (logical_op): Add new code attribute.
13279 (logical_OP): Likewise.
13280 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13281 (arm_iordi_operand): Add predicate.
13282 (arm_xordi_operand): Add predicate.
13283
13284 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13285
13286 * config/arm/arm.md (maddsidi4): Remove expander.
13287 (mulsidi3adddi): Remove pattern.
13288 (mulsidi3adddi_v6): Likewise.
13289 (mulsidi3_nov6): Likewise.
13290 (mulsidi3_v6): Likewise.
13291 (umulsidi3): Remove expander.
13292 (umulsidi3_nov6): Remove pattern.
13293 (umulsidi3_v6): Likewise.
13294 (umulsidi3adddi): Likewise.
13295 (umulsidi3adddi_v6): Likewise.
13296 (<Us>mulsidi3): Add combined expander.
13297 (<Us>maddsidi4): Likewise.
13298 (<US>mull): Add combined umull and smull pattern.
13299 (<US>mlal): Likewise.
13300 * config/arm/iterators.md (Us): Add new iterator.
13301
13302 2019-09-18 Richard Biener <rguenther@suse.de>
13303
13304 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13305 swapping.
13306 (vectorize_fold_left_reduction): Remove assert.
13307 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13308 operand in position 2. Remove assert.
13309
13310 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13311
13312 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13313 (smulsi3_highpart_nov6): Remove pattern.
13314 (smulsi3_highpart_v6): Likewise.
13315 (umulsi3_highpart): Likewise.
13316 (umulsi3_highpart_nov6): Likewise.
13317 (umulsi3_highpart_v6): Likewise.
13318 (<US>mull_high): Add new combined multiply pattern.
13319
13320 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13321
13322 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13323 (arm_mulsi3_v6): Likewise.
13324 (mulsi3addsi_v6): Likewise.
13325 (mulsi3subsi): Likewise.
13326 (mul): Add new multiply pattern.
13327 (mla): Likewise.
13328 (mls): Likewise.
13329
13330 2019-09-18 Richard Biener <rguenther@suse.de>
13331
13332 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13333 (parloops_valid_reduction_input_p): Copy from
13334 valid_reduction_input_p.
13335 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13336 (parloops_needs_fold_left_reduction_p): Copy from
13337 needs_fold_left_reduction_p.
13338 (parloops_is_simple_reduction): Copy from
13339 vect_is_simple_reduction.
13340 (parloops_force_simple_reduction): Copy from
13341 vect_force_simple_reduction.
13342 (gather_scalar_reductions): Adjust.
13343 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13344 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13345
13346 2019-09-18 Richard Biener <rguenther@suse.de>
13347
13348 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13349 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13350 static.
13351 (vect_create_epilog_for_reduction): Remove dead code.
13352
13353 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13354
13355 * varasm.c (assemble_real): Generate canonical const_ints.
13356
13357 2019-09-18 Richard Biener <rguenther@suse.de>
13358
13359 PR lto/91763
13360 * lto-streamer-in.c (input_eh_regions): Move EH init to
13361 lto_materialize_function.
13362 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13363 Likewise.
13364
13365 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13366
13367 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13368 are INTEGER_CSTs.
13369
13370 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13371
13372 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13373 of checking specifically for INTEGER_CST.
13374
13375 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13376
13377 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13378 sizes instead of uhwi sizes.
13379
13380 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13381
13382 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13383 (add_const_value_attribute): Handle CONST_POLY_INT.
13384
13385 2019-09-18 Martin Liska <mliska@suse.cz>
13386
13387 * dbgcnt.def (store_merging): New counter.
13388 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13389 Use it in store merging.
13390
13391 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13392
13393 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13394 function.
13395 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13396 * config/arm/arm.c (arm_sched_variable_issue): New function.
13397 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13398
13399 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13400
13401 * config/arm/types.md (no_reservation): New reservation.
13402 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13403 no_insn here.
13404 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13405 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13406 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13407 * config/arm/arm1020e.md (1020alu_op): Likewise.
13408 * config/arm/arm1026ejs.md (alu_op): Likewise.
13409 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13410 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13411 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13412 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13413 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13414 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13415 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13416 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13417 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13418 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13419 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13420 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13421 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13422 * config/arm/fa526.md (526_alu_op): Likewise.
13423 * config/arm/fa606te.md (606te_alu_op): Likewise.
13424 * config/arm/fa626te.md (626te_alu_op): Likewise.
13425 * config/arm/fa726te.md (726te_alu_op): Likewise.
13426 * config/arm/xgene1.md (xgene1_nop): Likewise.
13427
13428 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13429
13430 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13431 "no_insn" to "branch".
13432
13433 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13434
13435 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13436
13437 2019-09-17 Richard Biener <rguenther@suse.de>
13438
13439 PR debug/91772
13440 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13441 was missing generate locations only once.
13442
13443 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13444
13445 PR ipa/91089
13446 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13447 option.
13448 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13449 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13450 for switch default case using range analysis information.
13451
13452 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13453
13454 PR target/91749
13455 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13456 mode attributed is supported by FDPIC.
13457
13458 2019-09-17 Richard Biener <rguenther@suse.de>
13459
13460 PR tree-optimization/91790
13461 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13462 use the correct DR for setting up realignment.
13463
13464 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13465
13466 PR target/91719
13467 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13468 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13469 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13470 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13471
13472 2019-09-16 Jason Merrill <jason@redhat.com>
13473
13474 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13475
13476 2019-09-16 Martin Liska <mliska@suse.cz>
13477
13478 * gimple-fold.c (or_comparisons_1): Remove rules moved
13479 to ...
13480 * match.pd: ... here.
13481
13482 2019-09-16 Martin Liska <mliska@suse.cz>
13483
13484 * gimple-fold.c (or_comparisons_1): Remove rules
13485 moved to ...
13486 * match.pd: ... here.
13487
13488 2019-09-16 Martin Liska <mliska@suse.cz>
13489
13490 * genmatch.c (dt_node::append_simplify): Do not print
13491 warning when we have duplicate patterns belonging
13492 to a same simplify rule.
13493 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13494 (maybe_fold_comparisons_from_match_pd): Handle
13495 tcc_comparison as a results.
13496 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13497
13498 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13499 Qi Feng <ffengqi@linux.ibm.com>
13500
13501 PR middle-end/88784
13502 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13503 (x > y && x == XXX_MIN): Optimize into 'false'.
13504 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13505 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13506 (x < y && x == XXX_MAX): Optimize into 'false'.
13507 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13508 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13509 (x <= y || x != XXX_MIN): Optimize into 'true'.
13510 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13511 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13512 (x >= y || x != XXX_MAX): Optimize into 'true'.
13513 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13514
13515 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13516 Martin Liska <mliska@suse.cz>
13517
13518 * gimple-fold.c (and_comparisons_1): Add type as first
13519 argument.
13520 (and_var_with_comparison): Likewise.
13521 (and_var_with_comparison_1): Likewise.
13522 (or_comparisons_1): Likewise.
13523 (or_var_with_comparison): Likewise.
13524 (or_var_with_comparison_1): Likewise.
13525 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13526 (maybe_fold_or_comparisons): Likewise.
13527 (maybe_fold_comparisons_from_match_pd): New.
13528 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13529 (maybe_fold_or_comparisons): Likewise.
13530 * gimple.c (gimple_size): Make it public and add num_ops argument.
13531 (gimple_init): New function.
13532 (gimple_alloc): Call gimple_init.
13533 * gimple.h (gimple_size): New.
13534 (gimple_init): Likewise.
13535 * tree-if-conv.c (fold_or_predicates): Pass type.
13536 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13537 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13538 (optimize_vec_cond_expr): Likewise.
13539 (ovce_extract_ops): Return type of conditional expression.
13540 * tree-ssanames.c (init_ssa_name_imm_use): New.
13541 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13542 * tree-ssanames.h (init_ssa_name_imm_use): New.
13543
13544 2019-09-16 Richard Biener <rguenther@suse.de>
13545
13546 PR tree-optimization/91756
13547 PR tree-optimization/87132
13548 * tree-ssa-alias.h (enum translate_flags): New.
13549 (get_continuation_for_phi): Use it instead of simple bool flag.
13550 (walk_non_aliased_vuses): Likewise.
13551 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13552 (get_continuation_for_phi): When looking across backedges only
13553 disallow valueization.
13554 (walk_non_aliased_vuses): Adjust.
13555 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13556 if requested.
13557
13558 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13559
13560 PR middle-end/80791
13561 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13562 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13563 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13564 * target.def (have_count_reg_decr_p): New hook.
13565 (doloop_cost_for_generic): Likewise.
13566 (doloop_cost_for_address): Likewise.
13567 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13568 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13569 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13570 * doc/tm.texi: Regenerate.
13571 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13572 addend.
13573 (record_group): Init doloop_p.
13574 (add_candidate_1): Add optional argument doloop, change the handlings
13575 accordingly.
13576 (add_candidate): Likewise.
13577 (generic_predict_doloop_p): Update attribute.
13578 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13579 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13580 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13581 MIN_EXPR.
13582 (get_computation_cost): Update for doloop IV cand extra cost.
13583 (determine_group_iv_cost_cond): Update for doloop IV cand.
13584 (determine_iv_cost): Likewise.
13585 (ivopts_estimate_reg_pressure): Likewise.
13586 (may_eliminate_iv): Update handlings for doloop IV cand.
13587 (add_iv_candidate_for_doloop): New function.
13588 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13589 (iv_ca_set_no_cp): Update for doloop IV cand.
13590 (iv_ca_set_cp): Likewise.
13591 (iv_ca_dump): Dump register cost.
13592 (find_doloop_use): New function.
13593 (analyze_and_mark_doloop_use): Likewise.
13594 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13595
13596 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13597
13598 PR middle-end/91708
13599 * cse.c (cse_insn): Do not replace anything with a
13600 MEM.
13601
13602 2019-09-13 Ian Lance Taylor <iant@golang.org>
13603
13604 * doc/invoke.texi (Optimize Options): Fix typo.
13605
13606 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13607
13608 PR tree-optimization/89386
13609 * config/i386/sse.md (smulhrs<mode>3): New expander.
13610 (smulhrsv4hi3): Ditto.
13611
13612 2019-09-12 Richard Biener <rguenther@suse.de>
13613
13614 PR tree-optimization/91750
13615 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13616 in the type of the evolution.
13617
13618 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13619
13620 PR tree-optimization/89386
13621 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13622 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13623 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13624 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13625 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13626 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13627 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13628 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13629 (su, r): Handle the unspecs above.
13630 (bt): New int attribute.
13631 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13632 * internal-fn.c (first_commutative_argument): Commutativity info for
13633 above.
13634 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13635 (umulhrs_optab): New optabs.
13636 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13637 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13638 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13639 function.
13640 (vect_vect_recog_func_ptrs): Add it.
13641
13642 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13643
13644 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13645 code.
13646
13647 2019-09-11 Nathan Sidwell <nathan@acm.org>
13648
13649 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13650 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13651
13652 2019-09-11 Richard Biener <rguenther@suse.de>
13653
13654 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13655 * lto-wrapper.c (merge_and_complain): Pick up -g.
13656 (append_compiler_options): Likewise.
13657 (run_gcc): Re-instantiate handling -g0 at link-time.
13658 * doc/invoke.texi (flto): Document debug info generation.
13659
13660 2019-09-11 Richard Biener <rguenther@suse.de>
13661
13662 PR tree-optimization/90387
13663 * vr-values.c (vr_values::extract_range_basic): After inlining
13664 simplify non-constant __builtin_constant_p to false.
13665
13666 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13667
13668 PR rtl-optimization/89795
13669 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13670 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13671
13672 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13673
13674 PR tree-optimization/91723
13675 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13676 instead of pointer equality when checking if argument vectypes are
13677 the same.
13678
13679 PR middle-end/91725
13680 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13681 of get_nonzero_bits, only call it for integral types.
13682
13683 2019-09-11 Richard Biener <rguenther@suse.de>
13684
13685 Revert
13686 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13687
13688 * match.pd: Add flag_unsafe_math_optimizations check
13689 before deciding on the widest type in a binary math operation.
13690
13691 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13692
13693 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13694 and CALL_REALLY_USED_REGISTERS must be defined, and that
13695 CALL_REALLY_USED_REGISTERS is preferred.
13696 * doc/tm.texi: Regenerate.
13697 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13698 (call_really_used_regs): Likewise.
13699 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13700 CALL_REALLY_USED_REGISTERS are defined.
13701 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13702 initial value if defined.
13703 (initial_call_really_used_regs): Delete.
13704 (saved_call_really_used_regs): Likewise.
13705 (CALL_REALLY_USED_REGNO_P): Likewise.
13706 (init_reg_sets): Remove handling of call_really_used_regs.
13707 (save_register_info, restore_register_info, globalize_reg): Likewise.
13708 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13709 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13710 outside operand_reg_set.
13711 (fix_register): Don't change call_used_regs if
13712 CALL_REALLY_USED_REGISTERS is defined.
13713 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13714 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13715 instead of call_really_used_regs.
13716 (csky_conditional_register_usage): Remove the old handling of
13717 call_used_regs and change the handling of call_really_used_regs
13718 to use call_used_regs instead.
13719 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13720 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13721 making a register fixed.
13722 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13723 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13724 instead of call_really_used_regs.
13725 (m32r_conditional_register_usage): Don't set call_used_regs when
13726 making a register fixed.
13727 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13728 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13729 instead of call_really_used_regs.
13730 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13731 (mips_cfun_call_saved_reg_p): Likewise.
13732 (mips_swap_registers): Remove the old handling of call_used_regs
13733 and change the handling of call_really_used_regs to use call_used_regs
13734 instead.
13735 (mips_conditional_register_usage): Likewise.
13736 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13737 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13738 instead of call_really_used_regs.
13739 (mn10300_get_live_callee_saved_regs): Likewise.
13740 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13741 (mn10300_conditional_register_usage): Don't set call_used_regs when
13742 making a register fixed.
13743 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13744 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13745 Remove the old handling of call_used_regs and change the handling
13746 of call_really_used_regs to use call_used_regs instead.
13747 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13748 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13749 instead of call_really_used_regs.
13750 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13751 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13752 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13753 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13754 (s390_conditional_register_usage): Remove the old handling of
13755 call_used_regs and change the handling of call_really_used_regs
13756 to use call_used_regs instead.
13757 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13758 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13759 (sh_fix_range, reg_unused_after): Likewise.
13760 (sh_conditional_register_usage): Remove the old handling of
13761 call_used_regs and change the handling of call_really_used_regs
13762 to use call_used_regs instead.
13763 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13764 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13765 call_used_regs when making a register fixed.
13766 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13767 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13768 call_used_regs when making a register fixed.
13769 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13770 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13771 set call_used_regs when making a register fixed.
13772 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13773 * config/visium/visium.c (visium_conditional_register_usage): Remove
13774 the old handling of call_used_regs and change the handling of
13775 call_really_used_regs to use call_used_regs instead.
13776
13777 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13778
13779 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13780 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13781 * reginfo.c (call_used_regs): New macro.
13782
13783 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13784
13785 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13786 fixed_regs test.
13787 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13788 (bpf_expand_epilogue): Likewise.
13789 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13790 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13791 (ft32_expand_epilogue): Likewise.
13792 * config/i386/i386.c (ix86_save_reg): Likewise.
13793 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13794 (moxie_expand_epilogue): Likewise.
13795 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13796 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13797 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13798
13799 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13800
13801 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13802 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13803 instead of testing call_used_regs directly.
13804 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13805 (aarch64_components_for_bb): Likewise.
13806 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13807 * config/arc/arc.c (arc_must_save_register): Likewise.
13808 (arc_epilogue_uses): Likewise.
13809 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13810 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13811 (arm_compute_save_reg0_reg12_mask): Likewise.
13812 (arm_compute_save_core_reg_mask): Likewise.
13813 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13814 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13815 (cmse_nonsecure_entry_clear_before_return): Likewise.
13816 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13817 (arm_expand_epilogue): Likewise.
13818 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13819 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13820 (_reg_unused_after): Likewise.
13821 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13822 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13823 (add_to_reg, hwloop_optimize): Likewise.
13824 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13825 (bpf_expand_epilogue): Likewise.
13826 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13827 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13828 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13829 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13830 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13831 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13832 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13833 * config/frv/frv.c (frv_stack_info): Likewise.
13834 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13835 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13836 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13837 (move_callee_saved_registers): Likewise.
13838 * config/h8300/h8300.c (byte_reg): Likewise.
13839 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13840 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13841 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13842 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13843 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13844 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13845 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13846 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13847 * config/m32c/m32c.c (need_to_save): Likewise.
13848 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13849 * config/mcore/mcore.c (calc_live_regs): Likewise.
13850 * config/microblaze/microblaze.c (microblaze_must_save_register):
13851 Likewise.
13852 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13853 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13854 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13855 (mmix_expand_epilogue): Likewise.
13856 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13857 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13858 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13859 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13860 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13861 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13862 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13863 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13864 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13865 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13866 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13867 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13868 * config/rl78/rl78.c (need_to_save): Likewise.
13869 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13870 (rs6000_stack_info, generate_set_vrsave): Likewise.
13871 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13872 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13873 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13874 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13875 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13876 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13877 (save_local_or_in_reg_p): Likewise.
13878 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13879 (xstormy16_epilogue_uses): Likewise.
13880 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13881 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13882 * config/v850/v850.c (compute_register_save_size): Likewise.
13883 * config/vax/vax.c (vax_expand_prologue): Likewise.
13884 * config/visium/visium.c (visium_save_reg_p): Likewise.
13885 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13886 * cselib.c (cselib_process_insn): Likewise.
13887 * df-scan.c (df_get_entry_block_def_set): Likewise.
13888 * function.c (aggregate_value_p): Likewise.
13889 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13890 * ira-lives.c (process_bb_node_lives): Likewise.
13891 * ira.c (do_reload): Likewise.
13892 * lra-lives.c (process_bb_lives): Likewise.
13893 * lra-remat.c (lra_remat): Likewise.
13894 * lra.c (lra): Likewise.
13895 * postreload.c (reload_combine_recognize_pattern): Likewise.
13896 (reload_cse_move2add): Likewise.
13897 * recog.c (peep2_find_free_register): Likewise.
13898 * regrename.c (check_new_reg_p): Likewise.
13899 * reload.c (find_equiv_reg): Likewise.
13900 * reload1.c (reload, find_reg): Likewise.
13901 * sel-sched.c (init_hard_regs_data): Likewise.
13902
13903 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13904
13905 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13906 regs_invalidated_by_call & ~fixed_reg_set instead of
13907 call_used_or_fixed_regs & ~fixed_reg_set.
13908 * config/sh/sh.c (output_stack_adjust): Likewise.
13909
13910 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13911
13912 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13913 (call_used_reg_set): Delete.
13914 (call_used_or_fixed_regs): New macro.
13915 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13916 of call_used_reg_set.
13917 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13918 instead of call_used_regs.
13919 (save_call_clobbered_regs): Likewise.
13920 * cfgcleanup.c (old_insns_match_p): Likewise.
13921 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13922 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13923 Likewise.
13924 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13925 * config/sh/sh.c (output_stack_adjust): Likewise.
13926 * final.c (collect_fn_hard_reg_usage): Likewise.
13927 * ira-build.c (ira_build): Likewise.
13928 * ira-color.c (calculate_saved_nregs): Likewise.
13929 (allocno_reload_assign, calculate_spill_cost): Likewise.
13930 * ira-conflicts.c (ira_build_conflicts): Likewise.
13931 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13932 * ira-lives.c (process_bb_node_lives): Likewise.
13933 * ira.c (setup_reg_renumber): Likewise.
13934 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13935 * lra-constraints.c (need_for_call_save_p): Likewise.
13936 (need_for_split_p, inherit_in_ebb): Likewise.
13937 * lra-lives.c (process_bb_lives): Likewise.
13938 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13939 * postreload.c (reload_combine): Likewise.
13940 * regrename.c (find_rename_reg): Likewise.
13941 * reload1.c (reload_as_needed): Likewise.
13942 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13943 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13944 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13945
13946 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13947
13948 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13949 (no_caller_save_reg_set): Delete.
13950 * caller-save.c (init_caller_save): Don't initialize it.
13951 * ira-conflicts.c (ira_build_conflicts): Calculate
13952 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13953
13954 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13955
13956 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13957 (target_hard_regs::x_savable_regs): New field.
13958 (call_fixed_reg_set): Delete.
13959 (savable_regs): New macro,
13960 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13961 (init_reg_sets_1): Likewise. Initialize savable_regs.
13962 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13963 for all registers. Set savable_regs instead of call_fixed_reg_set.
13964 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13965 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13966 * config/sh/sh.c (output_stack_adjust): Likewise.
13967
13968 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13969
13970 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13971 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13972 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13973
13974 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13975
13976 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13977 * rtlanal.c (get_call_rtx_from): Likewise.
13978 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13979 than the pattern to get_call_rtx_from.
13980 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13981 an rtx_insn * instead of an rtx.
13982 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13983
13984 2019-09-10 Martin Liska <mliska@suse.cz>
13985
13986 * common.opt: Use newly added WarnRemoved.
13987 * config/aarch64/aarch64.opt: Likewise.
13988 * config/arm/arm.opt: Likewise.
13989 * config/i386/i386.opt: Likewise.
13990 * config/ia64/ia64.opt: Likewise.
13991 * config/rs6000/rs6000.opt: Likewise.
13992 * doc/options.texi: Document WarnRemoved properly.
13993 * dwarf2out.c (gen_producer_string): Handle renamed
13994 OPT_SPECIAL_warn_removed.
13995 * lto-opts.c (lto_write_options): Likewise.
13996 * lto-wrapper.c (merge_and_complain): Likewise.
13997 * opts-common.c (decode_cmdline_option): Likewise.
13998 (prune_options): Likewise.
13999 (read_cmdline_option): Likewise.
14000 (control_warning_option): Likewise.
14001 * opts.c (print_filtered_help): Likewise.
14002 * optc-gen.awk: Parse for WarnRemoved and make usage
14003 of Deprecated an error.
14004 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14005
14006 2019-09-10 Arnaud Charlet <charlet@adacore.com>
14007
14008 * doc/install.texi: Fix syntax for html generation.
14009
14010 2019-09-10 Jakub Jelinek <jakub@redhat.com>
14011
14012 PR middle-end/91680
14013 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14014 the shift type to type.
14015
14016 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14017
14018 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14019 FDPIC mode.
14020 (stack_protect_combined_test_insn): Likewise.
14021
14022 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14023 Mickaël Guêné <mickael.guene@st.com>
14024
14025 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14026 * config/arm/arm.md (FDPIC_REGNUM): New constant.
14027 (load_tp_soft_fdpic): New pattern.
14028 (load_tp_soft): Disable in FDPIC mode.
14029
14030 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14031 Mickaël Guêné <mickael.guene@st.com>
14032
14033 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
14034 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14035 (arm_call_tls_get_addr): Add FDPIC support.
14036 (legitimize_tls_address): Likewise.
14037 (arm_emit_tls_decoration): Likewise.
14038
14039 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14040 Mickaël Guêné <mickael.guene@st.com>
14041
14042 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14043 support.
14044 (arm_trampoline_init): Likewise.
14045 (arm_trampoline_adjust_address): Likewise.
14046 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14047
14048 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14049 Mickaël Guêné <mickael.guene@st.com>
14050
14051 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14052 (legitimize_pic_address): Enforce binding rules on function
14053 pointers in FDPIC mode.
14054 (arm_assemble_integer): Likewise.
14055
14056 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14057 Mickaël Guêné <mickael.guene@st.com>
14058
14059 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14060 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14061 FDPIC.
14062
14063 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14064 Mickaël Guêné <mickael.guene@st.com>
14065
14066 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14067 field.
14068
14069 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14070 Mickaël Guêné <mickael.guene@st.com>
14071
14072 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14073 in FDPIC mode.
14074 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14075 new function.
14076 * config/arm/arm.c (arm_option_override): Define pic register to
14077 FDPIC_REGNUM.
14078 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14079 have no decl or go through PLT.
14080 (calculate_pic_address_constant): New function.
14081 (legitimize_pic_address): Call calculate_pic_address_constant.
14082 (arm_load_pic_register): Handle TARGET_FDPIC.
14083 (arm_is_segment_info_known): New function.
14084 (arm_pic_static_addr): Add support for FDPIC.
14085 (arm_load_function_descriptor): New function.
14086 (arm_emit_call_insn): Add support for FDPIC.
14087 (arm_assemble_integer): Add support for FDPIC.
14088 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14089 Define. (FDPIC_REGNUM): New define.
14090 * config/arm/arm.md (call): Add support for FDPIC.
14091 (call_value): Likewise.
14092 (restore_pic_register_after_call): New pattern.
14093 (untyped_call): Disable if FDPIC.
14094 (untyped_return): Likewise.
14095 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14096
14097 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14098 Mickaël Guêné <mickael.guene@st.com>
14099
14100 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14101 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14102 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14103 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14104 (CC1_SPEC): Use FDPIC_CC1_SPEC.
14105 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14106 * config/arm/uclinuxfdpiceabi.h: New file.
14107
14108 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14109
14110 * config.gcc: Handle *-*-uclinuxfdpiceabi.
14111
14112 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14113 Mickaël Guêné <mickael.guene@st.com>
14114
14115 * config/arm/arm.opt: Add -mfdpic option.
14116 * doc/invoke.texi: Add documentation for -mfdpic.
14117
14118 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
14119
14120 * expmed.c (extract_bit_field): Update function comment
14121 regarding alt_rtl.
14122 * expr.c (expand_expr_real): Update function comment
14123 regarding alt_rtl.
14124 (expand_misaligned_mem_ref): New helper function.
14125 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14126 Remove duplicate assignment to "base" at case MEM_REF.
14127 Remove a shadowed variable "unsignedp" at case VCE.
14128
14129 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14130
14131 * regset.h (regs_invalidated_by_call_regset): Delete.
14132 (fixed_reg_set_regset): Likewise.
14133 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14134 (fixed_reg_set_regset, persistent_obstack): Likewise.
14135 (init_reg_sets_1, globalize_reg): Update accordingly.
14136 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14137 instead of a bitmap.
14138 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14139 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14140 instead of regs_invalidated_by_call_regset.
14141 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14142 * df-scan.c (df_scan_start_dump): Likewise.
14143 * dse.c (copy_fixed_regs): Likewise.
14144 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14145
14146 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14147
14148 * array-traits.h: New file.
14149 * coretypes.h (array_traits, bitmap_view): New types.
14150 * bitmap.h: Include "array-traits.h"
14151 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14152 (base_bitmap_view, bitmap_view): New classes.
14153 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14154 * hard-reg-set.h: Include array-traits.h.
14155 (array_traits<HARD_REG_SET>): New struct.
14156 * regset.h (IOR_REG_SET_HRS): New macro.
14157 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14158 rather than iterating over each hard register.
14159 * sched-deps.c (sched_analyze_insn): Likewise.
14160 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14161
14162 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14163
14164 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14165 instead of a HARD_REG_SET *.
14166 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14167 (ira_build): Update call accordingly.
14168 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14169
14170 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14171
14172 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14173 (HARD_REG_SET::operator!=): Likewise.
14174 (hard_reg_set_equal_p): Delete.
14175 * cfgcleanup.c (old_insns_match_p): Use == instead of
14176 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14177 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14178 (add_allocno_hard_regs_to_forest): Likewise.
14179 (setup_allocno_available_regs_num): Likewise.
14180 * ira.c (setup_pressure_classes): Likewise.
14181 (setup_allocno_and_important_classes): Likewise.
14182 (setup_reg_class_relations): Likewise.
14183 * lra-lives.c (process_bb_lives): Likewise.
14184 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14185
14186 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14187
14188 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14189 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14190 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14191 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14192 Likewise.
14193 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14194 * ira.c (setup_reg_renumber): Likewise.
14195 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14196 * regrename.c (regrename_find_superclass): Likewise.
14197 * reload1.c (find_reg): Likewise.
14198
14199 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14200
14201 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14202 * caller-save.c (setup_save_areas): Use "&~" instead of
14203 AND_COMPL_HARD_REG_SET.
14204 (save_call_clobbered_regs): Likewise.
14205 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14206 Likewise.
14207 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14208 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14209 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14210 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14211 (mips_conditional_register_usage): Likewise.
14212 * config/sh/sh.c (output_stack_adjust): Likewise.
14213 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14214 (setup_profitable_hard_regs): Likewise.
14215 (get_conflict_and_start_profitable_regs): Likewise.
14216 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14217 (ira_build_conflicts): Likewise.
14218 * ira-costs.c (restrict_cost_classes): Likewise.
14219 (setup_regno_cost_classes_by_aclass): Likewise.
14220 * ira-lives.c (process_bb_node_lives): Likewise.
14221 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14222 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14223 (setup_allocno_and_important_classes, setup_class_translate_array)
14224 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14225 Likewise.
14226 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14227 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14228 (process_alt_operands, inherit_in_ebb): Likewise.
14229 * lra-eliminations.c (update_reg_eliminate): Likewise.
14230 * lra-lives.c (process_bb_lives): Likewise.
14231 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14232 * resource.c (find_dead_or_set_registers): Likewise.
14233 (mark_target_live_regs): Likewise.
14234 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14235 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14236 (implicit_clobber_conflict_p): Likewise.
14237 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14238 (try_shrink_wrapping): Likewise.
14239
14240 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14241
14242 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14243 (HARD_REG_SET::operator|=): Likewise.
14244 (IOR_HARD_REG_SET): Delete.
14245 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14246 IOR_HARD_REG_SET.
14247 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14248 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14249 * final.c (collect_fn_hard_reg_usage): Likewise.
14250 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14251 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14252 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14253 (propagate_some_info_from_allocno): Likewise.
14254 (copy_info_to_removed_store_destinations): Likewise.
14255 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14256 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14257 (fast_allocation): Likewise.
14258 * ira-conflicts.c (ira_build_conflicts): Likewise.
14259 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14260 (process_bb_node_lives): Likewise.
14261 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14262 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14263 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14264 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14265 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14266 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14267 (process_bb_lives): Likewise.
14268 * lra-spills.c (assign_spill_hard_regs): Likewise.
14269 * postreload.c (reload_combine): Likewise.
14270 * reginfo.c (init_reg_sets_1): Likewise.
14271 * regrename.c (merge_overlapping_regs, find_rename_reg)
14272 (merge_chains): Likewise.
14273 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14274 (find_reload_regs, finish_spills, choose_reload_regs_init)
14275 (emit_reload_insns): Likewise.
14276 * reorg.c (redundant_insn): Likewise.
14277 * resource.c (find_dead_or_set_registers, mark_set_resources)
14278 (mark_target_live_regs): Likewise.
14279 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14280 * sched-deps.c (sched_analyze_insn): Likewise.
14281 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14282 (find_best_reg_for_expr): Likewise.
14283 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14284
14285 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14286
14287 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14288 (HARD_REG_SET::operator&): Likewise.
14289 (AND_HARD_REG_SET): Delete.
14290 * caller-save.c (setup_save_areas): Use "&" instead of
14291 AND_HARD_REG_SET.
14292 (save_call_clobbered_regs): Likewise.
14293 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14294 * config/m32c/m32c.c (reduce_class): Likewise.
14295 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14296 * final.c (get_call_reg_set_usage): Likewise.
14297 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14298 (setup_left_conflict_sizes_p): Likewise.
14299 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14300 (ira_build_conflicts): Likewise.
14301 * ira-costs.c (restrict_cost_classes): Likewise.
14302 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14303 (setup_reg_class_relations): Likewise.
14304 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14305 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14306 * resource.c (find_dead_or_set_registers): Likewise.
14307 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14308
14309 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14310
14311 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14312 (COMPL_HARD_REG_SET): Delete.
14313 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14314 of COMPL_HARD_REG_SET.
14315 (try_rename_operands): Likewise.
14316 * config/sh/sh.c (push_regs): Likewise.
14317 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14318 * lra-constraints.c (contains_reg_p): Likewise.
14319 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14320
14321 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14322
14323 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14324 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14325 of COPY_HARD_REG_SET.
14326 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14327 (epiphany_conditional_register_usage): Likewise.
14328 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14329 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14330 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14331 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14332 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14333 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14334 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14335 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14336 * config/sh/sh.c (output_stack_adjust): Likewise.
14337 * final.c (collect_fn_hard_reg_usage): Likewise.
14338 (get_call_reg_set_usage): Likewise.
14339 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14340 (ira_flattening): Likewise.
14341 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14342 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14343 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14344 (ira_reassign_pseudos): Likewise.
14345 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14346 (ira_build_conflicts): Likewise.
14347 * ira-costs.c (restrict_cost_classes): Likewise.
14348 (setup_regno_cost_classes_by_aclass): Likewise.
14349 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14350 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14351 (setup_stack_reg_pressure_class, setup_pressure_classes)
14352 (setup_allocno_and_important_classes, setup_class_translate_array)
14353 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14354 (ira_setup_eliminable_regset): Likewise.
14355 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14356 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14357 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14358 (process_alt_operands, inherit_in_ebb): Likewise.
14359 * lra-lives.c (process_bb_lives): Likewise.
14360 * lra-spills.c (assign_spill_hard_regs): Likewise.
14361 * lra.c (lra): Likewise.
14362 * mode-switching.c (new_seginfo): Likewise.
14363 * postreload.c (reload_combine): Likewise.
14364 * reg-stack.c (straighten_stack): Likewise.
14365 * reginfo.c (save_register_info, restore_register_info): Likewise.
14366 (init_reg_sets_1, record_subregs_of_mode): Likewise
14367 * regrename.c (create_new_chain, rename_chains): Likewise.
14368 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14369 (find_reload_regs): Likewise.
14370 * resource.c (find_dead_or_set_registers): Likewise.
14371 (mark_target_live_regs): Likewise.
14372 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14373
14374 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14375
14376 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14377 (note_pattern_stores): Declare.
14378 (note_stores): Take an rtx_insn *.
14379 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14380 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14381 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14382 (note_stores): Take an rtx_insn * as argument and process
14383 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14384 (note_pattern_stores): ...this.
14385 (find_first_parameter_load): Pass the insn rather than
14386 its pattern to note_stores.
14387 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14388 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14389 (insert_one_insn): Likewise.
14390 * combine.c (combine_instructions): Likewise.
14391 (likely_spilled_retval_p): Likewise.
14392 (try_combine): Use note_pattern_stores instead of note_stores.
14393 (record_dead_and_set_regs): Pass the insn rather than its pattern
14394 to note_stores.
14395 (reg_dead_at_p): Likewise.
14396 * config/bfin/bfin.c (workaround_speculation): Likewise.
14397 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14398 rather than an rtx.
14399 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14400 instead of note_stores.
14401 (frv_optimize_membar_local): Pass the insn rather than its pattern
14402 to note_stores.
14403 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14404 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14405 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14406 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14407 (mips_reorg_process_insns): Likewise.
14408 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14409 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14410 rather than rtxes.
14411 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14412 its pattern to note_stores.
14413 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14414 of note_stores.
14415 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14416 the insn to note_stores.
14417 (prescan_insns_for_dce): Update call accordingly.
14418 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14419 to note_stores.
14420 * df-problems.c (can_move_insns_across): Likewise.
14421 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14422 * function.c (assign_parm_setup_reg): Likewise.
14423 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14424 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14425 (single_set_gcse): Likewise.
14426 * ira.c (validate_equiv_mem): Likewise.
14427 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14428 for no_equiv.
14429 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14430 pattern to note_stores.
14431 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14432 * loop-iv.c (simplify_using_initial_values): Likewise.
14433 * mode-switching.c (optimize_mode_switching): Likewise.
14434 * optabs.c (emit_libcall_block_1): Likewise.
14435 (expand_atomic_compare_and_swap): Likewise.
14436 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14437 (record_opr_changes): Likewise. Remove explicit handling of
14438 CALL_INSN_FUNCTION_USAGE.
14439 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14440 * regcprop.c (kill_clobbered_values): Likewise.
14441 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14442 to note_stores.
14443 * regrename.c (build_def_use): Likewise.
14444 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14445 for mark_not_eliminable.
14446 (reload_as_needed): Pass the insn rather than its pattern
14447 to note_stores.
14448 (emit_output_reload_insns): Likewise.
14449 * resource.c (mark_target_live_regs): Likewise.
14450 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14451 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14452 instead of note_stores.
14453 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14454 its pattern to note_stores.
14455 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14456 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14457
14458 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14459
14460 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14461 than a #define. Use a structure rather than an array as the
14462 fallback definition. Remove special cases for low array sizes.
14463 (const_hard_reg_set): New typedef.
14464 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14465 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14466 (hard_reg_set_empty_p): Likewise.
14467 (SET_HARD_REG_BIT): Use a function rather than a macro to
14468 handle the case in which HARD_REG_SET is a structure.
14469 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14470 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14471 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14472 (IOR_COMPL_HARD_REG_SET): Likewise.
14473 (hard_reg_set_iterator::pset): Constify the pointer target.
14474 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14475 of a "const HARD_REG_SET". Update the handling of non-integer
14476 HARD_REG_SETs.
14477 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14478 * reload.h: Likewise.
14479 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14480 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14481 of a "const HARD_REG_SET".
14482 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14483 (range_in_hard_reg_set_p): Likewise.
14484 * ira-costs.c (restrict_cost_classes): Likewise.
14485 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14486 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14487 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14488 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14489 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14490 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14491 take an unsigned int and open-code the HARD_REG_SET operations.
14492
14493 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14494
14495 * Makefile.in (OBJS): Remove bt-load.o.
14496 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14497 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14498 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14499 document that the option no longer does anything.
14500 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14501 * target.def (branch_target_register_class): Delete.
14502 (branch_target_register_callee_saved): Likewise.
14503 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14504 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14505 * doc/tm.texi: Regenerate.
14506 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14507 (make_pass_branch_target_load_optimize2): Likewise.
14508 * passes.def (pass_branch_target_load_optimize1): Likewise.
14509 (pass_branch_target_load_optimize2): Likewise.
14510 * targhooks.h (default_branch_target_register_class): Likewise.
14511 * targhooks.c (default_branch_target_register_class): Likewise.
14512 * opt-suggestions.c (test_completion_valid_options): Remove
14513 -fbtr-bb-exclusive from the list of test options.
14514 * bt-load.c: Remove.
14515
14516 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14517
14518 * match.pd: Add flag_unsafe_math_optimizations check
14519 before deciding on the widest type in a binary math operation.
14520
14521 2019-09-09 Martin Liska <mliska@suse.cz>
14522
14523 * config/i386/i386.opt: Update comment of removed
14524 options that are preserved only for backward
14525 compatibility.
14526
14527 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14528
14529 PR target/87853
14530 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14531 instead of __v16qs.
14532
14533 PR target/91704
14534 * config/i386/avxintrin.h (__v32qs): New typedef.
14535 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14536 instead of __v32qi.
14537
14538 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14539
14540 * doc/invoke.texi (Option Summary): Cover eBPF.
14541 (eBPF Options): New section.
14542 * doc/extend.texi (BPF Built-in Functions): Likewise.
14543 (BPF Kernel Helpers): Likewise.
14544
14545 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14546
14547 * config.gcc: Support for bpf-*-* targets.
14548 * common/config/bpf/bpf-common.c: New file.
14549 * config/bpf/t-bpf: Likewise.
14550 * config/bpf/predicates.md: Likewise.
14551 * config/bpf/constraints.md: Likewise.
14552 * config/bpf/bpf.opt: Likewise.
14553 * config/bpf/bpf.md: Likewise.
14554 * config/bpf/bpf.h: Likewise.
14555 * config/bpf/bpf.c: Likewise.
14556 * config/bpf/bpf-protos.h: Likewise.
14557 * config/bpf/bpf-opts.h: Likewise.
14558 * config/bpf/bpf-helpers.h: Likewise.
14559 * config/bpf/bpf-helpers.def: Likewise.
14560
14561 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14562
14563 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14564 indirect_calls.
14565
14566 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14567
14568 * opt-functions.awk (integer_range_info): Make sure values are in
14569 numeric context before operating with them.
14570
14571 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14572
14573 * genemit.c (gen_split): Print the filename and line number where the
14574 splitter (or peephole2) was defined, to the dump file.
14575
14576 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14577
14578 PR tree-optimization/91665
14579 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14580 incompatible with the type of PHI result.
14581
14582 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14583
14584 PR target/91684
14585 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14586 gen_unaligned_storedi for 4-byte aligned addresses.
14587
14588 2019-09-06 Jim Wilson <jimw@sifive.com>
14589
14590 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14591 change.
14592
14593 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14594
14595 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14596
14597 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14598
14599 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14600 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14601
14602 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14603
14604 PR target/91654
14605 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14606 cost of SSE->integer and integer->SSE moves from 2 to 6.
14607 (core_cost): Ditto.
14608
14609 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14610
14611 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14612 before testing TYPE_TRANSPARENT_AGGR.
14613 * calls.c (initialize_argument_information, load_register_parameters):
14614 Likewise.
14615
14616 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14617
14618 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14619 high regs.
14620 (cmp_ior): Likewise.
14621
14622 2019-09-06 Martin Liska <mliska@suse.cz>
14623
14624 * doc/match-and-simplify.texi: Separate tuples with ;.
14625
14626 2019-09-06 Martin Liska <mliska@suse.cz>
14627
14628 PR c++/91125
14629 * Makefile.in: Remove tlink.o.
14630 * collect2.c (do_link): New function isolated
14631 from do_tlink.
14632 (main): Use.
14633 * collect2.h (do_tlink): Remove declaration of do_tlink.
14634 * doc/extend.texi: Remove documentation of -frepo.
14635 * doc/invoke.texi: Likewise.
14636 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14637 * tlink.c: Remove.
14638
14639 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14640 Jim Wilson <jimw@sifive.com>
14641
14642 PR target/91635
14643 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14644 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14645 paradoxical_subreg_p (operands[0]).
14646 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14647 use as intermediate value.
14648
14649 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14650
14651 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14652 (sync_compare_and_swap<mode>_insn): Likewise.
14653
14654 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14655
14656 PR middle-end/91615
14657 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14658 without movmisalign optab.
14659
14660 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR middle-end/91001
14663 PR middle-end/91105
14664 PR middle-end/91106
14665 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14666 types, use type of their first field instead of type of
14667 args[i].tree_value.
14668
14669 2019-09-05 Richard Biener <rguenther@suse.de>
14670
14671 PR rtl-optimization/91656
14672 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14673 of early out.
14674
14675 2019-09-05 Richard Biener <rguenther@suse.de>
14676
14677 PR middle-end/90501
14678 * tree-inline.c (declare_return_variable): Mark the return
14679 slot as addressable after building an address of it.
14680
14681 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14682
14683 * doc/install.texi: Update and clarify requirements to build GNAT.
14684
14685 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14686
14687 PR middle-end/91577
14688 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14689 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14690 call to be in memory.
14691 (pass_expand::execute): Call discover_nonconstant_array_refs before
14692 setting currently_expanding_to_rtl.
14693
14694 2019-09-04 Caroline Tice <cmtice@google.com>
14695
14696 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14697 specified together.
14698
14699 2019-09-04 Marek Polacek <polacek@redhat.com>
14700
14701 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14702
14703 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14704
14705 PR target/32413
14706 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14707 for QI and HImode moves between SSE and general registers.
14708
14709 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14710
14711 PR c/78736
14712 * doc/invoke.texi: Document -Wenum-conversion.
14713
14714 2019-09-04 Richard Biener <rguenther@suse.de>
14715
14716 PR rtl-optimization/36262
14717 * postreload-gcse.c: Include intl.h and gcse.h.
14718 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14719 to avoid linear list walk.
14720 (record_last_mem_set_info): Gate off if not computing transparentness.
14721 (get_bb_avail_insn): If transparentness isn't computed give up
14722 early.
14723 (gcse_after_reload_main): Skip compute_transp and extended PRE
14724 if gcse_or_cprop_is_too_expensive says so.
14725
14726 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14727
14728 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14729 noinit section.
14730 (msp430_select_section): Handle decls with the "noinit" attribute with
14731 default_elf_select_section.
14732 Handle SECCAT_RODATA_MERGE_* section types with
14733 default_elf_select_section.
14734 Add comments about handling of unsupported section types.
14735 (msp430_section_type_flags): Remove handling of the noinit section.
14736
14737 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14738
14739 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14740 conflicting msp430-specific attributes.
14741 (msp430_section_attr): Likewise.
14742 Add warnings about conflicts with generic "noinit" and "section"
14743 attributes.
14744 Fix grammar in -mlarge error message.
14745 (msp430_data_attr): Rename to msp430_persist_attr.
14746 Add warnings about conflicts with generic "noinit" and "section"
14747 attributes.
14748 Add warning for when variable is not initialized.
14749 Chain conditionals which prevent the attribute being added.
14750 (ATTR_EXCL): New helper.
14751 (attr_reent_exclusions): New exclusion table.
14752 (attr_naked_exclusions): Likewise.
14753 (attr_crit_exclusions): Likewise.
14754 (attr_lower_exclusions): Likewise.
14755 (attr_upper_exclusions): Likewise.
14756 (attr_either_exclusions): Likewise.
14757 (attr_persist_exclusions): Likewise.
14758 (msp430_attribute_table): Update with exclusion rules.
14759 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14760 has a section.
14761
14762 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14763
14764 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14765 (msp430_handle_generic_attribute): New function.
14766 * doc/tm.texi: Regenerate.
14767 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14768 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14769 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14770 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14771
14772 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14773
14774 PR tree-optimization/91504
14775 * match.pd: Add ((~a & b) ^a) --> (a | b).
14776
14777 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14778
14779 PR target/91604
14780 * config/i386/i386-expand.c (split_double_mode): If there is more than
14781 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14782 already split matching MEM operand instead of calling adjust_address
14783 again.
14784
14785 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14786
14787 * config.gcc: Obsolete spu target. Remove references to spu.
14788 * configure.ac: Remove references to spu.
14789 * configure: Regenerate.
14790 * config/spu/: Remove directory.
14791 * common/config/spu/: Remove directory.
14792
14793 * doc/extend.texi: Remove references to spu.
14794 * doc/invoke.texi: Likewise.
14795 * doc/md.texi: Likewise.
14796 * doc/sourcebuild.texi: Likewise.
14797
14798 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14799
14800 PR middle-end/91603
14801 PR middle-end/91612
14802 PR middle-end/91613
14803 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14804 and SSA_NAME referring to CONSTANT_P correctly.
14805
14806 2019-09-03 Richard Biener <rguenther@suse.de>
14807
14808 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14809 (vn_nary_op_insert): Likewise.
14810 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14811 (vn_nary_op_lookup): Likewise.
14812 (vn_nary_op_insert): Likewise.
14813
14814 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14815
14816 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14817 (*op0, 1) instead of XEXP (*op1, 0).
14818
14819 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14820
14821 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14822 (aarch64_fjcvtzs): New define_insn.
14823 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14824 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14825 Add AARCH64_JSCVT.
14826 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14827 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14828 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14829 __ARM_FEATURE_JCVT where appropriate.
14830 * config/aarch64/arm_acle.h (__jcvt): Define.
14831
14832 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14833
14834 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14835 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14836 (aarch64_<frintnzs_op><mode>): New define_insn.
14837 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14838 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14839 __ARM_FEATURE_FRINT when appropriate.
14840 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14841 frint32x, frint64z, frint64x.
14842 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14843 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14844 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14845 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14846 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14847 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14848 * config/aarch64/iterators.md (VSFDF): Define.
14849 (FRINTNZX): Likewise.
14850 (frintnzs_op): Likewise.
14851
14852 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14853
14854 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14855 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14856 Cortex-A34.
14857 * config/aarch64/aarch64-tune.md: Regenerated.
14858 * doc/invoke.texi: Document the new processors.
14859
14860 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14861
14862 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14863 string.
14864 (ssbs): Likewise.
14865 (sve2): Likewise.
14866 (sve2-sm4): Likewise.
14867 (sveaes): Likewise.
14868 (svesha3): Likewise.
14869 (svebitperm): Likewise.
14870
14871 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14872 Richard Biener <rguenther@suse.de>
14873
14874 PR tree-optimization/91597
14875 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14876 BIT_AND_EXPR optimization for pointers, even if both operand
14877 ranges don't include NULL, the result can be NULL.
14878
14879 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14880
14881 PR middle-end/91605
14882 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14883 (non_mem_decl_p): ...this.
14884 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14885 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14886 unconditionally as before.
14887
14888 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14889
14890 PR target/91323
14891 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14892 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14893 * tree.def (LTGT_EXPR): Likewise.
14894 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14895
14896 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14897
14898 PR go/91617
14899 * fold-const.c (range_check_type): For enumeral and boolean
14900 type, pass 1 to type_for_size langhook instead of
14901 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14902 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14903 (build_range_check): Don't call unsigned_type_for for pointer types.
14904 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14905 range_check_type result.
14906
14907 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14908
14909 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14910 (replace_ref): Do not replace a chain of only two candidates which are
14911 valid memory references.
14912
14913 2019-09-02 Martin Liska <mliska@suse.cz>
14914
14915 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14916 Bail out when we'll end up with the same number of clusters as
14917 at the beginning.
14918 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14919 (jump_table_cluster::can_be_handled): Remove the guard
14920 as it's already handled in ::is_enabled. Allocate output
14921 after early bail out.
14922
14923 2019-09-02 Martin Liska <mliska@suse.cz>
14924
14925 PR gcov-profile/91601
14926 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14927 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14928 also negative edges.
14929 (circuit): Handle also negative edges as they can happen
14930 in some situations.
14931
14932 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14933
14934 PR target/91472
14935 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14936 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14937 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14938
14939 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14940
14941 PR middle-end/91623
14942 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14943 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14944 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14945 zero vector.
14946
14947 PR lto/91572
14948 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14949 GIMPLE_ASM TREE_LIST operands.
14950
14951 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14952
14953 * doc/generic.texi (Unary and Binary Expressions): Mark up
14954 an instance of TYPE_MIN.
14955
14956 2019-08-31 Stafford Horne <shorne@gmail.com>
14957
14958 * config/or1k/constraints.md (t): New constraint.
14959 * config/or1k/or1k.h (GOT_REGS): New register class.
14960 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14961
14962 2019-08-30 Jim Wilson <jimw@sifive.com>
14963
14964 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14965 and -fpic and -mplt then disable -msave-restore and warn.
14966
14967 2019-08-30 Martin Sebor <msebor@redhat.com>
14968
14969 PR middle-end/91599
14970 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14971 the statement doesn't have one.
14972 * gimple-pretty-print.c (percent_G_format): Same.
14973
14974 PR middle-end/91584
14975 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14976 before using them to validate MEM_REF offset.
14977
14978 2019-08-30 Marek Polacek <polacek@redhat.com>
14979
14980 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14981
14982 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14983
14984 * config/arm/arm.md (unaligned_loaddi,
14985 unaligned_storedi): New unspec insn patterns.
14986 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14987 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14988 and unaligned_storedi for 4-byte aligned memory.
14989 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14990 4-byte aligned memory.
14991
14992 2019-08-30 Martin Jambor <mjambor@suse.cz>
14993
14994 tree-optimization/91579
14995 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14996 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14997 appropriate.
14998 (arg_needs_copy_p): Removed.
14999 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15000 arg_needs_copy_p.
15001 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
15002
15003 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15004
15005 * config/i386/i386-features.c
15006 (general_scalar_chain::compute_convert_gain):
15007 Correct cost for double-word shifts.
15008 (general_scalar_to_vector_candidate_p): Reject count operands
15009 greater or equal to mode bitsize.
15010
15011 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15012
15013 * config/i386/i386.c (inline_secondary_memory_needed): Return true
15014 for moves between SSE and non-general registers and between
15015 mask and non-general registers.
15016 (ix86_register_move_cost): Remove stalled comment.
15017
15018 2019-08-29 Richard Biener <rguenther@suse.de>
15019
15020 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15021 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15022
15023 2019-08-29 Richard Biener <rguenther@suse.de>
15024
15025 PR bootstrap/91580
15026 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15027 Do not emit scalar copies for debug-insns, instead replace
15028 their uses with the reg copy used in the chain or reset them
15029 if there is a reaching definition outside of the chain as well.
15030
15031 2019-08-29 Jakub Jelinek <jakub@redhat.com>
15032
15033 PR target/91560
15034 * config/i386/i386-expand.c (expand_vec_perm_movs,
15035 expand_vec_perm_blend, expand_vec_perm_vpermil,
15036 expand_vec_perm_pshufb, expand_vec_perm_1,
15037 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15038 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15039 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15040 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15041 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15042 comments - replace ix86_expand_vec_perm_builtin_1 with
15043 ix86_expand_vec_perm_const_1.
15044 (expand_vec_perm2_vperm2f128_vblend): New function.
15045 (ix86_expand_vec_perm_const_1): New forward declaration. Call
15046 expand_vec_perm2_vperm2f128_vblend as last resort.
15047 (canonicalize_perm): Formatting fix.
15048
15049 PR tree-optimization/91351
15050 * tree-cfg.c (generate_range_test): Use range_check_type instead of
15051 unsigned_type_for.
15052 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15053 range_check_type returns NULL.
15054 * tree-switch-conversion.c (switch_conversion::build_one_array):
15055 Use range_check_type instead of unsigned_type_for, don't perform
15056 linear opt if it returns NULL.
15057 (bit_test_cluster::find_bit_tests): Formatting fix.
15058 (bit_test_cluster::emit): Use range_check_type instead of
15059 unsigned_type_for.
15060 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15061 returns NULL.
15062
15063 2019-08-29 Richard Biener <rguenther@suse.de>
15064
15065 PR tree-optimization/91568
15066 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15067 (vect_update_max_nunits): Add overload for poly_uint64.
15068 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15069 (vect_build_slp_tree): Record max_nunits into the subtree
15070 and merge it upwards.
15071 (vect_print_slp_tree): Print max_nunits.
15072
15073 2019-08-28 Marek Polacek <polacek@redhat.com>
15074
15075 Implement P1152R4: Deprecating some uses of volatile.
15076 PR c++/91361
15077 * doc/invoke.texi: Document -Wvolatile.
15078
15079 2019-08-28 Marek Polacek <polacek@redhat.com>
15080
15081 PR c++/91360 - Implement C++20 P1143R2: constinit.
15082 * doc/invoke.texi: Document -Wc++20-compat.
15083
15084 2019-08-28 Martin Sebor <msebor@redhat.com>
15085
15086 PR tree-optimization/91457
15087 * builtins.c (component_size): New function.
15088 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15089 * builtins.h (compute_objsize): Add argument.
15090 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15091 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15092 (vrp_prop::check_mem_ref): Same.
15093 (vrp_prop::search_for_addr_array): Set no-warning bit.
15094 (check_array_bounds): Same.
15095
15096 2019-08-28 Martin Sebor <msebor@redhat.com>
15097
15098 PR driver/80545
15099 * opts-common.c (option_enabled): Correct checking for language
15100 options.
15101
15102 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
15103
15104 * config/i386/i386.c (ix86_register_move_cost): Do not
15105 limit the cost of moves to/from XMM register to minimum 8.
15106
15107 2019-08-28 Martin Jambor <mjambor@suse.cz>
15108
15109 PR ipa/91468
15110 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15111 checking assert a normal assert to test it really is redundant.
15112 * ipa-prop.c (compute_complex_assign_jump_func): Removed
15113 redundant test.
15114 (update_jump_functions_after_inlining): Removed combining unary
15115 arithmetic operations with an ancestor jump function.
15116 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15117 instead of t.
15118
15119 2019-08-28 Richard Biener <rguenther@suse.de>
15120
15121 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15122 add the MD problem.
15123
15124 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15125 Richard Biener <rguenther@suse.de>
15126
15127 * expr.c (expand_assignment): Handle misaligned DECLs.
15128 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15129 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15130 too.
15131 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15132 * varasm.c (build_constant_desc): Align constants of misaligned types.
15133 * config/arm/predicates.md (aligned_operand): New predicate.
15134 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15135 aligned_operand to check restrictions on memory addresses.
15136 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15137 * config/arm/vec-common.md (mov<VALL>): Likewise.
15138
15139 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15140
15141 PR libgomp/91530
15142 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15143 V_128 iterator instead of VI_128.
15144
15145 2019-08-28 Martin Liska <mliska@suse.cz>
15146
15147 PR tree-optimization/90970
15148 * builtins.c (check_access): Remove assignment to maxread
15149 as it hasn't been used since when it was introduced in r255755.
15150
15151 2019-08-27 Martin Sebor <msebor@redhat.com>
15152
15153 PR tree-optimization/91567
15154 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15155 of unknown strings.
15156 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15157 to PTRDIFF_MAX - 2.
15158
15159 2019-08-27 Jeff Law <law@redhat.com>
15160
15161 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15162 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15163
15164 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15165
15166 PR target/91528
15167 * config/i386/i386-features.c (convert_scalars_to_vector):
15168 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15169 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15170 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15171 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15172
15173 2019-08-27 Richard Biener <rguenther@suse.de>
15174
15175 * config/i386/i386-features.h
15176 (general_scalar_chain::~general_scalar_chain): Add.
15177 (general_scalar_chain::insns_conv): New bitmap.
15178 (general_scalar_chain::n_sse_to_integer): New.
15179 (general_scalar_chain::n_integer_to_sse): Likewise.
15180 (general_scalar_chain::make_vector_copies): Adjust signature.
15181 * config/i386/i386-features.c
15182 (general_scalar_chain::general_scalar_chain): Outline,
15183 initialize new members.
15184 (general_scalar_chain::~general_scalar_chain): New.
15185 (general_scalar_chain::mark_dual_mode_def): Record insns
15186 we need to insert conversions at and count them.
15187 (general_scalar_chain::compute_convert_gain): Account
15188 for conversion instructions at chain boundary.
15189 (general_scalar_chain::make_vector_copies): Generate a single
15190 copy for a def by a specific insn.
15191 (general_scalar_chain::convert_registers): First populate
15192 defs_map, then make copies at out-of chain insns.
15193
15194 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15195
15196 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15197 comment.
15198 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15199
15200 2019-08-27 Martin Liska <mliska@suse.cz>
15201
15202 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15203 loop.
15204 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15205 Enclose in anonymous namespace.
15206 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15207 hard_register initialization in braces.
15208 * tree-vrp.h (value_range_base::supports_type_p): Return false
15209 for function with boolean return type.
15210
15211 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15212
15213 * config/i386/i386.c (emit_i387_cw_initialization)
15214 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15215
15216 2019-08-26 Martin Sebor <msebor@redhat.com>
15217
15218 PR c++/83431
15219 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15220 (sprintf_dom_walker): Remove class.
15221 (get_int_range): Make argument const.
15222 (directive::fmtfunc, directive::set_precision): Same.
15223 (format_none): Same.
15224 (build_intmax_type_nodes): Same.
15225 (adjust_range_for_overflow): Same.
15226 (format_floating): Same.
15227 (format_character): Same.
15228 (format_string): Same.
15229 (format_plain): Same.
15230 (get_int_range): Cast away constness.
15231 (format_integer): Same.
15232 (get_string_length): Call get_range_strlen_dynamic. Handle
15233 null lendata.maxbound.
15234 (should_warn_p): Adjust argument scope qualifier.
15235 (maybe_warn): Same.
15236 (format_directive): Same.
15237 (parse_directive): Same.
15238 (is_call_safe): Same.
15239 (try_substitute_return_value): Same.
15240 (sprintf_dom_walker::handle_printf_call): Rename...
15241 (handle_printf_call): ...to this. Initialize target to host charmap
15242 here instead of in pass_sprintf_length::execute.
15243 (struct call_info): Make global.
15244 (sprintf_dom_walker::compute_format_length): Make global.
15245 (sprintf_dom_walker::handle_gimple_call): Same.
15246 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15247 * print-rtl.c (print_pattern): Reduce the number of spaces to
15248 avoid -Wformat-truncation.
15249 * tree-pass.h (make_pass_warn_printf): New function.
15250 * tree-ssa-strlen.c (strlen_optimize): New variable.
15251 (get_string_length): Add comments.
15252 (get_range_strlen_dynamic): New function.
15253 (check_and_optimize_call): New function.
15254 (handle_integral_assign): New function.
15255 (strlen_check_and_optimize_stmt): Factor code out into
15256 strlen_check_and_optimize_call and handle_integral_assign.
15257 (strlen_dom_walker::evrp): New member.
15258 (strlen_dom_walker::before_dom_children): Use evrp member.
15259 (strlen_dom_walker::after_dom_children): Use evrp member.
15260 (printf_strlen_execute): New function.
15261 (pass_strlen::gate): Update to handle printf calls.
15262 (dump_strlen_info): New function.
15263 (pass_data_warn_printf): New variable.
15264 (pass_warn_printf): New class.
15265 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15266 (handle_printf_call): Same.
15267 * tree-vrp.c (value_range_base::type): Adjust assertion.
15268 * vr-values.c (vr_values::update_value_range): Use type of the first
15269 argument rather than the second.
15270
15271 2019-08-26 Richard Biener <rguenther@suse.de>
15272
15273 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15274 Remove.
15275 (convert_scalars_to_vector): Do not call it.
15276
15277 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15278 Uros Bizjak <ubizjak@gmail.com>
15279
15280 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15281 CASE_MATHFN_FLOATN for roundeven.
15282 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15283 I387_ROUNDEVEN.
15284 (ix86_mode_needed): Likewise.
15285 (ix86_mode_after): Likewise.
15286 (ix86_mode_entry): Likewise.
15287 (ix86_mode_exit): Likewise.
15288 (ix86_emit_mode_set): Likewise.
15289 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15290 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15291 (ix86_entity): Add I387_ROUNDEVEN.
15292 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15293 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15294 (define_int_iterator): Likewise.
15295 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15296 (define_constant): Define ROUND_ROUNDEVEN mode.
15297 (define_attr): Add roundeven mode for i387_cw.
15298 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15299 * internal-fn.def (ROUNDEVEN): New builtin function.
15300 * optabs.def (roundeven_optab): New optab.
15301
15302 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15303
15304 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15305 for ROUNDEVEN.
15306 * builtins.def: Added function definitions for roundeven function
15307 variants.
15308 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15309 function call. Adjust condition for floor, ceil, trunc and round.
15310 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15311 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15312 (integer_valued_real_call_p): Added case for roundeven function.
15313 * real.c (is_even): New function. Returns true if real number is even,
15314 otherwise returns false.
15315 (is_halfway_below): New function. Returns true if real number is
15316 halfway between two integers, else return false.
15317 (real_roundeven): New function. Round real number to nearest integer,
15318 rounding halfway cases towards even.
15319 * real.h (real_value): Added descriptive comments. Added function
15320 declaration for roundeven function.
15321 * doc/extend.texi (Other Builtins): List roundeven variants among
15322 functions which can be handled as builtins.
15323
15324 2019-08-26 Richard Biener <rguenther@suse.de>
15325
15326 PR target/91522
15327 PR target/91527
15328 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15329 New member.
15330 (general_scalar_chain::replace_with_subreg): Remove.
15331 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15332 (general_scalar_chain::convert_reg): Adjust signature.
15333 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15334 iterate over all defs of a reg.
15335 (general_scalar_chain::replace_with_subreg): Remove.
15336 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15337 (general_scalar_chain::make_vector_copies): Populate defs_map,
15338 place copy only after defs that are used as vectors in the chain.
15339 (general_scalar_chain::convert_reg): Emit a copy for a specific
15340 def in a specific instruction.
15341 (general_scalar_chain::convert_op): All reg uses are converted here.
15342 (general_scalar_chain::convert_insn): Emit copies for scalar
15343 uses of defs here. Replace uses with the copies we created.
15344 Replace and convert the def. Adjust REG_DEAD notes, remove
15345 REG_EQUIV/EQUAL notes.
15346 (general_scalar_chain::convert_registers): Only handle copies
15347 into the chain here.
15348
15349 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15350
15351 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15352
15353 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15354
15355 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15356 Add nop_convert case.
15357 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15358 Fold all statements if requested.
15359 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15360 Allow to fold all statements.
15361 * tree-vrp.c (class vrp_folder):
15362 Let substitute_and_fold_engine fold all statements.
15363
15364 2019-08-26 Richard Biener <rguenther@suse.de>
15365
15366 PR tree-optimization/91526
15367 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15368 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15369 TODO_update_address_taken.
15370
15371 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15372
15373 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15374 __STDC_HOSTED__.
15375
15376 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15377
15378 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15379 machine mode for unspec_volatile operand.
15380
15381 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15382
15383 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15384 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15385 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15386 (prefer_neon_for_64bits): Remove.
15387 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15388 (tune_params): Remove PREF_NEON_64_FALSE uses.
15389 (arm_option_override): Remove prefer_neon selection code.
15390 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15391 * config/arm/arm-protos.h (tune_params): Remove
15392 prefer_neon_for_64bits.
15393 (prefer_neon_for_64bits): Remove.
15394
15395 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15396
15397 PR pch/61250
15398 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15399 and issue any diagnostics needed before collecting the pre-PCH
15400 state.
15401
15402 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15403
15404 PR middle-end/91283
15405 * common.opt (fexcess-precision=): Add Optimization flag. Use
15406 flag_excess_precision variable instead of
15407 flag_excess_precision_cmdline.
15408 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15409 member.
15410 (flag_excess_precision): Don't define.
15411 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15412 flag_excess_precision_cmdline. Remove comment.
15413 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15414 and x_flag_excess_precision instead of
15415 frontend_set_flag_excess_precision_cmdline and
15416 x_flag_excess_precision_cmdline.
15417 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15418 x_flag_excess_precision_cmdline.
15419 * toplev.c (init_excess_precision): Remove.
15420 (lang_dependent_init_target): Don't call it.
15421
15422 2019-08-23 Martin Liska <mliska@suse.cz>
15423
15424 * lto-wrapper.c (run_gcc): When setting jobserver
15425 set also parallel to 1. This was done so before r273908.
15426
15427 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15428
15429 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15430 (cortex-a76ae): Likewise.
15431 (cortex-a77): Likewise
15432 * config/arm/arm-tables.opt: Regenerate.
15433 * config/arm/arm-tune.md: Likewise.
15434 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15435 cortex-a77 CPU options.
15436
15437 2019-08-23 Martin Liska <mliska@suse.cz>
15438
15439 * profile.c (instrument_values): Do not set
15440 0 as last argument.
15441 * tree-profile.c (gimple_gen_interval_profiler): Remove
15442 last argument.
15443 (gimple_gen_pow2_profiler): Likewise.
15444 (gimple_gen_topn_values_profiler): Likewise.
15445 (gimple_gen_ic_profiler): Likewise.
15446 (gimple_gen_time_profiler): Likewise.
15447 (gimple_gen_average_profiler): Likewise.
15448 (gimple_gen_ior_profiler): Likewise.
15449 * value-prof.c (dump_histogram_value): Use default
15450 in switch statement instead of HIST_TYPE_MAX.
15451 (stream_in_histogram_value): Likewise.
15452 (gimple_duplicate_stmt_histograms): Do not
15453 use NULL for implicitly set arguments.
15454 (gimple_divmod_values_to_profile): Do not use
15455 reserve+quick_push.
15456 (gimple_indirect_call_to_profile): Likewise.
15457 (gimple_find_values_to_profile): Use implicit
15458 function call arguments.
15459 * value-prof.h (gimple_alloc_histogram_value):
15460 Set default values.
15461 (gimple_gen_interval_profiler): Remove last argument.
15462 (gimple_gen_pow2_profiler): Likewise.
15463 (gimple_gen_topn_values_profiler): Likewise.
15464 (gimple_gen_ic_profiler): Likewise.
15465 (gimple_gen_time_profiler): Likewise.
15466 (gimple_gen_average_profiler): Likewise.
15467 (gimple_gen_ior_profiler): Likewise.
15468
15469 2019-08-22 Martin Sebor <msebor@redhat.com>
15470
15471 PR middle-end/91490
15472 * builtins.c (c_strlen): Rename argument and introduce new local.
15473 Set no-warning bit on original argument.
15474 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15475 Fold empty and zero constructors into empty strings.
15476 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15477 for missing initializers.
15478 * tree.c (build_string_literal): Handle optional argument.
15479 * tree.h (build_string_literal): Add defaulted argument.
15480 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15481 no-warning bit on original expression.
15482
15483 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15484
15485 PR target/91481
15486 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15487 and UNSPEC_DARN_RAW.
15488 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15489 UNSPECV_DARN_RAW.
15490 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15491 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15492 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15493
15494 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15495
15496 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15497 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15498 * config/rs6000/rs6000.md (unspec): ... here.
15499 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15500 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15501 cmpeqb, *cmpeqb_internal): Delete, move to...
15502 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15503 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15504 cmpeqb, *cmpeqb_internal): ... here.
15505
15506 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15507
15508 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15509 intrinsics if __ARM_FP.
15510 Use __ARM_FEATURE_CRC32 ifdef guard.
15511
15512 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15513
15514 * config/arm/arm.md (neon_for_64bits): Remove.
15515 (avoid_neon_for_64bits): Remove.
15516 (arm_adddi3): Always split early.
15517 (arm_subdi3): Always split early.
15518 (negdi2): Remove Neon expansion.
15519 (split zero_extend): Split before reload.
15520 (split sign_extend): Split before reload.
15521
15522 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15523
15524 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15525 (qhs_extenddi_cstr): Likewise.
15526 * config/arm/arm.md (ashldi3): Always expand early.
15527 (ashlsi3): Likewise.
15528 (ashrsi3): Likewise.
15529 (zero_extend<mode>di2): Remove Neon variants.
15530 (extend<mode>di2): Likewise.
15531 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15532 (signed_shift_di3_neon): Likewise.
15533 (unsigned_shift_di3_neon): Likewise.
15534 (ashrdi3_neon_imm_noclobber): Likewise.
15535 (lshrdi3_neon_imm_noclobber): Likewise.
15536 (<shift>di3_neon): Likewise.
15537 (split extend): Remove DI extend split patterns.
15538
15539 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15540
15541 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15542 (split not): Add DImode not splitter.
15543 (anddi3): Remove pattern.
15544 (anddi3_insn): Likewise.
15545 (anddi_zesidi_di): Likewise.
15546 (anddi_sesdi_di): Likewise.
15547 (anddi_notdi_di): Likewise.
15548 (anddi_notzesidi_di): Likewise.
15549 (anddi_notsesidi_di): Likewise.
15550 (iordi3): Likewise.
15551 (iordi3_insn): Likewise.
15552 (iordi_zesidi_di): Likewise.
15553 (iordi_sesidi_di): Likewise.
15554 (xordi3): Likewise.
15555 (xordi3_insn): Likewise.
15556 (xordi_sesidi_di): Likewise.
15557 (xordi_zesidi_di): Likewise.
15558 (one_cmpldi2): Likewise.
15559 (one_cmpldi2_insn): Likewise.
15560 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15561 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15562 alternative.
15563 (iwmmxt_xordi3): Likewise.
15564 (iwmmxt_anddi3): Likewise.
15565 * config/arm/neon.md (orndi3_neon): Remove pattern.
15566 (anddi_notdi_di): Likewise.
15567 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15568 (arm_iordi_operand_neon): Likewise.
15569 (arm_xordi_operand_neon): Likewise.
15570 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15571 (iordi_notzesidi_di): Likewise.
15572 (iordi_notdi_zesidi): Likewise.
15573 (iordi_notsesidi_di): Likewise.
15574
15575 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15576
15577 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15578 insn.
15579 (iorsi3_compare0_scratch): Likewise.
15580
15581 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15582
15583 * config/aarch64/aarch64-simd-builtins.def:
15584 (ld1x4): New.
15585 (st1x4): Likewise.
15586 * config/aarch64/aarch64-simd.md:
15587 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15588 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15589 (aarch64_ld1_x4_<mode>): Likewise.
15590 (aarch64_st1_x4_<mode>): Likewise.
15591 * config/aarch64/arm_neon.h:
15592 (vld1_s8_x4): New function.
15593 (vld1q_s8_x4): Likewise.
15594 (vld1_s16_x4): Likewise.
15595 (vld1q_s16_x4): Likewise.
15596 (vld1_s32_x4): Likewise.
15597 (vld1q_s32_x4): Likewise.
15598 (vld1_u8_x4): Likewise.
15599 (vld1q_u8_x4): Likewise.
15600 (vld1_u16_x4): Likewise.
15601 (vld1q_u16_x4): Likewise.
15602 (vld1_u32_x4): Likewise.
15603 (vld1q_u32_x4): Likewise.
15604 (vld1_f16_x4): Likewise.
15605 (vld1q_f16_x4): Likewise.
15606 (vld1_f32_x4): Likewise.
15607 (vld1q_f32_x4): Likewise.
15608 (vld1_p8_x4): Likewise.
15609 (vld1q_p8_x4): Likewise.
15610 (vld1_p16_x4): Likewise.
15611 (vld1q_p16_x4): Likewise.
15612 (vld1_s64_x4): Likewise.
15613 (vld1_u64_x4): Likewise.
15614 (vld1_p64_x4): Likewise.
15615 (vld1q_s64_x4): Likewise.
15616 (vld1q_u64_x4): Likewise.
15617 (vld1q_p64_x4): Likewise.
15618 (vld1_f64_x4): Likewise.
15619 (vld1q_f64_x4): Likewise.
15620 (vst1_s8_x4): Likewise.
15621 (vst1q_s8_x4): Likewise.
15622 (vst1_s16_x4): Likewise.
15623 (vst1q_s16_x4): Likewise.
15624 (vst1_s32_x4): Likewise.
15625 (vst1q_s32_x4): Likewise.
15626 (vst1_u8_x4): Likewise.
15627 (vst1q_u8_x4): Likewise.
15628 (vst1_u16_x4): Likewise.
15629 (vst1q_u16_x4): Likewise.
15630 (vst1_u32_x4): Likewise.
15631 (vst1q_u32_x4): Likewise.
15632 (vst1_f16_x4): Likewise.
15633 (vst1q_f16_x4): Likewise.
15634 (vst1_f32_x4): Likewise.
15635 (vst1q_f32_x4): Likewise.
15636 (vst1_p8_x4): Likewise.
15637 (vst1q_p8_x4): Likewise.
15638 (vst1_p16_x4): Likewise.
15639 (vst1q_p16_x4): Likewise.
15640 (vst1_s64_x4): Likewise.
15641 (vst1_u64_x4): Likewise.
15642 (vst1_p64_x4): Likewise.
15643 (vst1q_s64_x4): Likewise.
15644 (vst1q_u64_x4): Likewise.
15645 (vst1q_p64_x4): Likewise.
15646 (vst1_f64_x4): Likewise.
15647 (vst1q_f64_x4): Likewise.
15648
15649 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15650
15651 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15652
15653 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15654 Richard Sandiford <richard.sandiford@arm.com>
15655
15656 PR target/88839
15657 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15658 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15659
15660 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15661
15662 PR target/90724
15663 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15664 in reg if it fails aarch64_plus_operand predicate.
15665
15666 2019-08-21 Richard Biener <rguenther@suse.de>
15667
15668 PR tree-optimization/91482
15669 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15670 BUILT_IN_ASSUME_ALIGNED calls.
15671
15672 2019-08-21 Richard Biener <rguenther@suse.de>
15673
15674 PR target/91498
15675 PR target/91503
15676 * config/i386/i386-features.c
15677 (general_scalar_chain::make_vector_copies): Copy stack temporary
15678 rtx when using it multiple times.
15679 (general_scalar_chain::convert_reg): Likewise.
15680
15681 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15682
15683 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15684
15685 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15686
15687 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15688 catch more redundant zero initialization cases.
15689 (dse_dom_walker::dse_optimize_stmt): Likewise.
15690
15691 2019-08-20 Richard Biener <rguenther@suse.de>
15692
15693 PR lto/91307
15694 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15695 by collect2 when targetm.have_ctors_dtors which avoids dragging
15696 in temporary filenames from LTO input objects.
15697
15698 2019-08-20 Richard Biener <rguenther@suse.de>
15699
15700 PR tree-optimization/37242
15701 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15702 to (T)a + (T)b if we know that a + b does not overflow.
15703
15704 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15705
15706 PR rtl-optimization/91347
15707 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15708 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15709
15710 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15711
15712 * calls.h (function_arg_info): Add a pass_by_reference field,
15713 defaulting to false.
15714 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15715 when applying pass-by-reference semantics.
15716 (initialize_argument_information): Likewise.
15717 (emit_library_call_value_1): Likewise.
15718 * function.c (assign_parm_data_one): Remove passed_pointer field.
15719 (assign_parm_find_data_types): Don't set it.
15720 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15721 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15722 arg.pass_by_reference instead of passed_pointer.
15723
15724 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15725
15726 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15727 into a single function_arg_info, updating its fields when we
15728 apply pass-by-reference and promotion semantics. Use the
15729 function_arg_info to track the mode rather than keeping it in
15730 a separate local variable.
15731 (initialize_argument_information): Likewise. Base the final
15732 arg_to_skip on this new function_arg_info rather than creating
15733 a new one from scratch.
15734
15735 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15736
15737 * function.c (assign_parm_data_one): Replace passed_type,
15738 promoted_mode and named_arg with a function_arg_info field.
15739 (assign_parm_find_data_types): Remove local variables and
15740 assign directly to "data". Make data->passed_mode shadow
15741 data->arg.mode until promotion, then assign the promoted
15742 mode to data->arg.mode.
15743 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15744 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15745 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15746 (assign_parm_setup_block, assign_parm_setup_reg)
15747 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15748 arg.mode instead of promoted_mode, arg.type instead of passed_type
15749 and arg.named instead of named_arg. Use data->arg for
15750 function_arg_info structures that had the field values passed_type,
15751 promoted_mode and named_arg. Base other function_arg_infos on
15752 data->arg, changing the necessary properties.
15753
15754 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15755
15756 * calls.h (apply_pass_by_reference_rules): Declare.
15757 * calls.c (apply_pass_by_reference_rules): New function.
15758 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15759 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15760 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15761 * function.c (assign_parm_find_data_types): Likewise.
15762 * var-tracking.c (prepare_call_arguments): Likewise.
15763
15764 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15765
15766 * target.def (must_pass_in_stack): Take a function_arg_info instead
15767 of a mode and a type.
15768 * doc/tm.texi: Regenerate.
15769 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15770 instead of a mode and a type.
15771 (must_pass_in_stack_var_size_or_pad): Likewise.
15772 * calls.c (must_pass_in_stack_var_size): Likewise.
15773 (must_pass_in_stack_var_size_or_pad): Likewise.
15774 (initialize_argument_information): Update call to
15775 targetm.calls.must_pass_in_stack.
15776 (must_pass_va_arg_on_stack): Likewise.
15777 * function.c (assign_parm_find_entry_rtl): Likewise.
15778 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15779 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15780 (alpha_function_arg_advance): Likewise.
15781 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15782 (cr16_function_arg_advance): Likewise.
15783 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15784 (cris_arg_partial_bytes): Likewise.
15785 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15786 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15787 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15788 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15789 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15790 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15791 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15792 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15793 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15794 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15795 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15796 instead of a mode and a type.
15797 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15798 (fr30_num_arg_regs): Likewise.
15799 (fr30_setup_incoming_varargs): Update calls accordingly.
15800 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15801 (fr30_function_arg_advance): Likewise.
15802 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15803 instead of a mode and a type.
15804 * config/gcn/gcn.c (num_arg_regs): Likewise.
15805 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15806 num_arg_regs and targetm.calls.must_pass_in_stack.
15807 (gcn_arg_partial_bytes): Likewise.
15808 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15809 function_arg_info instead of a mode and a type.
15810 (classify_argument): Update call accordingly.
15811 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15812 function_arg_info instead of a mode and a type.
15813 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15814 Likewise.
15815 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15816 (rs6000_parm_needs_stack): Update call accordingly.
15817 (setup_incoming_varargs): Likewise.
15818
15819 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15820
15821 * target.def (callee_copies): Take a function_arg_info instead
15822 of a mode, type and named flag.
15823 * doc/tm.texi: Regenerate.
15824 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15825 instead of a mode, type and named flag.
15826 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15827 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15828 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15829 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15830 instead of a mode, type and named flag.
15831 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15832 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15833 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15834 * calls.h (reference_callee_copied): Take a function_arg_info
15835 instead of a mode, type and named flag.
15836 * calls.c (reference_callee_copied): Likewise.
15837 (initialize_argument_information): Update call accordingly.
15838 (emit_library_call_value_1): Likewise.
15839 * function.c (gimplify_parameters): Likewise.
15840 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15841 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15842 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15843 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15844 (TARGET_CALLEE_COPIES): Define to
15845 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15846 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15847 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15848 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15849 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15850 instead of a mode, type and named flag.
15851 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15852 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15853 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15854 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15855 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15856 (TARGET_CALLEE_COPIES): Define to
15857 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15858 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15859 instead of a mode, type and named flag.
15860 * config/sh/sh.c (sh_callee_copies): Likewise.
15861 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15862 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15863 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15864
15865 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15866
15867 * target.def (function_arg_advance): Take a function_arg_info instead
15868 of a mode, type and named flag.
15869 * doc/tm.texi: Regenerate.
15870 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15871 instead of a mode, type and named flag.
15872 * targhooks.c (default_function_arg_advance): Likewise.
15873 * calls.c (initialize_argument_information): Update call to
15874 targetm.calls.function_arg_advance.
15875 (emit_library_call_value_1): Likewise.
15876 * dse.c (get_call_args): Likewise.
15877 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15878 * function.c (assign_parms, gimplify_parameters): Likewise.
15879 * var-tracking.c (prepare_call_arguments): Likewise.
15880 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15881 function_arg_info instead of a mode, type and named flag.
15882 (aarch64_setup_incoming_varargs): Update call accordingly.
15883 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15884 function_arg_info instead of a mode, type and named flag.
15885 (alpha_setup_incoming_varargs): Update call accordingly.
15886 * config/arc/arc.c (arc_function_arg_advance): Take a
15887 function_arg_info instead of a mode, type and named flag.
15888 (arc_setup_incoming_varargs): Update call accordingly.
15889 * config/arm/arm.c (arm_function_arg_advance): Take a
15890 function_arg_info instead of a mode, type and named flag.
15891 (cmse_func_args_or_return_in_stack): Update call accordingly.
15892 (arm_function_ok_for_sibcall): Likewise.
15893 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15894 * config/avr/avr.c (avr_function_arg_advance): Take a
15895 function_arg_info instead of a mode, type and named flag.
15896 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15897 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15898 (c6x_call_saved_register_used): Update call accordingly.
15899 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15900 function_arg_info instead of a mode, type and named flag.
15901 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15902 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15903 (csky_setup_incoming_varargs): Update call accordingly.
15904 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15905 function_arg_info instead of a mode, type and named flag.
15906 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15907 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15908 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15909 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15910 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15911 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15912 (ix86_setup_incoming_varargs): Update call accordingly.
15913 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15914 function_arg_info instead of a mode, type and named flag.
15915 (ia64_setup_incoming_varargs): Update call accordingly.
15916 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15917 function_arg_info instead of a mode, type and named flag.
15918 (iq2000_expand_prologue): Update call accordingly.
15919 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15920 function_arg_info instead of a mode, type and named flag.
15921 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15922 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15923 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15924 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15925 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15926 Likewise.
15927 (microblaze_expand_prologue): Update call accordingly.
15928 * config/mips/mips.c (mips_function_arg_advance): Take a
15929 function_arg_info instead of a mode, type and named flag.
15930 (mips_setup_incoming_varargs): Update call accordingly.
15931 (mips_output_args_xfer): Likewise.
15932 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15933 function_arg_info instead of a mode, type and named flag.
15934 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15935 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15936 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15937 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15938 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15939 (nios2_setup_incoming_varargs): Update call accordingly.
15940 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15941 function_arg_info instead of a mode, type and named flag.
15942 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15943 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15944 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15945 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15946 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15947 (riscv_setup_incoming_varargs): Update call accordingly.
15948 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15949 function_arg_info instead of a mode, type and named flag.
15950 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15951 Likewise.
15952 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15953 (rs6000_parm_needs_stack): Update call accordingly.
15954 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15955 instead of a mode, type and named flag.
15956 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15957 (s390_call_saved_register_used): Update call accordingly.
15958 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15959 instead of a mode, type and named flag.
15960 (sh_output_mi_thunk): Update call accordingly.
15961 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15962 function_arg_info instead of a mode, type and named flag.
15963 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15964 (spu_setup_incoming_varargs): Update call accordingly.
15965 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15966 function_arg_info instead of a mode, type and named flag.
15967 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15968 (tilegx_setup_incoming_varargs): Update call accordingly.
15969 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15970 function_arg_info instead of a mode, type and named flag.
15971 (tilegx_setup_incoming_varargs): Update call accordingly.
15972 * config/v850/v850.c (v850_function_arg_advance): Take a
15973 function_arg_info instead of a mode, type and named flag.
15974 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15975 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15976 (visium_setup_incoming_varargs): Update call accordingly.
15977 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15978 function_arg_info instead of a mode, type and named flag.
15979
15980 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15981
15982 * target.def (function_arg, function_incoming_arg): Take a
15983 function_arg_info instead of a mode, tree and named flag.
15984 * doc/tm.texi: Regenerate.
15985 * targhooks.h (default_function_arg): Take a function_arg_info
15986 instead of a mode, tree and named flag.
15987 (default_function_incoming_arg): Likewise.
15988 * targhooks.c (default_function_arg): Likewise.
15989 (default_function_incoming_arg): Likewise.
15990 * calls.h (function_arg_info::end_marker_p): New function.
15991 (function_arg_info::end_marker): Likewise.
15992 * calls.c (prepare_call_address, initialize_argument_information)
15993 (expand_call, emit_library_call_value_1): Update calls to
15994 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15995 * dse.c: Include calls.h.
15996 (get_call_args): Update call to targetm.calls.function_arg.
15997 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15998 * var-tracking.c (prepare_call_arguments): Likewise.
15999 * function.c (assign_parm_find_entry_rtl): Update call to
16000 targetm.calls.function_incoming_arg.
16001 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16002 function_arg_info instead of a mode, tree and named flag.
16003 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16004 * config/arc/arc.c (arc_function_arg): Likewise.
16005 * config/arm/arm.c (arm_function_arg): Likewise.
16006 (cmse_func_args_or_return_in_stack): Update call accordingly.
16007 (arm_function_ok_for_sibcall): Likewise.
16008 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16009 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16010 instead of a mode, tree and named flag.
16011 * config/bfin/bfin.c (bfin_function_arg): Likewise.
16012 * config/c6x/c6x.c (c6x_function_arg): Likewise.
16013 (c6x_call_saved_register_used): Update call accordingly.
16014 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16015 instead of a mode, tree and named flag.
16016 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16017 (cris_function_arg_1): Likewise.
16018 * config/csky/csky.c (csky_function_arg): Likewise.
16019 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16020 * config/fr30/fr30.c (fr30_function_arg): Likewise.
16021 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16022 (frv_function_arg_1): Likewise.
16023 * config/ft32/ft32.c (ft32_function_arg): Likewise.
16024 * config/gcn/gcn.c (gcn_function_arg): Likewise.
16025 * config/h8300/h8300.c (h8300_function_arg): Likewise.
16026 * config/i386/i386.c (ix86_function_arg): Likewise.
16027 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16028 (ia64_function_arg_1): Likewise.
16029 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16030 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16031 accordingly.
16032 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16033 instead of a mode, tree and named flag.
16034 * config/m32c/m32c.c (m32c_function_arg): Likewise.
16035 * config/m32r/m32r.c (m32r_function_arg): Likewise.
16036 * config/m68k/m68k.c (m68k_function_arg): Likewise.
16037 * config/mcore/mcore.c (mcore_function_arg): Likewise.
16038 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16039 (microblaze_expand_prologue): Update call accordingly.
16040 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16041 instead of a mode, tree and named flag.
16042 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16043 (mmix_function_arg_1): Likewise.
16044 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16045 * config/moxie/moxie.c (moxie_function_arg): Likewise.
16046 * config/msp430/msp430.c (msp430_function_arg): Likewise.
16047 * config/nds32/nds32.c (nds32_function_arg): Likewise.
16048 * config/nios2/nios2.c (nios2_function_arg): Likewise.
16049 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16050 (nvptx_function_incoming_arg): Likewise.
16051 * config/or1k/or1k.c (or1k_function_arg): Likewise.
16052 * config/pa/pa.c (pa_function_arg): Likewise.
16053 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16054 * config/pru/pru.c (pru_function_arg): Likewise.
16055 * config/riscv/riscv.c (riscv_function_arg): Likewise.
16056 * config/rl78/rl78.c (rl78_function_arg): Likewise.
16057 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16058 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16059 (rs6000_parm_needs_stack): Update call accordingly.
16060 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16061 instead of a mode, tree and named flag.
16062 * config/s390/s390.c (s390_function_arg): Likewise.
16063 (s390_call_saved_register_used): Update call accordingly.
16064 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16065 instead of a mode, tree and named flag.
16066 (sh_output_mi_thunk): Update call accordingly.
16067 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16068 (sparc_function_incoming_arg): Take a function_arg_info instead of
16069 a mode, tree and named flag.
16070 * config/spu/spu.c (spu_function_arg): Likewise.
16071 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16072 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16073 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16074 * config/v850/v850.c (v850_function_arg): Likewise.
16075 * config/vax/vax.c (vax_function_arg): Likewise.
16076 * config/visium/visium.c (visium_function_arg): Likewise.
16077 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16078 (xtensa_function_incoming_arg): Likewise.
16079
16080 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16081
16082 * target.def (setup_incoming_varargs): Take a function_arg_info
16083 instead of a mode and tree.
16084 * doc/tm.texi: Regenerate.
16085 * targhooks.h (default_setup_incoming_varargs): Take a
16086 function_arg_info instead of a mode and tree.
16087 * targhooks.c (default_setup_incoming_varargs): Likewise.
16088 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16089 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16090 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16091 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16092 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16093 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16094 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16095 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16096 Likewise.
16097 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16098 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16099 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16100 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16101 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16102 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16103 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16104 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16105 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16106 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16107 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16108 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16109 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16110 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16111 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16112 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16113 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16114 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16115 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16116 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16117 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16118 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16119 * function.c (assign_parms_setup_varargs): Update call to
16120 targetm.calls.setup_incoming_varargs.
16121
16122 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16123
16124 * target.def (pass_by_reference): Take a function_arg_info instead
16125 of a mode, type and named flag.
16126 * doc/tm.texi: Regenerate.
16127 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16128 accordingly.
16129 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16130 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16131 function_arg_info instead of a mode, type and named flag.
16132 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16133 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16134 mode, type and named flag.
16135 * calls.c (pass_by_reference): Likewise.
16136 (pass_va_arg_by_reference): Update call accordingly.
16137 (initialize_argument_information): Likewise.
16138 (emit_library_call_value_1): Likewise.
16139 * function.c (assign_parm_find_data_types): Likewise.
16140 * var-tracking.c (prepare_call_arguments): Likewise.
16141 * stor-layout.c: Include calls.h.
16142 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16143 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16144 function_arg_info instead of a mode, type and named flag.
16145 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16146 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16147 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16148 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16149 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16150 (c6x_call_saved_register_used): Update call to pass_by_reference.
16151 * config/cris/cris.c (cris_pass_by_reference): Take a
16152 function_arg_info instead of a mode, type and named flag.
16153 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16154 function_arg_info instead of a mode, type and named flag.
16155 (epiphany_arg_partial_bytes): Update call accordingly.
16156 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16157 function_arg_info instead of a mode, type and named flag.
16158 (ft32_arg_partial_bytes): Update call accordingly.
16159 * config/i386/i386.c (ix86_pass_by_reference): Take a
16160 function_arg_info instead of a mode, type and named flag.
16161 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16162 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16163 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16164 (m32r_return_in_memory): Update call accordingly.
16165 * config/mips/mips.c (mips_pass_by_reference): Take a
16166 function_arg_info instead of a mode, type and named flag.
16167 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16168 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16169 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16170 (moxie_arg_partial_bytes): Update call accordingly.
16171 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16172 function_arg_info instead of a mode, type and named flag.
16173 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16174 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16175 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16176 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16177 (riscv_return_in_memory): Update call accordingly.
16178 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16179 function_arg_info instead of a mode, type and named flag.
16180 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16181 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16182 * config/s390/s390.c (s390_pass_by_reference): Take a
16183 function_arg_info instead of a mode, type and named flag.
16184 (s390_call_saved_register_used): Update call accordingly.
16185 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16186 instead of a mode, type and named flag.
16187 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16188 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16189 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16190 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16191 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16192 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16193
16194 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16195
16196 * target.def (arg_partial_bytes): Take a function_arg_info instead
16197 of a mode, type and named flag.
16198 * doc/tm.texi: Regenerate.
16199 * target.h (function_arg_info): Declare.
16200 * calls.h (function_arg_info): New class.
16201 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16202 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16203 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16204 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16205 * calls.c (initialize_argument_information): Update call to
16206 targetm.calls.partial_bytes.
16207 (emit_library_call_value_1): Likewise.
16208 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16209 * function.c (assign_parm_find_entry_rtl): Likewise.
16210 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16211 function_arg_info instead of a mode, type and named flag.
16212 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16213 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16214 (cmse_func_args_or_return_in_stack): Update accordingly.
16215 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16216 function_arg_info instead of a mode, type and named flag.
16217 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16218 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16219 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16220 * config/fr30/fr30.c: Include calls.h.
16221 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16222 type and named flag.
16223 * config/frv/frv.c: Include calls.h.
16224 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16225 type and named flag.
16226 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16227 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16228 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16229 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16230 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16231 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16232 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16233 Likewise.
16234 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16235 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16236 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16237 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16238 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16239 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16240 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16241 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16242 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16243 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16244 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16245 (rs6000_parm_needs_stack): Update call accordingly.
16246 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16247 function_arg_info instead of a mode, type and named flag.
16248 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16249 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16250
16251 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16252
16253 * calls.h (must_pass_va_arg_in_stack): Declare.
16254 * calls.c (must_pass_va_arg_in_stack): New function.
16255 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16256 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16257 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16258 Likewise.
16259 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16260
16261 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16262
16263 * calls.h (pass_va_arg_by_reference): Declare.
16264 * calls.c (pass_va_arg_by_reference): New function.
16265 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16266 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16267 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16268 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16269 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16270 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16271 (mips_gimplify_va_arg_expr): Likewise.
16272 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16273 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16274 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16275 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16276 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16277 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16278 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16279 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16280 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16281 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16282 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16283
16284 2019-08-20 Richard Biener <rguenther@suse.de>
16285
16286 PR target/91498
16287 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16288 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16289 (convert_scalars_to_vector): Add timode_p parameter and use it
16290 to guard TImode-only operation.
16291 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16292 (pass_stv::execute): Pass down timode_p.
16293
16294 2019-08-20 Lili Cui <lili.cui@intel.com>
16295
16296 * common/config/i386/i386-common.c
16297 (processor_names): Add tigerlake and cooperlake.
16298 (processor_alias_table): Add tigerlake and cooperlake.
16299 * config.gcc: Add -march=tigerlake and cooperlake.
16300 * config/i386/driver-i386.c
16301 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16302 Add "has_avx" to classify processor.
16303 * config/i386/i386-builtins.c (processor_model) :
16304 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16305 (arch_names_table): Add tigerlake and cooperlake.
16306 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16307 and PROCESSOR_COOPERLAKE.
16308 * config/i386/i386-c.c
16309 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16310 * config/i386/i386-options.c
16311 (m_TIGERLAKE): Define.
16312 (m_COOPERLAKE): Ditto.
16313 (m_CORE_AVX512): Ditto.
16314 (processor_cost_table): Add cascadelake.
16315 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16316 * config/i386/i386.h
16317 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16318 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16319 (PTA_MOVDIRI): Ditto.
16320 (PTA_MOVDIR64B): Ditto.
16321 (PTA_COOPERLAKE): Ditto.
16322 (PTA_TIGERLAKE): Ditto.
16323 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16324 * doc/extend.texi: Add tigerlake and cooperlake.
16325 * doc/invoke.texi: Add tigerlake and cooperlake.
16326
16327 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16328
16329 * doc/install.texi (Specific, alpha): Remove note to use
16330 binutils 2.11.2 or later.
16331
16332 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16333
16334 PR middle-end/89544
16335 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16336 when possible.
16337
16338 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16339
16340 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16341 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16342 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16343 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16344 * config/aarch64/constraints.md (Dt): New constraint
16345 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16346
16347 2019-08-19 Richard Biener <rguenther@suse.de>
16348
16349 PR tree-optimization/91403
16350 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16351 cases we can handle with tail-recursion...
16352 (follow_ssa_edge_expr): ... here. Do so.
16353
16354 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16355
16356 PR target/91441
16357 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16358 implemented for -fsanitize=kernel-address, and merge check logic
16359 with -fsanitize=address.
16360
16361 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16362
16363 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16364 for cpu and machine. Factor 64/32b builtins.
16365
16366 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16367
16368 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16369 gone, point to sourceforge.net.
16370
16371 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16372
16373 * doc/ux.texi (User Experience Guidelines): Update reference.
16374
16375 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16376
16377 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16378 not LGPL".
16379
16380 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16381
16382 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16383 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16384
16385 2019-08-16 Martin Sebor <msebor@redhat.com>
16386
16387 * tree.def (TYPE_SIZE): Clarify.
16388 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16389
16390 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16391
16392 PR tree-optimization/91109
16393 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16394 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16395 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16396
16397 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16398
16399 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16400 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16401 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16402 (uavg<mode>3_ceil): New expander.
16403 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16404 mode iterator when creating CONST1_RTX.
16405 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16406 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16407 mode iterator for const1_operand predicate.
16408
16409 2019-08-16 Richard Biener <rguenther@suse.de>
16410
16411 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16412 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16413 follow_ssa_edge.
16414 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16415 (analyze_evolution_in_loop): Likewise.
16416 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16417 (follow_ssa_edge_expr): ... here. Refactor code.
16418
16419 2019-08-16 Richard Biener <rguenther@suse.de>
16420
16421 PR target/91469
16422 * config/i386/i386-features.c
16423 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16424
16425 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16426
16427 PR other/91255
16428 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16429 only if subst_name matches curr_attr string.
16430
16431 2019-08-16 Richard Biener <rguenther@suse.de>
16432
16433 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16434 stmt at gsi_p, instead replace it with a NOP removed later.
16435 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16436 that became dead because of that.
16437
16438 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16439
16440 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16441 for which we can't represent a range.
16442 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16443 set_varying.
16444 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16445 Set VR_UNDEFINED if type is not supported.
16446 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16447 * tree-vrp.c (value_range_base::check): Assert that a varying has
16448 min/max set.
16449 (value_range_base::equal_p): Early bail for undefines.
16450 (value_range_base::set_varying): Accept a type.
16451 (value_range::set_varying): Same.
16452 (value_range_base::type): VARYING can have a type, while UNDEFINE
16453 is typeless.
16454 (value_range_base::dump): Print type for VARYING nodes.
16455 (value_range_base::set): Add type to VARYING.
16456 (extract_range_from_multiplicative_op): Pass type to set_varying.
16457 (extract_range_from_binary_expr): Same.
16458 (value_range_base::intersect_helper): Same.
16459 (value_range_base::union_helper): Same.
16460 (value_range_base::normalize_symbolics): Same.
16461 (determine_value_range_1): Same.
16462 * tree-vrp.h (class value_range_base): Add type to set_varying.
16463 Add prototype for dump(void).
16464 Add prototype for supports_type_p.
16465 (class value_range): Add type to set_varying.
16466 Add prototype for dump(void).
16467 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16468 set_varying.
16469 (vr_values::get_lattice_entry): Set varying even if propagation
16470 finished.
16471 Pass type to set_varying.
16472 (vr_values::get_value_range): Remove vr_const_varying.
16473 Reallocate the lattice if needed.
16474 (vr_values::update_value_range): Pass type to set_varying.
16475 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16476 (vr_values::extract_range_from_binary_expr): Same.
16477 (vr_values::extract_range_from_unary_expr): Same.
16478 (vr_values::extract_range_from_cond_expr): Same.
16479 (vr_values::check_for_binary_op_overflow): Same.
16480 (vr_values::extract_range_basic): Same.
16481 (vr_values::extract_range_from_assignment): Same.
16482 (vr_values::vr_values): Increase size of num_vr_values.
16483 (vr_values::extract_range_from_phi_node): Pass type to
16484 set_varying.
16485
16486 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16487
16488 PR target/90878
16489 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16490 for costs of hard register moves.
16491 (ix86_register_move_cost): Likewise.
16492 * config/i386/i386.h (processor_costs): Move costs of hard
16493 register moves to hard_register. Add int_load, int_store,
16494 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16495 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16496 for costs of RTL expressions.
16497 * config/i386/x86-tune-costs.h: Move costs of hard register
16498 moves to hard_register. Duplicate int_load, int_store,
16499 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16500 sse_load, sse_store for costs of RTL expressions.
16501
16502 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16503
16504 * target.def (setup_incoming_vararg_bounds): Remove.
16505 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16506 * doc/tm.texi: Regenerate.
16507 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16508 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16509 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16510 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16511
16512 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16513
16514 MSP430: Fix lines over 80 characters long in
16515 config/msp430/*.{c,h} files
16516
16517 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16518 specifier in string.
16519 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16520 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16521 redundant old comment.
16522 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16523 Split line more than 80 characters long.
16524 * config/msp430/msp430.c (msp430_option_override): Likewise.
16525 (msp430_return_in_memory): Likewise.
16526 (msp430_gimplify_va_arg_expr): Likewise.
16527 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16528 (msp430_legitimate_constant): Likewise.
16529 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16530 (msp430_attr): Likewise.
16531 (msp430_data_attr): Likewise.
16532 (msp430_start_function): Likewise.
16533 (gen_prefix): Likewise.
16534 (msp430_init_sections): Likewise.
16535 (msp430_select_section): Likewise.
16536 (msp430_function_section): Likewise.
16537 (msp430_unique_section): Likewise.
16538 (msp430_output_aligned_decl_common): Likewise.
16539 (msp430_do_not_relax_short_jumps): Likewise.
16540 (msp430_init_builtins): Likewise.
16541 (msp430_expand_delay_cycles): Likewise.
16542 (msp430_expand_prologue): Likewise.
16543 (msp430_expand_epilogue): Likewise.
16544 (msp430_expand_helper): Likewise.
16545 (msp430_split_movsi): Likewise.
16546 (msp430_print_operand): Likewise.
16547 (msp430_return_addr_rtx): Likewise.
16548 (msp430x_extendhisi): Likewise.
16549 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16550 (ASM_SPEC): Likewise.
16551 Remove very obvious comments.
16552 (LIB_SPEC): Split line more than 80 characters long.
16553 (EH_RETURN_HANDLER_RTX): Likewise.
16554 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16555
16556 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16557
16558 MSP430: Fix whitespace errors and incorrect indentation in
16559 config/msp430/*.{c,h} files
16560
16561 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16562 (msp430_select_hwmult_lib): Likewise.
16563 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16564 (msp430_extract_mcu_data): Likewise.
16565 (struct t_msp430_mcu_data): Likewise.
16566 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16567 before left square bracket.
16568 (msp430_option_override): Fix indentation.
16569 (msp430_hard_regno_nregs_with_padding): Likewise.
16570 (msp430_initial_elimination_offset): Likewise.
16571 (msp430_special_register_convention_p): Remove whitespace before left
16572 square bracket and after exclamation mark.
16573 (msp430_evaluate_arg): Likewise.
16574 (msp430_callee_copies): Fix indentation.
16575 (msp430_gimplify_va_arg_expr): Likewise.
16576 (msp430_function_arg_advance): Remove whitespace before left square
16577 bracket.
16578 (reg_ok_for_addr): Likewise.
16579 (msp430_preserve_reg_p): Likewise.
16580 (msp430_compute_frame_info): Likewise.
16581 (msp430_asm_output_addr_const_extra): Add space between function name
16582 and open parenthesis.
16583 (has_section_name): Fix indentation.
16584 (msp430_attr): Remove trailing whitespace.
16585 (msp430_section_attr): Likewise.
16586 (msp430_data_attr): Likewise.
16587 (struct msp430_attribute_table): Fix comment and whitespace.
16588 (msp430_start_function): Remove whitespace before left square bracket.
16589 Add space between function name and open parenthesis.
16590 (msp430_select_section): Remove trailing whitespace.
16591 (msp430_section_type_flags): Remove trailing whitespace.
16592 (msp430_unique_section): Remove space before closing parenthesis.
16593 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16594 (msp430_builtins): Remove whitespace before left square bracket.
16595 (msp430_init_builtins): Fix indentation.
16596 (msp430_expand_prologue): Remove whitespace before left square bracket.
16597 Remove space before closing parenthesis.
16598 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16599 (msp430_split_movsi): Remove space before closing parenthesis.
16600 (helper_function_name_mappings): Fix indentation.
16601 (msp430_use_f5_series_hwmult): Fix whitespace.
16602 (use_32bit_hwmult): Likewise.
16603 (msp430_no_hwmult): Likewise.
16604 (msp430_output_labelref): Remove whitespace before left square bracket.
16605 (msp430_print_operand_raw): Likewise.
16606 (msp430_print_operand_addr): Likewise.
16607 (msp430_print_operand): Add two spaces after '.' in comment.
16608 Fix trailing whitespace.
16609 (msp430x_extendhisi): Fix indentation.
16610 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16611 tab.
16612 (PC_REGNUM): Likewise.
16613 (STACK_POINTER_REGNUM): Likewise.
16614 (CC_REGNUM): Likewise.
16615
16616 2019-08-15 Richard Biener <rguenther@suse.de>
16617
16618 PR target/91454
16619 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16620 helper.
16621 (general_scalar_chain::make_vector_copies): Use it.
16622
16623 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16624
16625 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16626
16627 2019-08-15 Martin Liska <mliska@suse.cz>
16628
16629 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16630 operators with no arguments.
16631 (eliminate_unnecessary_stmts): Likewise here.
16632
16633 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16634
16635 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16636 <case COMPARE>: Revert 2019-08-14 change.
16637 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16638 for (TARGET_64BIT || mode != DImode).
16639
16640 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16641
16642 * tree-vrp.c (value_range_base::set): Merge in code from
16643 value_range_base::set_and_canonicalize.
16644 Enforce canonicalization at set time.
16645 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16646 (value_range_base::set_undefined): Inline call to set().
16647 (value_range_base::set_varying): Same.
16648 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16649 (vrp_val_max): New argument handle_pointers.
16650 (vrp_val_min): Same.
16651 (ranges_from_anti_range): Same.
16652 (extract_range_into_wide_ints): Use tree argument instead of sign
16653 and precision.
16654 (extract_range_from_multiplicative_op): Take in tree type instead
16655 of precision and sign. Adapt function for canonicalized ranges.
16656 (extract_range_from_binary_expr): Pass type to
16657 extract_range_from_multiplicative_op.
16658 Adapt for canonicalized ranges.
16659 (extract_range_from_unary_expr): Same.
16660 (value_range_base::intersect_helper): Adjust for canonicalized
16661 ranges.
16662 (value_range_base::union_helper): Same.
16663 (value_range_base::normalize_symbolics): New.
16664 * tree-vrp.h (class value_range_base): Remove
16665 set_and_canonicalize.
16666 New prototype for normalize_symbolics.
16667 (class value_range): Remove set_and_canonicalize.
16668 (vrp_val_min): Adjust prototype.
16669 (vrp_val_max): Same.
16670 * vr-values.c
16671 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16672 instead of set_and_canonicalize.
16673
16674 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16675
16676 PR middle-end/91444
16677 * tree-vect-stmts.c (vectorizable_call): Check that the function
16678 is a BUILT_IN_MD function before passing it to
16679 targetm.vectorize.builtin_md_vectorized_function.
16680
16681 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16682
16683 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16684 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16685 (aarch64_select_early_remat_modes): Use it.
16686
16687 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16688
16689 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16690 16 for SVE predicates even if they are fixed-length.
16691
16692 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16693
16694 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16695 operand order match the MOV /Z alias.
16696
16697 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16698
16699 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16700 the vector pattern as an aarch64_svpattern argument. Update the
16701 overloaded caller accordingly.
16702 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16703 (aarch64_output_sve_vector_inc_dec): Likewise.
16704
16705 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16706
16707 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16708 multiplication case, try to compute VG * (lowest set bit) directly
16709 rather than always basing the multiplication on VG. Use
16710 expand_mult for the multiplication if we can.
16711
16712 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16713
16714 * config/aarch64/aarch64-protos.h
16715 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16716 (aarch64_sve_inc_dec_immediate_p): Rename to...
16717 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16718 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16719 (aarch64_output_sve_scalar_inc_dec): Declare.
16720 (aarch64_output_sve_inc_dec_immediate): Rename to...
16721 (aarch64_output_sve_vector_inc_dec): ...this.
16722 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16723 (aarch64_output_sve_scalar_inc_dec): New functions.
16724 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16725 arguments. Only handle true ADDVL and ADDPL instructions;
16726 don't emit an INC or DEC.
16727 (aarch64_sve_inc_dec_immediate_p): Rename to...
16728 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16729 (aarch64_output_sve_inc_dec_immediate): Rename to...
16730 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16731 aarch64_sve_vector_inc_dec_immediate_p.
16732 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16733 (aarch64_sve_plus_immediate): New predicates.
16734 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16735 rather than aarch64_sve_addvl_addpl_immediate.
16736 (aarch64_sve_inc_dec_immediate): Rename to...
16737 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16738 aarch64_sve_vector_inc_dec_immediate_p.
16739 (aarch64_sve_add_operand): Update accordingly.
16740 * config/aarch64/constraints.md (Uai): New constraint.
16741 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16742 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16743 operand into a register if it satisfies aarch64_sve_plus_immediate.
16744 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16745 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16746 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16747 aarch64_output_sve_vector_inc_dec instead of
16748 aarch64_output_sve_inc_dec_immediate.
16749
16750 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16751
16752 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16753 (UNSPEC_REVW): New constants.
16754 (elem_bits): New mode attribute.
16755 (SVE_INT_UNARY): New int iterator.
16756 (optab): Handle UNSPEC_REV[BHW].
16757 (sve_int_op): New int attribute.
16758 (min_elem_bits): Handle VNx16QI and the predicate modes.
16759 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16760 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16761 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16762 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16763 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16764 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16765 unspecs based on the total width of the reversed data.
16766 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16767 reinterpret followed by a subreg on big-endian targets.
16768
16769 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16770 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16771
16772 * config/aarch64/aarch64-sve.md
16773 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16774 alternatives in which one of the inputs is in the same register
16775 as the output.
16776
16777 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16778
16779 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16780 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16781
16782 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16783
16784 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16785 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16786
16787 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16788 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16789
16790 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16791 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16792 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16793
16794 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16795 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16796
16797 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16798 Add an alternative that uses reversed shifts.
16799
16800 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16801
16802 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16803 struct.
16804
16805 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16806
16807 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16808 a commutativity marker.
16809
16810 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16811 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16812
16813 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16814 (aarch64_prepare_sve_cond_int_fma): Declare.
16815 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16816 (aarch64_prepare_sve_int_fma): New functions.
16817 (aarch64_prepare_sve_cond_int_fma): Likewise.
16818 * config/aarch64/aarch64-sve.md
16819 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16820 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16821 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16822 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16823 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16824 (*madd<mode>): Rename to...
16825 (*fma<mode>4): ...this.
16826 (*msub<mode>): Rename to...
16827 (*fnma<mode>4): ...this.
16828
16829 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16830 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16831
16832 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16833 Print 2.0 naturally.
16834 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16835 * config/aarch64/predicates.md
16836 (aarch64_sve_float_negated_arith_immediate): New predicate,
16837 renamed from aarch64_sve_float_arith_with_sub_immediate.
16838 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16839 positive and negative constants.
16840 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16841 or an aarch64_sve_float_arith_with_sub_immediate.
16842 * config/aarch64/constraints.md (vsN): Use
16843 aarch64_sve_float_negated_arith_immediate.
16844 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16845 iterator.
16846 (sve_pred_fp_rhs2_immediate): New int attribute.
16847 * config/aarch64/aarch64-sve.md
16848 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16849 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16850 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16851 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16852 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16853 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16854
16855 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16856 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16857
16858 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16859 (*aarch64_cond_abd<SVE_F:mode>_3)
16860 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16861
16862 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16863 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16864
16865 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16866 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16867
16868 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16869 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16870
16871 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16872 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16873 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16874 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16875 optabs.
16876 * optabs.h (create_convert_operand_from): Expand comment.
16877 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16878 when mapping scalar rtxes to vector operands.
16879 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16880 ashiftrt and lshiftrt.
16881 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16882 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16883 (*cond_<optab><mode>_any_const): New patterns.
16884
16885 2019-08-15 Martin Liska <mliska@suse.cz>
16886
16887 PR ipa/91438
16888 * cgraph.c (cgraph_node::remove): When setting
16889 n->origin = NULL for all nested functions, reset
16890 also next_nested.
16891
16892 2019-08-15 Martin Liska <mliska@suse.cz>
16893
16894 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16895 and next_nested.
16896
16897 2019-08-15 Martin Liska <mliska@suse.cz>
16898
16899 PR ipa/91404
16900 * passes.c (order): Remove.
16901 (uid_hash_t): Likewise).
16902 (remove_cgraph_node_from_order): Remove from set
16903 of pointers (cgraph_node *).
16904 (insert_cgraph_node_to_order): New.
16905 (duplicate_cgraph_node_to_order): New.
16906 (do_per_function_toporder): Register all 3 cgraph hooks.
16907 Skip removed_nodes now as we know about all of them.
16908
16909 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16910
16911 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16912 <case E_V8QImode>: Use vector_set path for
16913 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16914 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16915 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16916
16917 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16918
16919 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16920
16921 2019-08-14 Martin Sebor <msebor@redhat.com>
16922
16923 PR tree-optimization/91294
16924 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16925 source length as exact.
16926
16927 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16928
16929 * doc/extend.texi: Add "noinit" attribute documentation.
16930 * doc/sourcebuild.texi: Add noinit effective target documentation.
16931 * varasm.c (default_section_type_flags): Add support for "noinit"
16932 section.
16933 (default_elf_select_section): Add support for "noinit" attribute.
16934 * config/msp430/msp430.c (msp430_attribute_table): Remove
16935 "noinit" entry.
16936
16937 2019-08-14 Richard Biener <rguenther@suse.de>
16938 Uroš Bizjak <ubizjak@gmail.com>
16939
16940 PR target/91154
16941 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16942 mode arguments.
16943 (scalar_chain::smode): New member.
16944 (scalar_chain::vmode): Likewise.
16945 (dimode_scalar_chain): Rename to...
16946 (general_scalar_chain): ... this.
16947 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16948 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16949 base with TImode and V1TImode.
16950 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16951 (general_scalar_chain::vector_const_cost): Adjust for SImode
16952 chains.
16953 (general_scalar_chain::compute_convert_gain): Likewise. Add
16954 {S,U}{MIN,MAX} support.
16955 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16956 (general_scalar_chain::make_vector_copies): Likewise. Handle
16957 non-DImode chains appropriately.
16958 (general_scalar_chain::convert_reg): Likewise.
16959 (general_scalar_chain::convert_op): Likewise.
16960 (general_scalar_chain::convert_insn): Likewise. Add
16961 fatal_insn_not_found if the result is not recognized.
16962 (convertible_comparison_p): Pass in the scalar mode and use that.
16963 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16964 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16965 (scalar_to_vector_candidate_p): Remove by inlining into single
16966 caller.
16967 (general_remove_non_convertible_regs): Rename from
16968 dimode_remove_non_convertible_regs.
16969 (remove_non_convertible_regs): Remove by inlining into single caller.
16970 (convert_scalars_to_vector): Handle SImode and DImode chains
16971 in addition to TImode chains.
16972 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16973 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16974 (*<maxmin>di3_doubleword): Likewise.
16975
16976 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16977 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16978
16979 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16980 (*cond_bic<mode>_any): New patterns.
16981
16982 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16983
16984 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16985 take the equivalent mask, as well as a bit count.
16986 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16987 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16988 (aarch64_sve_pred_and_operand): New predicates.
16989 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16990 code attribute.
16991 * config/aarch64/aarch64-sve.md
16992 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16993 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16994
16995 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16996
16997 * config/aarch64/aarch64-sve.md
16998 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16999 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17000 New patterns.
17001
17002 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17003 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17004
17005 * config/aarch64/aarch64-sve.md
17006 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17007 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17008
17009 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17010 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17011
17012 * config/aarch64/aarch64-sve.md
17013 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17014 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17015
17016 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17017
17018 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17019 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17020 New pattern.
17021
17022 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17023 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17024
17025 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17026
17027 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17028 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17029
17030 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17031 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17032 (aarch64_print_operand): Add support for %I.
17033 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17034 Bitcast floating-point constants to the corresponding integer constant.
17035 (aarch64_float_const_representable_p): Handle vectors as well
17036 as scalars.
17037 (aarch64_expand_sve_vcond): Make sure that the operands are valid
17038 for the new vcond_mask_<mode><vpred> expander.
17039 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17040 test aarch64_float_const_representable_p.
17041 (aarch64_sve_reg_or_dup_imm): New predicate.
17042 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17043 gen_vcond_mask_<mode><vpred> instead of
17044 gen_aarch64_sve_dup<mode>_const.
17045 (vcond_mask_<mode><vpred>): Turn into a define_expand that
17046 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17047 for operands 1 and 2 respectively. Force operand 2 into a
17048 register if operand 1 is a register. Fold old define_insn...
17049 (aarch64_sve_dup<mode>_const): ...and this define_insn...
17050 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
17051 floating-point constants that can be moved as integers. Add
17052 alternatives for MOV /M and FMOV /M.
17053 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17054 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17055 1 and 2 respectively.
17056 * config/aarch64/constraints.md (Ufc): Handle vectors as well
17057 as scalars.
17058 (vss): New constraint.
17059
17060 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17061
17062 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17063 (aarch64_sve_float_maxmin_operand): New predicates.
17064 * config/aarch64/constraints.md (vsB): New constraint.
17065 (vsM): Fix typo.
17066 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17067 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17068 UNSPEC_COND_FMINNM.
17069 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17070 Use aarch64_sve_float_maxmin_operand for operand 2.
17071 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17072 Add alternatives for the constant forms.
17073
17074 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17075
17076 * config/aarch64/constraints.md (vsb): New constraint.
17077 (vsm): Generalize description.
17078 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17079 iterator.
17080 (sve_imm_con): Handle smax, smin, umax and umin.
17081 (sve_imm_prefix): New code attribute.
17082 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17083 (aarch64_sve_vsb_operand): New predicates.
17084 (aarch64_sve_mul_immediate): Rename to...
17085 (aarch64_sve_vsm_immediate): ...this.
17086 (aarch64_sve_mul_operand): Rename to...
17087 (aarch64_sve_vsm_operand): ...this.
17088 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17089 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17090 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17091 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17092 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17093 add movprfx support for the immediate alternatives.
17094 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17095 of the above.
17096 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17097 for operand 3.
17098
17099 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17100
17101 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17102 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17103 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17104
17105 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17106
17107 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17108 (optab, sve_int_op): Handle them.
17109 * config/aarch64/aarch64-sve.md: Expand comment.
17110
17111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17112
17113 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17114 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17115 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17116
17117 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17118
17119 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17120 (aarch64_expand_sve_const_pred_trn): New functions.
17121 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17122 use the above functions when the parameter is true.
17123 (aarch64_expand_sve_const_pred): Update call accordingly.
17124 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17125 Rename to...
17126 (@aarch64_sve_<perm_insn><mode>): ...this.
17127
17128 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17129
17130 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17131 Declare.
17132 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17133 (aarch64_sve_emit_int_cmp): New functions.
17134 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17135 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17136 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17137 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17138 (UNSPEC_PRED_Z): New unspec.
17139 (set_clobber_cc_nzc): Delete.
17140 * config/aarch64/aarch64-sve.md: Add a block comment about
17141 UNSPEC_PRED_Z.
17142 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17143 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17144 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17145 UNSPEC_MERGE_PTRUE.
17146 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17147 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17148 check for compatible predicates.
17149 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17150 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17151 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17152 comparisons above.
17153
17154 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17155
17156 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17157 * config/aarch64/aarch64-sve.md: Add a section describing it.
17158 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17159 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17160 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17161 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17162 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17163 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17164 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17165 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17166 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17167 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17168 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17169 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17170 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17171 (aarch64_evpc_rev_local): Update accordingly.
17172
17173 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17174
17175 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17176 iterators.
17177 (SVE_BHSI, SVE_SDI): Tweak comment.
17178 (SVE_HSDI): Likewise. Fix definition.
17179 (SVE_SDF): New mode iterator.
17180 (elem_bits): New mode attribute.
17181 (SVE_COND_FCVT): New int iterator.
17182 * config/aarch64/aarch64-sve.md
17183 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17184 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17185 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17186 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17187 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17188 ...these new patterns.
17189 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17190 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17191 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17192 Merge into...
17193 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17194 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17195 ...these new patterns.
17196 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17197 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17198 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17199 ...this new pattern.
17200 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17201 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17202 ...this new pattern.
17203 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17204
17205 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17206
17207 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17208 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17209 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17210 unspecs.
17211 (optab, su): Handle them.
17212 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17213 * config/aarch64/aarch64-sve.md
17214 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17215 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17216 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17217 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17218 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17219 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17220 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17221 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17222 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17223 FIXUORS.
17224 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17225 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17226 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17227 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17228 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17229 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17230 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17231 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17232 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17233 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17234 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17235 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17236 of UNSPEC_FLOAT_CONVERT.
17237 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17238 aarch64_sve_extend<mode><Vwide>2.
17239
17240 2019-08-14 Richard Biener <rguenther@suse.de>
17241
17242 PR target/91154
17243 * config/i386/i386-features.c
17244 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17245 individual instruction gain. Fix reg-reg copy GRP cost. Use
17246 ix86_cost->sse_op for vector instruction costs.
17247
17248 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17249
17250 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17251 (cmp_op): Handle it.
17252 (SVE_COND_FP_CMP): Rename to...
17253 (SVE_COND_FP_CMP_I0): ...this.
17254 (SVE_FP_CMP): Remove.
17255 * config/aarch64/aarch64-sve.md
17256 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17257 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17258 using unspecs to represent the comparison.
17259 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17260 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17261 accordingly.
17262 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17263 (aarch64_unspec_cond_code): Move after integer code. Handle
17264 UNORDERED.
17265 (aarch64_emit_sve_predicated_cond): Replace with...
17266 (aarch64_emit_sve_fp_cond): ...this new function.
17267 (aarch64_emit_sve_or_conds): Replace with...
17268 (aarch64_emit_sve_or_fp_conds): ...this new function.
17269 (aarch64_emit_sve_inverted_cond): Replace with...
17270 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17271 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17272
17273 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17274
17275 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17276 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17277 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17278 SVE_HSD instead of SVE_SD.
17279
17280 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17281 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17282
17283 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17284 iterator.
17285 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17286 attributes.
17287 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17288 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17289 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17290 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17291 (*div<SVE_F:mode>3): Generalize to...
17292 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17293
17294 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17295 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17296
17297 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17298 constants.
17299 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17300 predicate.
17301 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17302 Declare.
17303 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17304 function.
17305 * config/aarch64/aarch64-sve.md: Add a block comment about the
17306 handling of predicated FP operations.
17307 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17308 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17309 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17310 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17311 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17312 operand.
17313 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17314 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17315 operand.
17316 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17317 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17318 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17319 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17320 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17321 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17322 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17323 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17324 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17325 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17326 strictness operands. Use aarch64_sve_pred_dominates_p to check
17327 whether the predicate on the conditional operation is suitable
17328 for merging. Split patterns into the canonical equal-predicate form.
17329 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17330 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17331
17332 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17333 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17334
17335 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17336 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17337 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17338 rtx codes.
17339 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17340 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17341 unspecs.
17342
17343 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17344 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17345
17346 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17347 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17348 actually has, rather than relying on REG_EQUAL notes.
17349 Make the insn operand order match the SVE operand order.
17350 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17351 the SVE operand order.
17352
17353 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17354
17355 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17356 (aarch64_emit_set_immediate): Likewise.
17357 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17358 (aarch64_pfalse_reg): Likewise.
17359 (aarch64_convert_sve_data_to_pred): New function.
17360 (aarch64_sve_move_pred_via_while): Take an optional target register
17361 and the required register mode.
17362 (aarch64_expand_sve_const_pred_1): New function.
17363 (aarch64_expand_sve_const_pred): Likewise.
17364 (aarch64_expand_mov_immediate): Build an all-true predicate
17365 if the significant bits of the immediate are all true. Use
17366 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17367 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17368 before register allocation.
17369 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17370 a VNx16BI PTRUE when splitting the memory alternative.
17371 (vec_duplicate<mode>): Update accordingly.
17372 (*pred_cmp<cmp_op><mode>): Rename to...
17373 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17374
17375 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17376
17377 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17378 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17379 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17380 (UNSPEC_PTEST): New unspec.
17381 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17382 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17383 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17384 * config/aarch64/aarch64-sve.md: Add a new section describing the
17385 handling of UNSPEC_PTEST.
17386 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17387 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17388 (ptest_ptrue<mode>): Replace with...
17389 (aarch64_ptest<mode>): ...this new pattern.
17390 (cbranch<mode>4): Update after above changes.
17391 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17392 UNSPEC_PTEST_PTRUE.
17393 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17394 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17395 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17396
17397 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17398
17399 PR lto/91287
17400 * builtins.c (builtin_with_linkage_p): New function.
17401 * builtins.h (builtin_with_linkage_p): New function.
17402 * symtab.c (write_symbol): Remove redundant assert.
17403 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17404 Remove FIXME and use builtin_with_linkage_p.
17405
17406 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17407
17408 PR middle-end/91421
17409 * tree-core.h (function_decl::function_code): Change type to
17410 unsigned int.
17411 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17412 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17413 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17414 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17415 is BUILT_IN_NORMAL.
17416 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17417 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17418 (fndecl_built_in_p): Change the type of the "name" argument to
17419 unsigned int.
17420 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17421 after check for DECL_BUILT_IN_CLASS.
17422 * cgraphclones.c (build_function_decl_skip_args): Use
17423 set_decl_built_in_function.
17424 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17425 * ipa-split.c (split_function): Likewise.
17426 * langhooks.c (add_builtin_function_common): Likewise.
17427 * omp-simd-clone.c (simd_clone_create): Likewise.
17428 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17429 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17430 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17431 DECL_FUNCTION_CODE.
17432 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17433 instead of DECL_FUNCTION_CODE.
17434 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17435 instead of DECL_FUNCTION_CODE.
17436 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17437 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17438 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17439 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17440 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17441 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17442 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17443 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17444 (alpha_gimple_fold_builtin): Likewise.
17445 * config/arc/arc.c (arc_expand_builtin): Likewise.
17446 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17447 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17448 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17449 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17450 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17451 * config/frv/frv.c (frv_expand_builtin): Likewise.
17452 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17453 (gcn_expand_builtin): Likewise.
17454 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17455 (fold_builtin_cpu): Likewise.
17456 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17457 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17458 (ix86_gimple_fold_builtin): Likewise.
17459 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17460 (ia64_expand_builtin): Likewise.
17461 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17462 * config/mips/mips.c (mips_expand_builtin): Likewise.
17463 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17464 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17465 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17466 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17467 * config/pa/pa.c (pa_expand_builtin): Likewise.
17468 * config/pru/pru.c (pru_expand_builtin): Likewise.
17469 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17470 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17471 Likewise.
17472 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17473 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17474 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17475 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17476 (rs6000_builtin_reciprocal): Likewise.
17477 * config/rx/rx.c (rx_expand_builtin): Likewise.
17478 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17479 * config/s390/s390.c (s390_expand_builtin): Likewise.
17480 * config/sh/sh.c (sh_expand_builtin): Likewise.
17481 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17482 (sparc_fold_builtin): Likewise.
17483 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17484 * config/spu/spu.c (spu_expand_builtin): Likewise.
17485 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17486 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17487 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17488 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17489 (xtensa_expand_builtin): Likewise.
17490
17491 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17492
17493 PR middle-end/91421
17494 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17495 before the DECL_FUNCTION_CODE.
17496 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17497 to check for a BUILT_IN_ALLOCA call.
17498 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17499 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17500 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17501 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17502 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17503 for BUILT_IN_NORMAL functions.
17504 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17505 test for BUILT_IN_TM_ABORT.
17506 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17507 to check for a BUILT_IN_STACK_RESTORE call.
17508 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17509 * tree-ssa-threadedge.c
17510 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17511 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17512 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17513 test for a BUILT_IN_NORMAL call instead of a negative test for
17514 an internal function call.
17515
17516 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17517
17518 * tree.h (build_vector_a_then_b): Declare.
17519 * tree.c (build_vector_a_then_b): New function.
17520 * fold-const-call.c (fold_while_ult): Likewise.
17521 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17522 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17523 (aarch64_svpattern): New enum.
17524 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17525 constants through aarch64_expand_mov_immediate.
17526 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17527 than general_operand as the predicate for operand 1.
17528 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17529 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17530 insn_type.
17531 (simd_immediate_info::simd_immediate_info): New overload that
17532 takes a scalar_int_mode and an svpattern.
17533 (simd_immediate_info::u): Add a "pattern" field.
17534 (svpattern_token): New function.
17535 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17536 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17537 (aarch64_sve_move_pred_via_while): New functions.
17538 (aarch64_expand_mov_immediate): Try using
17539 aarch64_sve_move_pred_via_while for predicates that contain N ones
17540 followed by M zeros but that do not correspond to a VLnnn pattern.
17541 (aarch64_sve_pred_valid_immediate): New function.
17542 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17543 with PTRUE and PFALSE.
17544 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17545 forms.
17546
17547 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17548
17549 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17550 flag.
17551 (darwin_override_options): Likewise.
17552 * config/darwin.h: Likewise.
17553 * config/darwin.opt: Likewise.
17554 * config/i386/i386.c (output_pic_addr_const): Likewise.
17555 * config/rs6000/darwin.h: Likewise.
17556 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17557 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17558 ... this TARGET_MACHO_SYMBOL_STUBS.
17559 (FUNCTION_PROFILER):Likewise.
17560 * config/i386/i386.h: Likewise.
17561
17562 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17563
17564 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17565 <case E_V2SImode>: Use vec_extr path for
17566 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17567 <case E_V8QImode>: Ditto.
17568 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17569 Use SWI48 mode iterator. Use %k to output operand 0.
17570 (*mmx_pextrw): New insn pattern.
17571 (*mmx_pextrb): Ditto.
17572 (*mmx_pextrb_zext): Ditto.
17573
17574 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17575
17576 * target.def (libc_has_function, libc_has_fast_function): Improve
17577 documentation strings.
17578 * doc/tm.texi: Regenerate.
17579
17580 2019-08-13 Caroline Tice <cmtice@google.com>
17581
17582 PR other/91396
17583 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17584 vtv_end.o or vtv_end_preinit.o files if !static.
17585
17586 2019-08-13 Olivier Hainque <hainque@adacore.com>
17587
17588 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17589
17590 2019-08-13 Olivier Hainque <hainque@adacore.com>
17591
17592 * rtlanal.c (tablejump_casesi_pattern): New function, to
17593 determine if a tablejump insn is a casesi dispatcher. Extracted
17594 from patch_jump_insn.
17595 * rtl.h (tablejump_casesi_pattern): Declare.
17596 * cfgrtl.c (patch_jump_insn): Use it.
17597 * dwarf2cfi.c (create_trace_edges): Use it.
17598
17599 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17600
17601 PR target/81800
17602 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17603 operand is larger than a long int.
17604
17605 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17606
17607 * machmode.h (opt_mode::else_mode): New function.
17608 (opt_mode::else_blk): Use it.
17609 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17610 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17611 (aarch64_gen_stepped_int_parallel): Likewise.
17612 (aarch64_stepped_int_parallel_p): Likewise.
17613 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17614 argument.
17615 * config/aarch64/aarch64.c
17616 (aarch64_expand_sve_widened_duplicate): Delete.
17617 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17618 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17619 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17620 argument. Use early returns in the !CONST_INT_P handling.
17621 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17622 than handling some inline.
17623 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17624 from...
17625 (aarch64_simd_container_mode): ...here.
17626 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17627 (aarch64_sve_ld1rq_operand_p): New functions.
17628 * config/aarch64/predicates.md (descending_int_parallel)
17629 (aarch64_sve_ld1rq_operand): New predicates.
17630 * config/aarch64/constraints.md (UtQ): New constraint.
17631 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17632 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17633 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17634 (@aarch64_sve_reinterpret<mode>): New expander.
17635 (*aarch64_sve_reinterpret<mode>): New pattern.
17636 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17637 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17638 (*sve_ld1rq<Vesize>): Replace with...
17639 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17640
17641 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17642
17643 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17644 16:12.
17645
17646 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17647
17648 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17649 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17650 (msp430_check_path_for_devices): New.
17651 (parse_devices_csv_1): New.
17652 (parse_devices_csv): New.
17653 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17654 MCU data in devices.csv before using the hard-coded data.
17655 Warn if devices.csv isn't found and the MCU wasn't found in the
17656 hard-coded data either.
17657 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17658 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17659 Search for devices.csv on -I and -L paths.
17660 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17661 msp430_set_driver_var.
17662 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17663 -mdevices-csv-loc=.
17664 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17665 searched for devices.csv.
17666 (mwarn-devices-csv): Document option.
17667
17668 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17669
17670 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17671 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17672 Use a single Dn alternative instead of separate Dz and Dm
17673 alternatives. Use aarch64_output_sve_move_immediate.
17674 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17675 function.
17676 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17677 for predicates too.
17678 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17679 (aarch64_output_ptrue): Delete.
17680
17681 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17682
17683 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17684 INDEX.
17685 (simd_immediate_info::value, simd_immediate_info::step)
17686 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17687 with...
17688 (simd_immediate_info::u): ...this new union.
17689 (simd_immediate_info::simd_immediate_info): Update accordingly.
17690 (aarch64_output_simd_mov_immediate): Likewise.
17691 (aarch64_output_sve_mov_immediate): Likewise.
17692
17693 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17694
17695 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17696 extra_gcc_objs.
17697 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17698 (msp430_select_cpu): New spec function.
17699 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17700 MCU data.
17701 * config/msp430/msp430-devices.c: New file.
17702 * config/msp430/msp430-devices.h: New file.
17703 * config/msp430/msp430.c: Remove msp430_mcu_data.
17704 (msp430_option_override): Use msp430_extract_mcu_data to extract
17705 MCU data.
17706 (msp430_use_f5_series_hwmult): Likewise.
17707 (use_32bit_hwmult): Likewise.
17708 (msp430_no_hwmult): Likewise.
17709 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17710 assembler.
17711 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17712 and -mcpu option.
17713 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17714 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17715 Remove hard-coded MCU multilib data.
17716
17717 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17718
17719 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17720 based on the mode instead of testing properties of it.
17721
17722 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17723
17724 * doc/md.texi: Document the x and y constraints for AArch64.
17725 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17726 (FP_LO8_REGS): New reg_class.
17727 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17728 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17729 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17730 * config/aarch64/predicates.md (aarch64_simd_register): Use
17731 FP_REGNUM_P instead of checking the classes manually.
17732 * config/aarch64/constraints.md (y): New constraint.
17733
17734 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17735
17736 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17737 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17738 * config/aarch64/aarch64-simd.md
17739 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17740 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17741 from the asm template.
17742 * config/aarch64/aarch64-sve.md
17743 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17744 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17745 from the asm template.
17746 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17747 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17748 from the asm template.
17749 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17750
17751 2019-08-13 Martin Liska <mliska@suse.cz>
17752
17753 * value-prof.c (gimple_ic_transform): Add new line.
17754 Print details with MSG_NOTE.
17755
17756 2019-08-13 Martin Liska <mliska@suse.cz>
17757
17758 * doc/invoke.texi: Document automatic detection of jobserver.
17759 * lto-wrapper.c (run_gcc): Detect jobserver always.
17760
17761 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17762
17763 * config/i386/i386-expand.c (ix86_expand_vector_set)
17764 <case E_V2SImode>: Use vec_merge path for
17765 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17766 <case E_V8QImode>: Ditto.
17767 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17768 (*mmx_pinsrb): Ditto.
17769
17770 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17771
17772 PR target/83250
17773 PR target/91340
17774 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17775 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17776 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17777 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17778 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17779
17780 2019-08-12 Richard Biener <rguenther@suse.de>
17781
17782 PR lto/91375
17783 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17784 flag_devirtualize.
17785
17786 2019-08-12 Richard Biener <rguenther@suse.de>
17787
17788 PR driver/91130
17789 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17790 lang_mask option, always use CL_DRIVER.
17791 (get_options_from_collect_gcc_options): Adjust.
17792 (find_and_merge_options): Likewise.
17793 (run_gcc): Likewise.
17794
17795 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17796
17797 * ipa-predicate.c (add_condition): Restore inverted test.
17798
17799 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17800
17801 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17802 (enum omp_clause_device_type_kind): New enum.
17803 (struct tree_omp_clause): Add subcode.device_type_kind.
17804 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17805 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17806 for device_type clause.
17807 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17808 * tree-pretty-print.c (dump_omp_clause): Likewise.
17809
17810 PR target/91408
17811 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17812 vector_operand.
17813
17814 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17815
17816 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17817 handling spilled pseudos.
17818
17819 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17820
17821 PR target/91386
17822 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17823 to preserve the contents of the original insns.
17824
17825 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17826
17827 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17828 (addsi3_compare_op2): Likewise.
17829
17830 2019-08-09 Martin Liska <mliska@suse.cz>
17831
17832 * alias.c (alias_ptr_types_compatible_p): Strengten
17833 type comparison in LTO mode.
17834
17835 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17836
17837 PR middle-end/90313
17838 * tree-tailcall.c (find_tail_calls): Reject calls that might
17839 read from an escaped RESULT_DECL.
17840
17841 2019-08-09 Martin Liska <mliska@suse.cz>
17842
17843 * doc/invoke.texi: Document the option value.
17844 * lto-wrapper.c (run_gcc): Set auto_parallel
17845 only with -flto=auto.
17846
17847 2019-08-09 Martin Liska <mliska@suse.cz>
17848
17849 * opts.c (common_handle_option): Error for an invalid argument
17850 to -flto=.
17851
17852 2019-08-09 Martin Liska <mliska@suse.cz>
17853
17854 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17855 use dump_printf to report optimization.
17856 (sem_variable::merge): Likwise.
17857 (sem_item_optimizer::merge_classes): Use dump_printf to report
17858 ICF hits.
17859
17860 2019-08-09 Martin Liska <mliska@suse.cz>
17861
17862 * value-prof.c (gimple_divmod_fixed_value_transform):
17863 Use dump_printf_loc.
17864 (gimple_mod_pow2_value_transform): Likewise.
17865 (gimple_mod_subtract_transform): Likewise.
17866 (init_node_map): Likewise.
17867 (gimple_ic_transform): Likewise.
17868 (gimple_stringops_transform): Likewise.
17869
17870 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17871
17872 * doc/extend.texi: Add const qualifier to ld intrinsics.
17873
17874 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17875
17876 * config/rs6000/dfp.md (D64_D128): Rename to ...
17877 (DDTD): ... this, throughout.
17878 (dfp_suffix): Rename to ...
17879 (q): ... this, throughout.
17880
17881 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17882
17883 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17884 (dfp_suffix): Ditto.
17885 (adddd3, addtd3): Merge to ...
17886 (add<mode>3 for D64_D128): ... this.
17887 (subdd3, subtd3): Merge to ...
17888 (sub<mode>3 for D64_D128): ... this.
17889 (muldd3, multd3): Merge to ...
17890 (mul<mode>3 for D64_D128): ... this.
17891 (divdd3, divtd3): Merge to ...
17892 (div<mode>3 for D64_D128): ... this.
17893 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17894 (*cmp<mode>_internal1 for D64_D128): ... this.
17895 (ftruncdd2, ftrunctd2): Merge to ...
17896 (ftrunc<mode>2 for D64_D128): ... this.
17897 (fixdddi2, fixtddi2): Merge to ...
17898 (fix<mode>di2 for D64_D128): ... this.
17899
17900 2019-08-08 Jim Wilson <jimw@sifive.com>
17901
17902 PR target/91229
17903 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17904 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17905 Pass into recursive call.
17906 (riscv_flatten_aggregate_argument): New arg. Pass to
17907 riscv_flatten_aggregate_field.
17908 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17909 riscv_flatten_aggregate_argument twice, with false and true as last
17910 arg. Process result twice. Compare results and warn if different.
17911 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17912
17913 2019-08-08 Martin Liska <mliska@suse.cz>
17914
17915 PR bootstrap/91352
17916 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17917 * lto-wrapper.c (jobserver_active_p): Likewise.
17918
17919 2019-08-08 Martin Liska <mliska@suse.cz>
17920
17921 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17922 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17923 (create_version_clone_with_body): Likewise.
17924
17925 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17926
17927 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17928 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17929 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17930 GOVD_EXPLICIT flags.
17931 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17932 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17933 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17934 call install_var_field with mask 11 instead of 3.
17935 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17936 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17937
17938 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17939
17940 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17941 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17942
17943 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17944
17945 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17946 MOVPRFX alternatives. Make the GPR alternatives more expensive
17947 than the FPR ones.
17948
17949 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17950
17951 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17952 Disparage the GPR alternative relative to the FPR one.
17953 Fix handling of 8-bit and 16-bit FPR values.
17954
17955 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17956
17957 * config/aarch64/iterators.md (BITWISEV): Delete.
17958 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17959 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17960 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17961 UNSPEC_FMINNMV, UNSPEC_FMINV.
17962 (bit_reduc_op): Delete.
17963 (sve_int_op): New int attribute.
17964 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17965 UNSPEC_FMINNMV, UNSPEC_FMINV.
17966 * config/aarch64/aarch64-sve.md
17967 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17968 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17969 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17970 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17971 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17972 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17973 new patterns.
17974 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17975 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17976 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17977 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17978 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17979 new patterns.
17980
17981 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17982
17983 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17984 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17985 (fms<mode>4, *fms<mode>4): Replace with...
17986 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17987 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17988 Use unspecs instead of rtx codes.
17989 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17990 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17991
17992 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17993
17994 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17995 int iterator.
17996 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17997 * config/aarch64/aarch64-sve.md
17998 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17999 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18000 use a single unspec for the rhs.
18001 (*<su><maxmin><mode>3): Delete.
18002 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18003
18004 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18005
18006 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18007 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18008 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18009 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18010 (optab, sve_fp_op): Handle them.
18011 (SVE_FP_UNARY): Delete.
18012 (optab): Remove sqrt entry.
18013 (sve_fp_op): Remove neg, abs and sqrt entries.
18014 (SVE_COND_FP_UNARY): New int iterator.
18015 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18016 (*<frint_pattern><mode>2): Delete.
18017 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18018 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18019 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18020 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18021
18022 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18023
18024 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18025
18026 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18027
18028 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18029 (UNSPEC_COND_FADD): ...this.
18030 (UNSPEC_COND_SUB): Rename to...
18031 (UNSPEC_COND_FSUB): ...this.
18032 (UNSPEC_COND_MUL): Rename to...
18033 (UNSPEC_COND_FMUL): ...this.
18034 (UNSPEC_COND_DIV): Rename to...
18035 (UNSPEC_COND_FDIV): ...this.
18036 (UNSPEC_COND_MAX): Rename to...
18037 (UNSPEC_COND_FMAXNM): ...this.
18038 (UNSPEC_COND_MIN): Rename to...
18039 (UNSPEC_COND_FMINNM): ...this.
18040 (UNSPEC_COND_LT): Rename to...
18041 (UNSPEC_COND_FCMLT): ...this.
18042 (UNSPEC_COND_LE): Rename to...
18043 (UNSPEC_COND_FCMLE): ...this.
18044 (UNSPEC_COND_EQ): Rename to...
18045 (UNSPEC_COND_FCMEQ): ...this.
18046 (UNSPEC_COND_NE): Rename to...
18047 (UNSPEC_COND_FCMNE): ...this.
18048 (UNSPEC_COND_GE): Rename to...
18049 (UNSPEC_COND_FCMGE): ...this.
18050 (UNSPEC_COND_GT): Rename to...
18051 (UNSPEC_COND_FCMGT): ...this.
18052 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18053 (sve_fp_op_rev): Update accordingly.
18054 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18055
18056 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18057
18058 * config/aarch64/aarch64-sve.md: Reorganize contents and add
18059 banner comments.
18060 * config/aarch64/check-sve-md.awk: New file.
18061 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18062 (insn-conditions.md): Depend on it.
18063
18064 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
18065
18066 PR target/91385
18067 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18068 (*negsi2_cmpz_zext): Ditto.
18069
18070 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18071
18072 * config/aarch64/iterators.md (commutative): Remove.
18073
18074 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
18075
18076 PR driver/91130
18077 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18078 processing COLLECT_GCC_OPTIONS.
18079 (run_gcc): Likewise.
18080
18081 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
18082
18083 PR tree-optimization/91109
18084 * lra-remat.c (update_scratch_ops): Remove assignment of the
18085 hard register.
18086
18087 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18088
18089 * data-streamer.h (streamer_write_poly_uint64): Declare.
18090 (streamer_read_poly_uint64): Likewise.
18091 * data-streamer-in.c (streamer_read_poly_uint64): New function.
18092 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18093 * ipa-predicate.h (condition::size): Turn into a poly_int64.
18094 (add_condition): Take a poly_int64 size.
18095 * ipa-predicate.c (add_condition): Likewise.
18096 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18097 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18098 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18099 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18100 condition::size as a poly_int64.
18101 (unmodified_parm_1): Take a poly_int64 size pointer.
18102 (unmodified_parm): Likewise.
18103 (unmodified_parm_or_parm_agg_item): Likewise.
18104 (set_cond_stmt_execution_predicate): Update accordingly.
18105 (set_switch_stmt_execution_predicate): Likewise.
18106 (will_be_nonconstant_expr_predicate): Likewise.
18107 (will_be_nonconstant_predicate): Likewise.
18108 (inline_read_section): Stream condition::size as a poly_int.
18109 (ipa_fn_summary_write): Likewise.
18110
18111 2019-08-07 Martin Liska <mliska@suse.cz>
18112
18113 * fold-const.c (twoval_comparison_p): Replace int
18114 with bool as a return type.
18115 (simple_operand_p): Likewise.
18116 (operand_equal_p): Replace int with bool as a return type.
18117 * fold-const.h (operand_equal_p): Likewise.
18118
18119 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18120
18121 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18122 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18123 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18124 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18125 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18126 * tree-pretty-print.c (dump_omp_clause): Likewise.
18127 * tree-nested.c (convert_nonlocal_omp_clauses,
18128 convert_local_omp_clauses): Likewise.
18129 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18130 Likewise.
18131 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18132 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18133 clause with array or reference to array types, no matter what type
18134 except for reference it has.
18135
18136 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18137
18138 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18139
18140 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18141
18142 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18143 (arch_canonicalize): Support rv32g and rv64g and fix error
18144 handling.
18145
18146 2019-08-06 Martin Liska <mliska@suse.cz>
18147
18148 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18149 and DECL_IS_OPERATOR_DELETE_P.
18150
18151 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18152
18153 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18154 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18155 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18156 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18157 (gimplify_omp_for): Don't do C++ random access iterator clause
18158 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18159 don't predetermine the artificial iterator in case of C++ random
18160 access iterators as lastprivate, but private. For OMP_LOOP, force
18161 bind expr around simd body and force for_pre_body before the
18162 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18163 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18164 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18165 diff var of C++ random access iterators. Handle
18166 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18167 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18168 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18169 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18170 * omp-low.c (lower_rec_input_clauses): For
18171 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18172 variables instead of default constructing them.
18173 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18174 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18175 is_taskloop_ctx check from the assert to the guarding condition.
18176
18177 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18178
18179 * config/riscv/multilib-generator: (canonical_order): New.
18180 (arch_canonicalize): Dito.
18181 Apply arch_canonicalize for alts.
18182
18183 2019-08-05 Martin Sebor <msebor@redhat.com>
18184
18185 * doc/extend.texi (Common Variable Attributes): Document alias
18186 attribute.
18187
18188 2019-08-05 Marek Polacek <polacek@redhat.com>
18189
18190 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18191 * doc/invoke.texi: Document -Wcomma-subscript.
18192
18193 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18194
18195 * tree-core.h (tree_function_decl): Make function_code an
18196 independent field. Group the remaining bitfields into bytes
18197 and move decl_type so that it contines to be at a byte boundary.
18198 Leave 12 bits for future expansion.
18199
18200 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18201
18202 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18203 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18204 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18205 IFN_MASK_STORE.
18206
18207 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18208
18209 * gimple.h (gimple_move_vops): Declare.
18210 * gimple.c (gimple_move_vops): New function
18211 * gimple-fold.c (replace_call_with_call_and_fold)
18212 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18213 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18214 (gimple_fold_call): Use it.
18215 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18216 * tree-call-cdce.c (use_internal_fn): Likewise.
18217 * tree-if-conv.c (predicate_load_or_store): Likewise.
18218 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18219 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18220 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18221 (update_call_from_tree): Likewise.
18222 * tree-vect-stmts.c (vectorizable_load): Likewise.
18223 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18224
18225 2019-08-05 Martin Liska <mliska@suse.cz>
18226
18227 PR c++/91334
18228 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18229 with not arguments.
18230 (eliminate_unnecessary_stmts): Likewise.
18231
18232 2019-08-05 Richard Biener <rguenther@suse.de>
18233
18234 PR middle-end/91169
18235 * fold-const.c (get_array_ctor_element_at_index): Create
18236 offset_ints according to the sign of the index type and treat
18237 that as signed if it is obviously so.
18238
18239 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18240
18241 PR target/91341
18242 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18243 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18244 _mm256_storeu2_m128i): New function.
18245
18246 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18247
18248 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18249 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18250
18251 2019-08-05 Alan Modra <amodra@gmail.com>
18252
18253 PR target/91349
18254 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18255 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18256
18257 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18258
18259 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18260 bug that was fixed in Tcl 8.6.1.
18261
18262 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18263
18264 * config/rs6000/future.md: New file.
18265 * config/rs6000/rs6000.md: Include future.md.
18266 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18267
18268 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18269
18270 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18271 check to use targetm.slow_unaligned_access instead.
18272
18273 * function.c (assign_param_data_one): Remove unused data members.
18274
18275 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18276
18277 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18278 build_distinct_type_copy.
18279 (simd_clone_adjust_argument_types): Ditto.
18280 (simd_clone_adjust): Call build_distinct_type_copy here.
18281 (expand_simd_clones): Ditto.
18282
18283 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18284
18285 PR target/91201
18286 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18287
18288 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18289
18290 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18291 from 'const void *'.
18292 (sort_locs_in_loop_postorder_cmp): Likewise.
18293
18294 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18295
18296 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18297 (hot-bb-count-ws-permille): Likewise.
18298 (hot-bb-frequency-fraction): Likewise.
18299 (unlikely-bb-count-fraction): Likewise.
18300 * params.def (hot-bb-count-fraction): Rework description.
18301 (hot-bb-count-ws-permille): Likewise.
18302 (hot-bb-frequency-fraction): Likewise.
18303 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18304 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18305
18306 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18307
18308 PR target/91323
18309 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18310 Return false.
18311
18312 2019-08-02 Richard Biener <rguenther@suse.de>
18313
18314 * vec.h (vec::sort): Add gcc_qsort_r support.
18315 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18316 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18317 to gcc_qsort_r style callback.
18318 (sort_locs_in_loop_postorder_cmp): Likewise.
18319 (analyze_memory_references): Use gcc_sort_r interfaces.
18320 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18321
18322 2019-08-02 Martin Liska <mliska@suse.cz>
18323
18324 PR lto/91313
18325 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18326 to detect working job server.
18327 (driver::detect_jobserver): Test whether jobserver
18328 is active from GCC driver. That will prevent situation where
18329 GCC is invoked from a LD plugin and the linker already uses
18330 file descriptors suggested by make. That leads to a wrong
18331 detection.
18332 * gcc.h (driver): Add detect_jobserver.
18333 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18334 not scanning for --jobserver-auth prefix.
18335
18336 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18337
18338 PR tree-optimization/91201
18339 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18340 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18341 extraction.
18342
18343 2019-08-01 Martin Sebor <msebor@redhat.com>
18344
18345 PR c++/90947
18346 * tree.c (type_initializer_zero_p): Define.
18347 * tree.h (type_initializer_zero_p): New function.
18348
18349 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18350
18351 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18352
18353 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18354
18355 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18356 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18357 * predict.c (maybe_hot_count_p): Likewise.
18358 (maybe_hot_bb_p): Tweak comment.
18359 (maybe_hot_edge_p): Likewise.
18360 (probably_never_executed): Likewise. Minor tweak.
18361 (probably_never_executed_bb_p): Likewise.
18362 (unlikely_executed_edge_p): Likewise.
18363 (probably_never_executed_edge_p): Likewise.
18364 (optimize_function_for_size_p): Likewise.
18365 (optimize_function_for_speed_p): Likewise.
18366 (function_optimization_type): Likewise.
18367 (optimize_bb_for_size_p): Likewise.
18368 (optimize_bb_for_speed_p): Likewise.
18369 (bb_optimization_type): Likewise.
18370 (optimize_edge_for_size_p): Likewise.
18371 (optimize_edge_for_speed_p): Likewise.
18372 (optimize_insn_for_size_p): Likewise.
18373 (optimize_insn_for_speed_p): Likewise.
18374 (optimize_loop_for_size_p): Likewise.
18375 (optimize_loop_for_speed_p): Likewise.
18376 (optimize_loop_nest_for_speed_p): Likewise.
18377 (optimize_loop_nest_for_size_p): Likewise.
18378 (predictable_edge_p): Likewise.
18379 (handle_missing_profiles): Minor tweak.
18380
18381 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18382
18383 * config/rs6000/predicates.md (pcrel_external_address): Update
18384 comment.
18385
18386 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18387
18388 PR target/85693
18389 * config/i386/mmx.md (usadv8qi): New expander.
18390
18391 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18392
18393 PR c++/90590
18394 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18395 with reserved names that are in a system header.
18396
18397 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18398
18399 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18400 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18401 (*vec_extractv2si_0_zext): Ditto.
18402 (*vec_extractv2si_1): Add (rm,x) alternative.
18403 (*vec_extractv2si_1_zext): New insn pattern.
18404 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18405 insn constraint.
18406
18407 2019-08-01 Richard Biener <rguenther@suse.de>
18408
18409 * domwalk.c (bb_postorder): Remove static variable.
18410 (cmp_bb_postorder): Adjust.
18411 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18412 (dom_walker::walk): Adjust.
18413
18414 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18415
18416 * sort.cc (sort_r_ctx): New struct.
18417 (reorder23): Make templated on context type.
18418 (reorder45): Ditto.
18419 (cmp1): Ditto. Adjust signature.
18420 (netsort): Ditto.
18421 (mergesort): Ditto.
18422 [CHECKING_P] (cmp2to3): New static function. Use it...
18423 (gcc_qsort) [CHECKING_P]: ...here.
18424 (gcc_sort_r): New function.
18425 * system.h (sort_r_cmp_fn): New function typedef.
18426 (qsort_chk): Adjust signature.
18427 (gcc_sort_r): Declare.
18428 * vec.c (qsort_chk_error): Adjust.
18429 (qsort_chk): Adjust.
18430
18431 2019-08-01 Richard Biener <rguenther@suse.de>
18432
18433 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18434 (compute_antic): Localize it here.
18435
18436 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18437
18438 * common/config/riscv/riscv-common.c: Check -march string ends
18439 with null.
18440
18441 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18442
18443 * ipa-devirt.c (type_warning_cmp): Make static.
18444 (decl_warning_cmp): Ditto.
18445
18446 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18447
18448 PR target/91050
18449 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18451 use of deleted rs6000_dejagnu_cpu_index variable.
18452 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18453 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18454 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18455 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18456 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18457 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18458
18459 2019-07-31 Richard Biener <rguenther@suse.de>
18460
18461 PR tree-optimization/91280
18462 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18463 Decompose MEM_REF manually for offset handling.
18464
18465 2019-07-31 Richard Biener <rguenther@suse.de>
18466
18467 PR tree-optimization/91293
18468 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18469 of reduction stmts.
18470
18471 2019-07-31 Matt Thomas <matt@3am-software.com>
18472 Nick Hudson <nick@nthcliff.demon.co.uk>
18473 Matthew Green <mrg@eterna.com.au>
18474 Maya Rashish <coypu@sdf.org>
18475
18476 * config.gcc (hppa*-*-netbsd*): New target.
18477 * config/pa/pa-netbsd.h: New file.
18478 * config/pa/pa32-netbsd.h: New file.
18479
18480 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18481
18482 PR tree-optimization/91201
18483 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18484
18485 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18486
18487 * config/gcn/gcn-valu.md
18488 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18489 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18490 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18491 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18492 struct ilist. Add nops for delayeduse insns.
18493 * config/gcn/gcn.md (delayeduse): New attribute.
18494 (*movbi): Remove s_waitcnt from stores.
18495 (*mov<mode>_insn): Likewise.
18496 (*movti_insn): Likewise. Add delayeduse attribute.
18497 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18498 (atomic_store<mode>): Remove or adjust s_waitcnt.
18499
18500 2019-07-31 Richard Biener <rguenther@suse.de>
18501
18502 * vr-values.h (vr_values::swap_vr_value): New.
18503 (vr_values::free_value_range): likewise.
18504 * vr-values.c (vr_values::swap_vr_value): Implement.
18505 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18506 Do not return a range or take a var.
18507 (evrp_range_analyzer::stack): Change back to recording a non-const
18508 value_range *.
18509 * gimple-ssa-evrp-analyze.c
18510 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18511 value-range.
18512 (evrp_range_analyzer::pop_to_marker): Adjust.
18513 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18514 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18515 no longer needed value-range.
18516
18517 2019-07-31 Martin Liska <mliska@suse.cz>
18518
18519 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18520 have size and (or) alignment as 2nd and later arguments.
18521 Mark all of them as necessary.
18522
18523 2019-07-31 Richard Biener <rguenther@suse.de>
18524
18525 PR tree-optimization/91178
18526 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18527 Use tail-recursion.
18528
18529 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18530
18531 PR tree-optimization/91201
18532 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18533 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18534 TARGET_AVX512F.
18535 (reduc_plus_scal_<mode>): Improve formatting by introducing
18536 a temporary.
18537
18538 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18539
18540 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18541 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18542 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18543 (aarch64_init_tme_builtins): New.
18544 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18545 (aarch64_expand_builtin_tme): New.
18546 (aarch64_expand_builtin): Handle TME builtins.
18547 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18548 __ARM_FEATURE_TME when enabled.
18549 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18550 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18551 (TARGET_TME): New.
18552 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18553 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18554 UNSPECV_TCANCEL.
18555 (tstart, ttest, tcommit, tcancel): New instructions.
18556 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18557 (__tcancel, __ttest): New.
18558 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18559 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18560 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18561 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18562 * config/arm/types.md: Add new tme type attr.
18563 * doc/invoke.texi: Document "tme".
18564
18565 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18566
18567 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18568 warn_unused_result attribute.
18569 (cmse_check_address_range): Add warn_unused_result attribute.
18570
18571 2019-07-31 Richard Biener <rguenther@suse.de>
18572
18573 PR tree-optimization/91257
18574 * tree-vrp.c (union_ranges): Unify equality and less tests
18575 by using compare_values. Re-order cheap tests first.
18576
18577 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18578
18579 PR middle-end/91301
18580 * gimplify.c (gimplify_omp_for): If for class iterator on
18581 distribute parallel for there is no data sharing clause
18582 on inner_for_stmt, look for private clause on combined
18583 parallel too and if found, move it to inner_for_stmt.
18584
18585 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18586
18587 * lra-int.h (lra_operand_data): Remove early_clobber field.
18588 (lra_insn_reg): Likewise.
18589 * lra.c (debug_operand_data): Update accordingly.
18590 (setup_operand_alternative): Likewise.
18591 (new_insn_reg): Likewise. Remove early_clobber parameter.
18592 (collect_non_operand_hard_regs): Update call accordingly.
18593 Don't assign to lra_insn_reg::early_clobber.
18594 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18595 and update calls to new_insn_reg.
18596 (lra_update_insn_regno_info): Update calls accordingly.
18597 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18598 alternative number as a parameter and test whether the operand
18599 is earlyclobbered in that particular alternative.
18600 (process_alt_operands): Update call accordingly. Use per-alternative
18601 checks for earyclobber here too.
18602 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18603 against zero for IRA_UNKNOWN_ALT.
18604
18605 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18606
18607 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18608
18609 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18610
18611 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18612 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18613
18614 2019-07-30 Martin Liska <mliska@suse.cz>
18615
18616 PR ipa/89330
18617 * cgraph.c (cgraph_edge::make_direct): Use
18618 edge->indirect_unknown_callee as edge->resolve_speculation can
18619 deallocate edge which is this pointer.
18620
18621 2019-07-30 Richard Biener <rguenther@suse.de>
18622
18623 PR tree-optimization/91257
18624 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18625
18626 2019-07-30 Martin Liska <mliska@suse.cz>
18627
18628 * doc/invoke.texi: Document new behavior.
18629 * lto-wrapper.c (cpuset_popcount): New function
18630 is a copy of libgomp/config/linux/proc.c.
18631 (init_num_threads): Likewise.
18632 (run_gcc): Automatically detect core count for -flto.
18633 (jobserver_active_p): New function.
18634
18635 2019-07-30 Richard Biener <rguenther@suse.de>
18636
18637 PR tree-optimization/91257
18638 * bitmap.h (bitmap_ior_into_and_free): Declare.
18639 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18640 whether to add the unliked element to the freelist.
18641 (bitmap_list_insert_element_after): Add defaulted param for
18642 an already allocated element.
18643 (bitmap_ior_into_and_free): New function.
18644 * tree-ssa-structalias.c (condense_visit): Reduce the
18645 ponts-to and edge bitmaps of the SCC members in a
18646 logarithmic fashion rather than all to one.
18647
18648 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18649
18650 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18651 parameter. When nonnull, make sure that the addition or subtraction
18652 has the same condition.
18653 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18654 for CFN_COND_MUL too.
18655
18656 2019-07-30 Richard Biener <rguenther@suse.de>
18657
18658 PR tree-optimization/91291
18659 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18660 constant values.
18661
18662 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18663
18664 PR middle-end/91216
18665 * omp-low.c (global_nonaddressable_vars): New variable.
18666 (use_pointer_for_field): For global decls, if they are non-addressable,
18667 remember it in the global_nonaddressable_vars bitmap, if they are
18668 addressable and in the global_nonaddressable_vars bitmap, ignore their
18669 TREE_ADDRESSABLE bit.
18670 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18671 vars in global_nonaddressable_vars bitmap.
18672 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18673
18674 PR target/91150
18675 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18676 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18677 comparison to unsigned HOST_WIDE_INT before shifting it left.
18678
18679 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18680
18681 * config/i386/i386.md (movstrict<mode>): Use register_operand
18682 predicate for operand 0. Add expander condition. Assert that
18683 operand 0 is a SUBREG RTX.
18684 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18685 Update operand constraints and insn condition.
18686 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18687 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18688 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18689 Update operand 0 constraints.
18690 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18691
18692 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18693
18694 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18695 when -m{code,data}-region are used without -mlarge.
18696 * config/msp430/msp430.c (msp430_option_override): Error when a
18697 non-default code or data region is used without -mlarge.
18698 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18699 attributes when they are used without -mlarge.
18700
18701 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18702
18703 PR target/70320
18704 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18705
18706 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18707
18708 PR middle-end/91242
18709 * wide-int.h (generic_wide_int::sext_elt): New function.
18710 * inchash.h (hash::add_wide_int): Use it instead of elt.
18711
18712 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18713
18714 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18715 CODE_FOR_arm_##.
18716 * config/arm/arm.md (<crc_variant>): Rename to...
18717 (arm_<crc_variant>): ... This.
18718 (<cdp>): Rename to...
18719 (arm_<cdp>): ... This.
18720 (<ldc>): Rename to...
18721 (arm_<ldc>): ... This.
18722 (<stc>): Rename to...
18723 (arm_<stc>): ... This.
18724 (<mcr>): Rename to...
18725 (arm_<mcr>): ... This.
18726 (<mrc>): Rename to...
18727 (arm_<mrc>): ... This.
18728 (<mcrr>): Rename to...
18729 (arm_<mcrr>): ... This.
18730 (<mrrc>): Rename to...
18731 (arm_<mrrc>): ... This.
18732
18733 2019-07-29 Richard Biener <rguenther@suse.de>
18734
18735 PR tree-optimization/91257
18736 * tree-ssa-sccvn.h (struct vn_avail): New.
18737 (struct vn_ssa_aux): Add avail member.
18738 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18739 member, add m_avail_freelist one.
18740 (rpo_elim::~rpo_elim): Remove.
18741 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18742 data structure.
18743 (rpo_elim::eliminate_push_avail): Likewise.
18744 (do_unwind): Likewise.
18745 (do_rpo_vn): Likewise.
18746
18747 2019-07-29 Richard Biener <rguenther@suse.de>
18748
18749 PR tree-optimization/91257
18750 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18751 most cases, instead call compare_values which handles the
18752 symbolic ranges we handle specially.
18753 (compare_values_warnv): Do not call operand_less_p but open-code
18754 the effective fold calls. Avoid converting so much.
18755
18756 2019-07-29 Martin Liska <mliska@suse.cz>
18757
18758 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18759 remove LHS of operator new call. It's handled latter.
18760
18761 2019-07-29 Richard Biener <rguenther@suse.de>
18762
18763 PR tree-optimization/91267
18764 * vr-values.c (vr_values::update_value_range): Add early return
18765 for effectively VARYING lattice entry.
18766
18767 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18768
18769 PR debug/86638
18770 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18771 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18772 necessary if keep_all_vdefs_p is true.
18773 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18774 that keep_all_vdefs_p is false.
18775 (mark_all_reaching_defs_necessary): Likewise.
18776 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18777
18778 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18779
18780 * common.opt (Og): Change the initial value of flag_dse to 0.
18781 * opts.c (default_options_table): Move OPT_ftree_dse from
18782 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18783 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18784 entry before the OPT_ftree_sra entry.
18785 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18786 of flags disabled by Og.
18787
18788 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18789
18790 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18791 variables for -Og.
18792
18793 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18794
18795 * doc/sourcebuild.texi (check-function-bodies): Document.
18796
18797 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18798
18799 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18800 VEC_DUPLICATE of a fixed-length vector even if the result
18801 is variable-length. Likewise fold a duplicate of a
18802 variable-length vector if the variable-length vector is
18803 itself a duplicate of a fixed-length sequence.
18804 (test_vector_ops_duplicate): Test more cases.
18805
18806 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18807
18808 * vector-builder.h (vector_builder): Add a shape template parameter.
18809 (vector_builder::new_unary_operation): New function, generalizing
18810 the old tree_vector_builder function.
18811 (vector_builder::new_binary_operation): Likewise.
18812 (vector_builder::binary_encoded_nelts): Likewise.
18813 * int-vector-builder.h (int_vector_builder): Update template
18814 parameters to vector_builder.
18815 (int_vector_builder::shape_nelts): New function.
18816 * rtx-vector-builder.h (rtx_vector_builder): Update template
18817 parameters to vector_builder.
18818 (rtx_vector_builder::shape_nelts): New function.
18819 (rtx_vector_builder::nelts_of): Likewise.
18820 (rtx_vector_builder::npatterns_of): Likewise.
18821 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18822 * tree-vector-builder.h (tree_vector_builder): Update template
18823 parameters to vector_builder.
18824 (tree_vector_builder::shape_nelts): New function.
18825 (tree_vector_builder::nelts_of): Likewise.
18826 (tree_vector_builder::npatterns_of): Likewise.
18827 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18828 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18829 (tree_vector_builder::new_binary_operation): Delete.
18830 (tree_vector_builder::binary_encoded_nelts): Likewise.
18831 * simplify-rtx.c: Include rtx-vector-builder.h.
18832 (distributes_over_addition_p): New function.
18833 (simplify_const_unary_operation)
18834 (simplify_const_binary_operation): Generalize handling of vector
18835 constants to include variable-length vectors.
18836 (test_vector_ops_series): Add more tests.
18837
18838 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18839
18840 PR lto/91222
18841 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18842 than INDENTIFIER_POINTER.
18843
18844 2019-07-28 Martin Liska <mliska@suse.cz>
18845
18846 PR ipa/89330
18847 * cgraph.c (symbol_table::create_edge): Always allocate
18848 a cgraph_edge.
18849 (symbol_table::free_edge): Store summary_id to
18850 edge_released_summary_ids if != -1;
18851 * cgraph.h (NEXT_FREE_NODE): Remove.
18852 (SET_NEXT_FREE_NODE): Likewise.
18853 (NEXT_FREE_EDGE): Likewise.
18854 (symbol_table::release_symbol): Store summary_id to
18855 cgraph_released_summary_ids if != -1;
18856 (symbol_table::allocate_cgraph_symbol): Always allocate
18857 a cgraph_node.
18858
18859 2019-07-28 Alan Modra <amodra@gmail.com>
18860
18861 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18862 gen_sibcall.
18863
18864 2019-07-28 Alan Modra <amodra@gmail.com>
18865
18866 PR target/91135
18867 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18868 define.
18869 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18870 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18871 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18872
18873 2019-07-28 Alan Modra <amodra@gmail.com>
18874
18875 PR target/91050
18876 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18877 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18878 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18879 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18880 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18881 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18882 in asm_default spec.
18883 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18884 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18885
18886 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18887
18888 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18889
18890 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18891
18892 PR target/89517
18893 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18894 * config/aarch64/aarch64-option-extensions.def: Add new comments
18895 and restore easier to read options.
18896
18897 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18898
18899 * convert.c (convert_to_real_1): Move part of conversion code...
18900 * match.pd: ...To here.
18901
18902 2019-07-26 Martin Jambor <mjambor@suse.cz>
18903
18904 PR ipa/89330
18905 * ipa-inline-transform.c (check_speculations_1): New function.
18906 (push_all_edges_in_set_to_vec): Likewise.
18907 (check_speculations): Use check_speculations_1, new parameter
18908 new_edges.
18909 (inline_call): Pass new_edges to check_speculations.
18910 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18911 NULL.
18912 (speculation_useful_p): Early return true if edge is inlined, remove
18913 later checks for inline_failed.
18914
18915 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18916
18917 PR rtl-optimization/91223
18918 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18919 matching with INOUT operand.
18920
18921 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18922
18923 * stmt.c (expand_case): Try to narrow the index type if it's larger
18924 than a word. Tidy up.
18925
18926 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18927
18928 * cif-code.def (NEVER_CALL): New code.
18929 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18930 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18931
18932 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18933
18934 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18935 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18936
18937 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18938
18939 * ipa-devirt.c (add_type_duplicate): Fix return value.
18940
18941 2019-07-25 Richard Biener <rguenther@suse.de>
18942
18943 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18944 type parameter and use it instead of guessing expression
18945 type from the first operand.
18946 (extract_range_from_binary_expr): Pass expr_type down.
18947
18948 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18949
18950 * config/arm/arm.md (SATrev): Change to code attribute.
18951 (*satsi_<SAT:code>): Adjust for the above.
18952 (*satsi_<SAT:code>_shift): Likewise.
18953
18954 2019-07-25 Richard Biener <rguenther@suse.de>
18955
18956 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18957 Make value_range * temporary const.
18958 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18959 Likewise.
18960 (evrp_range_analyzer::record_ranges_from_): Likewise.
18961 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18962 deal with having recorded a const one.
18963 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18964 Return a const value_range *.
18965 (evrp_range_analyzer::pop_value_range): Likewise.
18966 (evrp_range_analyzer::stack): Record const value_range *s.
18967 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18968 Adjust.
18969 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18970 (format_integer): Likewise.
18971 (sprintf_dom_walker::handle_gimple_call): Likewise.
18972 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18973 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18974 (vrp_prop::get_value_range): Adjust.
18975 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18976 modifying the lattice in-place.
18977 (vrp_prop::visit_stmt): Likewise.
18978 * vr-values.c (vr_values::get_lattice_entry): New private method.
18979 (vr_values::get_value_range): Wrap it and return a const
18980 value_range *.
18981 (vr_values::set_def_to_varying): New.
18982 (vr_values::set_defs_to_varying): Use it.
18983 (vr_values::update_value_range): Likewise.
18984 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18985 (values::op_with_constant_singleton_va): Likewise.
18986 (vr_values::extract_range_for_var_from_co): Likewise.
18987 (vr_values::extract_range_from_ssa_name): Likewise.
18988 (vr_values::extract_range_from_cond_expr): Likewise.
18989 (vr_values::extract_range_basic): Likewise.
18990 (compare_ranges): Take const value_range *, adjust.
18991 (compare_range_with_value): Likewise.
18992 (vrp_valueize): Adjust.
18993 (vrp_valueize_1): Likewise.
18994 (vr_values::get_vr_for_comparison): Return a const value_range *.
18995 (vr_values::compare_name_with_value): Adjust.
18996 (vr_values::compare_names): Likewise.
18997 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18998 Likewise.
18999 (vr_values::vrp_evaluate_conditional): Likewise.
19000 (find_case_label_ranges): Take a const value_range *.
19001 (vr_values::vrp_visit_switch_stmt): Adjust.
19002 (vr_values::extract_range_from_phi_node): Likewise.
19003 (vr_values::simplify_div_or_mod_using_ran): Likewise.
19004 (vr_values::simplify_abs_using_ranges): Likewise.
19005 (test_for_singularity): Take a const value_range *.
19006 (range_fits_type_p): Likewise.
19007 (vr_values::simplify_cond_using_ranges_1): Adjust.
19008 (vr_values::simplify_cond_using_ranges_2): Likewise.
19009 (vr_values::simplify_switch_using_ranges): Likewise.
19010 (vr_values::simplify_float_conversion_usi): Likewise.
19011 (vr_values::two_valued_val_range_p): Likewise.
19012 * vr-values.h (vr_values::get_value_range): Return a const
19013 value_range *.
19014 (vr_values::set_def_to_varying): New.
19015 (vr_values::get_lattice_entry): New private method.
19016 (vr_values::get_vr_for_comparison): Return a const value_range *.
19017
19018 2019-07-25 Martin Liska <mliska@suse.cz>
19019 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
19020
19021 PR c++/23383
19022 * common.opt: Add -fallocation-dce
19023 * gimple.c (gimple_call_operator_delete_p): New.
19024 * gimple.h (gimple_call_operator_delete_p): Likewise.
19025 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19026 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19027 DECL_IS_OPERATOR_DELETE_P.
19028 (mark_all_reaching_defs_necessary_1): Likewise.
19029 (propagate_necessity): Likewise.
19030 (eliminate_unnecessary_stmts): Handle
19031 gimple_call_operator_delete_p.
19032 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19033 Add packing of OPERATOR_DELETE.
19034 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19035 Similarly here.
19036 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19037 (DECL_SET_IS_OPERATOR_DELETE): New.
19038 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19039
19040 2019-07-25 Martin Liska <mliska@suse.cz>
19041
19042 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19043 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19044 * coverage.c (coverage_begin_function): Likewise.
19045 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19046 * gimple.c (gimple_call_nonnull_result_p): Likewise.
19047 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19048 (sem_item::hash_referenced_symbol_properties): Likewise.
19049 * lto-streamer-out.c (hash_tree): Likewise.
19050 * predict.c (expr_expected_value_1): Likewise.
19051 * tree-inline.c (expand_call_inline): Likewise.
19052 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19053 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19054 * tree-core.h (enum function_decl_type): New enum.
19055 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19056 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19057 (set_function_decl_type): Likewise.
19058 (DECL_IS_OPERATOR_NEW_P): New.
19059 (DECL_SET_IS_OPERATOR_NEW): Likewise.
19060 (DECL_LAMBDA_FUNCTION): Likewise.
19061 (DECL_LAMBDA_FUNCTION_P): Likewise.
19062 (DECL_IS_OPERATOR_NEW): Remove.
19063 (DECL_SET_LAMBDA_FUNCTION): Likewise.
19064
19065 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
19066
19067 * ipa-profile.c (get_most_common_single_value): Use
19068 get_nth_most_common_value.
19069 * profile.c (sort_hist_value): New function.
19070 (compute_value_histograms): Call sort_hist_value to sort the
19071 values after loading from disk.
19072 * value-prof.c (get_most_common_single_value): Rename to ...
19073 get_nth_most_common_value. Add input params n, return
19074 the n_th value and count.
19075 (gimple_divmod_fixed_value_transform): Use
19076 get_nth_most_common_value.
19077 (gimple_ic_transform): Likewise.
19078 (gimple_stringops_transform): Likewise.
19079 * value-prof.h (get_most_common_single_value): Add input params
19080 n, default to 0.
19081
19082 2019-07-25 Richard Biener <rguenther@suse.de>
19083
19084 PR tree-optimization/91236
19085 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19086 size of CONSTRUCTOR write. Fix buffer size we pass to
19087 native_encode_expr.
19088
19089 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19090
19091 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19092 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19093 r273773.
19094
19095 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19096
19097 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19098 explicitly disabled with --disable-initfini-array.
19099
19100 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19101
19102 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19103 if-exists.
19104
19105 2019-07-24 Martin Sebor <msebor@redhat.com>
19106
19107 PR tree-optimization/91183
19108 PR tree-optimization/86688
19109 * builtins.c (compute_objsize): Handle MEM_REF.
19110 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19111 (get_min_string_length): Remove.
19112 (count_nonzero_bytes): New function.
19113 (handle_char_store): Rename...
19114 (handle_store): to this. Handle multibyte stores via integer types.
19115 (strlen_check_and_optimize_stmt): Adjust conditional and the called
19116 function name.
19117
19118 2019-07-24 Martin Sebor <msebor@redhat.com>
19119
19120 PR driver/80545
19121 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19122 (diagnostic_report_diagnostic): Same.
19123 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19124 (diagnostic_context::lang_mask): New data member.
19125 * ipa-pure-const.c (suggest_attribute): Use
19126 lang_hooks.option_lang_mask ().
19127 * opts-common.c (option_enabled): Handle new argument.
19128 (get_option_state): Pass an additional argument.
19129 * opts.c (print_filtered_help): Print supported languages for
19130 unsupported options. Adjust printing of current state.
19131 * opts.h (option_enabled): Add argument.
19132 * toplev.c (print_switch_values): Use lang_mask.
19133 (general_init): Set global_dc->lang_mask.
19134
19135 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19136
19137 PR bootstrap/87030
19138 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19139
19140 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19141
19142 * cgraphunit.c (symbol_table::compile): Start and stop
19143 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19144 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19145
19146 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19147
19148 * gimplify.c (flag_instrument_functions_exclude_p): Include
19149 namespace/class information in the printable name.
19150 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19151 to tokens entered into the vector.
19152
19153 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19154
19155 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19156 (get_static_chain): Call it instead of build_simple_mem_ref.
19157 (get_frame_field): Likewise.
19158 (get_nonlocal_debug_decl): Likewise.
19159 (convert_nonlocal_reference_op): Likewise.
19160
19161 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19162
19163 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19164 declaration.
19165 (arc_compute_frame_size): Millicode is disabled when compiling
19166 ISR.
19167 (arc_return_address_register): Likewise.
19168 (arc_compute_function_type): Likewise.
19169 (arc_compute_frame_size): Likewise.
19170 (secondary_reload_info): Likewise.
19171 (arc_get_unalign): Likewise.
19172 (arc_can_use_return_insn): Declare.
19173 * config/arc/arc.c (AUX_LP_START): Define
19174 (AUX_LP_END): Likewise.
19175 (arc_frame_info): Update gmask member to 64-bit datum.
19176 (GMASK_LEN): Update.
19177 (arc_compute_function_type): Make it static, move it forward.
19178 (arc_must_save_register): Update, consider the extra regs.
19179 (arc_compute_millicode_save_restore_regs): Update to use the 64
19180 bit gmask.
19181 (arc_compute_frame_size): Likewise.
19182 (arc_enter_leave_p): Likewise.
19183 (arc_save_callee_saves): Likewise.
19184 (arc_restore_callee_saves): Likewise.
19185 (arc_save_callee_enter): Likewise.
19186 (arc_restore_callee_leave): Likewise.
19187 (arc_save_callee_milli): Likewise.
19188 (arc_restore_callee_milli): Likewise.
19189 (arc_expand_prologue): Add new interrupt handling.
19190 (arc_return_address_register): Make it static, move it forward.
19191 (arc_expand_epilogue): Add new interrupt handling.
19192 (arc_get_unalign): Delete.
19193 (arc_epilogue_uses): Make sure we do not remove the extra
19194 saved/restored registers when interrupt.
19195 (arc_can_use_return_insn): New function.
19196 (push_reg): Likewise.
19197 (pop_reg): Likewise.
19198 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19199 procedures.
19200 (arc_restore_callee_saves): Likewise, but restoring.
19201 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19202 (R33_REG): Likewise.
19203 (R34_REG): Likewise.
19204 (R35_REG): Likewise.
19205 (R36_REG): Likewise.
19206 (R37_REG): Likewise.
19207 (R38_REG): Likewise.
19208 (R39_REG): Likewise.
19209 (R45_REG): Likewise.
19210 (R46_REG): Likewise.
19211 (R47_REG): Likewise.
19212 (R48_REG): Likewise.
19213 (R49_REG): Likewise.
19214 (R50_REG): Likewise.
19215 (R51_REG): Likewise.
19216 (R52_REG): Likewise.
19217 (R53_REG): Likewise.
19218 (R54_REG): Likewise.
19219 (R55_REG): Likewise.
19220 (R56_REG): Likewise.
19221 (R58_REG): Likewise.
19222 (type): Add rtie attribute.
19223 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19224 (movsi_insn): Accept moves to lp_count.
19225 (rtie): Update pattern.
19226 (simple_return): Simplify it, don't use this pattern as a return
19227 from an interrupt.
19228 (arc600_rtie): New pattern.
19229 (p_return_i): Clean up.
19230 (return): Likewise.
19231 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19232 family CPUs.
19233 * config/arc/predicates.md (move_src_operand): Consider lp_count
19234 as a register.
19235
19236 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19237
19238 * config/s390/predicates.md (addv_const_operand): New predicate.
19239 * config/s390/s390-modes.def (CCO): New condition code mode.
19240 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19241 (s390_branch_condition_mask): Likewise.
19242 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19243 ("mulv<mode>4"): New expanders.
19244 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19245 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19246 pattern definitions.
19247
19248 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19249
19250 PR middle-end/91166
19251 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19252 (define_predicates): Add entry for uniform_vector_p.
19253 (vec_same_elem_p): New match pattern.
19254
19255 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19256
19257 PR bootstrap/87030
19258 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19259 * config/i386/darwin32-biarch.h .. to here.
19260 * config/i386/darwin64-biarch.h: Adjust comments.
19261 * config/rs6000/darwin32-biarch.h: Likewise.
19262 * config/rs6000/darwin64-biarch.h: Likewise.
19263 * config.gcc: Missed commit from r273746
19264 (*-*-darwin*): Don't include CPU t-darwin here.
19265 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19266 an error message if i686-darwin configuration is attempted for
19267 Darwin >= 18.
19268
19269 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19270
19271 PR bootstrap/87030
19272 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19273 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19274 an error message if i686-darwin configuration is attempted for
19275 Darwin >= 18.
19276 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19277 (powerpc-*-darwin*): Use biarch files where needed.
19278 (powerpc64-*-darwin*): Likewise.
19279 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19280 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19281 arch case.
19282 * config/i386/darwin32-biarch.h: New.
19283 * config/i386/darwin64.h: Rename.
19284 * config/i386/darwin64-biarch.h: To this.
19285 * config/i386/t-darwin: Rename.
19286 * config/i386/t-darwin32-biarch: To this.
19287 * config/i386/t-darwin64: Rename.
19288 * config/i386/t-darwin64-biarch: To this.
19289 * config/rs6000/darwin32-biarch.h: New.
19290 * config/rs6000/darwin64.h: Rename.
19291 * config/rs6000/darwin64-biarch.h: To this.
19292 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19293 arch case.
19294 * config/rs6000/t-darwin8: Rename.
19295 * config/rs6000/t-darwin32-biarch: To this.
19296 * config/rs6000/t-darwin64 Rename.
19297 * config/rs6000/t-darwin64-biarch: To this.
19298
19299 2019-07-23 Martin Sebor <msebor@redhat.com>
19300
19301 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19302
19303 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19304
19305 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19306 (rh): New alias for it.
19307
19308 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19309
19310 * gdbhooks.py: Pass replace=True to
19311 gdb.printing.register_pretty_printer.
19312
19313 2019-07-23 Richard Biener <rguenther@suse.de>
19314
19315 PR debug/91231
19316 * lto-streamer-in.c (input_function): Drop inline-entry markers
19317 that ended up with an unknown location block.
19318
19319 2019-07-23 Richard Biener <rguenther@suse.de>
19320
19321 PR tree-optimization/83518
19322 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19323 init from a constant even when partial defs are already recorded.
19324
19325 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19326
19327 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19328 * config/i386/znver1.md: Enable patterns for znver2 and add store
19329 variants which use extra AGU unit.
19330
19331 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19332
19333 * config/i386/i386-options.c (ix86_option_override_internal): Default
19334 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19335 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19336 for ZNVER2.
19337
19338 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19339
19340 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19341 (znver2_costs): Update 256 bit SSE costs and multiplication.
19342
19343 2019-07-23 Jan Beulich <jbeulich@suse.com>
19344
19345 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19346 Require only AVX512F.
19347 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19348 alternative expanding to vpternlog.
19349
19350 2019-07-23 Martin Liska <mliska@suse.cz>
19351
19352 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19353 to -flto in dwarf producer string.
19354
19355 2019-07-23 Richard Biener <rguenther@suse.de>
19356
19357 * tree-cfg.c (label_for_bb): Remove global var.
19358 (main_block_label): Take label_for_bb as argument.
19359 (cleanup_dead_labels_eh): Likewise, adjust.
19360 (cleanup_dead_labels): Adjust.
19361
19362 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19363
19364 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19365 Configurations): Add documentation for __builtin_mtfsf.
19366
19367 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19368
19369 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19370 * config/riscv/riscv.c (riscv_constant_alignment): Use
19371 riscv_align_data_type.
19372 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19373 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19374 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19375 * config/riscv/riscv.opt (malign-data): New.
19376 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19377
19378 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19379
19380 * cgraph.c (dump_graphviz): New function.
19381 * cgraph.h (dump_graphviz): New function.
19382 * symtab.c (dump_graphviz): New function.
19383
19384 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19385
19386 * config/aarch64/aarch64-simd.md
19387 (*aarch64_simd_sra<mode>): New.
19388 * config/aarch64/iterators.md
19389 (SHIFTRT): New iterator.
19390 (sra_op): New attribute.
19391
19392 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19393
19394 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19395 callee-saved regs R4->R10 in an interrupt function that calls another
19396 function.
19397
19398 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19399
19400 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19401 (_mm_blendv_epi8): New.
19402
19403 2019-07-22 Richard Biener <rguenther@suse.de>
19404
19405 PR tree-optimization/91221
19406 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19407 restrict partial-def handling of empty constructors and
19408 memset to refs with known offset.
19409
19410 2019-07-22 Jan Beulich <jbeulich@suse.com>
19411
19412 * config/i386/sse.md (ternlogsuffix): New.
19413 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19414 AVX512F is in use.
19415 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19416
19417 2019-07-22 Martin Liska <mliska@suse.cz>
19418
19419 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19420 comment.
19421 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19422
19423 2019-07-22 Martin Liska <mliska@suse.cz>
19424
19425 * lto-section-in.c (lto_get_section_data):
19426 Use new function get_compression.
19427 * lto-streamer-out.c (produce_lto_section): Use
19428 set_compression to encode compression algorithm.
19429 * lto-streamer.h (struct lto_section): Do not
19430 use bitfields in the format.
19431
19432 2019-07-22 Martin Liska <mliska@suse.cz>
19433
19434 PR driver/91172
19435 * opts-common.c (decode_cmdline_option): Decode
19436 argument of -Werror and check it for a wrong language.
19437 * opts-global.c (complain_wrong_lang): Remove such case.
19438
19439 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19440
19441 * config/arc/arc.c (prepare_move_operands): Always use an
19442 intermediate register when storing a TLS symbols.
19443
19444 2019-07-22 Stafford Horne <shorne@gmail.com>
19445
19446 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19447 force_reg.
19448
19449 2019-07-22 Stafford Horne <shorne@gmail.com>
19450
19451 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19452 and munordered-float validations.
19453 * config/or1k/constraints.md (d): New register constraint.
19454 * config/or1k/predicates.md (fp_comparison_operator): New.
19455 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19456 operands.
19457 (or1k_expand_compare): Normalize unordered comparisons.
19458 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19459 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19460 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19461 * config/or1k/or1k.md (type): Add fpu.
19462 (fpu): New instruction reservation.
19463 (F, f, fr, fi, FI, FOP, fop): New.
19464 (<fop><F:mode>3): New ALU instruction definition.
19465 (float<fi><F:mode>2): New conversion instruction definition.
19466 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19467 (fpcmpcc): New code iterator.
19468 (*sf_fp_insn): New instruction definition.
19469 (cstore<F:mode>4): New expand definition.
19470 (cbranch<F:mode>4): New expand definition.
19471 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19472 munordered-float): New options.
19473 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19474 munordered-float.
19475
19476 2019-07-22 Stafford Horne <shorne@gmail.com>
19477
19478 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19479 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19480 documenation to be more clear.
19481 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19482 more clear.
19483 * config/or1k/or1k.opt (mrori): New option.
19484 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19485 msfimm, mshftimm): Rewrite documentation to be more clear.
19486 * config/or1k/or1k.md (insn_support): Add ror and rori.
19487 (enabled): Add conditions for ror and rori.
19488 (rotrsi3): Replace condition for shftimm with ror and rori.
19489
19490 2019-07-22 Stafford Horne <shorne@gmail.com>
19491
19492 PR target/90363
19493 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19494 (extend<mode>si2): Update predicate.
19495 * config/or1k/predicates.md (volatile_mem_operand): New.
19496 (reg_or_mem_operand): New.
19497
19498 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19499
19500 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19501 * config/rs6000/rs6000-call.c: ... to here.
19502
19503 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19504
19505 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19506 memory.
19507
19508 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19509
19510 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19511
19512 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19513
19514 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19515
19516 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19517
19518 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19519 (any_memory_operand): New predicate.
19520 (reg_or_mem_operand): Use it.
19521
19522 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19523
19524 PR target/91204
19525 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19526
19527 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19528
19529 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19530 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19531
19532 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19533
19534 * tree.def (OMP_LOOP): New tree code.
19535 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19536 (enum omp_clause_bind_kind): New enum.
19537 (struct tree_omp_clause): Add subcode.bind_kind.
19538 * tree.h (OMP_LOOP_CHECK): Rename to ...
19539 (OMP_LOOPING_CHECK): ... this.
19540 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19541 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19542 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19543 (OMP_CLAUSE_BIND_KIND): Define.
19544 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19545 bind clause entries.
19546 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19547 * tree-pretty-print.c (dump_omp_clause): Likewise.
19548 (dump_generic_node): Handle OMP_LOOP.
19549 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19550 (in_omp_construct): New variable.
19551 (is_gimple_stmt): Handle OMP_LOOP.
19552 (gimplify_scan_omp_clauses): For lastprivate don't set
19553 check_non_private if code == OMP_LOOP. For reduction clause
19554 on OMP_LOOP combined with parallel or teams propagate as shared
19555 on the combined construct. Handle OMP_CLAUSE_BIND.
19556 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19557 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19558 for constructs from a loop construct to gimplify_scan_omp_clauses.
19559 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19560 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19561 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19562 to match the implicit ORT_TARGET construct around whole body.
19563 Temporarily clear in_omp_construct when processing body.
19564 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19565 etc. temporarily set in_omp_construct when processing body.
19566 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19567 * omp-low.c (struct omp_context): Add loop_p.
19568 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19569 in that the original var might be private.
19570 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19571 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19572 addition of loop construct.
19573 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19574
19575 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19576 lastprivate non-addressable iterator of a collapse(1) simd.
19577
19578 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19579
19580 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19581 as in rs6000.c.
19582
19583 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19584
19585 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19586 refer to default conditions. Warn for the 'y' spec which is ignored
19587 by current linkers.
19588
19589 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19590
19591 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19592 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19593 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19594 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19595 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19596 init_cumulative_args, rs6000_promote_function_mode,
19597 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19598 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19599 rs6000_function_arg_boundary, rs6000_parm_offset,
19600 rs6000_parm_start, rs6000_arg_size,
19601 rs6000_darwin64_record_arg_advance_flush,
19602 rs6000_darwin64_record_arg_advance_recurse,
19603 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19604 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19605 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19606 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19607 rs6000_finish_function_arg, rs6000_function_arg,
19608 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19609 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19610 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19611 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19612 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19613 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19614 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19615 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19616 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19617 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19618 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19619 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19620 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19621 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19622 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19623 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19624 get_element_number, altivec_expand_vec_set_builtin,
19625 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19626 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19627 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19628 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19629 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19630 rs6000_expand_builtin, rs6000_vector_type,
19631 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19632 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19633 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19634 to rs6000-call.c.
19635 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19636 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19637 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19638 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19639 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19640 init_cumulative_args, rs6000_promote_function_mode,
19641 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19642 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19643 rs6000_function_arg_boundary, rs6000_parm_offset,
19644 rs6000_parm_start, rs6000_arg_size,
19645 rs6000_darwin64_record_arg_advance_flush,
19646 rs6000_darwin64_record_arg_advance_recurse,
19647 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19648 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19649 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19650 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19651 rs6000_finish_function_arg, rs6000_function_arg,
19652 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19653 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19654 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19655 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19656 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19657 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19658 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19659 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19660 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19661 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19662 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19663 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19664 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19665 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19666 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19667 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19668 get_element_number, altivec_expand_vec_set_builtin,
19669 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19670 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19671 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19672 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19673 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19674 rs6000_expand_builtin, rs6000_vector_type,
19675 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19676 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19677 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19678 to here from rs6000.c.
19679 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19680 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19681 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19682 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19683 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19684 rs6000_return_in_memory, rs6000_return_in_msb,
19685 rs6000_pass_by_reference, setup_incoming_varargs,
19686 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19687 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19688 rs6000_function_arg_padding, rs6000_function_arg,
19689 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19690 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19691 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19692 rs6000_passes_long_double, rs6000_passes_vector,
19693 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19694 altivec_builtin_mask_for_load) Add declarations.
19695 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19696 * config/config.gcc: Add new source file rs6000-call.c to garbage
19697 collector and extra_objs.
19698
19699 2019-07-19 Jeff Law <law@redhat.com>
19700
19701 PR tree-optimization/86061
19702 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19703 strncpy. Drop some trivial dead code.
19704 (maybe_trim_memstar_call): Handle strncpy.
19705
19706 2019-07-19 Richard Biener <rguenther@suse.de>
19707
19708 PR tree-optimization/91211
19709 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19710 memset encoding size.
19711
19712 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19713
19714 PR target/91204
19715 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19716
19717 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19718
19719 PR ipa/91194
19720 * ipa-inline.c (recursive_inlining): Fix limits check.
19721
19722 2019-07-19 Richard Biener <rguenther@suse.de>
19723
19724 PR tree-optimization/91200
19725 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19726 no PHI nodes in middle-bb.
19727
19728 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19729
19730 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19731 to +sve-bitperm.
19732 * config/aarch64/aarch64-option-extensions.def: Likewise.
19733
19734 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19735
19736 PR middle-end/91190
19737 * function.c (insert_temp_slot_address): Store into the hash table
19738 a copy of address to avoid RTL sharing issues.
19739
19740 2019-07-19 Richard Biener <rguenther@suse.de>
19741
19742 PR tree-optimization/91207
19743 Revert
19744 2019-07-17 Richard Biener <rguenther@suse.de>
19745
19746 PR tree-optimization/91178
19747 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19748 loads with a gap larger than the vector size always use
19749 VMAT_STRIDED_SLP.
19750 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19751 avoid loading vectors that are only contained in the gap
19752 and thus are not needed.
19753
19754 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19755
19756 * config/i386/i386.md (*addqi_2_slp): Remove.
19757 (*<code>qi_2_slp): Ditto.
19758
19759 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19760
19761 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19762 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19763 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19764 Rename function from rs6000_prefixed_address.
19765 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19766 TARGET_HAS_TOC.
19767 (TARGET_TOC): Likewise.
19768 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19769 rs6000.h.
19770 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19771 TARGET_HAS_TOC.
19772 (TARGET_TOC): Likewise.
19773 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19774 rs6000.h.
19775 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19776 TARGET_HAS_TOC.
19777 (TARGET_TOC): Likewise.
19778 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19779 check to require -mcmodel=medium for pc-relative addressing.
19780 (create_TOC_reference): Add assertion for TARGET_TOC.
19781 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19782 TARGET_NO_TOC.
19783 (rs6000_emit_move): Likewise.
19784 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19785 to 'TOC_alias_set'.
19786 (get_TOC_alias_set): Likewise.
19787 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19788 TARGET_NO_TOC.
19789 (rs6000_can_eliminate): Likewise.
19790 (rs6000_prefixed_address_mode_p): Rename function from
19791 rs6000_prefixed_address.
19792 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19793 TARGET_HAS_TOC and not pc-relative.
19794 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19795 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19796 TARGET_HAS_TOC.
19797 (TARGET_TOC): Likewise.
19798 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19799 rs6000.h.
19800
19801 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19802
19803 PR target/91188
19804 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19805 for operand 0. Do not use (match_dup) to match operand 1 with
19806 operand 0. Add check in insn constraint that either input operand
19807 matches operand 0. Use SWI12 mode iterator to also handle
19808 HImode operands.
19809 (*and<mode>_1_slp): Ditto.
19810 (*<code>qi_1_slp): Ditto.
19811 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19812 Do not use (match_dup) to match operand 1 with operand 0. Add
19813 check in insn constraint that operand 1 matches operand 0.
19814 Use SWI12 mode iterator to also handle HImode operands.
19815 (*ashl<mode>3_1_slp): Ditto.
19816 (*<shift_insn><mode>3_1_slp): Ditto.
19817 (*<rotate_insn><mode>3_1_slp): Ditto.
19818
19819 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19820
19821 * config/arm/arm-builtins.c
19822 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19823 (arm_expand_unop_builtin): Likewise.
19824 * config/arm/crypto.md
19825 (crypto_sha1h): Convert from define_insn to define_expand.
19826 (crypto_<crypto_pattern>): Likewise.
19827 (crypto_sha1h_lb): New define_insn.
19828 (crypto_<crypto_pattern>_lb): Likewise.
19829
19830 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19831
19832 PR target/90317
19833 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19834 (vsha1cq_u32): Likewise.
19835 (vsha1pq_u32): Likewise.
19836 (vsha1mq_u32): Likewise.
19837 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19838 vec select.
19839 (crypto_sha1c): Correct vec select.
19840 (crypto_sha1m): Likewise.
19841 (crypto_sha1p): Likewise.
19842
19843 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19844
19845 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19846 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19847 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19848 (subdi_zesidi_zesidi): Likewise.
19849 (negdi2_compare, negdi2_insn): Likewise.
19850 (negdi_extensidi): Likewise.
19851 (negdi_zero_extendsidi): Likewise.
19852 (arm_cmpdi_insn): Likewise.
19853 (subsi3_carryin): Use arm_borrow_operation.
19854 (subsi3_carryin_const): Likewise.
19855 (subsi3_carryin_const0): Likewise.
19856 (subsi3_carryin_compare): Likewise.
19857 (subsi3_carryin_compare_const): Likewise.
19858 (subsi3_carryin_compare_const0): Likewise.
19859 (subsi3_carryin_shift): Likewise.
19860 (rsbsi3_carryin_shift): Likewise.
19861 (negsi2_carryin_compare): Likewise.
19862
19863 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19864
19865 PR tree-optimization/91137
19866 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19867 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19868 Init, use and fini the above new field.
19869 (determine_base_object_1): New function.
19870 (determine_base_object): Reimplement using walk_tree.
19871
19872 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19873
19874 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19875 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19876 CLEANUP_FORCE_FAST_DCE is set.
19877 * ifcvt.c (rest_of_handle_if_conversion): Pass
19878 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19879 if-conversion succeeded.
19880
19881 2019-07-18 Richard Biener <rguenther@suse.de>
19882
19883 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19884 branches to make code less indented.
19885
19886 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19887
19888 PR middle-end/81824
19889 * attribs.c (decls_mismatched_attributes): Simplify the logic
19890 that avoids duplicates and false positives.
19891
19892 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19893
19894 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19895 data into data section when generating PIC code.
19896 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19897 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19898 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19899 return 2 for SOM and 0 for other targets.
19900
19901 2019-07-17 Jeff Law <law@redhat.com>
19902
19903 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19904 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19905 avoid unexpected switch statement fallthru.
19906
19907 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19908
19909 * config/i386/i386.md (*add<dwi>3_doubleword):
19910 Remove redundant constraints.
19911 (*add<mode>_1): Ditto.
19912 (*addhi_1): Ditto.
19913 (*addqi_1): Ditto.
19914 (*addqi_1_slp): Ditto.
19915 (*add<mode>_2): Ditto.
19916 (*addv<mode>4): Ditto.
19917 (*sub<dwi>3_doubleword): Ditto.
19918 (*sub<mode>_1): Ditto.
19919 (*subqi_1_slp): Ditto.
19920 (*sub<mode>_2): Ditto.
19921 (*subv<mode>4): Ditto.
19922 (*sub<mode>_3): Ditto.
19923 (@add<mode>3_carry): Ditto.
19924 (@sub<mode>3_carry): Ditto.
19925 (*add<mode>3_cc_overflow_1): Ditto.
19926 (*add<mode>3_zext_cc_overflow_2): Ditto.
19927 (*anddi_1): Ditto.
19928 (*and<mode>_1): Ditto.
19929 (*andqi_1): Ditto.
19930 (*andqi_1_slp): Ditto.
19931 (*anddi_2): Ditto.
19932 (*andqi_2_maybe_si): Ditto.
19933 (*and<mode>_2): Ditto.
19934 (*andqi_2_slp): Ditto.
19935 (*<code><mode>_1): Ditto.
19936 (*<code>qi_1): Ditto.
19937 (*<code>qi_1_slp): Ditto.
19938 (*<code><mode>_2): Ditto.
19939 (*<code>qi_2_slp): Ditto.
19940
19941 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19942
19943 * alias.c (record_component_aliases): Do not simplify pointed-to
19944 types of ODR types.
19945
19946 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19947
19948 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19949 partial reg stall on alternative 2.
19950
19951 2019-07-17 Richard Biener <rguenther@suse.de>
19952
19953 PR tree-optimization/91178
19954 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19955 lower SSA names to avoid quadratic behavior in the common case.
19956 * tree-data-ref.c (split_constant_offset): Add limit argument
19957 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19958 (split_constant_offset_1): Add limit argument and use it to
19959 limit SSA def walking. Optimize the common plus/minus case.
19960
19961 2019-07-17 Richard Biener <rguenther@suse.de>
19962
19963 PR tree-optimization/91178
19964 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19965 loads with a gap larger than the vector size always use
19966 VMAT_STRIDED_SLP.
19967 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19968 avoid loading vectors that are only contained in the gap
19969 and thus are not needed.
19970
19971 2019-07-17 Richard Biener <rguenther@suse.de>
19972
19973 PR tree-optimization/91180
19974 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19975 computation for memset partial defs.
19976
19977 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19978
19979 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19980 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19981 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19982 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19983 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19984 * omp-grid.c (grid_process_grid_body,
19985 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19986 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19987 == GF_OMP_FOR_KIND_SIMD.
19988 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19989 check_omp_nesting_restrictions, scan_omp_1_stmt,
19990 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19991 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19992 omp_find_scan): Likewise.
19993 * omp-expand.c (expand_omp_for): Likewise.
19994 * omp-general.c (omp_extract_for_data): Likewise.
19995
19996 PR tree-optimization/91157
19997 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19998 a vector boolean with scalar mode.
19999 (expand_vector_condition): Handle first operand being a vector boolean
20000 with scalar mode.
20001 (expand_vector_operations_1): For comparisons, don't bail out early
20002 if the return type is vector boolean with scalar mode, but comparison
20003 operand type is not.
20004
20005 2019-07-17 Richard Biener <rguenther@suse.de>
20006
20007 PR tree-optimization/91181
20008 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20009 IFN_LOADs as calls.
20010
20011 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
20012
20013 * config/i386/i386.md (*testdi_1): Match CCZmode for
20014 constants that might have the SImode sign bit set.
20015 (*testqi_1_maybe_si): Remove "!" constraint modifier.
20016 Use correct constraints for pentium pairing.
20017 (*test<mode>_1): Ditto.
20018
20019 2019-07-16 Jeff Law <law@redhat.com>
20020
20021 PR rtl-optimization/91173
20022 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20023 SSA_NAME with a constant value, fold its value into the offset
20024 and clear the base before calling gen_addr_rtx.
20025
20026 2019-07-16 Jakub Jelinek <jakub@redhat.com>
20027
20028 PR rtl-optimization/91164
20029 * dse.c (rest_of_handle_dse): If dead edges have been purged,
20030 invalidate dominance info.
20031
20032 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20033
20034 * read-md.h (md_reader::record_potential_iterator_use): Add a
20035 file_location parameter.
20036 * read-rtl.c (attribute_use::loc): New field.
20037 (map_attr_string): Take a file_location parameter. Report cases
20038 in which attributes map to multiple distinct values.
20039 (apply_attribute_uses): Update call accordingly.
20040 (md_reader::handle_overloaded_name): Likewise.
20041 (md_reader::apply_iterator_to_string): Likewise. Skip empty
20042 nonnull strings.
20043 (record_attribute_use): Take a file_location parameter.
20044 Initialize attribute_use::loc.
20045 (md_reader::record_potential_iterator_use): Take a file_location
20046 parameter. Update call to record_attribute_use.
20047 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20048 (rtx_reader::read_rtx_code): Likewise.
20049 (rtx_reader::read_rtx_operand): Likewise. Record a location
20050 for implicitly-expanded empty strings.
20051
20052 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20053
20054 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20055 Use file_location instead of separate fields.
20056 (md_reader::set_md_ptr_loc): Take a file_location instead of a
20057 separate filename and line number.
20058 * read-md.c (ptr_loc): As above.
20059 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20060 (md_reader::fprint_md_ptr_loc): Likewise.
20061 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
20062 instead of a separate filename and line number.
20063 (md_reader::read_string): Update call accordingly.
20064
20065 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20066
20067 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20068 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20069 leaving the choice between SFDF and P implicit.
20070 (*mov<mode>_update2): Likewise.
20071 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20072 rather than leaving the choice betweem IBM128 and GPR implicit.
20073 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20074 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20075 QHSI implicit.
20076 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20077 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20078 * config/rs6000/vsx.md
20079 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20080 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20081 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20082 and VSX_EXTRACT_I implicit.
20083
20084 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20085
20086 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20087 Explicitly use <MOVEP1:MODE> for the mode attribute.
20088
20089 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
20090
20091 PR bootstrap/91176
20092 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20093
20094 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
20095
20096 PR target/91050
20097 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20098 .machine directive.
20099
20100 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
20101
20102 * config/i386/i386.md (@test<mode>_ccno_1):
20103 Rename from test<mode>_ccno_1.
20104 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
20105 (*testqi_1_maybe_si): Remove modrm attribute.
20106 (*test<mode>_1): Ditto.
20107 * config/i386/i386-expand.c (ix86_split_idivmod): Use
20108 gen_test_ccno_1 and gen_extend_insn.
20109
20110 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
20111
20112 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20113 to 0.
20114
20115 2019-07-15 Richard Biener <rguenther@suse.de>
20116
20117 PR middle-end/91162
20118 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20119 node make sure to replace all uses with something valid.
20120
20121 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20122
20123 PR tree-optimization/88497
20124 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20125 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20126 function undistribute_bitref_for_vector.
20127 (undistribute_bitref_for_vector): New function.
20128 (cleanup_vinfo_map): Likewise.
20129 (sort_by_mach_mode): Likewise.
20130
20131 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20132
20133 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20134 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20135 and testdi_ccno_1 using SWI48 mode attribute.
20136 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20137 x86_64_szext_general_operand.
20138 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20139 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20140 instead of genera_operand mode attribute.
20141
20142 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20143
20144 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20145 fopen and fclose to their respective types.
20146 (DotFn.invoke): Ditto.
20147
20148 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20149
20150 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20151 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20152 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20153 (array_index_predicate): Remove.
20154 (analyze_function_body): Account cost for variable ofsetted array
20155 indexing.
20156 (estimate_node_size_and_time): Do not compute array index hint.
20157 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20158 (inline_read_section): Do not read array index hint.
20159 (ipa_fn_summary_write): Do not write array index hint.
20160 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20161 * ipa-cp.c (hint_time_bonus): Remove.
20162 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20163 (ipa_fnsummary): Remove array_index.
20164 * ipa-inline.c (want_inline_small_function_p): Do not use
20165 array_index.
20166 (edge_badness): Likewise.
20167 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20168
20169 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20170
20171 PR target/91148
20172 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20173 superfluous "builtin function" phrasing.
20174
20175 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20176
20177 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20178 Break out from ...
20179 (aliasing_component_refs_walk): Break out from ...
20180 (aliasing_component_refs_p): ... here.
20181
20182 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20183
20184 PR target/91148
20185 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20186 "builtin function" phrasing.
20187
20188 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20189
20190 PR target/90723
20191 * recog.h (temporary_volatile_ok): New class.
20192 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20193 volatile_ok temporarily to true using temporary_volatile_ok.
20194 * expr.c (emit_block_move_via_cpymem): Likewise.
20195 * optabs.c (maybe_legitimize_operand): Likewise.
20196
20197 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20198
20199 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20200 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20201 uses inside of order(concurrent) constructs.
20202 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20203 OMP_CLAUSE_ORDER is seen.
20204 * omp-low.c (struct omp_context): Add order_concurrent member.
20205 (scan_sharing_clauses): Set ctx->order_concurrent if
20206 OMP_CLAUSE_ORDER is seen.
20207 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20208 of simd order(concurrent). Diagnose constructs not allowed inside of
20209 for order(concurrent).
20210 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20211 complaining about static double setjmp (double); or class static
20212 methods or non-global namespace setjmps.
20213 (omp_runtime_api_call): New function.
20214 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20215 order(concurrent) loops.
20216
20217 2019-07-12 Martin Sebor <msebor@redhat.com>
20218
20219 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20220 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20221 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20222 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20223
20224 2019-07-12 Jan Hubicka <jh@suse.cz>
20225
20226 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20227 (indirect_refs_may_alias_p): ... here.
20228 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20229 mem refs in the access paths.
20230
20231 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20232
20233 PR tree-optimization/89430
20234 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20235 store elimination for local variable without address escape.
20236
20237 2019-07-12 Jeff Law <law@redhat.com>
20238
20239 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20240 for the ".far" section.
20241
20242 2019-07-12 Richard Biener <rguenther@suse.de>
20243
20244 PR tree-optimization/91145
20245 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20246 chain check.
20247
20248 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20249
20250 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20251 rather than this_state as the lowering context for the ELSE
20252 seq in a GIMPLE_EH_ELSE.
20253
20254 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20255
20256 * vector-builder.h (vector_builder::elt): Allow already-supplied
20257 elements to be read back before building is complete.
20258
20259 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20260
20261 PR rtl-optimization/91136
20262 * df-core.c (ACCESSING REFS): Fix typos in comment.
20263 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20264 the beginning of the block to the initial set of live registers.
20265
20266 2019-07-12 Richard Biener <rguenther@suse.de>
20267
20268 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20269 * fold-const.c (get_array_ctor_element_at_index): Add
20270 ctor_idx output parameter informing the caller where in
20271 the constructor the element was (not) found. Add early exit
20272 for when the ctor is sorted.
20273 * gimple-fold.c (fold_array_ctor_reference): Support constant
20274 folding across multiple array elements.
20275
20276 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20277
20278 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20279 doesn't have location, set the current location to the function's end.
20280
20281 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20282
20283 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20284 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20285 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20286 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20287 * config/aarch64/aarch64-simd.md
20288 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20289 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20290 * config/aarch64/aarch64-sve.md
20291 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20292 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20293
20294 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20295
20296 * doc/md.texi: Document that @ patterns can have different
20297 numbers of operands.
20298 * genemit.c (handle_overloaded_gen): Handle this case.
20299 * genopinit.c (handle_overloaded_gen): Likewise.
20300 * gensupport.c (replace_operands_with_dups): Iterate over
20301 the new rtx's format rather than the old one's.
20302
20303 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20304
20305 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20306 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20307 order clause entries.
20308 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20309 * tree-pretty-print.c (dump_omp_clause): Likewise.
20310 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20311 Likewise.
20312 * omp-low.c (scan_sharing_clauses): Likewise.
20313 * tree-nested.c (convert_nonlocal_omp_clauses,
20314 convert_local_omp_clauses): Likewise.
20315
20316 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20317
20318 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20319 fallthrough target of current basic block isn't the placed
20320 right next.
20321
20322 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20323
20324 PR target/90980
20325 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20326 (_mm512_storeu_epi64): Likewise.
20327 (_mm512_loadu_epi32): Likewise.
20328 (_mm512_storeu_epi32): Likewise.
20329 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20330 (_mm_storeu_epi64): Likewise.
20331 (_mm256_storeu_epi32): Likewise.
20332 (_mm_storeu_epi32): Likewise.
20333
20334 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20335
20336 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20337
20338 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20339
20340 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20341 Handle Modula-2.
20342
20343 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20344
20345 PR target/91124
20346 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20347 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20348 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20349 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20350 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20351 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20352 define_insns.
20353 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20354 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20355 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20356 define_insns.
20357 (sse2_cvttpd2dq<mask_name>): Change into ...
20358 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20359 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20360 (*sse2_cvtpd2dq<mask_name>): Change into ...
20361 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20362 Add "C" constraint to const0_operand.
20363 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20364 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20365 changes.
20366
20367 PR target/91124
20368 * config/i386/i386-builtin-types.def
20369 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20370 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20371 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20372 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20373 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20374 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20375 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20376 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20377 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20378 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20379 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20380 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20381 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20382 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20383 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20384 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20385 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20386 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20387 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20388 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20389 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20390 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20391 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20392 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20393 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20394 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20395 __builtin_ia32_vpdpbusd_v4si_maskz,
20396 __builtin_ia32_vpdpbusds_v16si_mask,
20397 __builtin_ia32_vpdpbusds_v16si_maskz,
20398 __builtin_ia32_vpdpbusds_v8si_mask,
20399 __builtin_ia32_vpdpbusds_v8si_maskz,
20400 __builtin_ia32_vpdpbusds_v4si_mask,
20401 __builtin_ia32_vpdpbusds_v4si_maskz,
20402 __builtin_ia32_vpdpwssd_v16si_mask,
20403 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20404 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20405 __builtin_ia32_vpdpwssd_v4si_maskz,
20406 __builtin_ia32_vpdpwssds_v16si_mask,
20407 __builtin_ia32_vpdpwssds_v16si_maskz,
20408 __builtin_ia32_vpdpwssds_v8si_mask,
20409 __builtin_ia32_vpdpwssds_v8si_maskz,
20410 __builtin_ia32_vpdpwssds_v4si_mask,
20411 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20412 suffixed types rather than *_INT.
20413 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20414 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20415 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20416 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20417 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20418 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20419
20420 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20421
20422 * tree-vrp.c (intersect_ranges): If we know the intersection is
20423 empty, there is no need to conservatively add anything else to
20424 the set.
20425
20426 2019-07-11 Richard Biener <rguenther@suse.de>
20427
20428 PR middle-end/91131
20429 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20430 when the object is volatile and we have not cleared it even though
20431 there are no nonzero elements.
20432
20433 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20434
20435 * config/rs6000/predicates.md (cint34_operand): Update
20436 SIGNED_34BIT_OFFSET_P call.
20437 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20438 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20439 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20440 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20441 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20442 argument.
20443 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20444 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20445 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20446 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20447 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20448
20449 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20450
20451 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20452 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20453 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20454 (DEF_MIN_OSX_VERSION): New.
20455
20456 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20457
20458 * fold-const.c (fold_relational_const): Fix folding of
20459 vector-to-scalar NE_EXPRs.
20460 (test_vector_folding): Add more tests.
20461
20462 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20463
20464 PR target/91060
20465 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20466 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20467 (vec_setv2di_internal): Reexpress as...
20468 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20469 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20470 rather than gen_neon_vset_lane<mode>.
20471
20472 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20473
20474 PR target/91102
20475 * lra-constraints.c (process_alt_operands): Don't match user
20476 defined regs only if they are early clobbers.
20477
20478 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20479
20480 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20481
20482 2019-07-10 Richard Biener <rguenther@suse.de>
20483
20484 PR tree-optimization/91126
20485 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20486 native encoding offset for BYTES_BIG_ENDIAN.
20487 (vn_reference_lookup_3): Likewise.
20488
20489 2019-07-10 Richard Biener <rguenther@suse.de>
20490
20491 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20492 LHS whenever possible.
20493
20494 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20495
20496 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20497 from ...; work also on duplicated types.
20498 (nonoverlapping_component_refs_since_match): ... here
20499 (ncr_type_uid): Break out from ...
20500 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20501 available.
20502 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20503 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20504
20505 2019-07-09 Martin Sebor <msebor@redhat.com>
20506
20507 PR tree-optimization/90989
20508 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20509 optimization to just single character stores.
20510
20511 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20512
20513 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20514 Swap operands only once.
20515
20516 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20517
20518 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20519 for both call instructions.
20520
20521 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20522
20523 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20524 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20525
20526 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20527
20528 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20529 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20530 function from rs6000-logue.c back to rs6000.c.
20531 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20532
20533 2019-07-09 Martin Sebor <msebor@redhat.com>
20534
20535 PR c++/61339
20536 * auto-profile.c: Change class-key of PODs to struct and others
20537 to class.
20538 * basic-block.h: Same.
20539 * bitmap.c (bitmap_alloc): Same.
20540 * bitmap.h: Same.
20541 * builtins.c (expand_builtin_prefetch): Same.
20542 (expand_builtin_interclass_mathfn): Same.
20543 (expand_builtin_strlen): Same.
20544 (expand_builtin_mempcpy_args): Same.
20545 (expand_cmpstr): Same.
20546 (expand_builtin___clear_cache): Same.
20547 (expand_ifn_atomic_bit_test_and): Same.
20548 (expand_builtin_thread_pointer): Same.
20549 (expand_builtin_set_thread_pointer): Same.
20550 * caller-save.c (setup_save_areas): Same.
20551 (replace_reg_with_saved_mem): Same.
20552 (insert_restore): Same.
20553 (insert_save): Same.
20554 (add_used_regs): Same.
20555 * cfg.c (get_bb_copy): Same.
20556 (set_loop_copy): Same.
20557 * cfg.h: Same.
20558 * cfganal.h: Same.
20559 * cfgexpand.c (alloc_stack_frame_space): Same.
20560 (add_stack_var): Same.
20561 (add_stack_var_conflict): Same.
20562 (add_scope_conflicts_1): Same.
20563 (update_alias_info_with_stack_vars): Same.
20564 (expand_used_vars): Same.
20565 * cfghooks.c (redirect_edge_and_branch_force): Same.
20566 (delete_basic_block): Same.
20567 (split_edge): Same.
20568 (make_forwarder_block): Same.
20569 (force_nonfallthru): Same.
20570 (duplicate_block): Same.
20571 (lv_flush_pending_stmts): Same.
20572 * cfghooks.h: Same.
20573 * cfgloop.c (flow_loops_cfg_dump): Same.
20574 (flow_loop_nested_p): Same.
20575 (superloop_at_depth): Same.
20576 (get_loop_latch_edges): Same.
20577 (flow_loop_dump): Same.
20578 (flow_loops_dump): Same.
20579 (flow_loops_free): Same.
20580 (flow_loop_nodes_find): Same.
20581 (establish_preds): Same.
20582 (flow_loop_tree_node_add): Same.
20583 (flow_loop_tree_node_remove): Same.
20584 (flow_loops_find): Same.
20585 (find_subloop_latch_edge_by_profile): Same.
20586 (find_subloop_latch_edge_by_ivs): Same.
20587 (mfb_redirect_edges_in_set): Same.
20588 (form_subloop): Same.
20589 (merge_latch_edges): Same.
20590 (disambiguate_multiple_latches): Same.
20591 (disambiguate_loops_with_multiple_latches): Same.
20592 (flow_bb_inside_loop_p): Same.
20593 (glb_enum_p): Same.
20594 (get_loop_body_with_size): Same.
20595 (get_loop_body): Same.
20596 (fill_sons_in_loop): Same.
20597 (get_loop_body_in_dom_order): Same.
20598 (get_loop_body_in_custom_order): Same.
20599 (release_recorded_exits): Same.
20600 (get_loop_exit_edges): Same.
20601 (num_loop_branches): Same.
20602 (remove_bb_from_loops): Same.
20603 (find_common_loop): Same.
20604 (delete_loop): Same.
20605 (cancel_loop): Same.
20606 (verify_loop_structure): Same.
20607 (loop_preheader_edge): Same.
20608 (loop_exit_edge_p): Same.
20609 (single_exit): Same.
20610 (loop_exits_to_bb_p): Same.
20611 (loop_exits_from_bb_p): Same.
20612 (get_loop_location): Same.
20613 (record_niter_bound): Same.
20614 (get_estimated_loop_iterations_int): Same.
20615 (max_stmt_executions_int): Same.
20616 (likely_max_stmt_executions_int): Same.
20617 (get_estimated_loop_iterations): Same.
20618 (get_max_loop_iterations): Same.
20619 (get_max_loop_iterations_int): Same.
20620 (get_likely_max_loop_iterations): Same.
20621 * cfgloop.h (simple_loop_desc): Same.
20622 (get_loop): Same.
20623 (loop_depth): Same.
20624 (loop_outer): Same.
20625 (loop_iterator::next): Same.
20626 (loop_outermost): Same.
20627 * cfgloopanal.c (mark_irreducible_loops): Same.
20628 (num_loop_insns): Same.
20629 (average_num_loop_insns): Same.
20630 (expected_loop_iterations_unbounded): Same.
20631 (expected_loop_iterations): Same.
20632 (mark_loop_exit_edges): Same.
20633 (single_likely_exit): Same.
20634 * cfgloopmanip.c (fix_bb_placement): Same.
20635 (fix_bb_placements): Same.
20636 (remove_path): Same.
20637 (place_new_loop): Same.
20638 (add_loop): Same.
20639 (scale_loop_frequencies): Same.
20640 (scale_loop_profile): Same.
20641 (create_empty_if_region_on_edge): Same.
20642 (create_empty_loop_on_edge): Same.
20643 (loopify): Same.
20644 (unloop): Same.
20645 (fix_loop_placements): Same.
20646 (copy_loop_info): Same.
20647 (duplicate_loop): Same.
20648 (duplicate_subloops): Same.
20649 (loop_redirect_edge): Same.
20650 (can_duplicate_loop_p): Same.
20651 (duplicate_loop_to_header_edge): Same.
20652 (mfb_keep_just): Same.
20653 (has_preds_from_loop): Same.
20654 (create_preheader): Same.
20655 (create_preheaders): Same.
20656 (lv_adjust_loop_entry_edge): Same.
20657 (loop_version): Same.
20658 * cfgloopmanip.h: Same.
20659 * cgraph.h: Same.
20660 * cgraphbuild.c: Same.
20661 * combine.c (make_extraction): Same.
20662 * config/i386/i386-features.c: Same.
20663 * config/i386/i386-features.h: Same.
20664 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20665 (ix86_emit_outlined_ms2sysv_restore): Same.
20666 (ix86_noce_conversion_profitable_p): Same.
20667 (ix86_init_cost): Same.
20668 (ix86_simd_clone_usable): Same.
20669 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20670 Wstruct-not-pod.
20671 * coretypes.h: Same.
20672 * data-streamer-in.c (string_for_index): Change class-key of PODs
20673 to struct and others to class.
20674 (streamer_read_indexed_string): Same.
20675 (streamer_read_string): Same.
20676 (bp_unpack_indexed_string): Same.
20677 (bp_unpack_string): Same.
20678 (streamer_read_uhwi): Same.
20679 (streamer_read_hwi): Same.
20680 (streamer_read_gcov_count): Same.
20681 (streamer_read_wide_int): Same.
20682 * data-streamer.h (streamer_write_bitpack): Same.
20683 (bp_unpack_value): Same.
20684 (streamer_write_char_stream): Same.
20685 (streamer_write_hwi_in_range): Same.
20686 (streamer_write_record_start): Same.
20687 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20688 (add_cross_iteration_register_deps): Same.
20689 (build_intra_loop_deps): Same.
20690 * df-core.c (df_analyze): Same.
20691 (loop_post_order_compute): Same.
20692 (loop_inverted_post_order_compute): Same.
20693 * df-problems.c (df_rd_alloc): Same.
20694 (df_rd_simulate_one_insn): Same.
20695 (df_rd_local_compute): Same.
20696 (df_rd_init_solution): Same.
20697 (df_rd_confluence_n): Same.
20698 (df_rd_transfer_function): Same.
20699 (df_rd_free): Same.
20700 (df_rd_dump_defs_set): Same.
20701 (df_rd_top_dump): Same.
20702 (df_lr_alloc): Same.
20703 (df_lr_reset): Same.
20704 (df_lr_local_compute): Same.
20705 (df_lr_init): Same.
20706 (df_lr_confluence_n): Same.
20707 (df_lr_free): Same.
20708 (df_lr_top_dump): Same.
20709 (df_lr_verify_transfer_functions): Same.
20710 (df_live_alloc): Same.
20711 (df_live_reset): Same.
20712 (df_live_init): Same.
20713 (df_live_confluence_n): Same.
20714 (df_live_finalize): Same.
20715 (df_live_free): Same.
20716 (df_live_top_dump): Same.
20717 (df_live_verify_transfer_functions): Same.
20718 (df_mir_alloc): Same.
20719 (df_mir_reset): Same.
20720 (df_mir_init): Same.
20721 (df_mir_confluence_n): Same.
20722 (df_mir_free): Same.
20723 (df_mir_top_dump): Same.
20724 (df_word_lr_alloc): Same.
20725 (df_word_lr_reset): Same.
20726 (df_word_lr_init): Same.
20727 (df_word_lr_confluence_n): Same.
20728 (df_word_lr_free): Same.
20729 (df_word_lr_top_dump): Same.
20730 (df_md_alloc): Same.
20731 (df_md_simulate_one_insn): Same.
20732 (df_md_reset): Same.
20733 (df_md_init): Same.
20734 (df_md_free): Same.
20735 (df_md_top_dump): Same.
20736 * df-scan.c (df_insn_delete): Same.
20737 (df_insn_rescan): Same.
20738 (df_notes_rescan): Same.
20739 (df_sort_and_compress_mws): Same.
20740 (df_install_mws): Same.
20741 (df_refs_add_to_chains): Same.
20742 (df_ref_create_structure): Same.
20743 (df_ref_record): Same.
20744 (df_def_record_1): Same.
20745 (df_find_hard_reg_defs): Same.
20746 (df_uses_record): Same.
20747 (df_get_conditional_uses): Same.
20748 (df_get_call_refs): Same.
20749 (df_recompute_luids): Same.
20750 (df_get_entry_block_def_set): Same.
20751 (df_entry_block_defs_collect): Same.
20752 (df_get_exit_block_use_set): Same.
20753 (df_exit_block_uses_collect): Same.
20754 (df_mws_verify): Same.
20755 (df_bb_verify): Same.
20756 * df.h (df_scan_get_bb_info): Same.
20757 * doc/tm.texi: Same.
20758 * dse.c (record_store): Same.
20759 * dumpfile.h: Same.
20760 * emit-rtl.c (const_fixed_hasher::equal): Same.
20761 (set_mem_attributes_minus_bitpos): Same.
20762 (change_address): Same.
20763 (adjust_address_1): Same.
20764 (offset_address): Same.
20765 * emit-rtl.h: Same.
20766 * except.c (dw2_build_landing_pads): Same.
20767 (sjlj_emit_dispatch_table): Same.
20768 * explow.c (allocate_dynamic_stack_space): Same.
20769 (emit_stack_probe): Same.
20770 (probe_stack_range): Same.
20771 * expmed.c (store_bit_field_using_insv): Same.
20772 (store_bit_field_1): Same.
20773 (store_integral_bit_field): Same.
20774 (extract_bit_field_using_extv): Same.
20775 (extract_bit_field_1): Same.
20776 (emit_cstore): Same.
20777 * expr.c (emit_block_move_via_cpymem): Same.
20778 (expand_cmpstrn_or_cmpmem): Same.
20779 (set_storage_via_setmem): Same.
20780 (emit_single_push_insn_1): Same.
20781 (expand_assignment): Same.
20782 (store_constructor): Same.
20783 (expand_expr_real_2): Same.
20784 (expand_expr_real_1): Same.
20785 (try_casesi): Same.
20786 * flags.h: Same.
20787 * function.c (try_fit_stack_local): Same.
20788 (assign_stack_local_1): Same.
20789 (assign_stack_local): Same.
20790 (cut_slot_from_list): Same.
20791 (insert_slot_to_list): Same.
20792 (max_slot_level): Same.
20793 (move_slot_to_level): Same.
20794 (temp_address_hasher::equal): Same.
20795 (remove_unused_temp_slot_addresses): Same.
20796 (assign_temp): Same.
20797 (combine_temp_slots): Same.
20798 (update_temp_slot_address): Same.
20799 (preserve_temp_slots): Same.
20800 * function.h: Same.
20801 * fwprop.c: Same.
20802 * gcc-rich-location.h: Same.
20803 * gcov.c: Same.
20804 * genattrtab.c (check_attr_test): Same.
20805 (check_attr_value): Same.
20806 (convert_set_attr_alternative): Same.
20807 (convert_set_attr): Same.
20808 (check_defs): Same.
20809 (copy_boolean): Same.
20810 (get_attr_value): Same.
20811 (expand_delays): Same.
20812 (make_length_attrs): Same.
20813 (min_fn): Same.
20814 (make_alternative_compare): Same.
20815 (simplify_test_exp): Same.
20816 (tests_attr_p): Same.
20817 (get_attr_order): Same.
20818 (clear_struct_flag): Same.
20819 (gen_attr): Same.
20820 (compares_alternatives_p): Same.
20821 (gen_insn): Same.
20822 (gen_delay): Same.
20823 (find_attrs_to_cache): Same.
20824 (write_test_expr): Same.
20825 (walk_attr_value): Same.
20826 (write_attr_get): Same.
20827 (eliminate_known_true): Same.
20828 (write_insn_cases): Same.
20829 (write_attr_case): Same.
20830 (write_attr_valueq): Same.
20831 (write_attr_value): Same.
20832 (write_dummy_eligible_delay): Same.
20833 (next_comma_elt): Same.
20834 (find_attr): Same.
20835 (make_internal_attr): Same.
20836 (copy_rtx_unchanging): Same.
20837 (gen_insn_reserv): Same.
20838 (check_tune_attr): Same.
20839 (make_automaton_attrs): Same.
20840 (handle_arg): Same.
20841 * genextract.c (gen_insn): Same.
20842 (VEC_char_to_string): Same.
20843 * genmatch.c (print_operand): Same.
20844 (lower): Same.
20845 (parser::parse_operation): Same.
20846 (parser::parse_capture): Same.
20847 (parser::parse_c_expr): Same.
20848 (parser::parse_simplify): Same.
20849 (main): Same.
20850 * genoutput.c (output_operand_data): Same.
20851 (output_get_insn_name): Same.
20852 (compare_operands): Same.
20853 (place_operands): Same.
20854 (process_template): Same.
20855 (validate_insn_alternatives): Same.
20856 (validate_insn_operands): Same.
20857 (gen_expand): Same.
20858 (note_constraint): Same.
20859 * genpreds.c (write_one_predicate_function): Same.
20860 (add_constraint): Same.
20861 (process_define_register_constraint): Same.
20862 (write_lookup_constraint_1): Same.
20863 (write_lookup_constraint_array): Same.
20864 (write_insn_constraint_len): Same.
20865 (write_reg_class_for_constraint_1): Same.
20866 (write_constraint_satisfied_p_array): Same.
20867 * genrecog.c (optimize_subroutine_group): Same.
20868 * gensupport.c (process_define_predicate): Same.
20869 (queue_pattern): Same.
20870 (remove_from_queue): Same.
20871 (process_rtx): Same.
20872 (is_predicable): Same.
20873 (change_subst_attribute): Same.
20874 (subst_pattern_match): Same.
20875 (alter_constraints): Same.
20876 (alter_attrs_for_insn): Same.
20877 (shift_output_template): Same.
20878 (alter_output_for_subst_insn): Same.
20879 (process_one_cond_exec): Same.
20880 (subst_dup): Same.
20881 (process_define_cond_exec): Same.
20882 (mnemonic_htab_callback): Same.
20883 (gen_mnemonic_attr): Same.
20884 (read_md_rtx): Same.
20885 * ggc-page.c: Same.
20886 * gimple-loop-interchange.cc (dump_reduction): Same.
20887 (dump_induction): Same.
20888 (loop_cand::~loop_cand): Same.
20889 (free_data_refs_with_aux): Same.
20890 (tree_loop_interchange::interchange_loops): Same.
20891 (tree_loop_interchange::map_inductions_to_loop): Same.
20892 (tree_loop_interchange::move_code_to_inner_loop): Same.
20893 (compute_access_stride): Same.
20894 (compute_access_strides): Same.
20895 (proper_loop_form_for_interchange): Same.
20896 (tree_loop_interchange_compute_ddrs): Same.
20897 (prune_datarefs_not_in_loop): Same.
20898 (prepare_data_references): Same.
20899 (pass_linterchange::execute): Same.
20900 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20901 (unroll_jam_possible_p): Same.
20902 (fuse_loops): Same.
20903 (adjust_unroll_factor): Same.
20904 (tree_loop_unroll_and_jam): Same.
20905 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20906 (loop_versioning::expensive_stmt_p): Same.
20907 (loop_versioning::version_for_unity): Same.
20908 (loop_versioning::dump_inner_likelihood): Same.
20909 (loop_versioning::find_per_loop_multiplication): Same.
20910 (loop_versioning::analyze_term_using_scevs): Same.
20911 (loop_versioning::record_address_fragment): Same.
20912 (loop_versioning::analyze_expr): Same.
20913 (loop_versioning::analyze_blocks): Same.
20914 (loop_versioning::prune_conditions): Same.
20915 (loop_versioning::merge_loop_info): Same.
20916 (loop_versioning::add_loop_to_queue): Same.
20917 (loop_versioning::decide_whether_loop_is_versionable): Same.
20918 (loop_versioning::make_versioning_decisions): Same.
20919 (loop_versioning::implement_versioning_decisions): Same.
20920 * gimple-ssa-evrp-analyze.c
20921 (evrp_range_analyzer::record_ranges_from_phis): Same.
20922 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20923 (count_multiple_uses): Same.
20924 (split_group): Same.
20925 (imm_store_chain_info::output_merged_store): Same.
20926 (pass_store_merging::process_store): Same.
20927 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20928 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20929 (is_max): Same.
20930 (alloca_call_type): Same.
20931 (pass_walloca::execute): Same.
20932 * gimple-streamer-in.c (input_phi): Same.
20933 (input_gimple_stmt): Same.
20934 * gimple-streamer.h: Same.
20935 * godump.c (go_force_record_alignment): Same.
20936 (go_format_type): Same.
20937 (go_output_type): Same.
20938 (go_output_fndecl): Same.
20939 (go_output_typedef): Same.
20940 (keyword_hash_init): Same.
20941 (find_dummy_types): Same.
20942 * graph.c (draw_cfg_nodes_no_loops): Same.
20943 (draw_cfg_nodes_for_loop): Same.
20944 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20945 * hsa-brig.c: Same.
20946 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20947 * hsa-dump.c (dump_hsa_cfun): Same.
20948 * hsa-gen.c (gen_function_def_parameters): Same.
20949 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20950 * input.c (dump_line_table_statistics): Same.
20951 (test_lexer): Same.
20952 * input.h: Same.
20953 * internal-fn.c (get_multi_vector_move): Same.
20954 (expand_load_lanes_optab_fn): Same.
20955 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20956 (expand_GOMP_SIMT_EXIT): Same.
20957 (expand_GOMP_SIMT_LAST_LANE): Same.
20958 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20959 (expand_GOMP_SIMT_VOTE_ANY): Same.
20960 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20961 (expand_GOMP_SIMT_XCHG_IDX): Same.
20962 (expand_addsub_overflow): Same.
20963 (expand_neg_overflow): Same.
20964 (expand_mul_overflow): Same.
20965 (expand_call_mem_ref): Same.
20966 (expand_mask_load_optab_fn): Same.
20967 (expand_scatter_store_optab_fn): Same.
20968 (expand_gather_load_optab_fn): Same.
20969 * ipa-cp.c (ipa_get_parm_lattices): Same.
20970 (print_all_lattices): Same.
20971 (ignore_edge_p): Same.
20972 (build_toporder_info): Same.
20973 (free_toporder_info): Same.
20974 (push_node_to_stack): Same.
20975 (ipcp_lattice<valtype>::set_contains_variable): Same.
20976 (set_agg_lats_to_bottom): Same.
20977 (ipcp_bits_lattice::meet_with): Same.
20978 (set_single_call_flag): Same.
20979 (initialize_node_lattices): Same.
20980 (ipa_get_jf_ancestor_result): Same.
20981 (ipcp_verify_propagated_values): Same.
20982 (propagate_scalar_across_jump_function): Same.
20983 (propagate_context_across_jump_function): Same.
20984 (propagate_bits_across_jump_function): Same.
20985 (ipa_vr_operation_and_type_effects): Same.
20986 (propagate_vr_across_jump_function): Same.
20987 (set_check_aggs_by_ref): Same.
20988 (set_chain_of_aglats_contains_variable): Same.
20989 (merge_aggregate_lattices): Same.
20990 (agg_pass_through_permissible_p): Same.
20991 (propagate_aggs_across_jump_function): Same.
20992 (call_passes_through_thunk_p): Same.
20993 (propagate_constants_across_call): Same.
20994 (devirtualization_time_bonus): Same.
20995 (good_cloning_opportunity_p): Same.
20996 (context_independent_aggregate_values): Same.
20997 (gather_context_independent_values): Same.
20998 (perform_estimation_of_a_value): Same.
20999 (estimate_local_effects): Same.
21000 (value_topo_info<valtype>::add_val): Same.
21001 (add_all_node_vals_to_toposort): Same.
21002 (value_topo_info<valtype>::propagate_effects): Same.
21003 (ipcp_propagate_stage): Same.
21004 (ipcp_discover_new_direct_edges): Same.
21005 (same_node_or_its_all_contexts_clone_p): Same.
21006 (cgraph_edge_brings_value_p): Same.
21007 (gather_edges_for_value): Same.
21008 (create_specialized_node): Same.
21009 (find_more_scalar_values_for_callers_subset): Same.
21010 (find_more_contexts_for_caller_subset): Same.
21011 (copy_plats_to_inter): Same.
21012 (intersect_aggregates_with_edge): Same.
21013 (find_aggregate_values_for_callers_subset): Same.
21014 (cgraph_edge_brings_all_agg_vals_for_node): Same.
21015 (decide_about_value): Same.
21016 (decide_whether_version_node): Same.
21017 (spread_undeadness): Same.
21018 (identify_dead_nodes): Same.
21019 (ipcp_store_vr_results): Same.
21020 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21021 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21022 (redirect_to_unreachable): Same.
21023 (edge_set_predicate): Same.
21024 (evaluate_conditions_for_known_args): Same.
21025 (evaluate_properties_for_edge): Same.
21026 (ipa_fn_summary_t::duplicate): Same.
21027 (ipa_call_summary_t::duplicate): Same.
21028 (dump_ipa_call_summary): Same.
21029 (ipa_dump_fn_summary): Same.
21030 (eliminated_by_inlining_prob): Same.
21031 (set_cond_stmt_execution_predicate): Same.
21032 (set_switch_stmt_execution_predicate): Same.
21033 (compute_bb_predicates): Same.
21034 (will_be_nonconstant_expr_predicate): Same.
21035 (phi_result_unknown_predicate): Same.
21036 (analyze_function_body): Same.
21037 (compute_fn_summary): Same.
21038 (estimate_edge_devirt_benefit): Same.
21039 (estimate_edge_size_and_time): Same.
21040 (estimate_calls_size_and_time): Same.
21041 (estimate_node_size_and_time): Same.
21042 (remap_edge_change_prob): Same.
21043 (remap_edge_summaries): Same.
21044 (ipa_merge_fn_summary_after_inlining): Same.
21045 (ipa_fn_summary_generate): Same.
21046 (inline_read_section): Same.
21047 (ipa_fn_summary_read): Same.
21048 (ipa_fn_summary_write): Same.
21049 * ipa-fnsummary.h: Same.
21050 * ipa-hsa.c (ipa_hsa_read_section): Same.
21051 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21052 * ipa-icf.c (sem_function::param_used_p): Same.
21053 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21054 * ipa-inline.c (edge_badness): Same.
21055 (inline_small_functions): Same.
21056 * ipa-polymorphic-call.c
21057 (ipa_polymorphic_call_context::stream_out): Same.
21058 * ipa-predicate.c (predicate::remap_after_duplication): Same.
21059 (predicate::remap_after_inlining): Same.
21060 (predicate::stream_out): Same.
21061 * ipa-predicate.h: Same.
21062 * ipa-profile.c (ipa_profile_read_summary): Same.
21063 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21064 (count_formal_params): Same.
21065 (ipa_dump_param): Same.
21066 (ipa_alloc_node_params): Same.
21067 (ipa_print_node_jump_functions_for_edge): Same.
21068 (ipa_print_node_jump_functions): Same.
21069 (ipa_load_from_parm_agg): Same.
21070 (get_ancestor_addr_info): Same.
21071 (ipa_compute_jump_functions_for_edge): Same.
21072 (ipa_analyze_virtual_call_uses): Same.
21073 (ipa_analyze_stmt_uses): Same.
21074 (ipa_analyze_params_uses_in_bb): Same.
21075 (update_jump_functions_after_inlining): Same.
21076 (try_decrement_rdesc_refcount): Same.
21077 (ipa_impossible_devirt_target): Same.
21078 (update_indirect_edges_after_inlining): Same.
21079 (combine_controlled_uses_counters): Same.
21080 (ipa_edge_args_sum_t::duplicate): Same.
21081 (ipa_write_jump_function): Same.
21082 (ipa_write_indirect_edge_info): Same.
21083 (ipa_write_node_info): Same.
21084 (ipa_read_edge_info): Same.
21085 (ipa_prop_read_section): Same.
21086 (read_replacements_section): Same.
21087 * ipa-prop.h (ipa_get_param_count): Same.
21088 (ipa_get_param): Same.
21089 (ipa_get_type): Same.
21090 (ipa_get_param_move_cost): Same.
21091 (ipa_set_param_used): Same.
21092 (ipa_get_controlled_uses): Same.
21093 (ipa_set_controlled_uses): Same.
21094 (ipa_get_cs_argument_count): Same.
21095 * ipa-pure-const.c (analyze_function): Same.
21096 (pure_const_read_summary): Same.
21097 * ipa-ref.h: Same.
21098 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21099 * ipa-split.c (test_nonssa_use): Same.
21100 (dump_split_point): Same.
21101 (dominated_by_forbidden): Same.
21102 (split_part_set_ssa_name_p): Same.
21103 (find_split_points): Same.
21104 * ira-build.c (finish_loop_tree_nodes): Same.
21105 (low_pressure_loop_node_p): Same.
21106 * ira-color.c (ira_reuse_stack_slot): Same.
21107 * ira-int.h: Same.
21108 * ira.c (setup_reg_equiv): Same.
21109 (print_insn_chain): Same.
21110 (ira): Same.
21111 * loop-doloop.c (doloop_condition_get): Same.
21112 (add_test): Same.
21113 (record_reg_sets): Same.
21114 (doloop_optimize): Same.
21115 * loop-init.c (loop_optimizer_init): Same.
21116 (fix_loop_structure): Same.
21117 * loop-invariant.c (merge_identical_invariants): Same.
21118 (compute_always_reached): Same.
21119 (find_exits): Same.
21120 (may_assign_reg_p): Same.
21121 (find_invariants_bb): Same.
21122 (find_invariants_body): Same.
21123 (replace_uses): Same.
21124 (can_move_invariant_reg): Same.
21125 (free_inv_motion_data): Same.
21126 (move_single_loop_invariants): Same.
21127 (change_pressure): Same.
21128 (mark_ref_regs): Same.
21129 (calculate_loop_reg_pressure): Same.
21130 * loop-iv.c (biv_entry_hasher::equal): Same.
21131 (iv_extend_to_rtx_code): Same.
21132 (check_iv_ref_table_size): Same.
21133 (clear_iv_info): Same.
21134 (latch_dominating_def): Same.
21135 (iv_get_reaching_def): Same.
21136 (iv_constant): Same.
21137 (iv_subreg): Same.
21138 (iv_extend): Same.
21139 (iv_neg): Same.
21140 (iv_add): Same.
21141 (iv_mult): Same.
21142 (get_biv_step): Same.
21143 (record_iv): Same.
21144 (analyzed_for_bivness_p): Same.
21145 (record_biv): Same.
21146 (iv_analyze_biv): Same.
21147 (iv_analyze_expr): Same.
21148 (iv_analyze_def): Same.
21149 (iv_analyze_op): Same.
21150 (iv_analyze): Same.
21151 (iv_analyze_result): Same.
21152 (biv_p): Same.
21153 (eliminate_implied_conditions): Same.
21154 (simplify_using_initial_values): Same.
21155 (shorten_into_mode): Same.
21156 (canonicalize_iv_subregs): Same.
21157 (determine_max_iter): Same.
21158 (check_simple_exit): Same.
21159 (find_simple_exit): Same.
21160 (get_simple_loop_desc): Same.
21161 * loop-unroll.c (report_unroll): Same.
21162 (decide_unrolling): Same.
21163 (unroll_loops): Same.
21164 (loop_exit_at_end_p): Same.
21165 (decide_unroll_constant_iterations): Same.
21166 (unroll_loop_constant_iterations): Same.
21167 (compare_and_jump_seq): Same.
21168 (unroll_loop_runtime_iterations): Same.
21169 (decide_unroll_stupid): Same.
21170 (unroll_loop_stupid): Same.
21171 (referenced_in_one_insn_in_loop_p): Same.
21172 (reset_debug_uses_in_loop): Same.
21173 (analyze_iv_to_split_insn): Same.
21174 * lra-eliminations.c (lra_debug_elim_table): Same.
21175 (setup_can_eliminate): Same.
21176 (form_sum): Same.
21177 (lra_get_elimination_hard_regno): Same.
21178 (lra_eliminate_regs_1): Same.
21179 (eliminate_regs_in_insn): Same.
21180 (update_reg_eliminate): Same.
21181 (init_elimination): Same.
21182 (lra_eliminate): Same.
21183 * lra-int.h: Same.
21184 * lra-lives.c (initiate_live_solver): Same.
21185 * lra-remat.c (create_remat_bb_data): Same.
21186 * lra-spills.c (lra_spill): Same.
21187 * lra.c (lra_set_insn_recog_data): Same.
21188 (lra_set_used_insn_alternative_by_uid): Same.
21189 (init_reg_info): Same.
21190 (expand_reg_info): Same.
21191 * lto-cgraph.c (output_symtab): Same.
21192 (read_identifier): Same.
21193 (get_alias_symbol): Same.
21194 (input_node): Same.
21195 (input_varpool_node): Same.
21196 (input_ref): Same.
21197 (input_edge): Same.
21198 (input_cgraph_1): Same.
21199 (input_refs): Same.
21200 (input_symtab): Same.
21201 (input_offload_tables): Same.
21202 (output_cgraph_opt_summary): Same.
21203 (input_edge_opt_summary): Same.
21204 (input_cgraph_opt_section): Same.
21205 * lto-section-in.c (lto_free_raw_section_data): Same.
21206 (lto_create_simple_input_block): Same.
21207 (lto_free_function_in_decl_state_for_node): Same.
21208 * lto-streamer-in.c (lto_tag_check_set): Same.
21209 (lto_location_cache::revert_location_cache): Same.
21210 (lto_location_cache::input_location): Same.
21211 (lto_input_location): Same.
21212 (stream_input_location_now): Same.
21213 (lto_input_tree_ref): Same.
21214 (lto_input_eh_catch_list): Same.
21215 (input_eh_region): Same.
21216 (lto_init_eh): Same.
21217 (make_new_block): Same.
21218 (input_cfg): Same.
21219 (fixup_call_stmt_edges): Same.
21220 (input_struct_function_base): Same.
21221 (input_function): Same.
21222 (lto_read_body_or_constructor): Same.
21223 (lto_read_tree_1): Same.
21224 (lto_read_tree): Same.
21225 (lto_input_scc): Same.
21226 (lto_input_tree_1): Same.
21227 (lto_input_toplevel_asms): Same.
21228 (lto_input_mode_table): Same.
21229 (lto_reader_init): Same.
21230 (lto_data_in_create): Same.
21231 * lto-streamer-out.c (output_cfg): Same.
21232 * lto-streamer.h: Same.
21233 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21234 (generate_prolog_epilog): Same.
21235 (mark_loop_unsched): Same.
21236 (dump_insn_location): Same.
21237 (loop_canon_p): Same.
21238 (sms_schedule): Same.
21239 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21240 (expand_omp_for_generic): Same.
21241 (expand_omp_for_static_nochunk): Same.
21242 (expand_omp_for_static_chunk): Same.
21243 (expand_omp_simd): Same.
21244 (expand_omp_taskloop_for_inner): Same.
21245 (expand_oacc_for): Same.
21246 (expand_omp_atomic_pipeline): Same.
21247 (mark_loops_in_oacc_kernels_region): Same.
21248 * omp-offload.c (oacc_xform_loop): Same.
21249 * omp-simd-clone.c (simd_clone_adjust): Same.
21250 * optabs-query.c (get_traditional_extraction_insn): Same.
21251 * optabs.c (expand_vector_broadcast): Same.
21252 (expand_binop_directly): Same.
21253 (expand_twoval_unop): Same.
21254 (expand_twoval_binop): Same.
21255 (expand_unop_direct): Same.
21256 (emit_indirect_jump): Same.
21257 (emit_conditional_move): Same.
21258 (emit_conditional_neg_or_complement): Same.
21259 (emit_conditional_add): Same.
21260 (vector_compare_rtx): Same.
21261 (expand_vec_perm_1): Same.
21262 (expand_vec_perm_const): Same.
21263 (expand_vec_cond_expr): Same.
21264 (expand_vec_series_expr): Same.
21265 (maybe_emit_atomic_exchange): Same.
21266 (maybe_emit_sync_lock_test_and_set): Same.
21267 (expand_atomic_compare_and_swap): Same.
21268 (expand_atomic_load): Same.
21269 (expand_atomic_store): Same.
21270 (maybe_emit_op): Same.
21271 (valid_multiword_target_p): Same.
21272 (create_integer_operand): Same.
21273 (maybe_legitimize_operand_same_code): Same.
21274 (maybe_legitimize_operand): Same.
21275 (create_convert_operand_from_type): Same.
21276 (can_reuse_operands_p): Same.
21277 (maybe_legitimize_operands): Same.
21278 (maybe_gen_insn): Same.
21279 (maybe_expand_insn): Same.
21280 (maybe_expand_jump_insn): Same.
21281 (expand_insn): Same.
21282 * optabs.h (create_expand_operand): Same.
21283 (create_fixed_operand): Same.
21284 (create_output_operand): Same.
21285 (create_input_operand): Same.
21286 (create_convert_operand_to): Same.
21287 (create_convert_operand_from): Same.
21288 * optinfo.h: Same.
21289 * poly-int.h: Same.
21290 * predict.c (optimize_insn_for_speed_p): Same.
21291 (optimize_loop_for_size_p): Same.
21292 (optimize_loop_for_speed_p): Same.
21293 (optimize_loop_nest_for_speed_p): Same.
21294 (get_base_value): Same.
21295 (predicted_by_loop_heuristics_p): Same.
21296 (predict_extra_loop_exits): Same.
21297 (predict_loops): Same.
21298 (predict_paths_for_bb): Same.
21299 (predict_paths_leading_to): Same.
21300 (propagate_freq): Same.
21301 (pass_profile::execute): Same.
21302 * predict.h: Same.
21303 * profile-count.c (profile_count::differs_from_p): Same.
21304 (profile_probability::differs_lot_from_p): Same.
21305 * profile-count.h: Same.
21306 * profile.c (branch_prob): Same.
21307 * regrename.c (free_chain_data): Same.
21308 (mark_conflict): Same.
21309 (create_new_chain): Same.
21310 (merge_overlapping_regs): Same.
21311 (init_rename_info): Same.
21312 (merge_chains): Same.
21313 (regrename_analyze): Same.
21314 (regrename_do_replace): Same.
21315 (scan_rtx_reg): Same.
21316 (record_out_operands): Same.
21317 (build_def_use): Same.
21318 * regrename.h: Same.
21319 * reload.h: Same.
21320 * reload1.c (init_reload): Same.
21321 (maybe_fix_stack_asms): Same.
21322 (copy_reloads): Same.
21323 (count_pseudo): Same.
21324 (count_spilled_pseudo): Same.
21325 (find_reg): Same.
21326 (find_reload_regs): Same.
21327 (select_reload_regs): Same.
21328 (spill_hard_reg): Same.
21329 (fixup_eh_region_note): Same.
21330 (set_reload_reg): Same.
21331 (allocate_reload_reg): Same.
21332 (compute_reload_subreg_offset): Same.
21333 (reload_adjust_reg_for_icode): Same.
21334 (emit_input_reload_insns): Same.
21335 (emit_output_reload_insns): Same.
21336 (do_input_reload): Same.
21337 (inherit_piecemeal_p): Same.
21338 * rtl.h: Same.
21339 * sanopt.c (maybe_get_dominating_check): Same.
21340 (maybe_optimize_ubsan_ptr_ifn): Same.
21341 (can_remove_asan_check): Same.
21342 (maybe_optimize_asan_check_ifn): Same.
21343 (sanopt_optimize_walker): Same.
21344 * sched-deps.c (add_dependence_list): Same.
21345 (chain_to_prev_insn): Same.
21346 (add_insn_mem_dependence): Same.
21347 (create_insn_reg_set): Same.
21348 (maybe_extend_reg_info_p): Same.
21349 (sched_analyze_reg): Same.
21350 (sched_analyze_1): Same.
21351 (get_implicit_reg_pending_clobbers): Same.
21352 (chain_to_prev_insn_p): Same.
21353 (deps_analyze_insn): Same.
21354 (deps_start_bb): Same.
21355 (sched_free_deps): Same.
21356 (init_deps): Same.
21357 (init_deps_reg_last): Same.
21358 (free_deps): Same.
21359 * sched-ebb.c: Same.
21360 * sched-int.h: Same.
21361 * sched-rgn.c (add_branch_dependences): Same.
21362 (concat_insn_mem_list): Same.
21363 (deps_join): Same.
21364 (sched_rgn_compute_dependencies): Same.
21365 * sel-sched-ir.c (reset_target_context): Same.
21366 (copy_deps_context): Same.
21367 (init_id_from_df): Same.
21368 (has_dependence_p): Same.
21369 (change_loops_latches): Same.
21370 (bb_top_order_comparator): Same.
21371 (make_region_from_loop_preheader): Same.
21372 (sel_init_pipelining): Same.
21373 (get_loop_nest_for_rgn): Same.
21374 (make_regions_from_the_rest): Same.
21375 (sel_is_loop_preheader_p): Same.
21376 * sel-sched-ir.h (inner_loop_header_p): Same.
21377 (get_all_loop_exits): Same.
21378 * selftest.h: Same.
21379 * sese.c (sese_build_liveouts): Same.
21380 (sese_insert_phis_for_liveouts): Same.
21381 * sese.h (defined_in_sese_p): Same.
21382 * sreal.c (sreal::stream_out): Same.
21383 * sreal.h: Same.
21384 * streamer-hooks.h: Same.
21385 * target-globals.c (save_target_globals): Same.
21386 * target-globals.h: Same.
21387 * target.def: Same.
21388 * target.h: Same.
21389 * targhooks.c (default_has_ifunc_p): Same.
21390 (default_empty_mask_is_expensive): Same.
21391 (default_init_cost): Same.
21392 * targhooks.h: Same.
21393 * toplev.c: Same.
21394 * tree-affine.c (aff_combination_mult): Same.
21395 (aff_combination_expand): Same.
21396 (aff_combination_constant_multiple_p): Same.
21397 * tree-affine.h: Same.
21398 * tree-cfg.c (build_gimple_cfg): Same.
21399 (replace_loop_annotate_in_block): Same.
21400 (replace_uses_by): Same.
21401 (remove_bb): Same.
21402 (dump_cfg_stats): Same.
21403 (gimple_duplicate_sese_region): Same.
21404 (gimple_duplicate_sese_tail): Same.
21405 (move_block_to_fn): Same.
21406 (replace_block_vars_by_duplicates): Same.
21407 (move_sese_region_to_fn): Same.
21408 (print_loops_bb): Same.
21409 (print_loop): Same.
21410 (print_loops): Same.
21411 (debug): Same.
21412 (debug_loops): Same.
21413 * tree-cfg.h: Same.
21414 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21415 (chrec_fold_multiply_poly_poly): Same.
21416 (chrec_evaluate): Same.
21417 (chrec_component_in_loop_num): Same.
21418 (reset_evolution_in_loop): Same.
21419 (is_multivariate_chrec): Same.
21420 (chrec_contains_symbols): Same.
21421 (nb_vars_in_chrec): Same.
21422 (chrec_convert_1): Same.
21423 (chrec_convert_aggressive): Same.
21424 * tree-chrec.h: Same.
21425 * tree-core.h: Same.
21426 * tree-data-ref.c (dump_data_dependence_relation): Same.
21427 (canonicalize_base_object_address): Same.
21428 (data_ref_compare_tree): Same.
21429 (prune_runtime_alias_test_list): Same.
21430 (get_segment_min_max): Same.
21431 (create_intersect_range_checks): Same.
21432 (conflict_fn_no_dependence): Same.
21433 (object_address_invariant_in_loop_p): Same.
21434 (analyze_ziv_subscript): Same.
21435 (analyze_siv_subscript_cst_affine): Same.
21436 (analyze_miv_subscript): Same.
21437 (analyze_overlapping_iterations): Same.
21438 (build_classic_dist_vector_1): Same.
21439 (add_other_self_distances): Same.
21440 (same_access_functions): Same.
21441 (build_classic_dir_vector): Same.
21442 (subscript_dependence_tester_1): Same.
21443 (subscript_dependence_tester): Same.
21444 (access_functions_are_affine_or_constant_p): Same.
21445 (get_references_in_stmt): Same.
21446 (loop_nest_has_data_refs): Same.
21447 (graphite_find_data_references_in_stmt): Same.
21448 (find_data_references_in_bb): Same.
21449 (get_base_for_alignment): Same.
21450 (find_loop_nest_1): Same.
21451 (find_loop_nest): Same.
21452 * tree-data-ref.h (dr_alignment): Same.
21453 (ddr_dependence_level): Same.
21454 * tree-if-conv.c (fold_build_cond_expr): Same.
21455 (add_to_predicate_list): Same.
21456 (add_to_dst_predicate_list): Same.
21457 (phi_convertible_by_degenerating_args): Same.
21458 (idx_within_array_bound): Same.
21459 (all_preds_critical_p): Same.
21460 (pred_blocks_visited_p): Same.
21461 (predicate_bbs): Same.
21462 (build_region): Same.
21463 (if_convertible_loop_p_1): Same.
21464 (is_cond_scalar_reduction): Same.
21465 (predicate_scalar_phi): Same.
21466 (remove_conditions_and_labels): Same.
21467 (combine_blocks): Same.
21468 (version_loop_for_if_conversion): Same.
21469 (versionable_outer_loop_p): Same.
21470 (ifcvt_local_dce): Same.
21471 (tree_if_conversion): Same.
21472 (pass_if_conversion::gate): Same.
21473 * tree-if-conv.h: Same.
21474 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21475 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21476 (free_rdg): Same.
21477 (stmt_has_scalar_dependences_outside_loop): Same.
21478 (copy_loop_before): Same.
21479 (create_bb_after_loop): Same.
21480 (const_with_all_bytes_same): Same.
21481 (generate_memset_builtin): Same.
21482 (generate_memcpy_builtin): Same.
21483 (destroy_loop): Same.
21484 (build_rdg_partition_for_vertex): Same.
21485 (compute_access_range): Same.
21486 (data_ref_segment_size): Same.
21487 (latch_dominated_by_data_ref): Same.
21488 (compute_alias_check_pairs): Same.
21489 (fuse_memset_builtins): Same.
21490 (finalize_partitions): Same.
21491 (find_seed_stmts_for_distribution): Same.
21492 (prepare_perfect_loop_nest): Same.
21493 * tree-parloops.c (lambda_transform_legal_p): Same.
21494 (loop_parallel_p): Same.
21495 (reduc_stmt_res): Same.
21496 (add_field_for_name): Same.
21497 (create_call_for_reduction_1): Same.
21498 (replace_uses_in_bb_by): Same.
21499 (transform_to_exit_first_loop_alt): Same.
21500 (try_transform_to_exit_first_loop_alt): Same.
21501 (transform_to_exit_first_loop): Same.
21502 (num_phis): Same.
21503 (gen_parallel_loop): Same.
21504 (gather_scalar_reductions): Same.
21505 (get_omp_data_i_param): Same.
21506 (try_create_reduction_list): Same.
21507 (oacc_entry_exit_single_gang): Same.
21508 (parallelize_loops): Same.
21509 * tree-pass.h: Same.
21510 * tree-predcom.c (determine_offset): Same.
21511 (last_always_executed_block): Same.
21512 (split_data_refs_to_components): Same.
21513 (suitable_component_p): Same.
21514 (valid_initializer_p): Same.
21515 (find_looparound_phi): Same.
21516 (insert_looparound_copy): Same.
21517 (add_looparound_copies): Same.
21518 (determine_roots_comp): Same.
21519 (predcom_tmp_var): Same.
21520 (initialize_root_vars): Same.
21521 (initialize_root_vars_store_elim_1): Same.
21522 (initialize_root_vars_store_elim_2): Same.
21523 (finalize_eliminated_stores): Same.
21524 (initialize_root_vars_lm): Same.
21525 (remove_stmt): Same.
21526 (determine_unroll_factor): Same.
21527 (execute_pred_commoning_cbck): Same.
21528 (base_names_in_chain_on): Same.
21529 (combine_chains): Same.
21530 (pcom_stmt_dominates_stmt_p): Same.
21531 (try_combine_chains): Same.
21532 (prepare_initializers_chain_store_elim): Same.
21533 (prepare_initializers_chain): Same.
21534 (prepare_initializers): Same.
21535 (prepare_finalizers_chain): Same.
21536 (prepare_finalizers): Same.
21537 (insert_init_seqs): Same.
21538 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21539 (compute_overall_effect_of_inner_loop): Same.
21540 (add_to_evolution_1): Same.
21541 (add_to_evolution): Same.
21542 (follow_ssa_edge_binary): Same.
21543 (follow_ssa_edge_expr): Same.
21544 (backedge_phi_arg_p): Same.
21545 (follow_ssa_edge_in_condition_phi_branch): Same.
21546 (follow_ssa_edge_in_condition_phi): Same.
21547 (follow_ssa_edge_inner_loop_phi): Same.
21548 (follow_ssa_edge): Same.
21549 (analyze_evolution_in_loop): Same.
21550 (analyze_initial_condition): Same.
21551 (interpret_loop_phi): Same.
21552 (interpret_condition_phi): Same.
21553 (interpret_rhs_expr): Same.
21554 (interpret_expr): Same.
21555 (interpret_gimple_assign): Same.
21556 (analyze_scalar_evolution_1): Same.
21557 (analyze_scalar_evolution): Same.
21558 (analyze_scalar_evolution_for_address_of): Same.
21559 (get_instantiated_value_entry): Same.
21560 (loop_closed_phi_def): Same.
21561 (instantiate_scev_name): Same.
21562 (instantiate_scev_poly): Same.
21563 (instantiate_scev_binary): Same.
21564 (instantiate_scev_convert): Same.
21565 (instantiate_scev_not): Same.
21566 (instantiate_scev_r): Same.
21567 (instantiate_scev): Same.
21568 (resolve_mixers): Same.
21569 (initialize_scalar_evolutions_analyzer): Same.
21570 (scev_reset_htab): Same.
21571 (scev_reset): Same.
21572 (derive_simple_iv_with_niters): Same.
21573 (simple_iv_with_niters): Same.
21574 (expression_expensive_p): Same.
21575 (final_value_replacement_loop): Same.
21576 * tree-scalar-evolution.h (block_before_loop): Same.
21577 * tree-ssa-address.h: Same.
21578 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21579 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21580 (record_edge_info): Same.
21581 * tree-ssa-live.c (var_map_base_fini): Same.
21582 (remove_unused_locals): Same.
21583 * tree-ssa-live.h: Same.
21584 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21585 (pass_ch_vect::execute): Same.
21586 (pass_ch::process_loop_p): Same.
21587 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21588 (movement_possibility): Same.
21589 (outermost_invariant_loop): Same.
21590 (stmt_cost): Same.
21591 (determine_max_movement): Same.
21592 (invariantness_dom_walker::before_dom_children): Same.
21593 (move_computations): Same.
21594 (may_move_till): Same.
21595 (force_move_till_op): Same.
21596 (force_move_till): Same.
21597 (memref_free): Same.
21598 (record_mem_ref_loc): Same.
21599 (set_ref_stored_in_loop): Same.
21600 (mark_ref_stored): Same.
21601 (sort_bbs_in_loop_postorder_cmp): Same.
21602 (sort_locs_in_loop_postorder_cmp): Same.
21603 (analyze_memory_references): Same.
21604 (mem_refs_may_alias_p): Same.
21605 (find_ref_loc_in_loop_cmp): Same.
21606 (rewrite_mem_ref_loc::operator): Same.
21607 (first_mem_ref_loc_1::operator): Same.
21608 (sm_set_flag_if_changed::operator): Same.
21609 (execute_sm_if_changed_flag_set): Same.
21610 (execute_sm): Same.
21611 (hoist_memory_references): Same.
21612 (ref_always_accessed::operator): Same.
21613 (refs_independent_p): Same.
21614 (record_dep_loop): Same.
21615 (ref_indep_loop_p_1): Same.
21616 (ref_indep_loop_p): Same.
21617 (can_sm_ref_p): Same.
21618 (find_refs_for_sm): Same.
21619 (loop_suitable_for_sm): Same.
21620 (store_motion_loop): Same.
21621 (store_motion): Same.
21622 (fill_always_executed_in): Same.
21623 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21624 (estimated_unrolled_size): Same.
21625 (loop_edge_to_cancel): Same.
21626 (remove_exits_and_undefined_stmts): Same.
21627 (remove_redundant_iv_tests): Same.
21628 (unloop_loops): Same.
21629 (estimated_peeled_sequence_size): Same.
21630 (try_peel_loop): Same.
21631 (canonicalize_loop_induction_variables): Same.
21632 (canonicalize_induction_variables): Same.
21633 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21634 (name_info): Same.
21635 (stmt_after_inc_pos): Same.
21636 (contains_abnormal_ssa_name_p): Same.
21637 (niter_for_exit): Same.
21638 (find_bivs): Same.
21639 (mark_bivs): Same.
21640 (find_givs_in_bb): Same.
21641 (find_induction_variables): Same.
21642 (find_interesting_uses_cond): Same.
21643 (outermost_invariant_loop_for_expr): Same.
21644 (idx_find_step): Same.
21645 (add_candidate_1): Same.
21646 (add_iv_candidate_derived_from_uses): Same.
21647 (alloc_use_cost_map): Same.
21648 (prepare_decl_rtl): Same.
21649 (generic_predict_doloop_p): Same.
21650 (computation_cost): Same.
21651 (determine_common_wider_type): Same.
21652 (get_computation_aff_1): Same.
21653 (get_use_type): Same.
21654 (determine_group_iv_cost_address): Same.
21655 (iv_period): Same.
21656 (difference_cannot_overflow_p): Same.
21657 (may_eliminate_iv): Same.
21658 (determine_set_costs): Same.
21659 (cheaper_cost_pair): Same.
21660 (compare_cost_pair): Same.
21661 (iv_ca_cand_for_group): Same.
21662 (iv_ca_recount_cost): Same.
21663 (iv_ca_set_remove_invs): Same.
21664 (iv_ca_set_no_cp): Same.
21665 (iv_ca_set_add_invs): Same.
21666 (iv_ca_set_cp): Same.
21667 (iv_ca_add_group): Same.
21668 (iv_ca_cost): Same.
21669 (iv_ca_compare_deps): Same.
21670 (iv_ca_delta_reverse): Same.
21671 (iv_ca_delta_commit): Same.
21672 (iv_ca_cand_used_p): Same.
21673 (iv_ca_delta_free): Same.
21674 (iv_ca_new): Same.
21675 (iv_ca_free): Same.
21676 (iv_ca_dump): Same.
21677 (iv_ca_extend): Same.
21678 (iv_ca_narrow): Same.
21679 (iv_ca_prune): Same.
21680 (cheaper_cost_with_cand): Same.
21681 (iv_ca_replace): Same.
21682 (try_add_cand_for): Same.
21683 (get_initial_solution): Same.
21684 (try_improve_iv_set): Same.
21685 (find_optimal_iv_set_1): Same.
21686 (create_new_iv): Same.
21687 (rewrite_use_compare): Same.
21688 (remove_unused_ivs): Same.
21689 (determine_scaling_factor): Same.
21690 * tree-ssa-loop-ivopts.h: Same.
21691 * tree-ssa-loop-manip.c (create_iv): Same.
21692 (compute_live_loop_exits): Same.
21693 (add_exit_phi): Same.
21694 (add_exit_phis): Same.
21695 (find_uses_to_rename_use): Same.
21696 (find_uses_to_rename_def): Same.
21697 (find_uses_to_rename_in_loop): Same.
21698 (rewrite_into_loop_closed_ssa): Same.
21699 (check_loop_closed_ssa_bb): Same.
21700 (split_loop_exit_edge): Same.
21701 (ip_end_pos): Same.
21702 (ip_normal_pos): Same.
21703 (copy_phi_node_args): Same.
21704 (gimple_duplicate_loop_to_header_edge): Same.
21705 (can_unroll_loop_p): Same.
21706 (determine_exit_conditions): Same.
21707 (scale_dominated_blocks_in_loop): Same.
21708 (niter_for_unrolled_loop): Same.
21709 (tree_transform_and_unroll_loop): Same.
21710 (rewrite_all_phi_nodes_with_iv): Same.
21711 * tree-ssa-loop-manip.h: Same.
21712 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21713 (number_of_iterations_ne): Same.
21714 (assert_no_overflow_lt): Same.
21715 (assert_loop_rolls_lt): Same.
21716 (number_of_iterations_lt): Same.
21717 (adjust_cond_for_loop_until_wrap): Same.
21718 (tree_simplify_using_condition): Same.
21719 (simplify_using_initial_conditions): Same.
21720 (simplify_using_outer_evolutions): Same.
21721 (loop_only_exit_p): Same.
21722 (ssa_defined_by_minus_one_stmt_p): Same.
21723 (number_of_iterations_popcount): Same.
21724 (number_of_iterations_exit): Same.
21725 (find_loop_niter): Same.
21726 (finite_loop_p): Same.
21727 (chain_of_csts_start): Same.
21728 (get_val_for): Same.
21729 (loop_niter_by_eval): Same.
21730 (derive_constant_upper_bound_ops): Same.
21731 (do_warn_aggressive_loop_optimizations): Same.
21732 (record_estimate): Same.
21733 (get_cst_init_from_scev): Same.
21734 (record_nonwrapping_iv): Same.
21735 (idx_infer_loop_bounds): Same.
21736 (infer_loop_bounds_from_ref): Same.
21737 (infer_loop_bounds_from_array): Same.
21738 (infer_loop_bounds_from_pointer_arith): Same.
21739 (infer_loop_bounds_from_signedness): Same.
21740 (bound_index): Same.
21741 (discover_iteration_bound_by_body_walk): Same.
21742 (maybe_lower_iteration_bound): Same.
21743 (estimate_numbers_of_iterations): Same.
21744 (estimated_loop_iterations): Same.
21745 (estimated_loop_iterations_int): Same.
21746 (max_loop_iterations): Same.
21747 (max_loop_iterations_int): Same.
21748 (likely_max_loop_iterations): Same.
21749 (likely_max_loop_iterations_int): Same.
21750 (estimated_stmt_executions_int): Same.
21751 (max_stmt_executions): Same.
21752 (likely_max_stmt_executions): Same.
21753 (estimated_stmt_executions): Same.
21754 (stmt_dominates_stmt_p): Same.
21755 (nowrap_type_p): Same.
21756 (loop_exits_before_overflow): Same.
21757 (scev_var_range_cant_overflow): Same.
21758 (scev_probably_wraps_p): Same.
21759 (free_numbers_of_iterations_estimates): Same.
21760 * tree-ssa-loop-niter.h: Same.
21761 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21762 (idx_analyze_ref): Same.
21763 (analyze_ref): Same.
21764 (gather_memory_references_ref): Same.
21765 (mark_nontemporal_store): Same.
21766 (emit_mfence_after_loop): Same.
21767 (may_use_storent_in_loop_p): Same.
21768 (mark_nontemporal_stores): Same.
21769 (should_unroll_loop_p): Same.
21770 (volume_of_dist_vector): Same.
21771 (add_subscript_strides): Same.
21772 (self_reuse_distance): Same.
21773 (insn_to_prefetch_ratio_too_small_p): Same.
21774 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21775 (patch_loop_exit): Same.
21776 (find_or_create_guard_phi): Same.
21777 (easy_exit_values): Same.
21778 (connect_loop_phis): Same.
21779 (connect_loops): Same.
21780 (compute_new_first_bound): Same.
21781 (split_loop): Same.
21782 (tree_ssa_split_loops): Same.
21783 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21784 (is_maybe_undefined): Same.
21785 (tree_may_unswitch_on): Same.
21786 (simplify_using_entry_checks): Same.
21787 (tree_unswitch_single_loop): Same.
21788 (tree_unswitch_loop): Same.
21789 (tree_unswitch_outer_loop): Same.
21790 (empty_bb_without_guard_p): Same.
21791 (used_outside_loop_p): Same.
21792 (get_vop_from_header): Same.
21793 (hoist_guard): Same.
21794 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21795 (get_lsm_tmp_name): Same.
21796 * tree-ssa-loop.h: Same.
21797 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21798 (build_and_add_sum): Same.
21799 (no_side_effect_bb): Same.
21800 (get_ops): Same.
21801 (linearize_expr): Same.
21802 (should_break_up_subtract): Same.
21803 (linearize_expr_tree): Same.
21804 * tree-ssa-scopedtables.c: Same.
21805 * tree-ssa-scopedtables.h: Same.
21806 * tree-ssa-structalias.c (condense_visit): Same.
21807 (label_visit): Same.
21808 (dump_pred_graph): Same.
21809 (perform_var_substitution): Same.
21810 (move_complex_constraints): Same.
21811 (remove_preds_and_fake_succs): Same.
21812 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21813 (determine_bb_domination_status): Same.
21814 (duplicate_thread_path): Same.
21815 (thread_through_all_blocks): Same.
21816 * tree-ssa-threadupdate.h: Same.
21817 * tree-streamer-in.c (streamer_read_string_cst): Same.
21818 (input_identifier): Same.
21819 (unpack_ts_type_common_value_fields): Same.
21820 (unpack_ts_block_value_fields): Same.
21821 (unpack_ts_translation_unit_decl_value_fields): Same.
21822 (unpack_ts_omp_clause_value_fields): Same.
21823 (streamer_read_tree_bitfields): Same.
21824 (streamer_alloc_tree): Same.
21825 (lto_input_ts_common_tree_pointers): Same.
21826 (lto_input_ts_vector_tree_pointers): Same.
21827 (lto_input_ts_poly_tree_pointers): Same.
21828 (lto_input_ts_complex_tree_pointers): Same.
21829 (lto_input_ts_decl_minimal_tree_pointers): Same.
21830 (lto_input_ts_decl_common_tree_pointers): Same.
21831 (lto_input_ts_decl_non_common_tree_pointers): Same.
21832 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21833 (lto_input_ts_field_decl_tree_pointers): Same.
21834 (lto_input_ts_function_decl_tree_pointers): Same.
21835 (lto_input_ts_type_common_tree_pointers): Same.
21836 (lto_input_ts_type_non_common_tree_pointers): Same.
21837 (lto_input_ts_list_tree_pointers): Same.
21838 (lto_input_ts_vec_tree_pointers): Same.
21839 (lto_input_ts_exp_tree_pointers): Same.
21840 (lto_input_ts_block_tree_pointers): Same.
21841 (lto_input_ts_binfo_tree_pointers): Same.
21842 (lto_input_ts_constructor_tree_pointers): Same.
21843 (lto_input_ts_omp_clause_tree_pointers): Same.
21844 (streamer_read_tree_body): Same.
21845 * tree-streamer.h: Same.
21846 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21847 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21848 (vect_analyze_possibly_independent_ddr): Same.
21849 (vect_analyze_data_ref_dependence): Same.
21850 (vect_compute_data_ref_alignment): Same.
21851 (vect_enhance_data_refs_alignment): Same.
21852 (vect_analyze_data_ref_access): Same.
21853 (vect_check_gather_scatter): Same.
21854 (vect_find_stmt_data_reference): Same.
21855 (vect_create_addr_base_for_vector_ref): Same.
21856 (vect_setup_realignment): Same.
21857 (vect_supportable_dr_alignment): Same.
21858 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21859 (adjust_phi_and_debug_stmts): Same.
21860 (vect_set_loop_mask): Same.
21861 (add_preheader_seq): Same.
21862 (vect_maybe_permute_loop_masks): Same.
21863 (vect_set_loop_masks_directly): Same.
21864 (vect_set_loop_condition_masked): Same.
21865 (vect_set_loop_condition_unmasked): Same.
21866 (slpeel_duplicate_current_defs_from_edges): Same.
21867 (slpeel_add_loop_guard): Same.
21868 (slpeel_can_duplicate_loop_p): Same.
21869 (create_lcssa_for_virtual_phi): Same.
21870 (iv_phi_p): Same.
21871 (vect_update_ivs_after_vectorizer): Same.
21872 (vect_gen_vector_loop_niters_mult_vf): Same.
21873 (slpeel_update_phi_nodes_for_loops): Same.
21874 (slpeel_update_phi_nodes_for_guard1): Same.
21875 (find_guard_arg): Same.
21876 (slpeel_update_phi_nodes_for_guard2): Same.
21877 (slpeel_update_phi_nodes_for_lcssa): Same.
21878 (vect_do_peeling): Same.
21879 (vect_create_cond_for_alias_checks): Same.
21880 (vect_loop_versioning): Same.
21881 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21882 (vect_inner_phi_in_double_reduction_p): Same.
21883 (vect_analyze_scalar_cycles_1): Same.
21884 (vect_fixup_scalar_cycles_with_patterns): Same.
21885 (vect_get_loop_niters): Same.
21886 (bb_in_loop_p): Same.
21887 (vect_get_max_nscalars_per_iter): Same.
21888 (vect_verify_full_masking): Same.
21889 (vect_compute_single_scalar_iteration_cost): Same.
21890 (vect_analyze_loop_form_1): Same.
21891 (vect_analyze_loop_form): Same.
21892 (vect_active_double_reduction_p): Same.
21893 (vect_analyze_loop_operations): Same.
21894 (neutral_op_for_slp_reduction): Same.
21895 (vect_is_simple_reduction): Same.
21896 (vect_model_reduction_cost): Same.
21897 (get_initial_def_for_reduction): Same.
21898 (get_initial_defs_for_reduction): Same.
21899 (vect_create_epilog_for_reduction): Same.
21900 (vectorize_fold_left_reduction): Same.
21901 (vectorizable_reduction): Same.
21902 (vectorizable_induction): Same.
21903 (vectorizable_live_operation): Same.
21904 (loop_niters_no_overflow): Same.
21905 (vect_get_loop_mask): Same.
21906 (vect_transform_loop_stmt): Same.
21907 (vect_transform_loop): Same.
21908 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21909 (vect_determine_precisions): Same.
21910 (vect_pattern_recog_1): Same.
21911 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21912 * tree-vect-stmts.c (stmt_vectype): Same.
21913 (process_use): Same.
21914 (vect_init_vector_1): Same.
21915 (vect_truncate_gather_scatter_offset): Same.
21916 (get_group_load_store_type): Same.
21917 (vect_build_gather_load_calls): Same.
21918 (vect_get_strided_load_store_ops): Same.
21919 (vectorizable_simd_clone_call): Same.
21920 (vectorizable_store): Same.
21921 (permute_vec_elements): Same.
21922 (vectorizable_load): Same.
21923 (vect_transform_stmt): Same.
21924 (supportable_widening_operation): Same.
21925 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21926 (vec_info::free_stmt_vec_info): Same.
21927 (vect_free_loop_info_assumptions): Same.
21928 (vect_loop_vectorized_call): Same.
21929 (set_uid_loop_bbs): Same.
21930 (vectorize_loops): Same.
21931 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21932 * tree.c (add_tree_to_fld_list): Same.
21933 (fld_type_variant_equal_p): Same.
21934 (fld_decl_context): Same.
21935 (fld_incomplete_type_of): Same.
21936 (free_lang_data_in_binfo): Same.
21937 (need_assembler_name_p): Same.
21938 (find_decls_types_r): Same.
21939 (get_eh_types_for_runtime): Same.
21940 (find_decls_types_in_eh_region): Same.
21941 (find_decls_types_in_node): Same.
21942 (assign_assembler_name_if_needed): Same.
21943 * value-prof.c (stream_out_histogram_value): Same.
21944 * value-prof.h: Same.
21945 * var-tracking.c (use_narrower_mode): Same.
21946 (prepare_call_arguments): Same.
21947 (vt_expand_loc_callback): Same.
21948 (resolve_expansions_pending_recursion): Same.
21949 (vt_expand_loc): Same.
21950 * varasm.c (const_hash_1): Same.
21951 (compare_constant): Same.
21952 (tree_output_constant_def): Same.
21953 (simplify_subtraction): Same.
21954 (get_pool_constant): Same.
21955 (output_constant_pool_2): Same.
21956 (output_constant_pool_1): Same.
21957 (mark_constants_in_pattern): Same.
21958 (mark_constant_pool): Same.
21959 (get_section_anchor): Same.
21960 * vr-values.c (compare_range_with_value): Same.
21961 (vr_values::extract_range_from_phi_node): Same.
21962 * vr-values.h: Same.
21963 * web.c (unionfind_union): Same.
21964 * wide-int.h: Same.
21965
21966 2019-07-09 Martin Sebor <msebor@redhat.com>
21967
21968 PR c++/61339
21969 * align.h: Change class-key from class to struct and vice versa
21970 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21971 * alloc-pool.h: Same.
21972 * asan.c (shadow_mem_size): Same.
21973 * auto-profile.c: Same.
21974 * basic-block.h: Same.
21975 * bitmap.h: Same.
21976 * cfgexpand.c (set_rtl): Same.
21977 (expand_one_stack_var_at): Same.
21978 * cfghooks.h: Same.
21979 * cfgloop.h: Same.
21980 * cgraph.h: Same.
21981 * config/i386/i386.h: Same.
21982 * df-problems.c (df_print_bb_index): Same.
21983 * df-scan.c: Same.
21984 * df.h (df_single_use): Same.
21985 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21986 (layout::annotation_line_showed_range_p): Same.
21987 (get_printed_columns): Same.
21988 (correction::ensure_terminated): Same.
21989 (line_corrections::~line_corrections): Same.
21990 * dojump.h: Same.
21991 * dse.c: Same.
21992 * dump-context.h: Same.
21993 * dumpfile.h: Same.
21994 * dwarf2out.c: Same.
21995 * edit-context.c: Same.
21996 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21997 * flags.h: Same.
21998 * function.c (assign_stack_local): Same.
21999 * function.h: Same.
22000 * gcc.c: Same.
22001 * gcov.c (block_info::block_info): Same.
22002 * genattrtab.c: Same.
22003 * genextract.c: Same.
22004 * genmatch.c (comparison_code_p): Same.
22005 (id_base::id_base): Same.
22006 (decision_tree::print): Same.
22007 * genoutput.c: Same.
22008 * genpreds.c (write_one_predicate_function): Same.
22009 * genrecog.c (validate_pattern): Same.
22010 (find_operand_positions): Same.
22011 (optimize_subroutine_group): Same.
22012 (merge_pattern_transition::merge_pattern_transition): Same.
22013 (merge_pattern_info::merge_pattern_info): Same.
22014 (merge_state_result::merge_state_result): Same.
22015 (merge_into_state): Same.
22016 * gensupport.c: Same.
22017 * gensupport.h: Same.
22018 * ggc-common.c (init_ggc_heuristics): Same.
22019 * ggc-tests.c (test_union): Same.
22020 * gimple-loop-interchange.cc (dump_induction): Same.
22021 * gimple-loop-versioning.cc: Same.
22022 * gimple-match.h (gimple_match_cond::any_else): Same.
22023 * gimple-ssa-backprop.c: Same.
22024 * gimple-ssa-sprintf.c: Same.
22025 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22026 Same.
22027 (store_immediate_info::store_immediate_info): Same.
22028 (merged_store_group::apply_stores): Same.
22029 (get_location_for_stmts): Same.
22030 * gimple-ssa-strength-reduction.c: Same.
22031 * gimple-ssa-warn-alloca.c: Same.
22032 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22033 * godump.c (go_type_decl): Same.
22034 * hash-map-tests.c (test_map_of_strings_to_int): Same.
22035 * hash-map.h: Same.
22036 * hash-set-tests.c (test_set_of_strings): Same.
22037 * hsa-brig.c: Same.
22038 * hsa-common.h: Same.
22039 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22040 * input.c (assert_loceq): Same.
22041 * input.h: Same.
22042 * ipa-cp.c: Same.
22043 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22044 * ipa-fnsummary.h: Same.
22045 * ipa-inline.h: Same.
22046 * ipa-prop.h: Same.
22047 * ipa-split.c (visit_bb): Same.
22048 * ira-int.h (minmax_set_iter_next): Same.
22049 * loop-invariant.c: Same.
22050 * loop-iv.c: Same.
22051 * lra-eliminations.c: Same.
22052 * lra-int.h: Same.
22053 * lra-lives.c (mark_regno_dead): Same.
22054 * lra-remat.c: Same.
22055 * lra-spills.c: Same.
22056 * lto-streamer.h: Same.
22057 * mem-stats.h: Same.
22058 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22059 * omp-low.c (omp_clause_aligned_alignment): Same.
22060 * optabs-query.h (get_vcond_eq_icode): Same.
22061 * optabs.h: Same.
22062 * opts.c (wrap_help): Same.
22063 * poly-int.h: Same.
22064 * predict.c (predict_paths_leading_to_edge): Same.
22065 * pretty-print.h: Same.
22066 * profile-count.h: Same.
22067 * read-md.h: Same.
22068 * read-rtl-function.c: Same.
22069 * ree.c: Same.
22070 * reginfo.c: Same.
22071 * regrename.c: Same.
22072 * regrename.h: Same.
22073 * reload.h: Same.
22074 * rtl-iter.h: Same.
22075 * rtl.h (costs_add_n_insns): Same.
22076 * sanopt.c: Same.
22077 * sched-int.h: Same.
22078 * sel-sched-ir.h: Same.
22079 * selftest.h: Same.
22080 * sese.h (vec_find): Same.
22081 * stmt.c: Same.
22082 * target-globals.h: Same.
22083 * tree-affine.c (aff_combination_find_elt): Same.
22084 * tree-affine.h: Same.
22085 * tree-data-ref.h: Same.
22086 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22087 * tree-predcom.c: Same.
22088 * tree-scalar-evolution.c (find_var_scev_info): Same.
22089 * tree-ssa-alias.h: Same.
22090 * tree-ssa-ccp.c: Same.
22091 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22092 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22093 (rewrite_mem_refs): Same.
22094 (execute_sm_if_changed): Same.
22095 (hoist_memory_references): Same.
22096 * tree-ssa-loop-ivopts.c (operator<=): Same.
22097 * tree-ssa-loop.h: Same.
22098 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22099 * tree-ssa-structalias.c: Same.
22100 * tree-switch-conversion.h (cluster::cluster): Same.
22101 (simple_cluster::simple_cluster): Same.
22102 * tree-vect-patterns.c (type_conversion_p): Same.
22103 * tree-vectorizer.c (dump_stmt_cost): Same.
22104 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22105 * tree.c (protected_set_expr_location): Same.
22106 * tree.h (desired_pro_or_demotion_p): Same.
22107 (fndecl_built_in_p): Same.
22108 * unique-ptr-tests.cc: Same.
22109 * var-tracking.c (delete_variable_part): Same.
22110 * varasm.c (assemble_real): Same.
22111 (tree_output_constant_def): Same.
22112 * vec.c: Same.
22113 * wide-int-bitmask.h: Same.
22114 * wide-int.h (decompose): Same.
22115
22116 2019-07-09 Richard Biener <rguenther@suse.de>
22117
22118 PR tree-optimization/91114
22119 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22120 find a vector type isn't fatal.
22121
22122 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22123
22124 * config/aarch64/aarch64-simd.md
22125 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22126 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22127 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22128 (*aarch64_crypto_aese_fused,
22129 *aarch64_crypto_aesd_fused): Update to new definition.
22130 * config/aarch64/aarch64.c
22131 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22132
22133 2019-07-09 Richard Biener <rguenther@suse.de>
22134
22135 * gimple-match.h (gimple_match_op::resimplify): New.
22136 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22137 gimple_resimplify4, gimple_resimplify5): Remove.
22138 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22139 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22140 Make static.
22141 (gimple_match_op::resimplify): New.
22142 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22143 according to availability. Use gimple_match_op::resimplify.
22144
22145 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22146
22147 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22148
22149 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22150
22151 * config/arm/crypto.md:
22152 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22153 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22154 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22155 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22156 * config/arm/arm.c
22157 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22158 * config/arm/aarch-common-protos.h
22159 (aarch_crypto_can_dual_issue): Remove.
22160 * config/arm/aarch-common.c
22161 (aarch_crypto_can_dual_issue): Likewise.
22162 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22163 * config/arm/cortex-a53.md: Likewise.
22164 * config/arm/cortex-a57.md: Likewise.
22165 * config/arm/iterators.md:
22166 (CRYPTO_BINARY): Redefine.
22167 (CRYPTO_UNARY): Removed.
22168 (CRYPTO_AES, CRYPTO_AESMC): New.
22169
22170 2019-07-09 Richard Biener <rguenther@suse.de>
22171
22172 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22173 (vn_reference_lookup_3): If the main ref has no access path recorded
22174 but orig_ref has use it to do access-path based disambiguation.
22175 (vn_reference_lookup_pieces): Adjust.
22176 (vn_reference_lookup): Pass down original ref if we valueized.
22177
22178 2019-07-09 Martin Liska <mliska@suse.cz>
22179
22180 * doc/extend.texi: Document influence on loop
22181 optimizers.
22182
22183 2019-07-09 Martin Liska <mliska@suse.cz>
22184
22185 * lto-compress.c (lto_normalized_zstd_level): Do not use
22186 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22187 of libzstd. One can use 0 as a default compression level.
22188
22189 2019-07-09 Martin Liska <mliska@suse.cz>
22190
22191 * doc/invoke.texi: Add link from -fprofile-dir option.
22192 Use better wording for 'gcno filename'.
22193
22194 2019-07-08 Martin Sebor <msebor@redhat.com>
22195
22196 PR middle-end/71924
22197 PR middle-end/90549
22198 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22199 comment.
22200 (args_loc_t): New type.
22201 (args_loc_t, locmap_t): same.
22202 (diag_returned_locals): New function.
22203 (is_addr_local): Same.
22204 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22205 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22206 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22207
22208 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22209
22210 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22211 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22212 and casts in offset when different, both through gimple stmts
22213 and through trees. Rewritten using loops to minimize code duplication
22214 for each operand.
22215
22216 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22217
22218 * emit-rtl.c (set_insn_locations): New function moved from...
22219 * function.c (set_insn_locations): ...here.
22220 * ira-emit.c (emit_moves): Propagate location of the first instruction
22221 to the inserted move instructions.
22222 * reg-stack.c (compensate_edge): Set the location if the sequence is
22223 inserted on the edge.
22224 * rtl.h (set_insn_locations): Declare.
22225
22226 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22227
22228 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22229 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22230 .machine string.
22231
22232 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22233
22234 PR rtl-optimization/88233
22235 * common.opt (fsplit-wide-types-early): New option.
22236 * common/config/rs6000/rs6000-common.c
22237 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22238 OPT_LEVELS_ALL.
22239 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22240 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22241 flag_split_wide_types_early.
22242 (pass_data_lower_subreg3): New.
22243 (pass_lower_subreg3): New.
22244 (make_pass_lower_subreg3): New.
22245 * passes.def (pass_lower_subreg2): Move after the loop passes.
22246 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22247 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22248 the pass pipeline; its previous place is taken by ...
22249 (make_pass_lower_subreg3): ... this.
22250
22251 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22252
22253 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22254 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22255
22256 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22257
22258 * config/s390/constraints.md: Add new jsc constraint.
22259 * config/s390/predicates.md: New predicates.
22260 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22261 * config/s390/s390.c (s390_valid_shift_count): New function.
22262 (print_shift_count_operand): Use s390_valid_shift_count.
22263 (print_operand): Likewise.
22264 * config/s390/s390.md: Use new predicate.
22265 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22266 * config/s390/vector.md: Use new predicate.
22267
22268 2019-07-08 Andrew Waterman <andrew@sifive.com>
22269 Jim Wilson <jimw@sifive.com>
22270
22271 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22272 bitsize instead of BITS_PER_WORD.
22273
22274 2019-07-08 Martin Liska <mliska@suse.cz>
22275
22276 * collect2.c (defined): Revert to before r254460.
22277 (scan_prog_file): Revert to before r254460.
22278
22279 2019-07-08 Richard Biener <rguenther@suse.de>
22280
22281 PR tree-optimization/83518
22282 * tree-ssa-sccvn.c: Include splay-tree.h.
22283 (struct pd_range, struct pd_data): New.
22284 (struct vn_walk_cb_data): Add data to track partial definitions.
22285 (vn_walk_cb_data::~vn_walk_cb_data): New.
22286 (vn_walk_cb_data::push_partial_def): New.
22287 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22288 (vn_reference_lookup_2): When partial defs are registered give up.
22289 (vn_reference_lookup_3): Track partial defs for memset and
22290 constructor zeroing and for defs from constants.
22291
22292 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22293
22294 * doc/install.texi (bootstrap-Og): Document.
22295
22296 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22297
22298 * config/riscv/pic.md (*local_pic_load_s<mode>)
22299 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22300 referenced by <mode>, giving...
22301 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22302 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22303 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22304 use <X:MODE> for the mode attribute.
22305
22306 2019-07-07 Jeff Law <law@redhat.com>
22307
22308 PR tree-optimization/91090
22309 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22310 in handling of ranges to simplify switch statements.
22311
22312 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22313
22314 * config/darwin.c (darwin_override_options): Make a final check on PIC
22315 options.
22316
22317 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22318
22319 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22320 on for kernel code.
22321
22322 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22323
22324 PR target/91068
22325 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22326 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22327 instead of matching them to "l" output operands.
22328
22329 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22330
22331 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22332 and check whether addr.reg is nonnull before using it.
22333
22334 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22335
22336 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22337 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22338 variable(s). For conditional lastprivate look through outer
22339 GIMPLE_OMP_SCAN context.
22340 (lower_omp_1): For conditional lastprivate look through outer
22341 GIMPLE_OMP_SCAN context.
22342
22343 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22344 member to combined_into_simd_safelen1.
22345 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22346 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22347 clauses if ctx->combined_into_simd_safelen1 put statements after the
22348 predicate conditionalized block rather than into it.
22349
22350 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22351
22352 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22353 operand 1.
22354 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22355 Make the choice of <mode> explicit, giving...
22356 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22357
22358 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22359
22360 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22361 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22362 of .md attributes.
22363 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22364 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22365 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22366 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22367 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22368 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22369 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22370 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22371 (*avx512f_scatterdi<mode>): Likewise.
22372 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22373
22374 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22375
22376 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22377 specify the mode iterator referenced by <mode>, giving...
22378 (*push1_h8300hs_<QHI:mode>): ...this.
22379
22380 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22381
22382 * config/gcn/gcn-valu.md
22383 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22384 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22385 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22386 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22387 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22388 but using the _exec comparison patterns.
22389 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22390 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22391 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22392 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22393 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22394 but using the _exec comparison patterns.
22395
22396 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22397
22398 * config/arm/sync.md
22399 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22400 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22401 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22402 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22403 <SIDI:cas_cmp_str>.
22404
22405 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22406
22407 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22408 (maybe_lookup_ctx): Add forward declaration.
22409 (omp_find_scan): Likewise. Walk into body of simd if composited
22410 with worksharing loop.
22411 (scan_omp_simd_scan): New function.
22412 (scan_omp_1_stmt): Call it.
22413 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22414 ctx->for_simd_scan_phase.
22415 (lower_rec_input_clauses): Do much less work for inscan reductions
22416 in ctx->for_simd_scan_phase is_simd regions.
22417 (lower_omp_scan): Set is_simd also on simd constructs composited
22418 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22419 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22420 emit their body after in simd constructs composited with worksharing
22421 loop.
22422 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22423
22424 * omp-low.c (omp_find_scan): Make static.
22425 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22426 the second loop, var2 represents the first partial sum and so needs
22427 to go before rprivb[ivar].
22428
22429 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22430
22431 * config/rs6000/rs6000-logue.c: Remove unused code.
22432
22433 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22434
22435 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22436
22437 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22438
22439 PR target/90712
22440 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22441 check with a frame laid out check.
22442
22443 2019-07-05 Richard Biener <rguenther@suse.de>
22444
22445 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22446 when comparing against a store with possibly the same value.
22447
22448 2019-07-05 Richard Biener <rguenther@suse.de>
22449
22450 PR tree-optimization/91091
22451 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22452 (walk_non_aliased_vuses): Likewise.
22453 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22454 (get_continuation_for_phi): New tbaa_p parameter and pass
22455 it down.
22456 (walk_non_aliased_vuses): Likewise.
22457 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22458 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22459 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22460 Likewise.
22461 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22462 (adjust_offsets_for_equal_base_address): New function.
22463 (vn_reference_lookup_3): Use it to catch more base equivalences.
22464 Handle and pass down tbaa_p flag.
22465 (vn_reference_lookup_pieces): Adjust.
22466 (vn_reference_lookup): Remove alias-set altering, instead pass
22467 down false as tbaa_p.
22468
22469 2019-07-05 Richard Biener <rguenther@suse.de>
22470
22471 PR tree-optimization/91091
22472 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22473 accesses can happen with -fno-strict-aliasing.
22474
22475 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22476
22477 * tree-ssa-alias.c (alias_stats): Add
22478 nonoverlapping_component_refs_since_match_p_must_overlap.
22479 (dump_alias_stats): Print it.
22480 (nonoverlapping_component_refs_since_match_p): Add early exit.
22481 (nonoverlapping_component_refs_p): Do not account early exit.
22482
22483 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22484
22485 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22486 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22487 (emit_eh_dispatch): Delete.
22488 (lower_catch): Emit the eh_dispatch manually and set the location of
22489 the first catch statement onto it.
22490 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22491 (lower_eh_dispatch): Propagate location.
22492 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22493 (eliminate_build): Likewise.
22494
22495 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22496
22497 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22498 phi nodes if possible.
22499 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22500 location info on the newly created statement.
22501 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22502 newly created increment if needed.
22503
22504 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22505
22506 PR middle-end/78884
22507 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22508 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22509 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22510 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22511 ctx->add_safelen1 is set.
22512
22513 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22514 GOMP_loop_start at the start of second worksharing loop in a scan.
22515 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22516 worksharing loop in a scan even if there are conditional lastprivates,
22517 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22518
22519 2019-07-04 Jan Hubicka <jh@suse.cz>
22520
22521 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22522 Fix check for match in the ref walk.
22523
22524 2019-07-04 Martin Liska <mliska@suse.cz>
22525
22526 * tree-ssa-loop-niter.c
22527 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22528 (estimate_numbers_of_iterations):
22529 Support __builtin_expect_with_probability for analysis
22530 of # of loop iterations.
22531
22532 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22533
22534 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22535 * except.c: Likewise.
22536 * expr.c (expand_expr_real_1): Reject it.
22537 * gimplify.c (gimplify_expr): Gimplify it, within
22538 TRY_FINALLY_EXPR.
22539 * tree-dump.c (dequeue_and_dump): Dump it.
22540 * tree-pretty-print.c (dump_generic_node): Likewise.
22541 * tree.c (block_may_fallthru): Handle it.
22542 * tree.def (EH_ELSE_EXPR): Introduce it.
22543 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22544 with GIMPLE_EH_ELSE as try/finally/else.
22545
22546 2019-07-04 Richard Biener <rguenther@suse.de>
22547
22548 PR ipa/91062
22549 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22550 parameter whether to disable GC collection.
22551 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22552 honor it.
22553 (execute_all_ipa_transforms): Likewise and pass it down.
22554 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22555 collection from applying IPA transforms.
22556 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22557 from applying IPA transforms.
22558
22559 2019-07-04 Richard Biener <rguenther@suse.de>
22560
22561 PR tree-optimization/90911
22562 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22563 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22564 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22565 scalar_loop_scaling.
22566 (vect_transform_loop): Scale scalar loop profile if needed.
22567 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22568 the loop copy from if-conversion adjust edge probabilities
22569 and scale the vectorized loop body profile, queue the scalar
22570 profile for updating after peeling.
22571
22572 2019-07-04 Jan Hubicka <jh@suse.cz>
22573
22574 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22575 parameters; return early for must-alias.
22576 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22577 outer types match, try nonoverlapping_component_refs
22578 if must-alias is not obvious.
22579 (indirect_refs_may_alias_p): Likewise.
22580 (refs_may_alias_p_2): Likewise.
22581
22582 2019-07-04 Richard Biener <rguenther@suse.de>
22583
22584 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22585 argument.
22586 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22587 globals into...
22588 (struct vn_walk_cb_data): New callback data struct.
22589 (vn_reference_lookup_2): Adjust.
22590 (vn_reference_lookup_3): Likewise.
22591 (vn_reference_lookup_pieces): Likewise.
22592 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22593 (visit_reference_op_load): Adjust.
22594
22595 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22596
22597 PR tree-optimization/91063
22598 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22599 stmt from stmts sequence before calling vect_init_vector_1.
22600 Formatting fix.
22601
22602 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22603
22604 PR target/88833
22605 * fwprop.c (reg_single_def_p): New function.
22606 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22607 (forward_propagate_into): New parameter reg_prop_only
22608 with default value false.
22609 Propagate def's src into loop only if SET_SRC and SET_DEST
22610 of def_set have single definitions.
22611 Likewise if reg_prop_only is set to true.
22612 (fwprop): New param fwprop_addr_p.
22613 Integrate fwprop_addr into fwprop.
22614 (fwprop_addr): Remove.
22615 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22616 to true.
22617 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22618 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22619 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22620
22621 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22622
22623 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22624 in worksharing loop scans.
22625
22626 PR tree-optimization/91074
22627 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22628 temporary.
22629
22630 PR rtl-optimization/90756
22631 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22632 for VECTOR_TYPE_P.
22633
22634 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22635
22636 * config/aarch64/aarch64.md: Remove redundant constraints from
22637 define_expand but keep some patterns untouched if they are
22638 specially selected by TARGET_SECONDARY_RELOAD hook.
22639 * config/aarch64/aarch64-sve.md: Likewise.
22640 * config/aarch64/atomics.md: Remove redundant constraints from
22641 define_expand.
22642 * config/aarch64/aarch64-simd.md: Likewise.
22643
22644 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22645
22646 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22647 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22648 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22649 clauses.
22650 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22651 DARWIN_NOPIE_SPEC.
22652
22653 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22654
22655 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22656 (STARTFILE_SPEC): Split crt3 into a separate spec.
22657 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22658 (DARWIN_CRT2_SPEC): New.
22659 (DARWIN_CRT3_SPEC): New.
22660 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22661 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22662 (DARWIN_CRT3_SPEC): New.
22663
22664 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22665
22666 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22667 Change the RTL attribute "length" from "4" to "*" to allow the
22668 length attribute to be adjusted automatically for prefixed load,
22669 store, and add immediate instructions.
22670 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22671 Likewise.
22672 (extendsi<mode>2, EXTSI iterator): Likewise.
22673 (movsi_internal1): Likewise.
22674 (movsi_from_sf): Likewise.
22675 (movdi_from_sf_zero_ext): Likewise.
22676 (mov<mode>_internal): Likewise.
22677 (movcc_internal1, QHI iterator): Likewise.
22678 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22679 (movsf_from_si): Likewise.
22680 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22681 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22682 (mov<mode>, FMOVE128 iterator): Likewise.
22683 (movdi_internal64): Likewise.
22684 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22685 Likewise.
22686 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22687 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22688 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22689 (vsx_splat_v4sf): Likewise.
22690
22691 2019-07-03 Mark Wielaard <mark@klomp.org>
22692
22693 PR debug/90981
22694 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22695 DW_AT_addr_base if there is actually a .debug_addr section with
22696 addresses.
22697 (output_addr_table): Add DWARF5 table header generation here after
22698 checking there are actually any addresses from...
22699 (dwarf2out_finish): ...here.
22700
22701 2019-07-03 Richard Biener <rguenther@suse.de>
22702
22703 PR middle-end/91069
22704 * match.pd (vec_perm -> bit_insert): Fix element read from
22705 first vector.
22706
22707 2019-07-03 Martin Liska <mliska@suse.cz>
22708
22709 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22710 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22711 condition.
22712 * generic-match-head.c: Include dbgcnt.h.
22713 * gimple-match-head.c: Likewise.
22714
22715 2019-07-03 Martin Liska <mliska@suse.cz>
22716
22717 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22718 (GCOV_COUNTER_V_TOPN): New.
22719 (GCOV_COUNTER_V_INDIR): Use _topn.
22720 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22721 (GCOV_TOPN_VALUES): New.
22722 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22723 (GCOV_TOPN_VALUES_COUNTERS): New.
22724 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22725 * tree-profile.c:
22726 (gimple_init_gcov_profiler): Rename variables from one_value
22727 to topn_values.
22728 (gimple_gen_one_value_profiler): Remove.
22729 (gimple_gen_topn_values_profiler): New function.
22730 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22731 names instead of SINGLE_VALUE.
22732 (stream_out_histogram_value): Likewise.
22733 (stream_in_histogram_value): Likewise.
22734 (get_most_common_single_value): Likewise.
22735 (gimple_divmod_fixed_value_transform): Likewise.
22736 (gimple_stringops_transform): Likewise.
22737 (gimple_divmod_values_to_profile): Likewise.
22738 (gimple_stringops_values_to_profile): Likewise.
22739 (gimple_find_values_to_profile): Likewise.
22740 * value-prof.h (enum hist_type): Rename to TOPN.
22741 (gimple_gen_one_value_profiler): Remove.
22742 (gimple_gen_topn_values_profiler): New.
22743
22744 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22745
22746 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22747 if it has the DW_AT_data_member_location attribute.
22748
22749 2019-07-03 Richard Biener <rguenther@suse.de>
22750
22751 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22752 dumping.
22753
22754 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22755
22756 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22757 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22758 (tlsdesc_small_sve_<mode>): Likewise.
22759
22760 2019-07-03 Martin Liska <mliska@suse.cz>
22761
22762 * Makefile.in: Define ZSTD_LIB.
22763 * common.opt: Adjust compression level
22764 to support also zstd levels.
22765 * config.in: Regenerate.
22766 * configure: Likewise.
22767 * configure.ac: Add --with-zstd and --with-zstd-include options
22768 and detect ZSTD.
22769 * doc/install.texi: Mention zstd dependency.
22770 * gcc.c: Print supported LTO compression algorithms.
22771 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22772 (lto_compression_zstd): Likewise.
22773 (lto_uncompression_zstd): Likewise.
22774 (lto_end_compression): Dispatch in between zlib and zstd.
22775 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22776 (lto_uncompression_zlib): Make it static.
22777 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22778 * lto-section-in.c (lto_get_section_data): Pass info
22779 about used compression.
22780 * lto-streamer-out.c: By default use zstd when possible.
22781 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22782 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22783
22784 2019-07-03 Martin Liska <mliska@suse.cz>
22785
22786 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22787 * lto-section-out.c (lto_destroy_simple_output_block): Never
22788 compress LTO_section_lto section.
22789 * lto-streamer-out.c (produce_asm): Do not set major_version
22790 and minor_version.
22791 (lto_output_toplevel_asms): Likewise.
22792 (produce_lto_section): New function.
22793 (lto_output): Call produce_lto_section.
22794 (lto_write_mode_table): Do not set major_version and
22795 minor_version.
22796 (produce_asm_for_decls): Likewise.
22797 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22798 type.
22799 (struct lto_header): Remove.
22800 (struct lto_section): New struct.
22801 (struct lto_simple_header): Do not inherit from lto_header.
22802 (struct lto_file_decl_data): Add lto_section_header field.
22803
22804 2019-07-03 Martin Liska <mliska@suse.cz>
22805
22806 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22807 dead assignemts.
22808 * reg-stack.c (check_asm_stack_operands): Likewise.
22809 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22810 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22811 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22812 force_expand_binop.
22813
22814 2019-07-03 Martin Liska <mliska@suse.cz>
22815
22816 PR tree-optimization/90892
22817 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22818 in string constants.
22819
22820 2019-07-03 Martin Liska <mliska@suse.cz>
22821
22822 PR middle-end/90899
22823 * multiple_target.c (create_dispatcher_calls): Add to comdat
22824 group only if set for ifunc.
22825
22826 2019-07-03 Martin Liska <mliska@suse.cz>
22827
22828 PR target/88056
22829 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22830 Define local_object_name in outer scope in order to handle
22831 use-after-scope issue.
22832
22833 2019-07-03 Martin Liska <mliska@suse.cz>
22834
22835 * common.opt: Add fprofile-note.
22836 * coverage.c (coverage_init): Append the option
22837 to bbg_file_name.
22838 * doc/invoke.texi: Document -fprofile-note.
22839
22840 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22841
22842 PR tree-optimization/91033
22843 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22844 vect_analyze_data_refs): Add bool * arguments.
22845 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22846 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22847 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22848 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22849 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22850 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22851 vect_analyze_data_refs caller.
22852
22853 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22854 clause.
22855 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22856 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22857 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22858 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22859 OMP_CLAUSE__SCANTEMP_ entry.
22860 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22861 * tree-pretty-print.c (dump_omp_clause): Likewise.
22862 * tree-nested.c (convert_nonlocal_omp_clauses,
22863 convert_local_omp_clauses): Likewise.
22864 * omp-general.h (struct omp_for_data): Add have_scantemp and
22865 have_nonctrl_scantemp members.
22866 * omp-general.c (omp_extract_for_data): Initialize them.
22867 * omp-low.c (struct omp_context): Add scan_exclusive member.
22868 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22869 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22870 ctx->scan_exclusive.
22871 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22872 of !ctx->scan_inclusive.
22873 (lower_rec_input_clauses): Simplify gimplification of dtors using
22874 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22875 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22876 loops. Don't add barrier for reduction_omp_orig_ref if
22877 ctx->scan_??xclusive.
22878 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22879 (lower_omp_scan): Use ctx->scan_exclusive instead
22880 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22881 reductions. Use new_vard != new_var instead of repeated
22882 omp_is_reference calls.
22883 (omp_find_scan, lower_omp_for_scan): New functions.
22884 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22885 inscan reductions.
22886 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22887 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22888 and fd->have_scantemp.
22889
22890 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22891 on worksharing loop propagate it as shared clause to containing
22892 combined parallel.
22893
22894 * omp-expand.c (expand_omp_for_static_nochunk,
22895 expand_omp_for_static_chunk): For nowait worksharing loop with
22896 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22897 at the end.
22898
22899 2019-07-02 qing zhao <qing.zhao@oracle.com>
22900
22901 PR preprocessor/90581
22902 * doc/cppopts.texi: Add document for -fmax-include-depth.
22903 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22904
22905 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22906
22907 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22908 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22909 (mmx_packssdw): Ditto.
22910 (mmx_punpckhbw): Ditto.
22911 (mmx_punpcklbw): Ditto.
22912 (mmx_punpckhwd): Ditto.
22913 (mmx_punpcklwd): Ditto.
22914 (mmx_punpckhdq): Ditto.
22915 (mmx_punpckldq): Ditto.
22916 (*vec_dupv4hi): Ditto.
22917 (*vec_dupv2si): Ditto.
22918 (mmx_pmovmskb): Ditto.
22919 * config/i386/sse.md (sse_cvtpi2ps): Use
22920 TARGET_SSE2 && SSE_REG_P in split condition.
22921 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22922 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22923 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22924 (ssse3_pshufbv8qi3): Ditto.
22925 (ssse3_palignrdi): Ditto.
22926
22927 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22928
22929 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22930 with inlined save and restore.
22931
22932 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22933
22934 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22935 to be inserted on single successor edge of the entry block. Then call
22936 commit_edge_insertions instead of inserting the instructions manually.
22937 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22938 RTL expansion and rebuild jump labels chain.
22939
22940 2019-07-02 Richard Biener <rguenther@suse.de>
22941
22942 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22943 TI_CHREC_KNOWN.
22944 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22945 Define here.
22946 * tree.c (build_common_tree_nodes): Initialize them.
22947 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22948 Make declarations comments.
22949 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22950 chrec_known): Remove definitions.
22951 (initialize_scalar_evolutions_analyzer): Remove.
22952 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22953 * tree-streamer.c (preload_common_nodes): Do not preload
22954 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22955
22956 2019-07-02 Jan Hubicka <jh@suse.cz>
22957
22958 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22959 sanity check.
22960
22961 2019-07-02 Jan Hubicka <jh@suse.cz>
22962
22963 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22964 to ..
22965 (nonoverlapping_component_refs_since_match_p): ... this one;
22966 handle also non-decl bases; return -1 if search gave up.
22967 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22968 nonoverlapping_component_refs_of_decl_p_no_alias to
22969 nonoverlapping_component_refs_since_match_p_may_alias,
22970 nonoverlapping_component_refs_since_match_p_no_alias.
22971 (dump_alias_stats): Update dumping.
22972 (aliasing_matching_component_refs_p): Break out from ...;
22973 dispatch to nonoverlapping_component_refs_for_decl_p
22974 and nonoverlapping_component_refs_since_match_p.
22975 (aliasing_component_refs_p): ... here; call
22976 nonoverlapping_component_refs_p in scenarios where we can not
22977 precisely determine base match.
22978 (decl_refs_may_alias_p): Use
22979 nonoverlapping_component_refs_since_match_p.
22980 (indirect_ref_may_alias_decl_p): Do not call
22981 nonoverlapping_component_refs_p.
22982 (indirect_refs_may_alias_p): Likewise.
22983
22984 2019-07-02 Jan Hubicka <jh@suse.cz>
22985
22986 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22987 to clobber of return value.
22988
22989 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22990
22991 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22992 for is_neon_type instructions that have not already been categorized.
22993
22994 2019-07-02 Richard Biener <rguenther@suse.de>
22995
22996 PR tree-optimization/58483
22997 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22998 for MEM_REF base hashing.
22999 (equal_mem_array_ref_p): Likewise for base comparison.
23000
23001 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23002
23003 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23004 parameterized name.
23005 (signbit<mode>2): Use that name. Simplify.
23006
23007 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
23008
23009 PR middle-end/66726
23010 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23011 Tune heuristic from PR71016 to allow MIN / MAX.
23012
23013 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23014
23015 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23016 parameterized name.
23017 (abs<mode>2): Use that name. Simplify.
23018
23019 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23020
23021 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23022 parameterized name.
23023 (neg<mode>2): Use that name. Simplify.
23024
23025 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23026
23027 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23028 name.
23029 (abs<mode>2): Use that name. Simplify.
23030
23031 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23032
23033 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23034 name.
23035 (neg<mode>2): Use that name. Simplify.
23036
23037 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
23038
23039 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23040 ("enabled" attribute): Handle sse_noavx isa attribute.
23041 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23042 Use TARGET_SSE && SSE_REGNO_P in split condition.
23043 (*vec_dupv2sf): Ditto.
23044
23045 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23046
23047 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23048 name.
23049 (floatsi<mode>2): Use that name. Simplify.
23050
23051 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23052
23053 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23054 parameterized name.
23055 (extenddf<mode>2_vsx): Make this a parameterized name.
23056 (extenddf<mode>2): Use those names. Simplify.
23057
23058 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23059
23060 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23061 name.
23062 (eh_return): Use that name. Simplify.
23063
23064 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23065
23066 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23067 (doloop_end): Use that name. Simplify.
23068
23069 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23070
23071 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23072 parameterized name.
23073 (indirect_jump): Use that name. Simplify.
23074
23075 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23076
23077 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23078 parameterized name.
23079 (abs<mode>2): Use that name. Simplify.
23080
23081 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23082
23083 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23084 parameterized name.
23085 (fix_trunc<mode>si2): Use that name. Simplify.
23086
23087 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23088
23089 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23090 (allocate_stack): Use that name. Simplify.
23091
23092 2019-07-01 Martin Sebor <msebor@redhat.com>
23093
23094 PR middle-end/90923
23095 * hash-map.h (hash_map::put): On insertion invoke element ctor.
23096 (hash_map::get_or_insert): Same. Reformat comment.
23097 * hash-set.h (hash_set::add): On insertion invoke element ctor.
23098 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23099 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23100 * hash-table.h (hash_table::operator=): Prevent copy assignment.
23101 (hash_table::hash_table (const hash_table&)): Use copy ctor
23102 instead of assignment to copy elements.
23103
23104 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
23105 John David Anglin <danglin@gcc.gnu.org>
23106
23107 PR target/90963
23108 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23109 using saved frame pointer.
23110
23111 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
23112
23113 PR middle-end/64242
23114 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23115 Add frame clobber and schedule blockage.
23116
23117 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
23118
23119 * doc/invoke.texi (Link Options): Further editorial changes to
23120 -flinker-output docs.
23121
23122 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23123
23124 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23125 Load both operands of a PLUS into registers separately.
23126
23127 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23128
23129 * config/s390/vector.md: Fix shift count operand printing.
23130
23131 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23132
23133 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23134
23135 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23136
23137 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23138 Use recog_data to test for an output operand.
23139
23140 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23141
23142 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23143 exclude any others that are disparaged or that are bound to need
23144 a reload or spill.
23145 (ira_get_dup_out_num): Expand comment.
23146
23147 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23148
23149 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23150 constraint string for each operand/alternative combo. Only handle
23151 '%' at the start of constraint strings, and look for it outside
23152 the main loop.
23153
23154 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23155
23156 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23157 alternative_mask instead of HARD_REG_SET to represent a
23158 bitmask of alternatives.
23159 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23160 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23161
23162 2019-07-01 Martin Liska <mliska@suse.cz>
23163
23164 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23165 use () for a constructor call.
23166 (test_applying_fixits_line_out_of_range): Likewise.
23167 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23168 argument.
23169 (free_page): Likewise.
23170
23171 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23172
23173 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23174 parameter names to match usage (no functional change).
23175 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23176
23177 2019-07-01 Richard Biener <rguenther@suse.de>
23178
23179 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23180 pass parameter.
23181 (pass_fre::execute): Honor it.
23182 * passes.def: Adjust pass_fre invocations to allow iterating,
23183 add non-iterating pass_fre before late threading/dom.
23184
23185 2019-07-01 Richard Biener <rguenther@suse.de>
23186
23187 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23188 TARGET_MEM_REF handling to also handle address-taken ones.
23189
23190 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23191
23192 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23193 hardware attributes): Document avx512vp2intersect.
23194
23195 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23196
23197 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23198 (abs<mode>2): New expander.
23199 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23200 Use CODE_FOR_ssse3_absv8qi2.
23201 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23202 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23203
23204 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23205
23206 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23207 to sse, sse_noavx and avx. Update all uses.
23208
23209 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23210
23211 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23212 (*mmx_<plusminus_insn><mode>3): Ditto.
23213 (*mmx_mulv4hi3"): Ditto.
23214 (*mmx_smulv4hi3_highpart): Ditto.
23215 (*mmx_umulv4hi3_highpart): Ditto.
23216 (*mmx_pmaddwd): Ditto.
23217 (*sse2_umulv1siv1di3): Ditto.
23218 (*mmx_<code>v4hi3): Ditto.
23219 (*mmx_<code>v8qi3): Ditto.
23220 (mmx_ashr<mode>3): Ditto.
23221 ("mmx_<shift_insn><mode>3): Ditto.
23222 (*mmx_eq<mode>3): Ditto.
23223 (mmx_gt<mode>3): Ditto.
23224 (mmx_andnot<mode>3): Ditto.
23225 (*mmx_<code><mode>3): Ditto.
23226 (*mmx_pinsrw): Ditto.
23227 (*mmx_pextrw): Ditto.
23228 (mmx_pshufw_1): Ditto.
23229 (*mmx_uavgv8qi3): Ditto.
23230 (*mmx_uavgv4hi3): Ditto.
23231 ("mmx_psadbw): Ditto.
23232 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23233 (sse_cvttps2pi): Ditto.
23234 (ssse3_pmaddubsw): Ditto.
23235 (*ssse3_pmulhrswv4hi3): Ditto.
23236 (ssse3_psign<mode>3): Ditto.
23237
23238 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23239
23240 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23241 adjustment for bit-fields to all aggregate types.
23242
23243 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23244
23245 * config/rs6000/predicates.md (pcrel_address): Use
23246 SYMBOL_REF_LOCAL_P to determine if a label is local.
23247 (pcrel_external_address): New predicate.
23248 (non_prefixed_mem_operand): Delete, predicate not used.
23249 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23250 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23251 addressing.
23252 (SYMBOL_REF_PCREL_P): Likewise.
23253
23254 PR target/91009
23255 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23256 alternative.
23257 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23258 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23259 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23260
23261 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23262
23263 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23264 override on extra_headers.
23265
23266 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23267
23268 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23269 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23270 from warning.
23271 (darwin_driver_init): Likewise.
23272
23273 2019-06-28 Jan Beulich <jbeulich@suse.com>
23274
23275 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23276 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23277 Eliminate redundant alternative.
23278
23279 2019-06-28 Jan Beulich <jbeulich@suse.com>
23280
23281 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23282 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23283 Use vector_operand.
23284
23285 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23286
23287 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23288 having a lower cost regardless of the speed option.
23289
23290 2019-06-28 Jan Beulich <jbeulich@suse.com>
23291
23292 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23293 vector_operand plus, on both alternatives, "Bm" constraint.
23294
23295 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23296
23297 * config/arm/arm.md: Remove redundant constraints from
23298 define_expand but leave reload_inm and reload_outm patterns
23299 untouched since they need special constraints to work.
23300 * config/arm/arm-fixed.md: Remove redundant constraints from
23301 define_expand.
23302 * config/arm/iwmmxt.md: Likewise.
23303 * config/arm/neon.md: Likewise.
23304 * config/arm/sync.md: Likewise.
23305 * config/arm/thumb1.md: Likewise.
23306 * config/arm/vec-common.md: Likewise.
23307
23308 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23309
23310 * doc/install.texi: Document --disable-tm-clone-registry.
23311
23312 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23313
23314 PR c++/91024
23315 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23316 statements.
23317
23318 PR tree-optimization/91010
23319 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23320 return true. Otherwise, don't call operand_equal_p if offset1 or
23321 offset2 is NULL and just return false.
23322
23323 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23324
23325 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23326 user-specified float mode choice for kernel mode code.
23327
23328 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23329
23330 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23331 spec.
23332
23333 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23334
23335 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23336 use longcall for 64b code.
23337
23338 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23339
23340 * builtins.c (get_memory_rtx): Fix comment.
23341 * optabs.def (movmem_optab): Change to cpymem_optab.
23342 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23343 (emit_block_move_hints): Change movmem to cpymem.
23344 * defaults.h: Change movmem to cpymem.
23345 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23346 (default_use_by_pieces_infrastructure_p): Ditto.
23347 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23348 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23349 to cpymem.
23350 * config/aarch64/aarch64.h: Change movmem to cpymem.
23351 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23352 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23353 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23354 movmem to cpymem.
23355 * config/arc/arc-protos.h: Change movmem to cpymem.
23356 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23357 * config/arc/arc.h: Change movmem to cpymem in comment.
23358 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23359 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23360 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23361 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23362 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23363 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23364 * config/avr/avr-protos.h: Change movmem to cpymem.
23365 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23366 avr_out_movmem): Change movmem to cpymem.
23367 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23368 Change movmem to cpymem.
23369 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23370 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23371 Change movmem to cpymem.
23372 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23373 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23374 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23375 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23376 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23377 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23378 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23379 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23380 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23381 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23382 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23383 expand_small_cpymem_or_setmem,
23384 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23385 expand_set_or_cpymem_constant_prologue,
23386 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23387 * config/i386/i386-protos.h: Change movmem to cpymem.
23388 * config/i386/i386.h: Change movmem to cpymem in comment.
23389 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23390 (setmem<mode>): Change expansion function name.
23391 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23392 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23393 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23394 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23395 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23396 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23397 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23398 to cpymem.
23399 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23400 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23401 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23402 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23403 Change movmem to cpymem.
23404 * config/mips/mips.h: Change movmem to cpymem.
23405 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23406 * config/nds32/nds32-memory-manipulation.c
23407 (nds32_expand_movmemsi_loop_unknown_size,
23408 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23409 nds32_expand_movmemsi_unroll,
23410 nds32_expand_movmemsi): Change movmem to cpymem.
23411 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23412 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23413 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23414 (pa_adjust_insn_length): Change call to compute_movmem_length.
23415 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23416 movmemdi, movmemdi_prereload,
23417 movmemdi_postreload): Change movmem to cpymem.
23418 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23419 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23420 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23421 * config/riscv/riscv.h: Change movmem to cpymem.
23422 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23423 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23424 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23425 movmem to cpymem.
23426 * config/s390/s390-protos.h: Change movmem to cpymem.
23427 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23428 s390_expand_insv): Change movmem to cpymem.
23429 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23430 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23431 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23432 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23433 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23434 for nonexistent function.
23435 * config/vax/vax.h: Change movmem to cpymem in comment.
23436 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23437 * config/visium/visium.h: Change movmem to cpymem in comment.
23438 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23439 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23440 * doc/md.texi: Change movmem to cpymem and update description to match.
23441 * doc/rtl.texi: Change movmem to cpymem.
23442 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23443 * doc/tm.texi: Regenerate.
23444
23445 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23446
23447 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23448 -fvariable-expansion-in-unroller by default.
23449 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23450 default for Power.
23451
23452 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23453
23454 Revert
23455 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23456 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23457
23458 * config.gcc(rs6000-*-*): Define target_gtfiles.
23459
23460 2019-06-27 Jan Hubicka <jh@suse.cz>
23461
23462 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23463 (add_type_duplicate): When odr hash is not allocated, to nothing.
23464 (odr_based_tbaa_p): New function.
23465 (set_type_canonical_for_odr_type): New function.
23466 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23467 set_type_canonical_for_odr_type): New.
23468 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23469 ODR based TBAA are not equivalent to non-ODR types.
23470
23471 2019-06-27 Martin Liska <mliska@suse.cz>
23472
23473 PR tree-optimization/90974
23474 PR rtl-optimization/90975
23475 PR rtl-optimization/90976
23476 PR target/91016
23477 PR tree-optimization/91017
23478 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23479 unused tmp.
23480 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23481 initial commit of IRA.
23482 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23483 of op0 and op1.
23484 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23485 Remove unused mode1.
23486 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23487 to new_stmt_info.
23488
23489 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23490
23491 PR target/90991
23492 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23493 instead of register_operand for operands[1], add m to its constraints
23494 if operands[2] uses "C" constraint. Ensure in condition that if
23495 operands[2] is not 0, then operands[1] is not a MEM. For last two
23496 alternatives, use unaligned loads instead of aligned if operands[1] is
23497 misaligned_operand.
23498
23499 2019-06-27 Martin Liska <mliska@suse.cz>
23500
23501 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23502 dead assignments.
23503 * bt-load.c (move_btr_def): Likewise.
23504 * builtins.c (expand_builtin_apply_args_1): Likewise.
23505 (expand_builtin_apply): Likewise.
23506 * cfgexpand.c (expand_asm_stmt): Likewise.
23507 (construct_init_block): Likewise.
23508 * cfghooks.c (verify_flow_info): Likewise.
23509 * cfgloopmanip.c (remove_path): Likewise.
23510 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23511 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23512 * combine.c (simplify_if_then_else): Likewise.
23513 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23514 (choose_basereg): Likewise.
23515 (ix86_expand_prologue): Likewise.
23516 (ix86_preferred_output_reload_class): Likewise.
23517 * cselib.c (cselib_record_sets): Likewise.
23518 * df-scan.c (df_scan_alloc): Likewise.
23519 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23520 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23521 * emit-rtl.c (try_split): Likewise.
23522 * graphite-scop-detection.c (assign_parameter_index_in_region):
23523 Likewise.
23524 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23525 * ira-color.c (setup_profitable_hard_regs): Likewise.
23526 * ira.c (rtx_moveable_p): Likewise.
23527 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23528 * read-rtl.c (read_subst_mapping): Likewise.
23529 * regrename.c (scan_rtx): Likewise.
23530 * reorg.c (fill_slots_from_thread): Likewise.
23531 * tree-inline.c (tree_function_versioning): Likewise.
23532 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23533 * tree-ssa-sink.c (statement_sink_location): Likewise.
23534 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23535 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23536 (vect_create_epilog_for_reduction): Likewise.
23537 * tree.c (build_nonstandard_integer_type): Likewise.
23538
23539 2019-06-27 Richard Biener <rguenther@suse.de>
23540
23541 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23542
23543 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23544
23545 PR tree-optimization/89772
23546 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23547 out-of-bound accesses checking.
23548
23549 2019-06-27 Martin Liska <mliska@suse.cz>
23550
23551 PR tree-optimization/91014
23552 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23553 when LHS is NULL_TREE.
23554
23555 2019-06-27 Martin Liska <mliska@suse.cz>
23556
23557 * symbol-summary.h (traverse): Pass
23558 argument a to the call of callback.
23559 (gt_ggc_mx): Mark arguments as unused.
23560 (gt_pch_nx): Likewise.
23561
23562 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23563
23564 PR target/62147
23565 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23566 finiteness.
23567
23568 2019-06-26 Jeff Law <law@redhat.com>
23569
23570 PR tree-optimization/90883
23571 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23572 (delete_dead_or_redundant_assignment): Likewise.
23573
23574 PR tree-optimization/90883
23575 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23576 * tree-ssa-dse.c: Update various comments to distinguish between
23577 dead and redundant stores.
23578 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23579 (dse_optimize_redundant_stores): New function.
23580 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23581 Distinguish between dead and redundant calls in dump output. All
23582 callers updated.
23583 (delete_dead_or_redundant_assignment): Similarly for assignments.
23584 (dse_optimize_stmt): Handle _CHK variants. For statements which
23585 store 0 into multiple memory locations, try to prove a subsequent
23586 store is redundant.
23587
23588 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23589
23590 PR target/89021
23591 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23592 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23593
23594 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23595
23596 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23597 (branch_islands): New extern.
23598 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23599 * config/rs6000/rs6000.c: .. here.
23600
23601 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23602
23603 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23604 (powerpc*-*-*) ... to here.
23605
23606 2019-06-26 Jeff Law <law@redhat.com>
23607
23608 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23609 memcpy, memmove and memset builtins.
23610 (maybe_trim_memstar_call): Likewise.
23611
23612 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23613
23614 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23615
23616 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23617
23618 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23619
23620 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23621
23622 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23623 declaration.
23624 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23625 "static".
23626 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23627 declaration.
23628
23629 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23630
23631 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23632
23633 2019-06-26 Richard Biener <rguenther@suse.de>
23634
23635 PR ipa/90982
23636 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23637
23638 2019-06-26 Richard Biener <rguenther@suse.de>
23639
23640 * lto-streamer.h (lto_bitmap_alloc): Remove.
23641 (lto_bitmap_free): Likewise.
23642 * lto-streamer.c (lto_bitmap_alloc): Remove.
23643 (lto_bitmap_free): Likewise.
23644 (lto_obstack): Likewise.
23645 (lto_obstack_initialized): Likewise.
23646 * lto-streamer-out.c (lto_output): Use own obstack for local
23647 bitmap, free it consistently.
23648
23649 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23650
23651 PR target/90991
23652 * config/i386/sse.md
23653 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23654 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23655 insns if operands[2] is misaligned_operand.
23656
23657 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23658
23659 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23660 TARGET_POWERPC64.
23661 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23662 to GPR.
23663
23664 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23665
23666 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23667
23668 2019-06-26 Martin Liska <mliska@suse.cz>
23669
23670 PR tree-optimization/90973
23671 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23672 epilogue_cost_vec instead of prologue_cost_vec for
23673 a epilogue cost.
23674
23675 2019-06-26 Martin Liska <mliska@suse.cz>
23676
23677 * bb-reorder.c (connect_better_edge_p): Add missing else
23678 statement in the middle of if-else statements.
23679
23680 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23681 H.J. Lu <hongjiu.lu@intel.com>
23682 Olga Makhotina <olga.makhotina@intel.com>
23683
23684 * common/config/i386/i386-common.c
23685 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23686 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23687 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23688 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23689 (ix86_handle_option): Handle -mavx512vp2intersect.
23690 * config/i386/avx512vp2intersectintrin.h: New.
23691 * config/i386/avx512vp2intersectvlintrin.h: New.
23692 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23693 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23694 AVX512VP2INTERSECT.
23695 * config/i386/i386-builtin-types.def: Add new types.
23696 * config/i386/i386-builtin.def: Add new builtins.
23697 * config/i386/i386-builtins.c: (enum processor_features): Add
23698 F_AVX512VP2INTERSECT.
23699 (static const _isa_names_table isa_names_table): Ditto.
23700 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23701 __AVX512VP2INTERSECT__.
23702 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23703 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23704 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23705 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23706 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23707 * config/i386/i386-options.c (ix86_target_string): Add
23708 -mavx512vp2intersect.
23709 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23710 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23711 P2HImode and P2QImode.
23712 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23713 number for P2QImode and P2HImode.
23714 (ix86_regmode_natural_size): New function.
23715 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23716 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23717 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23718 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23719 * config/i386/i386.opt: Add -mavx512vp2intersect.
23720 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23721 avx512vp2intersectvlintrin.h.
23722 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23723 (define_mode_iterator VI48_AVX512VP2VL): New.
23724 (avx512vp2intersect_2intersect<mode>,
23725 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23726 * config.gcc: Add avx512vp2intersectvlintrin.h and
23727 avx512vp2intersectintrin.h to extra_headers.
23728 * doc/invoke.texi: Document -mavx512vp2intersect.
23729
23730 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23731
23732 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23733
23734 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23735
23736 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23737 savres_routine_syms, savres_routine_name, morestack_ref,
23738 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23739 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23740 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23741 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23742 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23743 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23744 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23745 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23746 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23747 get_stack_clash_protection_probe_interval,
23748 get_stack_clash_protection_guard_size,
23749 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23750 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23751 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23752 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23753 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23754 gen_frame_mem_offset, rs6000_savres_routine_name,
23755 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23756 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23757 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23758 rs6000_global_entry_point_prologue_needed_p,
23759 rs6000_get_separate_components, rs6000_components_for_bb,
23760 rs6000_disqualify_components, rs6000_emit_prologue_components,
23761 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23762 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23763 rs6000_output_savres_externs, rs6000_output_function_prologue,
23764 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23765 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23766 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23767 rs6000_output_function_epilogue, gen_add3_const,
23768 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23769 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23770 to rs6000-logue.c.
23771 (machine_function): Moved to rs6000.h.
23772 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23773 rs6000-internal.h.
23774 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23775 savres_routine_syms, savres_routine_name, morestack_ref,
23776 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23777 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23778 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23779 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23780 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23781 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23782 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23783 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23784 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23785 get_stack_clash_protection_probe_interval,
23786 get_stack_clash_protection_guard_size,
23787 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23788 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23789 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23790 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23791 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23792 gen_frame_mem_offset, rs6000_savres_routine_name,
23793 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23794 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23795 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23796 rs6000_global_entry_point_prologue_needed_p,
23797 rs6000_get_separate_components, rs6000_components_for_bb,
23798 rs6000_disqualify_components, rs6000_emit_prologue_components,
23799 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23800 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23801 rs6000_output_savres_externs, rs6000_output_function_prologue,
23802 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23803 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23804 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23805 rs6000_output_function_epilogue, gen_add3_const,
23806 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23807 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23808 to here from rs6000.c.
23809 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23810 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23811 quad_address_offset_p) Moved to here from rs6000.c.
23812 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23813 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23814 collector.
23815
23816 2019-06-25 Martin Liska <mliska@suse.cz>
23817
23818 * hash-table.c (hashtab_chk_error): Move here from ...
23819 * hash-table.h (hashtab_chk_error): ... here.
23820
23821 2019-06-25 Martin Liska <mliska@suse.cz>
23822
23823 PR tree-optimization/90978
23824 * df-scan.c (df_update_entry_block_defs): Remove dead else
23825 branch.
23826 (df_update_exit_block_uses): Likewise.
23827
23828 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23829 Andrew Stubbs <ams@codesourcery.com>
23830
23831 * config.gcc (thread_file): Set to gcn for AMD GCN.
23832 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23833 (TARGET_EMUTLS_VAR_INIT): New hook.
23834
23835 2019-06-25 Martin Jambor <mjambor@suse.cz>
23836
23837 PR ipa/90939
23838 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23839
23840 2019-06-25 Richard Biener <rguenther@suse.de>
23841
23842 PR tree-optimization/90930
23843 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23844 into parallel form in the last pass instance.
23845
23846 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23847
23848 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23849 (arc_legitimize_pic_address): Simplify and cleanup the function.
23850 (SYMBOLIC_CONST): Remove.
23851 (prepare_pic_move): Likewise.
23852 (prepare_move_operands): Handle complex mov cases here.
23853 (arc_legitimize_address_0): Remove call to
23854 arc_legitimize_pic_address.
23855 (arc_legitimize_address): Remove call to
23856 arc_legitimize_tls_address.
23857 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23858 (movhi_insn): Likewise.
23859
23860 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23861
23862 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23863 PTRDIFF_TYPE.
23864 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23865 format of "__intN" types for UINTMAX_TYPE.
23866 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23867 format of "__intN" types for SIZETYPE.
23868 * tree.c (build_common_tree_nodes): Accept "__intN__"
23869 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23870 * doc/invoke.texi: Document that __intN__ disables pedantic
23871 warnings.
23872
23873 2019-06-25 Jan Hubicka <jh@suse.cz>
23874
23875 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23876 base2_alias_set is non-zero before doing TBAA based disambiguation.
23877
23878 2019-06-25 Martin Liska <mliska@suse.cz>
23879
23880 PR tree-optimization/90973
23881 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23882 of prologue and epilogue.
23883
23884 2019-06-24 Jan Hubicka <jh@suse.cz>
23885
23886 * ipa-utils.h (type_with_linkage_p): Verify that type is
23887 CXX_ODR_P.
23888 (odr_type_p): Remove extra return.
23889 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23890 hash STRING_FLAG only for arrays and integers.
23891 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23892 Update analogously.
23893 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23894 Likewise.
23895 * print-tree.c (print_node): Print cxx-odr-p
23896 and string-flag.
23897 * tree.c (need_assembler_name_p): Also check that type
23898 is CXX_ODR_TYPE_P
23899 (verify_type_variant): Update verification of SRING_FLAG;
23900 also check CXX_ODR_P.
23901 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23902 (TYPE_STRING_FLAG): Use it.
23903 (TYPE_CXX_ODR_P): New macro.
23904 * dwarf2out.c (gen_array_type_die): First check that type
23905 is an array and then test string flag.
23906
23907 2019-06-24 Richard Biener <rguenther@suse.de>
23908
23909 PR tree-optimization/90972
23910 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23911 in common code, dealing with STRING_CST properly.
23912
23913 2019-06-24 Richard Biener <rguenther@suse.de>
23914
23915 PR tree-optimization/90930
23916 PR tree-optimization/90316
23917 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23918 decrement of limit.
23919
23920 2019-06-24 Martin Sebor <msebor@redhat.com>
23921
23922 * tree-pretty-print.h: Remove unnecessary punctuation characters
23923 from a diagnostic.
23924 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23925
23926 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23927
23928 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23929 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23930 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23931
23932 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23933
23934 * config/rs6000/darwin.h: Handle GCC target pragma.
23935
23936 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23937
23938 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23939
23940 2019-06-22 Jeff Law <law@redhat.com>
23941
23942 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23943
23944 2019-06-22 Jan Hubicka <jh@suse.cz>
23945
23946 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23947 give up on bitfields; continue searching for different refs
23948 appearing later.
23949
23950 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23951
23952 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23953 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23954 containing the offset as possible simd lane access. Look through
23955 widening conversion. Move the
23956 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23957
23958 2019-06-21 Richard Biener <rguenther@suse.de>
23959
23960 PR tree-optimization/90930
23961 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23962 flag on new stmts to avoid re-processing them.
23963
23964 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23965
23966 PR c++/90875 - added -Wswitch-outside-range option
23967 * doc/invoke.texi (Wswitch-outside-range): Document.
23968
23969 2019-06-21 Jeff Law <law@redhat.com>
23970
23971 PR tree-optimization/90949
23972 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23973 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23974
23975 2019-06-21 Richard Biener <rguenther@suse.de>
23976
23977 PR debug/90914
23978 * dwarf2out.c (prune_unused_types_walk): Always consider
23979 function-local extern declarations as used.
23980
23981 2019-06-21 Richard Biener <rguenther@suse.de>
23982
23983 PR tree-optimization/90913
23984 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23985 the scalar variant of if-conversion versioning.
23986
23987 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23988
23989 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23990 create another "omp scan inscan exclusive" array if
23991 !ctx->scan_inclusive.
23992 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23993 (lower_omp_scan): Likewise.
23994 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23995 2-bit bitfield for simd_lane_access_p member.
23996 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23997 aux == (void *)-4 as simd lane access.
23998 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23999 comment with permutations to show the canonical permutation order.
24000 (vectorizable_scan_store): Handle exclusive scan.
24001 (vectorizable_store): Call vectorizable_scan_store even for
24002 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24003
24004 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24005 "omp simd array" arrays with one byte elements.
24006
24007 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
24008
24009 * config/alpha/alpha.md (@unaligned_store<mode>):
24010 Rename from unaligned_store<mode>.
24011 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24012 * config/alpha/sync.md (@load_locked_<mode>): Rename
24013 from load_locked_<mode>.
24014 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24015 (@atomic_compare_and_swap<mode>_1): Rename
24016 from atomic_compare_and_swap<mode>_1.
24017 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24018 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24019 Use gen_reload_in_aligned and gen_unaligned_store.
24020 (emit_load_locked): Remove.
24021 (emit_store_conditional): Ditto.
24022 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24023 (alpha_split_compare_and_swap): Ditto.
24024 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24025 (alpha_split_compare_and_swap_12): Use gen_load_locked
24026 and gen_store_conditional.
24027 (alpha_split_atomic_exchange): Ditto.
24028 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24029 (alpha_split_atomic_exchange_12): Use gen_load_locked
24030 and gen_store_conditional.
24031
24032 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
24033
24034 * config/aarch64/aarch64-errata.h: New file.
24035 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24036 (CA53_ERR_843419_SPEC): Delete.
24037 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24038 * config/aarch64/aarch64-linux.h: Likewise.
24039 * config/aarch64/aarch64-netbsd.h: Likewise.
24040 * config/aarch64/aarch64-freebsd.h: Likewise.
24041
24042 2019-06-20 Marek Polacek <polacek@redhat.com>
24043
24044 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24045
24046 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
24047
24048 * config/rs6000/rs6000.md (isa attribute): Add support for
24049 for a future processor.
24050
24051 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
24052
24053 PR target/54855
24054 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24055 standard scalar operation pattern for V2DF.
24056 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24057 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24058 (*ieee_<ieee_maxmin><mode>3): Likewise.
24059 (vec_setv2df_0): Likewise.
24060
24061 2019-06-20 Jan Hubicka <jh@suse.cz>
24062
24063 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24064 parameter; it has no use in gimple memory model.
24065 (indirect_ref_may_alias_decl_p): Update.
24066
24067 2019-06-20 Martin Liska <mliska@suse.cz>
24068
24069 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24070 to 10.
24071
24072 2019-06-20 Jakub Jelinek <jakub@redhat.com>
24073
24074 * tree-vect-stmts.c (enum scan_store_kind): New type.
24075 (scan_store_can_perm_p): Change last argument from int * to
24076 vec<enum scan_store_kind> *, record precisely which permutations
24077 need whole vector left shift or that plus VEC_COND_EXPR.
24078 (vectorizable_scan_store): Adjust caller, use whole vector left shift
24079 and additional VEC_COND_EXPR only for those iterations that need it.
24080
24081 2019-06-20 Alexandre Oliva <oliva@adacore.com>
24082
24083 * config.gcc: Fix ARM --with-fpu checking and error message.
24084
24085 2019-06-19 Marek Polacek <polacek@redhat.com>
24086
24087 PR c++/60364 - noreturn after first decl not diagnosed.
24088 * attribs.c (get_attribute_namespace): No longer static.
24089 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
24090 attributes.
24091 (attr_noreturn_exclusions): Make it extern.
24092 * attribs.h (get_attribute_namespace): Declare.
24093 * tree-inline.c (function_attribute_inlinable_p): Use
24094 get_attribute_name.
24095
24096 2019-06-19 Martin Sebor <msebor@redhat.com>
24097
24098 PR tree-optimization/90626
24099 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24100
24101 PR tree-optimization/90626
24102 * tree-ssa-strlen.c (strxcmp_unequal): New function.
24103 (handle_builtin_string_cmp): Call it.
24104
24105 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24106
24107 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24108 and DARWIN_NOPIE_SPEC.
24109 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24110 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24111 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24112 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24113 (DARWIN_EXPORT_DYNAMIC): Delete.
24114 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24115 and pie options processing to darwin.h.
24116 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24117
24118 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24119
24120 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24121 in computing the number of options to be moved.
24122
24123 2019-06-19 Maya Rashish <coypu@sdf.org>
24124
24125 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24126 (CLEAR_INSN_CACHE) Use it.
24127
24128 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24129
24130 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24131
24132 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24133
24134 PR middle-end/84521
24135 * builtins.c (expand_builtin_setjmp_setup): Save
24136 hard_frame_pointer_rtx.
24137 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24138 restore fp.
24139 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24140 non-local goto.
24141 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24142 elimination code.
24143 (remove_reg_equal_offset_note): Remove unused function.
24144 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24145 code.
24146 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24147 (arc_builtin_setjmp_frame_value): Remove function.
24148 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24149 (avr_builtin_setjmp_frame_value): Remove function.
24150 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24151 (ix86_builtin_setjmp_frame_value): Remove function.
24152 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24153 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24154 (sparc_builtin_setjmp_frame_value): Remove function.
24155 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24156 (vax_builtin_setjmp_frame_value): Remove function.
24157 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24158 pointer if has_nonlocal_label.
24159
24160 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24161
24162 * doc/md.texi: Document vec_shl_<mode> pattern.
24163 * optabs.def (vec_shl_optab): New optab.
24164 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24165 argument, if == vec_shl_optab, check for left whole vector shift
24166 pattern rather than right shift.
24167 (expand_vec_perm_const): Add vec_shl_optab support.
24168 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24169 in the comment.
24170 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24171 can be handled by vec_shl_optab.
24172 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24173 (check_scan_store): Use it.
24174 (vectorizable_scan_store): If target can't do normal permutations,
24175 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24176 after it.
24177 * config/i386/sse.md (vec_shl_<mode>): New expander.
24178
24179 * omp-low.c (lower_rec_input_clauses): Handle references properly
24180 in inscan clauses.
24181 (lower_omp_scan): Likewise.
24182
24183 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24184
24185 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24186 mem_mode is BLKmode.
24187
24188 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24189
24190 PR target/90922
24191 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24192 pointer adjustment for the case of no callee-saved registers and
24193 stack frame bigger than 128 bytes.
24194
24195 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24196
24197 PR middle-end/90862
24198 * omp-low.c (check_omp_nesting_restrictions): Handle
24199 GF_OMP_TARGET_KIND_OACC_DECLARE.
24200
24201 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24202
24203 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24204 (@add<mode>3_carry): Rename from add<mode>3_carry.
24205 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24206 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24207 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24208 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24209 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24210 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24211 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24212 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24213 (cmpstrnsi): Use gen_cmp_1.
24214 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24215 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24216 (@umonitor_<mode>): Rename from umonitor_<mode>.
24217 * config/i386/i386-expand.c (ix86_expand_copysign):
24218 Use gen_copysign3_const and gen_copysign3_var.
24219 (ix86_expand_xorsign): Use gen_xorsign3_1.
24220 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24221 gen_sub3_carry_ccgz and gen_cmp1.
24222 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24223 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24224 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24225 (ix86_split_lshr): Ditto.
24226 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24227
24228 2019-06-18 Jason Merrill <jason@redhat.com>
24229
24230 * tree.c (build_constructor): Add MEM_STAT_DECL.
24231
24232 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24233
24234 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24235 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24236 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24237 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24238 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24239 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24240 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24241 Use CC_NZC instead of CC.
24242 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24243 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24244 (aarch64_print_operand): Handle E_CC_NZCmode.
24245 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24246 of gen_set_clobber_cc.
24247
24248 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24249
24250 * config/aarch64/aarch64-sve.md: Tabify file.
24251
24252 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24253
24254 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24255 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24256 * config/aarch64/aarch64-sve.md: Use it.
24257
24258 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24259
24260 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24261 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24262 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24263 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24264 (aarch64_expand_sve_vec_cmp_int): Use it.
24265 (aarch64_expand_sve_vec_cmp_float): Likewise.
24266 * config/aarch64/aarch64-sve.md: Likewise throughout.
24267
24268 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24269 Kugan Vivekanandarajah <kuganv@linaro.org>
24270
24271 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24272 (*cond_<optab><mode>_z): Fold into...
24273 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24274 operand 4 can be tied to operand 0 (either inherently or via RA).
24275
24276 2019-06-18 Richard Biener <rguenther@suse.de>
24277
24278 PR debug/90900
24279 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24280 as if optimized away.
24281
24282 2019-06-18 Tom de Vries <tdevries@suse.de>
24283
24284 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24285 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24286 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24287 Rename to ...
24288 (define_insn "@set_softstack_<mode>"): ... this.
24289 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24290 (define_insn "@omp_simt_enter_<mode>"): ... this.
24291 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24292 (define_insn "@omp_simt_exit_<mode>"): ... this.
24293
24294 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24295
24296 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24297 vf parameter. Restore the previous iv step of nscalars_step,
24298 but give it iv_type rather than compare_type. Tweak code order
24299 to match the comments.
24300 (vect_set_loop_condition_masked): Update accordingly.
24301 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24302 for iv_precision. Tweak comment formatting.
24303
24304 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24305
24306 * config/darwin.c: Strip trailing whitespace.
24307
24308 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24309
24310 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24311 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24312
24313 2019-06-18 Martin Jambor <mjambor@suse.cz>
24314
24315 PR ipa/90889
24316 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24317 caller does not have flag_ipa_cp set.
24318
24319 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24320
24321 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24322 from "*fold_left_plus_<mode>", updated operands order.
24323 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24324 * internal-fn.c (mask_fold_left_direct): New define.
24325 (expand_mask_fold_left_optab_fn): Likewise.
24326 (direct_mask_fold_left_optab_supported_p): Likewise.
24327 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24328 * optabs.def (mask_fold_left_plus_optab): New optab.
24329 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24330 masked internal_fn for a reduction ifn.
24331 (vectorize_fold_left_reduction): Add support for masking reductions.
24332
24333 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24334
24335 PR middle-end/80791
24336 * target.def (predict_doloop_p): New hook.
24337 * targhooks.h (default_predict_doloop_p): New declaration.
24338 * targhooks.c (default_predict_doloop_p): New function.
24339 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24340 * doc/tm.texi: Regenerate.
24341 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24342 (TARGET_PREDICT_DOLOOP_P): New macro.
24343 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24344
24345 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24346
24347 * omp-low.c (struct omp_context): Add scan_inclusive field.
24348 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24349 if inclusive scan.
24350 (struct omplow_simd_context): Add lastlane member.
24351 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24352 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24353 1 or 2 argument.
24354 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24355 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24356 (lower_omp_scan): New function.
24357 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24358 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24359 check 3rd argument if present rather than 2nd.
24360 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24361 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24362 2-bit bitfield.
24363 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24364 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24365 than 2nd.
24366 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24367 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24368 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24369 init.
24370 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24371 IFN_GOMP_SIMD_LANE argument.
24372 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24373 encoded ->aux value.
24374 * tree-vect-stmts.c: Include attribs.h.
24375 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24376 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24377 functions.
24378 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24379 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24380
24381 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24382
24383 PR target/62055
24384 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24385 (*nabs<mode>2_1): Ditto.
24386 (nabs sse-reg splitter): New splitter.
24387 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24388
24389 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24390
24391 PR bootstrap/90873.
24392 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24393 TMR index check.
24394
24395 2019-06-17 Tom de Vries <tdevries@suse.de>
24396
24397 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24398 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24399 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24400 ...
24401 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24402 match_operand 0.
24403 (define_insn "omp_simt_enter_insn"): Rename to ...
24404 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24405 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24406 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24407 gen_omp_simt_enter_si.
24408 (define_expand "omp_simt_exit"): New.
24409 (define_insn "omp_simt_exit"): Rename to ...
24410 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24411 match_operand 0.
24412
24413 2019-06-17 Matthew Green <mrg@eterna.com.au>
24414 Maya Rashish <coypu@sdf.org>
24415
24416 * config.gcc (aarch64*-*-netbsd*): New target.
24417 * config/aarch64/aarch64-netbsd.h: New file.
24418 * config/aarch64/t-aarch64-netbsd: Likewise.
24419
24420 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24421
24422 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24423 the access path from base to first VIEW_CONVERT_EXPR or
24424 BIT_FIELD_REF.
24425
24426 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24427
24428 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24429 access path on BIT_FIELD_REFs.
24430
24431 2019-06-17 Martin Liska <mliska@suse.cz>
24432
24433 PR ipa/90874
24434 * ipa-utils.h (odr_type_p): Remove dead code.
24435
24436 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24437
24438 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24439 alternative Solaris 11.4 format.
24440 * configure: Regenerate.
24441
24442 2019-06-17 Tom de Vries <tdevries@suse.de>
24443
24444 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24445 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24446 match_operand 0.
24447 (define_insn "call_value_insn"): Rename to ...
24448 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24449 match_operand 0.
24450 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24451 DI.
24452
24453 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24454
24455 PR middle-end/64242
24456 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24457 frame clobbers and schedule block.
24458 (builtin_longjmp): Likewise.
24459
24460 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24461
24462 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24463 describe how to perform MSPABI compliant 64-bit shift.
24464 * config/msp430/msp430.md (ashldi3): New define_expand.
24465 (ashrdi3): New define_expand.
24466 (lshrdi3): New define_expand.
24467
24468 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24469
24470 * doc/sourcebuild.texi: Document new effective target keyword
24471 longlong64.
24472
24473 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24474
24475 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24476 indirect_refs_may_alias_p): Revert accidental commits.
24477
24478 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24479 at the end of structures.
24480
24481 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24482
24483 * config/darwin.c (machopic_indirect_call_target): Use renamed
24484 darwin_picsymbol_stubs to decide on output.
24485 (darwin_override_options): Handle darwin_picsymbol_stubs.
24486 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24487 (LD64_VERSION): Revise default.
24488 * config/darwin.opt: (mpic-symbol-stubs): New option.
24489 (darwin_picsymbol_stubs): New variable.
24490 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24491 rename to TARGET_MACHO_PICSYM_STUBS.
24492 * config/i386/i386.c (output_pic_addr_const): Likewise.
24493 * config/i386/i386.h Likewise.
24494 * config/rs6000/darwin.h: Likewise.
24495 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24496 darwin_picsymbol_stubs.
24497
24498 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24499
24500 * config/darwin.opt (prebind, noprebind, seglinkedit,
24501 noseglinkedit): Add RejectNegative.
24502
24503 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24504
24505 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24506 in my previous patch.
24507
24508 2019-06-16 Tom de Vries <tdevries@suse.de>
24509
24510 PR tree-optimization/89376
24511 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24512
24513 2019-06-15 Maya Rashish <coypu@sdf.org>
24514
24515 * doc/invoke.texi (Spec Files): Update location of the
24516 Fortran spec file.
24517
24518 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24519
24520 * doc/extend.texi (Common Function Attributes): Clarify
24521 no_sanitize. Fix grammar.
24522
24523 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24524
24525 * tree-ssa-alias.c (alias_stats): Add
24526 nonoverlapping_component_refs_p_may_alias,
24527 nonoverlapping_component_refs_p_no_alias,
24528 nonoverlapping_component_refs_of_decl_p_may_alias,
24529 nonoverlapping_component_refs_of_decl_p_no_alias.
24530 (dump_alias_stats): Dump them.
24531 (nonoverlapping_component_refs_of_decl_p): Add stats.
24532 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24533 ARRAY_REF.
24534
24535 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24536
24537 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24538 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24539 only.
24540 (*anddi3_doubleword): Split before reload. Merge with
24541 anddi->zext pre-reload splitter.
24542 (*andndi3_doubleword): Split before reload.
24543 (*<code>di3_doubleword): Ditto.
24544 (*one_cmpldi2_doubleword): Ditto.
24545
24546 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24547
24548 PR middle-end/90779
24549 * gimplify.c: Include omp-offload.h and context.h.
24550 (gimplify_bind_expr): Add "omp declare target" attributes
24551 to static block scope variables inside of target region or target
24552 functions.
24553
24554 2019-06-15 Tom de Vries <tdevries@suse.de>
24555
24556 PR tree-optimization/90009
24557 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24558 Return NULL if bb contains IFN_UNIQUE.
24559
24560 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24561
24562 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24563 (un): New define_mode_attr.
24564 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24565 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24566 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24567 merge into ...
24568 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24569
24570 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24571
24572 * config/darwin.opt: Add RejectNegative where needed, reorder
24573 and add minimal functional descriptions.
24574
24575 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24576
24577 PR rtl-optimization/90765
24578 * calls.c (update_stack_alignment_for_call): New function.
24579 (expand_call): Call update_stack_alignment_for_call when
24580 outgoing parameter is passed in the stack.
24581 (emit_library_call_value_1): Likewise.
24582 * function.c (locate_and_pad_parm): Don't update
24583 stack_alignment_needed and preferred_stack_boundary.
24584
24585 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24586
24587 PR target/90877
24588 * config/i386/i386-features.c
24589 (dimode_scalar_chain::compute_convert_gain): Replace
24590 mmxsse_to_integer with sse_to_integer.
24591 * config/i386/i386.c (ix86_register_move_cost): Verify that
24592 moves between MMX and non-MMX units require secondary memory.
24593 Correct costs of moves between SSE and integer units.
24594 * config/i386/i386.h (processor_costs): Rename cost of moving
24595 SSE register to integer to sse_to_integer. Rename cost of
24596
24597 2019-06-14 Matt Thomas <matt@3am-software.com>
24598 Matthew Green <mrg@eterna.com.au>
24599 Nick Hudson <skrll@netbsd.org>
24600 Maya Rashish <coypu@sdf.org>
24601 Richard Earnshaw <rearnsha@arm.com>
24602
24603 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24604 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24605 * config/arm/netbsd-eabi.h: New file.
24606 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24607 redefining.
24608 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24609 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24610 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24611 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24612
24613 2019-06-14 Richard Biener <rguenther@suse.de>
24614
24615 * tree-loop-distribution.c (classify_partition): Return
24616 whether a reduction appeared in all partitions and do not
24617 stop builtin detection because of this.
24618 (distribute_loop): Sort a non-builtin partition last if
24619 there's a reduction in all partitions and make sure the
24620 partition prevailing as last is not a builtin.
24621
24622 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24623
24624 PR ipa/90401
24625 * ipa-prop.c (add_to_agg_contents_list): New function.
24626 (clobber_by_agg_contents_list_p): Likewise.
24627 (extract_mem_content): Likewise.
24628 (get_place_in_agg_contents_list): Delete.
24629 (determine_known_aggregate_parts): Renamed from
24630 determine_locally_known_aggregate_parts. New parameter
24631 aa_walk_budget_p.
24632
24633 2019-06-13 Martin Sebor <msebor@redhat.com>
24634
24635 PR tree-optimization/90662
24636 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24637 to the same type.
24638
24639 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24640
24641 PR bootstrap/90873
24642 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24643 dbase is not TARGET_MEM_REF.
24644
24645 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24646
24647 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24648 Update all uses.
24649 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24650 Do not generate DImode extends for 32bit targets.
24651 (and->zext post-reload splitter): Use gen_extend_insn
24652 instead of indirect functions.
24653 (anddi->zext pre-reload splitter): New.
24654 (*zext<mode>_doubleword_and): Remove.
24655 (*zext<mode>_doubleword): Ditto.
24656 (*zextsi_doubleword): Dittto.
24657
24658 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24659
24660 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24661 Use gen_sub3_insn instead of indirect function.
24662 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24663 indirect function.
24664 (ix86_adjust_counter): Ditto.
24665
24666 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24667 Lijia He <helijia@linux.ibm.com>
24668
24669 PR tree-optimization/77820
24670 * tree-ssa-threadedge.c
24671 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24672 function.
24673 (thread_across_edge): Add call to
24674 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24675
24676 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24677
24678 * config/darwin-driver.c (validate_macosx_version_min): New.
24679 (darwin_default_min_version): Cleanup and validate supplied version.
24680 (darwin_driver_init): Likewise and push cleaned version into opts.
24681
24682 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24683
24684 PR tree-optimization/90869
24685 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24686 converts in MEM_REF referencing decl rather than view converts
24687 from decl type to MEM_REF type.
24688
24689 2019-06-13 Richard Biener <rguenther@suse.de>
24690
24691 PR tree-optimization/90856
24692 * tree-sra.c (build_ref_for_model): Only use
24693 build_reconstructed_reference when address-spaces are the same.
24694
24695 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24696
24697 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24698 wrap ei variable name in the declaration in ()s.
24699 (nvptx_single): Actually use mode_label variable. Formatting fix.
24700
24701 2019-06-13 Richard Biener <rguenther@suse.de>
24702
24703 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24704 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24705 also return the condition stmt.
24706 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24707 loop we can version and version that, reusing the loop version
24708 created by if-conversion instead of versioning again.
24709
24710 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24711
24712 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24713 may_contain_p.
24714 * tree-vrp (value_range_base::may_contain_p): Call into
24715 value_inside_range.
24716 (value_inside_range): Make private inside value_range_base class.
24717 Take min/max from *this.
24718 (range_includes_p): Remove.
24719 * tree-vrp.h (value_range_base): Add value_inside_range.
24720 (range_includes_p): Remove.
24721 (range_includes_zero_p): Call may_contain_p.
24722 * vr-values.c (compare_range_with_value): Same.
24723
24724 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24725
24726 * doc/extend.texi (ARC Function Attributes): Update info.
24727
24728 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24729
24730 PR tree-optimization/89713
24731 * doc/invoke.texi (-ffinite-loops): Document new option.
24732 * common.opt (-ffinite-loops): New option.
24733 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24734 IFN_GOACC_LOOP calls as necessary.
24735 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24736 is finite.
24737 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24738 IFN_GOACC_LOOP call is not used.
24739 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24740
24741 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24742
24743 PR target/88838
24744 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24745 compare_type is not with Pmode size, we will create an IV with
24746 Pmode size with truncated use (i.e. converted to the correct type).
24747 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24748 (vect_iv_limit_for_full_masking): New. Factored out of
24749 vect_set_loop_condition_masked.
24750 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24751 (vect_iv_limit_for_full_masking): Declare.
24752
24753 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24754
24755 PR target/88834
24756 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24757 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24758 (get_alias_ptr_type_for_ptr_address): Likewise.
24759 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24760 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24761 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24762 allow_reg_index_p.
24763
24764 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24765
24766 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24767
24768 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24769
24770 * common/config/pru/pru-common.c: New file.
24771 * config.gcc: Add PRU target.
24772 * config/pru/alu-zext.md: New file.
24773 * config/pru/constraints.md: New file.
24774 * config/pru/predicates.md: New file.
24775 * config/pru/pru-opts.h: New file.
24776 * config/pru/pru-passes.c: New file.
24777 * config/pru/pru-pragma.c: New file.
24778 * config/pru/pru-protos.h: New file.
24779 * config/pru/pru.c: New file.
24780 * config/pru/pru.h: New file.
24781 * config/pru/pru.md: New file.
24782 * config/pru/pru.opt: New file.
24783 * config/pru/t-pru: New file.
24784 * doc/extend.texi: Document PRU pragmas.
24785 * doc/invoke.texi: Document PRU-specific options.
24786 * doc/md.texi: Document PRU asm constraints.
24787
24788 2019-06-12 Martin Sebor <msebor@redhat.com>
24789
24790 PR middle-end/90676
24791 * tree-pretty-print.c (dump_mem_ref): New function. Include
24792 MEM_REF type in output when different size than operand.
24793 (dump_generic_node): Move code to dump_mem_ref and call it.
24794
24795 2019-06-12 Martin Sebor <msebor@redhat.com>
24796
24797 PR tree-optimization/90662
24798 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24799 to arrays.
24800
24801 2019-06-12 Tom de Vries <tdevries@suse.de>
24802
24803 PR tree-optimization/90009
24804 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24805
24806 2019-06-12 Martin Liska <mliska@suse.cz>
24807
24808 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24809 the created map.
24810 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24811 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24812 Do not sanitize created maps.
24813
24814 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24815
24816 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24817 value_range::singleton_p.
24818 * tree-vrp.c (value_range_constant_singleton): Remove.
24819 * tree-vrp.h (value_range_constant_singleton): Remove.
24820 * vr-values.c (vr_values::singleton): Use
24821 value_range::singleton_p.
24822
24823 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24824
24825 PR target/90811
24826 * cfgexpand.c (align_local_variable): Add really_expand argument,
24827 don't SET_DECL_ALIGN if it is false.
24828 (add_stack_var): Add really_expand argument, pass it through to
24829 align_local_variable.
24830 (expand_one_stack_var_1): Pass true as really_expand to
24831 align_local_variable.
24832 (expand_one_ssa_partition): Pass true as really_expand to
24833 add_stack_var.
24834 (expand_one_var): Pass really_expand through to add_stack_var.
24835
24836 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24837
24838 * config/arm/iterators.md (VABAL): New int iterator.
24839 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24840 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24841 UNSPEC_VABAL_U values.
24842
24843 2019-06-12 Martin Liska <mliska@suse.cz>
24844
24845 * value-prof.c (stream_out_histogram_value): Only first value
24846 can't be negative.
24847
24848 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24849
24850 PR c/90760
24851 * symtab.c (symtab_node::set_section): Allow being called on aliases
24852 as long as they aren't analyzed yet.
24853
24854 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24855
24856 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24857 to `mips_set_text_contents_type' to indicate whether a
24858 non-debug insn follows.
24859
24860 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24861
24862 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24863 enabling -mpcrel by default.
24864 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24865 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24866 that the test against -mcpu=future is done first. Then test if
24867 -mprefixed-addr is on for -mpcrel.
24868 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24869
24870 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24871
24872 PR target/90811
24873 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24874 instead of and.u%d.
24875
24876 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24877
24878 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24879
24880 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24881
24882 PR c++/90449 - add -Winaccessible-base option.
24883 * doc/invoke.texi (Winaccessible-base): Document.
24884
24885 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24886
24887 PR tree-optimization/62041
24888 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24889
24890 2019-06-11 Jason Merrill <jason@redhat.com>
24891
24892 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24893 * tree.c (get_tree_code_name): Likewise.
24894 * print-tree.c (print_node): Only briefly print a node with an
24895 invalid code.
24896
24897 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24898
24899 PR bootstrap/90819
24900 * trans-mem.c (tm_memopt_compute_available): Add assertion
24901 that blocks is not empty. Formatting fix.
24902
24903 2019-06-11 Martin Liska <mliska@suse.cz>
24904
24905 PR c++/87847
24906 * hash-table.h: Extend create_gcc, add one parameter
24907 that is passed into hash_table::hash_table.
24908
24909 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24910
24911 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24912 New prototype.
24913 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24914 Emit clobber also for non-sse operations.
24915 (ix86_split_fp_absneg_operator): New function.
24916 * config/i386/i386.md (SSEMODEF): New mode iterator.
24917 (ssevecmodef): New mode attribute.
24918 (<code>tf2): Use absneg code iterator.
24919 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24920 Add three-operand AVX alternatives.
24921 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24922 Use absneg code iterator and X87MODEF mode iterator.
24923 (absneg fp_reg non-sse splitter): Call absneg code iterator
24924 and X87MODEF mode iterator.
24925 (absneg general_reg non-sse splitter): Use absneg code iterator
24926 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24927 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24928 code iterator. Add three-operand AVX alternative.
24929 (absneg sse_reg splitter): Use absneg code iterator
24930 and SSEMODEF mode iterator. Handle AVX operands.
24931 (absneg fp_reg splitter): Use absneg code iterator
24932 and MODEF mode iterator.
24933 (absneg general_reg splitter): Merge splitters using MODEF mode
24934 iterator. Use absneg code iterator. Call
24935 ix86_split_fp_absneg_operator.
24936 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24937 Do not enable for non-sse modes before reload.
24938 (CSGNMODE): Remove.
24939 (CSGNVMODE): Ditto.
24940 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24941 ssevecmodef mode attribute instaed of CSGNVMODE.
24942 (copysign<mode>3_const): Ditto.
24943 (copysign<mode>3_var): Ditto.
24944 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24945 Use absneg code iterator. Simplify code using std::swap.
24946 * config/i386/predicates.md (absneg_operator): Remove.
24947
24948 2019-06-10 Martin Sebor <msebor@redhat.com>
24949
24950 * gimple-fold.c (get_range_strlen): Update comment that didn't
24951 make it into r267503 or related commits.
24952
24953 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24954
24955 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24956 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24957
24958 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24959
24960 * tree.def (OMP_SCAN): New tree code.
24961 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24962 OMP_CLAUSE_EXCLUSIVE.
24963 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24964 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24965 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24966 OMP_CLAUSE_{IN,EX}CLUSIVE.
24967 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24968 * tree-nested.c (convert_nonlocal_reference_stmt,
24969 convert_local_reference_stmt, convert_gimple_call): Handle
24970 GIMPLE_OMP_SCAN.
24971 * tree-pretty-print.c (dump_omp_clause): Handle
24972 OMP_CLAUSE_{IN,EX}CLUSIVE.
24973 (dump_generic_node): Handle OMP_SCAN.
24974 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24975 * gimple.h (gomp_scan): New type.
24976 (is_a_helper <gomp_scan *>::test,
24977 is_a_helper <const gomp_scan *>::test): New templates.
24978 (gimple_build_omp_scan): Declare.
24979 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24980 gimple_omp_scan_set_clauses): New inline functions.
24981 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24982 * gimple.c (gimple_build_omp_scan): New function.
24983 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24984 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24985 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24986 GIMPLE_OMP_TASKGROUP.
24987 (dump_gimple_omp_scan): New function.
24988 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24989 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24990 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24991 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24992 (is_gimple_stmt): Handle OMP_SCAN.
24993 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24994 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24995 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24996 mentioned in nested #pragma omp scan. Handle
24997 OMP_CLAUSE_{IN,EX}CLUSIVE.
24998 (gimplify_expr): Handle OMP_SCAN.
24999 * omp-low.c (check_omp_nesting_restrictions): For parent context,
25000 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
25001 simd constructs.
25002 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25003 GIMPLE_OMP_SCAN.
25004
25005 2019-06-10 Martin Liska <mliska@suse.cz>
25006
25007 * ipa-cp.c (ignore_edge_p): New function.
25008 (build_toporder_info): Use it.
25009 * ipa-inline.c (ignore_edge_p): New function.
25010 (inline_small_functions): Use it.
25011 * ipa-pure-const.c (ignore_edge_for_nothrow):
25012 Verify opt_for_fn for caller and callee.
25013 (ignore_edge_for_pure_const): Likewise.
25014 * ipa-reference.c (ignore_edge_p): Extend to check
25015 for opt_for_fn.
25016 * ipa-utils.c (searchc): Refactor.
25017 * ipa-utils.h: Fix coding style.
25018
25019 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25020
25021 * config/arc/arc.c (arc_rtx_costs): Update costs.
25022
25023 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25024
25025 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25026 (arc_split_ior): Likewise.
25027 (arc_check_mov_const): Likewise.
25028 (arc_split_mov_const): Likewise.
25029 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25030 (arc_rtx_costs): Replace check Crr with Cax constraint.
25031 (prepare_move_operands): Cleanup, remove unused code.
25032 (arc_split_ior): New function.
25033 (arc_check_ior_const): Likewise.
25034 (arc_split_mov_const): Likewise.
25035 (arc_check_mov_const): Likewise.
25036 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25037 in define_insn_and_split pattern.
25038 (iorsi3): Likewise.
25039 (mulsi3_v2): Add new matching variant.
25040 (andsi3_i): Cleanup pattern.
25041 (rotrsi3_cnt1): Update pattern.
25042 (rotrsi3_cnt8): New pattern.
25043 (ashlsi2_cnt8): Likewise.
25044 (ashlsi2_cnt16): Likewise.
25045 * config/arc/constraints.md (C0p): Update constraint.
25046 (Crr): Remove it.
25047 (C0x): New pattern.
25048 (Cax): New pattern.
25049
25050 2019-06-10 Martin Liska <mliska@suse.cz>
25051
25052 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25053 Update coding style.
25054 (sem_item_optimizer::dump_cong_classes):
25055 Print how many items are in a non-singular class. Improve
25056 coding style.
25057
25058 2019-06-10 Martin Liska <mliska@suse.cz>
25059
25060 * value-prof.c (dump_histogram_value): Change dump format.
25061 (gimple_mod_subtract_transform): Remove legacy comment.
25062
25063 2019-06-10 Martin Liska <mliska@suse.cz>
25064
25065 * value-prof.c (dump_histogram_value): Print histogram values
25066 only if present.
25067
25068 2019-06-10 Martin Liska <mliska@suse.cz>
25069
25070 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25071 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25072 * ipa-profile.c (ipa_profile_generate_summary):
25073 Use get_most_common_single_value.
25074 * tree-profile.c (gimple_init_gcov_profiler):
25075 Instrument with __gcov_one_value_profiler_v2
25076 and __gcov_indirect_call_profiler_v4.
25077 * value-prof.c (dump_histogram_value):
25078 Print all values for HIST_TYPE_SINGLE_VALUE.
25079 (stream_out_histogram_value): Update assert for
25080 N values.
25081 (stream_in_histogram_value): Set number of
25082 counters for HIST_TYPE_SINGLE_VALUE.
25083 (get_most_common_single_value): New.
25084 (gimple_divmod_fixed_value_transform):
25085 Use get_most_common_single_value.
25086 (gimple_ic_transform): Likewise.
25087 (gimple_stringops_transform): Likewise.
25088 (gimple_find_values_to_profile): Set number
25089 of counters for HIST_TYPE_SINGLE_VALUE.
25090 * value-prof.h (get_most_common_single_value): New.
25091
25092 2019-06-10 Martin Liska <mliska@suse.cz>
25093
25094 * hash-map.h: Pass default value to hash_table ctor.
25095 * hash-table.h: Add default value to call of a ctor.
25096
25097 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
25098
25099 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25100 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25101
25102 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
25103
25104 PR target/90751
25105 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25106 Call pa_output_function_label.
25107 (TARGET_ASM_FUNCTION_PROLOGUE): define.
25108 * config/pa/pa-protos.h (pa_output_function_label): Declare.
25109 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25110 to declaration.
25111 (pa_linux_output_function_prologue): Declare.
25112 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25113 (pa_output_function_label): New.
25114 (pa_output_function_prologue): Revise to use pa_output_function_label.
25115 (pa_linux_output_function_prologue): New.
25116 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25117
25118 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
25119
25120 * tree-vrp.h (value_range_base::intersect): New.
25121 (value_range::intersect_helper): Move from here...
25122 (value_range_base::intersect_helper): ...to here.
25123 * tree-vrp.c (value_range::intersect_helper): Rename to...
25124 (value_range_base::intersect_helper): ...this, and rewrite to
25125 return a value instead of modifying THIS in place.
25126 Also, move equivalence handling...
25127 (value_range::intersect): ...here, while calling intersect_helper.
25128 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25129 calling intersect.
25130 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25131 Same.
25132 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25133
25134 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25135
25136 * Makefile.in (genprogerr): Add condmd.
25137 (genprog): Remove it here.
25138
25139 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25140
25141 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25142
25143 2019-06-07 Richard Biener <rguenther@suse.de>
25144
25145 PR debug/90574
25146 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25147 that appear after user labels.
25148
25149 2019-06-07 Martin Liska <mliska@suse.cz>
25150
25151 * cselib.c (cselib_init): Disable hash table
25152 sanitization.
25153 * hash-set.h: Pass new default argument to m_table.
25154 * hash-table.c: Add global variable with hash table
25155 sanitization limit.
25156 * hash-table.h (Allocator>::hash_table): Add new argument
25157 to ctor.
25158 (hashtab_chk_error): New.
25159 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25160 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25161 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25162
25163 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25164
25165 * common.opt (flto-odr-type-merging): Ignore.
25166 * invoke.texi (-flto-odr-type-merging): Remove.
25167 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25168 (can_be_vtable_hashed_p): Remove.
25169 (hash_odr_vtable): Remove.
25170 (odr_vtable_hasher::hash): Remove.
25171 (types_same_for_odr): Remove.
25172 (types_odr_comparable): Remove.
25173 (odr_vtable_hasher::equal): Remove.
25174 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25175 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25176 (get_odr_type): Do not use vtable hash.
25177 (dump_odr_type): Remove commented out code.
25178 (build_type_inheritance_graph): Do not allocate vtable hash.
25179 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25180 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25181 (odr_type_p): Likewise.
25182 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25183 test.
25184
25185 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25186
25187 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25188 immediately after same_types_for_tbaa_p returns -1 and continue
25189 looking for possible exact match; if matching types are arrays
25190 watch for partial overlaps.
25191 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25192 (indirect_refs_may_alias_p): Do type based disambiguation first;
25193 update comment.
25194
25195 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25196
25197 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25198
25199 2019-06-07 Martin Liska <mliska@suse.cz>
25200
25201 * doc/invoke.texi: Remove param.
25202 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25203 Remove.
25204 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25205 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25206 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25207 * profile.c (instrument_values): Remove
25208 HIST_TYPE_INDIR_CALL_TOPN.
25209 * tree-profile.c (init_ic_make_global_vars):
25210 Always build __gcov_indirect_call only.
25211 (gimple_init_gcov_profiler): Remove usage
25212 of PARAM_INDIR_CALL_TOPN_PROFILE.
25213 (gimple_gen_ic_profiler): Likewise.
25214 * value-prof.c (dump_histogram_value): Likewise.
25215 (stream_in_histogram_value): Likewise.
25216 (gimple_indirect_call_to_profile): Likewise.
25217 (gimple_find_values_to_profile): Likewise.
25218 * value-prof.h (enum hist_type): Likewise.
25219
25220 2019-06-07 Martin Liska <mliska@suse.cz>
25221
25222 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25223 function.
25224
25225 2019-06-07 Martin Liska <mliska@suse.cz>
25226
25227 PR tree-optimization/78902
25228 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25229 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25230 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25231 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25232 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25233 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25234 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25235 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25236 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25237 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25238 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25239 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25240 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25241 New.
25242 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25243 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25244 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25245 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25246 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25247 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25248 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25249 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25250 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25251 warn_unused_result attribute.
25252 (BUILT_IN_STRDUP): Likewise.
25253 (BUILT_IN_STRNDUP): Likewise.
25254 (BUILT_IN_ALLOCA): Likewise.
25255 (BUILT_IN_CALLOC): Likewise.
25256 (BUILT_IN_MALLOC): Likewise.
25257 (BUILT_IN_REALLOC): Likewise.
25258
25259 2019-06-06 Jim Wilson <jimw@sifive.com>
25260
25261 PR target/89955
25262 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25263 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25264 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25265
25266 2019-06-06 Martin Sebor <msebor@redhat.com>
25267
25268 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25269 (handle_builtin_malloc): Remove trailing spaces.
25270 (handle_builtin_memset): Same.
25271 (handle_builtin_memcmp): Same.
25272 (compute_string_length): Same.
25273 (determine_min_objsize): Same.
25274 (handle_builtin_string_cmp): Same.
25275 (handle_char_store): Same. Break up excessively long line.
25276
25277 2019-06-06 Martin Jambor <mjambor@suse.cz>
25278
25279 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25280 check.
25281
25282 2019-06-06 Martin Jambor <mjambor@suse.cz>
25283
25284 * tree-sra.c (struct access): New field grp_same_access_path.
25285 (dump_access): Dump it.
25286 (build_reconstructed_reference): New function.
25287 (build_ref_for_model): Use it if possible.
25288 (path_comparable_for_same_access): New function.
25289 (same_access_path_p): Likewise.
25290 (sort_and_splice_var_accesses): Set the new flag.
25291 (analyze_access_subtree): Likewise.
25292 (propagate_subaccesses_across_link): Propagate zero value of the new
25293 flag down the access tree.
25294
25295 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25296
25297 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25298 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25299 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25300 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25301 Add gfx906.
25302
25303 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25304
25305 PR tree-optimization/90332
25306 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25307 Handle VALS containing two vectors.
25308 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25309 to...
25310 (@aarch64_combinez<mode>): ... This.
25311 (*aarch64_combinez_be<mode>): Rename to...
25312 (@aarch64_combinez_be<mode>): ... This.
25313 (vec_init<mode><Vhalf>): New define_expand.
25314 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25315
25316 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25317
25318 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25319 library functions only when not optimizing for size.
25320 (ashlsi3): Likewise.
25321 (ashrhi3): Likewise.
25322 (ashrsi3): Likewise.
25323 (lshrhi3): Likewise.
25324 (lshrsi3): Likewise.
25325
25326 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25327
25328 PR rtl-optimization/88751
25329 * ira.c (ira): Use the number of the actually referenced registers
25330 when calculating the threshold.
25331
25332 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25333
25334 * configure: Regenerate.
25335
25336 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25337
25338 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25339 register if it is in memory, so the shift can be emulated with a rotate
25340 instruction.
25341 (ashrhi3): Likewise.
25342 (lshrhi3): Likewise.
25343
25344 2019-06-06 Martin Liska <mliska@suse.cz>
25345
25346 PR tree-optimization/87954
25347 * match.pd: Simplify mult where both arguments are 0 or 1.
25348
25349 2019-06-06 Richard Biener <rguenther@suse.de>
25350
25351 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25352 put equivalences on UNDEFINED ranges.
25353 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25354 Make sure to drop defs of stmts added during simplification
25355 to VARYING.
25356
25357 2019-06-06 Richard Biener <rguenther@suse.de>
25358
25359 * tree-ssa-structalias.c: Include tree-cfg.h.
25360 (make_heapvar): Do not make heap vars artificial.
25361 (find_func_aliases_for_builtin_call): Handle stack allocation
25362 functions.
25363 (find_func_aliases): Delay processing of simple enough returns
25364 in non-IPA mode.
25365 (set_uids_in_ptset): Adjust.
25366 (find_what_var_points_to): Likewise.
25367 (solve_constraints): Do not dump points-to sets here.
25368 (compute_points_to_sets): Post-process return statements,
25369 amending the escaped solution. Dump points-to sets afterwards.
25370 (ipa_pta_execute): Dump points-to sets.
25371
25372 2019-06-06 Martin Liska <mliska@suse.cz>
25373
25374 PR web/87933
25375 * doc/install.texi: Fix HTML headers and
25376 titles for 'Installing GCC' pages.
25377
25378 2019-06-06 Martin Liska <mliska@suse.cz>
25379
25380 * ipa-icf-gimple.h (dump_message_1): Remove.
25381 (dump_message): Likewise.
25382 (return_false_with_message_1): Print also file.
25383 (return_false_with_msg): Likewise.
25384 (return_with_result): Likewise.
25385 (return_with_debug): Likewise.
25386 * ipa-icf.c (sem_function::equals_private): Remove call
25387 to dump_message.
25388
25389 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25390
25391 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25392 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25393 memory operand for it.
25394 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25395
25396 2019-06-05 Martin Sebor <msebor@redhat.com>
25397
25398 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25399 Adjust quoting and hyphenation.
25400 * convert.c (convert_to_real_1): Same.
25401 * gcc.c (driver_wrong_lang_callback): Same.
25402 (driver::handle_unrecognized_options): Same.
25403 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25404 * opts-common.c (cmdline_handle_error): Same.
25405 (read_cmdline_option): Same.
25406 * opts-global.c (complain_wrong_lang): Same.
25407 (print_ignored_options): Same.
25408 (handle_common_deferred_options): Same.
25409 * pretty-print.h: Same.
25410 * print-rtl.c (debug_bb_n_slim): Same.
25411 * sched-rgn.c (make_pass_sched_fusion): Same.
25412 * tree-cfg.c (verify_gimple_assign_unary): Same.
25413 (verify_gimple_label): Same.
25414 * tree-ssa-operands.c (verify_ssa_operands): Same.
25415 * varasm.c (do_assemble_alias): Same.
25416 (assemble_alias): Same.
25417
25418 2019-06-05 Richard Henderson <rth@twiddle.net>
25419
25420 * config/alpha/alpha.c (direct_return): Move down after
25421 struct machine_function definition; use saved frame_size;
25422 return bool.
25423 (struct machine_function): Add sa_mask, sa_size, frame_size.
25424 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25425 (alpha_compute_frame_layout): ... new function.
25426 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25427 (alpha_initial_elimination_offset): Use saved sa_size.
25428 (alpha_vms_initial_elimination_offset): Likewise.
25429 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25430 (alpha_expand_prologue): Use saved frame data. Merge integer
25431 and fp register save loops.
25432 (alpha_expand_epilogue): Likewise.
25433 (alpha_start_function): Use saved frame data.
25434 * config/alpha/alpha-protos.h (direct_return): Update.
25435 (alpha_sa_size): Remove.
25436
25437 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25438
25439 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25440 multiplication by a power-of-two value.
25441 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25442 and turn the modulo operation into a masking operation.
25443
25444 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25445
25446 PR debug/90733
25447 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25448 with VOIDmode inner operands.
25449
25450 2019-06-05 Richard Biener <rguenther@suse.de>
25451
25452 PR middle-end/90726
25453 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25454 turn an expression graph into a tree.
25455
25456 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25457
25458 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25459 member.
25460 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25461 treat it like explicit monotonic schedule modifier.
25462 (expand_omp_for): Initialize has_lastprivate_conditional.
25463 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25464 schedule modifier.
25465
25466 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25467 references, lookup in in hash map MEM_REF operand instead of the
25468 MEM_REF itself.
25469 (lower_omp_1): When looking for lastprivate conditional assignments,
25470 handle MEM_REFs with REFERENCE_TYPE operands.
25471
25472 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25473 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25474 and references a VLA. Handle references to non-VLAs if is_simd
25475 all privatization clauses like reductions.
25476 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25477 If omp_is_reference, use always omp simd arrays and set
25478 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25479 fails, emit reference initialization.
25480
25481 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25482
25483 PR target/89803
25484 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25485 _mm_mask_fpclass_sd_mask): New intrinsics.
25486 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25487 * config/i386/i386-builtin.def
25488 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25489 New builtins.
25490 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25491 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25492 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25493 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25494 case QI_FTYPE_V2SF_INT): Ditto.
25495 * config/i386/sse.md
25496 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25497 Extended to insnstructions with mask operands.
25498
25499 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25500
25501 * config/rs6000/constraints.md (define_register_constraint "wp"):
25502 Delete.
25503 (define_register_constraint "wq"): Delete.
25504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25505 (rs6000_init_hard_regno_mode_ok): Adjust.
25506 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25507 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25508 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25509 (define_mode_attr VSa): Delete.
25510 (define_mode_attr VSisa): New.
25511 (rest of file): Adjust.
25512 * doc/md.texi (Machine Constraints): Adjust.
25513
25514 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25515
25516 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25517 (define_attr "enabled"): Handle those new isa values.
25518
25519 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25520
25521 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25522 (define_mode_attr VSr5): Delete.
25523 (define_mode_attr VStype_sqrt): Delete.
25524 (define_mode_iterator VSX_SPDP): Delete.
25525 (define_mode_attr VS_spdp_res): Delete.
25526 (define_mode_attr VS_spdp_insn): Delete.
25527 (define_mode_attr VS_spdp_type): Delete.
25528 (*vsx_sqrt<mode>2): Adjust.
25529 (vsx_<VS_spdp_insn>): Delete, split to...
25530 (vsx_xscvdpsp): ... this. New. And...
25531 (vsx_xvcvspdp): ... this. New. And...
25532 (vsx_xvcvdpsp): ... this. New.
25533
25534 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25535
25536 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25537 and V2DF.
25538 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25539 (rest of file): Adjust.
25540
25541 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25542
25543 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25544 (vsx_extract_<mode>_var): Ditto.
25545
25546 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25547
25548 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25549 with just "wa".
25550
25551 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25552
25553 * config/rs6000/constraints.md (define_register_constraint "ww"):
25554 Delete.
25555 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25556 (rs6000_init_hard_regno_mode_ok): Adjust.
25557 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25558 RS6000_CONSTRAINT_ww.
25559 * config/rs6000/rs6000.md: Adjust.
25560 * config/rs6000/vsx.md: Adjust.
25561 * doc/md.texi (Machine Constraints): Adjust.
25562
25563 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25564
25565 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25566 (define_mode_attr sd): New.
25567 (define_mode_attr s): New.
25568 (define_mode_attr Ftrad): Delete.
25569 (define_mode_attr Fvsx): Delete.
25570 (define_mode_attr Fs): Delete.
25571 (rest of file): Use the new mode attributes.
25572 * config.rs6000/vsx.md: Use the new mode attributes.
25573
25574 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25575
25576 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25577 with just "wa".
25578
25579 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25580
25581 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25582 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25583 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25584
25585 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25586
25587 PR target/78263
25588 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25589 C++ with strict ANSI requirements.
25590
25591 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25592
25593 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25594 computations when step is 1.
25595
25596 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25597
25598 * config/rs6000/constraints.md (define_register_constraint "wf"):
25599 Delete.
25600 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25601 (rs6000_init_hard_regno_mode_ok): Adjust.
25602 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25603 RS6000_CONSTRAINT_wf.
25604 * config/rs6000/rs6000.md: Adjust.
25605 * config/rs6000/vsx.md: Adjust.
25606 * doc/md.texi (Machine Constraints): Adjust.
25607
25608 2019-06-04 Andrew Pinski <apinski@marvell.com>
25609
25610 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25611 Fix ILP32 value.
25612
25613 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25614
25615 * config/rs6000/constraints.md (define_register_constraint "wd"):
25616 Delete.
25617 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25618 (rs6000_init_hard_regno_mode_ok): Adjust.
25619 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25620 RS6000_CONSTRAINT_wd.
25621 * config/rs6000/rs6000.md: Adjust.
25622 * config/rs6000/vsx.md: Adjust.
25623 * doc/md.texi (Machine Constraints): Adjust.
25624
25625 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25626
25627 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25628 (rest of file): Adjust.
25629
25630 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25631
25632 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25633 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25634 (vsx_splat_<mode>_reg): Adjust.
25635
25636 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25637
25638 * config/rs6000/constraints.md (define_register_constraint "ws"):
25639 Delete.
25640 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25641 (rs6000_init_hard_regno_mode_ok): Adjust.
25642 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25643 RS6000_CONSTRAINT_ws.
25644 * config/rs6000/rs6000.md: Adjust.
25645 * config/rs6000/vsx.md: Adjust.
25646 * doc/md.texi (Machine Constraints): Adjust.
25647
25648 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25649
25650 * config/rs6000/constraints.md (define_register_constraint "wv"):
25651 Delete.
25652 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25653 (rs6000_init_hard_regno_mode_ok): Adjust.
25654 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25655 RS6000_CONSTRAINT_wv.
25656 * config/rs6000/rs6000.md: Adjust.
25657 * config/rs6000/vsx.md: Adjust.
25658 * doc/md.texi (Machine Constraints): Adjust.
25659
25660 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25661
25662 * config/rs6000/constraints.md (define_register_constraint "wi"):
25663 Delete.
25664 (define_register_constraint "wt"): Delete.
25665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25666 (rs6000_init_hard_regno_mode_ok): Adjust.
25667 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25668 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25669 * config/rs6000/rs6000.md: Adjust.
25670 * config/rs6000/vsx.md: Adjust.
25671 * doc/md.texi (Machine Constraints): Adjust.
25672
25673 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25674
25675 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25676 const.
25677 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25678 default_elf_asm_output_external.
25679
25680 2019-06-04 Martin Liska <mliska@suse.cz>
25681
25682 * ipa-icf.c (INCLUDE_LIST): Remove.
25683 (sem_item_optimizer::execute): Remove call to init_wpa.
25684 * ipa-icf.h (init_wpa): Remove.
25685
25686 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25687
25688 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25689 conditional on combined for simd.
25690 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25691 member.
25692 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25693 constructs, don't remove lastprivate_conditional_map, but instead set
25694 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25695 to parent construct temporaries.
25696 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25697 like !ctx->lastprivate_conditional_map.
25698 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25699 use up->outer context instead of up.
25700 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25701 gimple_omp_for_combined_p.
25702 (expand_omp_for_static_nochunk): Likewise.
25703 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25704 probably moved over into expand_omp_for_generic rather than being copied
25705 there.
25706
25707 2019-06-04 Martin Liska <mliska@suse.cz>
25708
25709 * value-prof.c (dump_histogram_value): Fix typo.
25710 (gimple_mod_subtract_transform): Likewise.
25711
25712 2019-06-04 Richard Biener <rguenther@suse.de>
25713
25714 PR middle-end/90726
25715 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25716 (tree_contains_chrecs): Likewise.
25717 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25718 exponential behaivor from ...
25719 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25720 ... here.
25721 (expression_expensive_p): Avoid exponential behavior and compute
25722 expanded size, rejecting any expansion.
25723 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25724 (idx_contains_abnormal_ssa_name_p): Likewise.
25725 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25726 (contains_abnormal_ssa_name_p): Simplify and use
25727 walk_tree_without_duplicates.
25728
25729 2019-06-04 Richard Biener <rguenther@suse.de>
25730
25731 PR tree-optimization/90738
25732 Revert
25733 2019-06-03 Richard Biener <rguenther@suse.de>
25734
25735 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25736 full reference tree and record in ref->ref.
25737 (vn_reference_lookup_3): Pass in original ref to
25738 ao_ref_init_from_vn_reference.
25739 (vn_reference_lookup): Likewise.
25740 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25741 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25742 Handle non-decl bases in the original reference.
25743
25744 2019-06-04 Martin Liska <mliska@suse.cz>
25745
25746 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25747 number of references.
25748 (sem_item_optimizer::do_congruence_step):
25749 (sem_item_optimizer::worklist_push): Dump how references
25750 a class has.
25751 (sem_item_optimizer::worklist_pop): Use heap.
25752 (sem_item_optimizer::process_cong_reduction): Likewise.
25753 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25754
25755 2019-06-04 Martin Liska <mliska@suse.cz>
25756
25757 * ipa-icf.h (struct sem_usage_pair_hash): New.
25758 (sem_usage_pair_hash::hash): Likewise.
25759 (sem_usage_pair_hash::equal): Likewise.
25760 (struct sem_usage_hash): Likewise.
25761 * ipa-icf.c (sem_item::sem_item): Initialize
25762 referenced_by_count.
25763 (sem_item::add_reference): Register a reference
25764 in ref_map and not in target->usages.
25765 (sem_item::setup): Remove initialization of
25766 dead vectors.
25767 (sem_item::~sem_item): Remove usage of dead vectors.
25768 (sem_item::dump): Remove dump of references.
25769 (sem_item_optimizer::sem_item_optimizer): Initialize
25770 m_references.
25771 (sem_item_optimizer::read_section): Remove useless
25772 dump.
25773 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25774 (sem_item_optimizer::build_graph): Pass m_references
25775 to ::add_reference.
25776 (sem_item_optimizer::verify_classes): Remove usage of dead
25777 vectors.
25778 (sem_item_optimizer::traverse_congruence_split): Return true
25779 when a class is split.
25780 (sem_item_optimizer::do_congruence_step_for_index): Use
25781 hash_map for look up of (sem_item *, index). That brings
25782 significant speed up.
25783 (sem_item_optimizer::do_congruence_step): Return true
25784 when a split is done.
25785 (congruence_class::is_class_used): Use referenced_by_count.
25786
25787 2019-06-04 Alan Modra <amodra@gmail.com>
25788
25789 PR target/90689
25790 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25791 error.
25792
25793 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25794
25795 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25796 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25797 (rs6000_secondary_reload_simple_move): Adjust.
25798 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25799 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25800 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25801 comment.
25802 (power6x): Adjust.
25803 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25804 (floatunssi<mode>2_lfiwzx): Adjust.
25805 (fix_trunc<mode>si2_stfiwx): Adjust.
25806 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25807 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25808 (mfpgpr): Mark as deprecated.
25809 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25810 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25811 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25812
25813 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25814
25815 * config/rs6000/constraints.md (define_register_constraint "wg"):
25816 Delete.
25817 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25818 RS6000_CONSTRAINT_wg.
25819 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25820 (rs6000_init_hard_regno_mode_ok): Adjust.
25821 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25822 Delete "wg" alternatives.
25823 * doc/md.texi (Machine Constraints): Adjust.
25824
25825 2019-06-03 Alan Modra <amodra@gmail.com>
25826
25827 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25828 (get_uncond_jump_length): Assert length less than INT_MAX and
25829 non-negative.
25830
25831 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25832
25833 PR middle-end/64242
25834 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25835 block.
25836 (expand_builtin_nonlocal_goto): Likewise.
25837
25838 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25839
25840 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25841 (aarch64_asm_output_external): Declare.
25842 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25843 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25844 (aarch64_asm_output_alias): New.
25845 (aarch64_asm_output_external): New.
25846 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25847 (ASM_OUTPUT_EXTERNAL): Define.
25848
25849 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25850 * tree-vrp.h (value_range_base::nonzero_p): New.
25851 (value_range_base::set_nonnull): Rename to...
25852 (value_range_base::set_nonzero): ...this.
25853 (value_range_base::set_null): Rename to...
25854 (value_range_base::set_zero): ...this.
25855 (value_range::set_nonnull): Remove.
25856 (value_range::set_null): Remove.
25857 * tree-vrp.c (range_is_null): Remove.
25858 (range_is_nonnull): Remove.
25859 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25860 instead of range_is_*null.
25861 (extract_range_from_unary_expr): Same.
25862 (value_range_base::set_nonnull): Rename to...
25863 (value_range_base::set_nonzero): ...this.
25864 (value_range::set_nonnull): Remove.
25865 (value_range_base::set_null): Rename to...
25866 (value_range_base::set_zero): ...this.
25867 (value_range::set_null): Remove.
25868 (extract_range_from_binary_expr): Rename set_*null uses to
25869 set_*zero.
25870 (extract_range_from_unary_expr): Same.
25871 (union_helper): Same.
25872 * vr-values.c (get_value_range): Use set_*zero instead of
25873 set_*null.
25874 (vr_values::extract_range_from_binary_expr): Same.
25875 (vr_values::extract_range_basic): Same.
25876
25877 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25878
25879 PR driver/90684
25880 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25881
25882 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25883
25884 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25885 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25886 Rename to...
25887 (aarch64_<su>abd<mode>_3): ... This.
25888 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25889
25890 2019-06-03 Richard Biener <rguenther@suse.de>
25891
25892 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25893 full reference tree and record in ref->ref.
25894 (vn_reference_lookup_3): Pass in original ref to
25895 ao_ref_init_from_vn_reference.
25896 (vn_reference_lookup): Likewise.
25897 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25898 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25899 Handle non-decl bases in the original reference.
25900
25901 2019-06-03 Martin Liska <mliska@suse.cz>
25902
25903 * doc/generic.texi: Remove Java Trees.
25904
25905 2019-06-03 Martin Liska <mliska@suse.cz>
25906
25907 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25908 returns 0 when operands are equal.
25909
25910 2019-06-03 Richard Biener <rguenther@suse.de>
25911
25912 PR tree-optimization/90716
25913 * tree-loop-distribution.c (destroy_loop): Process blocks in
25914 correct order.
25915
25916 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25917
25918 PR target/88837
25919 * vector-builder.h (vector_builder::count_dups): New method.
25920 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25921 Declare prototype.
25922 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25923 (vec_init<mode><Vel>): New pattern.
25924 * config/aarch64/aarch64.c (emit_insr): New function.
25925 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25926 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25927 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25928 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25929
25930 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25931
25932 PR tree-optimization/90681
25933 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25934 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25935 special case for SLP, but fail on non-groupped loads.
25936
25937 2019-06-03 Martin Liska <mliska@suse.cz>
25938
25939 * cfg.c (debug): Use TDF_DETAILS for debug and
25940 print edge info only once.
25941
25942 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25943
25944 PR fortran/90539
25945 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25946
25947 2019-06-01 Martin Sebor <msebor@redhat.com>
25948
25949 PR middle-end/90694
25950 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25951
25952 2019-05-31 Jan Hubicka <jh@suse.cz>
25953
25954 * alias.c: Include ipa-utils.h.
25955 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25956 * ipa-devirt.c (prevailing_odr_type): New.
25957 * ipa-utils.h (previaling_odr_type): Declare.
25958
25959 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25960 Hongtao Liu <hongtao.liu@intel.com>
25961
25962 PR target/89355
25963 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25964 NOTE_INSN_DELETED_LABEL check.
25965
25966 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25967 Robert Suchanek <robert.suchanek@mips.com>
25968
25969 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25970 and 3rd operands of the fmadd/fmsub/maddv builtin.
25971
25972 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25973
25974 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25975 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25976 on OMP_SIMD if not nested inside of worksharing loop that also has
25977 lastprivate conditional clause for the same decl.
25978 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25979 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25980 on simd.
25981 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25982 on simd construct.
25983 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25984 on simd construct.
25985 (lower_lastprivate_clauses): Likewise.
25986 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25987 calling lower_rec_input_clauses.
25988 (lower_omp_for): Likewise.
25989 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25990 clause on simd construct.
25991 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25992 OMP_CLAUSE__CONDTEMP_ clause is present.
25993
25994 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25995 ivar and lvar.
25996
25997 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25998
25999 PR c/43673
26000 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26001 TEX_D32, TEX_D64 or TEX_D128.
26002
26003 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26004
26005 * match.pd (~(vec?cst1:cst2)): New transformation.
26006
26007 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26008
26009 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26010 ((size_t)(A /[ex] B) CMP C): New transformation.
26011
26012 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
26013
26014 * doc/md.texi: Document define_insn_and_rewrite.
26015 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26016 * gensupport.c (queue_elem): Update comment.
26017 (replace_operands_with_dups): New function.
26018 (gen_rewrite_sequence): Likewise.
26019 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26020 * read-rtl.c (apply_subst_iterator): Likewise.
26021 (add_condition_to_rtx, named_rtx_p): Likewise.
26022 (rtx_reader::read_rtx_operand): Likewise.
26023 * config/aarch64/aarch64-sve.md
26024 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26025 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26026 define_insn_and_rewrite.
26027 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26028 Remove separate define_split.
26029
26030 2019-05-31 Jan Hubicka <jh@suse.cz>
26031
26032 * tree-ssa-alias.c (type_has_components_p): New function.
26033 (aliasing_component_refs_p): Use it.
26034
26035 2019-05-31 Martin Liska <mliska@suse.cz>
26036
26037 * gdbhooks.py: Add const_tree to TreePrinter.
26038
26039 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
26040
26041 PR debug/86964
26042 * common.opt (feliminate-unused-debug-symbols): Enable by default.
26043 * doc/invoke.texi (Debugging Options): Document new default of
26044 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26045
26046 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26047
26048 PR tree-optimization/90671
26049 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26050 template_block used to be empty on the first call, don't use
26051 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26052 seq with bb_seq and set it with set_bb_seq.
26053
26054 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
26055
26056 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26057
26058 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26059 Michael Meissner <meissner@linux.ibm.com>
26060
26061 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26062 (prefixed_mem_operand): Likewise.
26063 (non_prefixed_mem_operand): Likewise.
26064 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26065 prototype.
26066 * config/rs6000/rs6000.c (print_operand_address): Handle
26067 PC-relative addresses.
26068 (mode_supports_prefixed_address_p): New function.
26069 (rs6000_prefixed_address): New function.
26070 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26071 (SYMBOL_REF_PCREL_P): Likewise.
26072
26073 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26074
26075 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26076 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26077 (gimplify_omp_for): If worksharing loop with lastprivate conditional
26078 is nested inside of parallel region, add _condtemp_ clause to both.
26079 * tree-nested.c (convert_nonlocal_omp_clauses,
26080 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26081 assertion failure.
26082 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26083 member.
26084 * omp-general.c (omp_extract_for_data): Compute it.
26085 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26086 (lower_rec_input_clauses): Likewise.
26087 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26088 clause is already present, just add one further one after it.
26089 (lower_lastprivate_clauses): Handle cond_ptr with array type.
26090 (lower_send_shared_vars): Clear _condtemp_ vars.
26091 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26092 or section or taskgroup.
26093 * omp-expand.c (determine_parallel_type): Disallow combining only if
26094 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
26095 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26096 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26097 expand_omp_for_static_chunk, expand_omp_for): Use
26098 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26099 determine if a special set of API routines are needed and if condtemp
26100 needs to be initialized, while always initialize cond_var if
26101 fd->lastprivate_conditional is non-zero.
26102
26103 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26104 Michael Meissner <meissner@linux.ibm.com>
26105
26106 * config/rs6000/constraints.md (eI): New constraint.
26107 * config/rs6000/predicates.md (cint34_operand): New predicate.
26108 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26109 (SIGNED_34BIT_OFFSET_P): Likewise.
26110 * doc/md.texi (eI): Document constraint.
26111
26112 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
26113
26114 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26115
26116 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26117 Michael Meissner <meissner@linux.ibm.com>
26118
26119 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26120 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26121 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26122 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26123 (OTHER_FUTURE_MASKS): Likewise.
26124 (POWERPC_MASKS): Likewise.
26125 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26126 specified without -mprefixed-addr or -mcpu=future. Error if
26127 -mprefixed-addr is specified without -mcpu=future.
26128 (rs6000_opt_masks): Add entry for prefixed-addr.
26129 * rs6000.opt (mprefixed-addr): New option.
26130
26131 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26132
26133 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26134 cfun->is_thunk check.
26135
26136 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26137
26138 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26139 to length.
26140
26141 2019-05-30 Martin Liska <mliska@suse.cz>
26142
26143 * gdbinit.in: Fix 'ptc' command. Add trt
26144 that prints TREE_TYPE($).
26145
26146 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26147 Alan Modra <amodra@gmail.com>
26148
26149 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26150 calls here...
26151 (rs6000_indirect_call_template_1): ...and here.
26152 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26153 plt16_ha, plt16_lo, mtctr indirect calls. Use
26154 rs6000_pltseq_enum.
26155 (rs6000_decl_ok_for_sibcall): New function.
26156 (rs6000_function_ok_for_sibcall): Refactor.
26157 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26158 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26159 when pcrel. Reorganize.
26160 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26161 * rs6000.h (rs6000_pltseq_enum): New enum.
26162 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26163 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26164 (*pltseq_plt16_ha): Likewise.
26165 (*pltseq_plt16_lo): Likewise.
26166 (*pltseq_mtctr): Likewise.
26167 (*pltseq_plt_pcrel): New insn.
26168 (*call_local_aix): Handle @notoc calls.
26169 (*call_value_local_aix): Likewise.
26170 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26171 (*call_value_nonlocal_aix): Likewise.
26172 (*call_indirect_pcrel): New insn.
26173 (*call_value_indirect_pcrel): Likewise.
26174
26175 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26176
26177 * config/i386/sse.md (*save_multiple<mode>): Rename from
26178 save_multiple<mode>.
26179 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26180 (*restore_multiple_and_return<mode>): Rename from
26181 restore_multiple_and_return<mode>.
26182 (*restore_multiple_leave_return<mode>): Rename from
26183 restore_multiple_leave_return<mode>.
26184
26185 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26186
26187 * config.gcc (rx-*-linux*): New target.
26188 * config/rx/elf.opt: New file.
26189 * config/rx/linux.h: Likewise.
26190 * config/rx/t-linux: Likewise.
26191 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26192 make it zero.
26193 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26194 (ASM_APP_OFF): Likewise.
26195 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26196 moved elsewhere.
26197
26198 2019-05-29 Jan Hubicka <jh@suse.cz>
26199
26200 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26201 variants are pointer equivalent.
26202
26203 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26204
26205 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26206 * config/aarch64/aarch64-sve2.md: New file.
26207 (<u>avg<mode>3_floor): New pattern.
26208 (<u>avg<mode>3_ceil): Likewise.
26209 (*<sur>h<addsub><mode>): Likewise.
26210 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26211 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26212
26213 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26214
26215 PR bootstrap/90543
26216 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26217 for var_opt_string printing. In cl_optimization_print_diff, print
26218 (null) instead of invoking undefined behavior if one of the
26219 var_opt_string pointers is NULL and use && instead of first || in the
26220 guarding condition. For var_target_other options, handle const char *
26221 target variables similarly to const char * optimize node variables.
26222
26223 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26224
26225 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26226 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26227 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26228 Add autib1716 and pacib1716 initialisation.
26229 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26230 for autib1716 and pacib1716.
26231 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26232 aarch64_post_cfi_startproc): Define.
26233 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26234 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26235 aarch64_handle_pac_ret_protection): Set default sign key to A.
26236 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26237 aarch64_expand_prologue): Add check for b-key.
26238 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26239 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26240 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26241 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26242 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26243 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26244 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26245 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26246 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26247 pauth_hint_num_a with pauth_hint_num.
26248 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26249 pauth_hint_num_a with pauth_hint_num.
26250 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26251 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26252 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26253 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26254 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26255 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26256 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26257 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26258 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26259 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26260 UNSPEC_AUTIA1716 respectively.
26261 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26262 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26263 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26264 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26265 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26266 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26267
26268 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26269
26270 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26271 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26272 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26273 explicit clause on combined parallel into implicit shared clause.
26274 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26275 and firstprivate if the decl has one too from combined parallel to
26276 the worksharing construct.
26277
26278 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26279 Michael Meissner <meissner@linux.ibm.com>
26280
26281 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26282
26283 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26284
26285 * rtl.h (LABEL_REF_P): New #define.
26286
26287 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26288
26289 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26290
26291 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26292
26293 * internal-fn.c: Marked mask_load_direct as vectorizable.
26294 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26295 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26296 combined even if masks different with allow_slp_p param.
26297 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26298 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26299 dissolve SLP-only vectorizable groups when SLP has been discarded.
26300 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26301 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26302 masks.
26303 (vect_build_slp_tree_1): Fixed comment typo.
26304 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26305 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26306 loads for SLP only.
26307 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26308 vectorizable.
26309 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26310
26311 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26312
26313 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26314 Remove obsolete use_thunk reference.
26315 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26316 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26317 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26318 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26319 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26320 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26321 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26322 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26323 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26324
26325 2019-05-28 Nathan Sidwell <nathan@acm.org>
26326
26327 * tree.h (IDENTIFIER_ANON_P): New.
26328 (anon_aggrname_format, anon_aggname_p): Don't declare.
26329 (make_anon_name): Declare.
26330 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26331 (hash_tree): Likewise.
26332 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26333 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26334 (anon_cnt, make_anon_name): New.
26335
26336 2019-05-28 Martin Liska <mliska@suse.cz>
26337
26338 PR other/90315
26339 * opts-global.c (decode_options): Print help for all
26340 help_option_arguments.
26341 * opts.c (print_help): Add new argument.
26342 (common_handle_option): Remember all values into
26343 help_option_arguments.
26344 * opts.h (print_help): Add new argument.
26345
26346 2019-05-28 Martin Liska <mliska@suse.cz>
26347
26348 PR ipa/90555
26349 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26350 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26351 (func_checker::compare_bb): Call compare_loops.
26352
26353 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26354
26355 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26356 on sections construct.
26357 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26358 construct.
26359 (lower_omp_sections): Handle lastprivate conditional.
26360 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26361 lastprivate_conditional_map.
26362 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26363
26364 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26365 critical, taskgroup and section regions when looking for a region
26366 with non-NULL lastprivate_conditional_map.
26367
26368 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26369
26370 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26371 (*ix86_gen_sub3): Ditto.
26372 (*ix86_gen_sub3_carry): Ditto.
26373 (*ix86_gen_one_cmpl2): Ditto.
26374 (*ix86_gen_andsp): Ditto.
26375 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26376 (gen_and2_insn): New static function.
26377 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26378 Use gen_add3_insn instead of ix86_gen_add3.
26379 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26380 instead of ix86_gen_add3.
26381 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26382 Use gen_sub3_insn instead of ix86_gen_sub3.
26383 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26384 instead of ix86_gen_add3.
26385 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26386 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26387 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26388 * config/i386/i386-options.c (ix86_option_override_internal):
26389 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26390 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26391
26392 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26393
26394 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26395 and DW_OP_GNU_const_index opcodes.
26396
26397 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26398
26399 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26400
26401 2019-05-27 Richard Biener <rguenther@suse.de>
26402
26403 PR tree-optimization/90637
26404 * tree-ssa-sink.c (statement_sink_location): Honor the
26405 computed sink location for single-uses.
26406
26407 2019-05-27 Richard Biener <rguenther@suse.de>
26408
26409 PR middle-end/90610
26410 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26411 a bit-insert.
26412
26413 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26414
26415 * config/i386/i386.md (@sub<mode>3_carry): Rename
26416 from sub<mode>3_carry.
26417 (@leave_<mode>): New expander.
26418 (*leave): Rename from leave.
26419 (*leave_rex64): Rename from leave_rex64.
26420 (@monitorx_<mode>): Rename from monitorx_<mode>.
26421 (@clzero_<mode>): Rename from clzero_<mode>.
26422 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26423 from sse3_monitor_<mode>.
26424 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26425 (*ix86_gen_leave): Ditto.
26426 (*ix86_gen_monitor): Ditto.
26427 (*ix86_gen_monitorx): Ditto.
26428 (*ix86_gen_clzero): Ditto.
26429 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26430 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26431 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26432 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26433 Use gen_sse3_monitor instead of ix86_gen_monitor.
26434 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26435 instead of ix86_gen_monitorx.
26436 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26437 instead of ix86_gen_clzero.
26438 * config/i386/i386-options.c (ix86_option_override_internal):
26439 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26440 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26441
26442 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26443
26444 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26445 Rename from tls_global_dynamic_64_<mode>.
26446 (@tls_local_dynamic_base_64_<mode>): Rename from
26447 tls_local_dynamic_base_64_<mode>.
26448 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26449 Remove indirect function.
26450 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26451 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26452 instead of ix86_gen_tls_global_dynamic_64.
26453 Use gen_tls_local_dynamic_base_64 instead of
26454 ix86_gen_tls_local_dynamic_base_64.
26455 * config/i386/i386-options.c (ix86_option_override_internal):
26456 Do not initialize ix86_gen_tls_global_dynamic_64 and
26457 ix86_gen_tls_local_dynamic_base_64.
26458
26459 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26460
26461 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26462 Rename from pro_epilogue_adjust_stack_<mode>_add.
26463 (@pro_epilogue_adjust_stack_sub_<mode>)
26464 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26465 (@allocate_stack_worker_probe_<mode>):
26466 Rename from allocate_stack_worker_probe_<mode>.
26467 (allocate_stack): Use gen_allocate_stack_worker_probe.
26468 (probe_stack): Use gen_probe_stack_1.
26469 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26470 (@adjust_stack_and_probe_<mode>): Rename from
26471 adjust_stack_and_probe<mode>.
26472 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26473 (stack_protect_set): Use gen_stack_protect_set_1.
26474 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26475 (stack_protect_test): Use gen_stack_protect_test_1.
26476 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26477 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26478 Remove indirect function.
26479 (*ix86_gen_adjust_stack_and_probe): Ditto.
26480 (*ix86_gen_probe_stack_range): Ditto.
26481 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26482 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26483 (ix86_adjust_stack_and_probe_stack_clash): Use
26484 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26485 (ix86_adjust_stack_and_probe): Ditto.
26486 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26487 of ix86_gen_probe_stack_range.
26488 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26489 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26490 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26491 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26492 CODE_FOR_stack_protect_test_{si,di}.
26493 * config/i386/i386-options.c (ix86_option_override_internal):
26494 Do not initialize ix86_gen_allocate_stack_worker,
26495 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26496
26497 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26498
26499 * doc/invoke.texi (Link Options): Many editorial changes around
26500 -flinker-output.
26501
26502 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26503
26504 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26505 pre-Solaris 11 referene and most Studio compiler details.
26506
26507 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26508
26509 PR target/90530
26510 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26511 DImode to SImode in floating-point registers on 64-bit target.
26512 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26513 register_operand in xmpyu patterns.
26514
26515 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26516
26517 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26518 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26519 OMP_CLAUSE__REDUCTEMP_.
26520 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26521 OMP_CLAUSE__CONDTEMP_.
26522 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26523 * tree-pretty-print.c (dump_omp_clause): Likewise.
26524 * tree-nested.c (convert_nonlocal_omp_clauses,
26525 convert_local_omp_clauses): Likewise.
26526 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26527 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26528 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26529 on OMP_FOR.
26530 (gimplify_omp_for): Warn and disable conditional modifier from
26531 lastprivate on loop iterators.
26532 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26533 member.
26534 * omp-general.c (omp_extract_for_data): Initialize it.
26535 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26536 member.
26537 (delete_omp_context): Delete it.
26538 (lower_lastprivate_conditional_clauses): New function.
26539 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26540 handle lastprivate conditional clauses.
26541 (lower_reduction_clauses): Add CLIST argument, emit it into
26542 the critical section if any.
26543 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26544 lower_reduction_clauses callers.
26545 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26546 to lower_lastprivate_clauses.
26547 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26548 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26549 clist into a critical section if not emitted there already by
26550 lower_reduction_clauses.
26551 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26552 callers.
26553 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26554 conditional variables.
26555 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26556 clause is present.
26557 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26558 expand_omp_for_static_chunk): Handle lastprivate conditional.
26559 (expand_omp_for): Handle fd.lastprivate_conditional like
26560 fd.have_reductemp.
26561
26562 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26563
26564 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26565 kernel does not exit cleanly.
26566 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26567
26568 2019-05-24 Jason Merrill <jason@redhat.com>
26569
26570 Revert:
26571 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26572
26573 2019-05-24 Richard Biener <rguenther@suse.de>
26574
26575 PR testsuite/90607
26576 * tree-loop-distribution.c (struct partition): Add location
26577 member.
26578 (partition_alloc): Initialize all fields.
26579 (generate_memset_builtin): Use the location recorded in the
26580 partition for the generated call.
26581 (generate_memcpy_builtin): Likewise.
26582 (classify_partition): Record the location of a single store
26583 as location for the partition.
26584
26585 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26586
26587 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26588 for lo-part.
26589
26590 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26591
26592 PR target/90588
26593 * common/config/aarch64/aarch64-common.c
26594 (aarch64_rewrite_selected_cpu): Change local temporary variable
26595 type from unsigned long to uint64_t.
26596 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26597 aarch64_get_extension_string_for_isa_flags): Change declaration to
26598 match new definition by replacing unsigned long with uint64_t.
26599
26600 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26601
26602 PR target/90568
26603 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26604 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26605 Handle stack_protect_test_<mode> codegen similarly to corresponding
26606 sub instruction.
26607
26608 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26609
26610 * config/i386/darwin.h: Reject -mfentry*.
26611 * doc/sourcebuild.texi: Document mfentry target support.
26612
26613 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26614
26615 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26616 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26617 false for PC-relative functions.
26618 (rs6000_output_function_prologue): Change called function name to
26619 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26620 name,1" for PC-relative functions.
26621 (rs6000_elf_declare_function_name): Change called function name to
26622 rs6000_global_entry_point_prologue_needed_p.
26623
26624 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26625
26626 PR target/90552
26627 * config/i386/i386.c (gen_rtx_cost):
26628 Use ix86_tune_cost instead of ix86_cost.
26629
26630 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26631 Michael Meissner <meissner@linux.ibm.com>
26632 Segher Boessenkool <segher@kernel.crashing.org>
26633
26634 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26635 OPTION_MASK_PCREL.
26636 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26637 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26638 (rs6000_fndecl_pcrel_p): Likewise.
26639 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26640 error if -mpcrel is requested without -mcpu=future.
26641 (rs6000_opt_masks): Add entry for pcrel.
26642 (rs6000_fndecl_pcrel_p): New function.
26643 (rs6000_pcrel_p): Likewise.
26644 * config/rs6000/rs6000.opt (mpcrel): New option.
26645 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26646
26647 2019-05-23 Jan Hubicka <jh@suse.cz>
26648 Martin Liska <mliska@suse.cz>
26649
26650 PR tree-optimization/90576
26651 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26652 poly_int_tree_p.
26653 (aliasing_component_refs_p): Fix three way size compare conditional;
26654 give up earlier in case we can not decide on equivalence.
26655
26656 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26657 Michael Meissner <meissner@linux.ibm.com>
26658 Segher Boessenkool <segher@kernel.crashing.org>
26659
26660 * config.gcc: Add future cpu.
26661 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26662 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26663 #define.
26664 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26665 (RS6000_CPU): New instantiation for future cpu.
26666 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26667 PROCESSOR_FUTURE.
26668 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26669 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26670 * config/rs6000/rs6000-tables.opt: Regenerate.
26671 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26672 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26673 (rs6000_machine_from_flags): Handle future cpu.
26674 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26675 PROCESSOR_POWER9 for now.
26676 (rs6000_adjust_cost): Likewise.
26677 (rs6000_issue_rate): Likewise.
26678 (rs6000_register_move_cost): Likewise.
26679 (rs6000_opt_masks): Add entry for future.
26680 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26681 (MASK_FUTURE): New #define.
26682 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26683 * config/rs6000/rs6000.opt (mfuture): New target option.
26684 * doc/invoke.texi (mcpu): Add future cpu.
26685
26686 2019-05-23 Martin Liska <mliska@suse.cz>
26687
26688 PR c++/90587
26689 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26690 operation points to a temporary (pointed via tree_to_wide_ref)
26691 that is out of scope after the &.
26692
26693 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26694
26695 PR c++/90592
26696 * doc/extend.texi (Function Names): Add missing word.
26697
26698 2019-05-23 Richard Biener <rguenther@suse.de>
26699
26700 PR tree-optimization/88440
26701 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26702 at -O[2s]+.
26703 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26704 generated call.
26705 (generate_memcpy_builtin): Likewise.
26706 (distribute_loop): Pass in whether to only distribute patterns.
26707 (prepare_perfect_loop_nest): Also allow size optimization.
26708 (pass_loop_distribution::execute): When optimizing a loop
26709 nest for size allow pattern replacement.
26710
26711 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26712
26713 PR target/90568
26714 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26715 of xor.
26716
26717 2019-05-23 Martin Liska <mliska@suse.cz>
26718
26719 PR sanitizer/90570
26720 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26721 expression similarly to gimplify_decl_expr.
26722
26723 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26724
26725 * cse.c (cse_dump_path): s/dump_file/f.
26726
26727 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26728
26729 PR c++/90462
26730 * diagnostic-format-json.cc: Include "selftest.h".
26731 (json_from_expanded_location): Only add "file" key for non-NULL
26732 file strings.
26733 (json_from_location_range): Don't add "start" and "finish"
26734 children if they are UNKNOWN_LOCATION.
26735 (selftest::test_unknown_location): New selftest.
26736 (selftest::test_bad_endpoints): New selftest.
26737 (selftest::diagnostic_format_json_cc_tests): New function.
26738 * json.cc (json::object::get): New function.
26739 (selftest::test_object_get): New selftest.
26740 (selftest::json_cc_tests): Call it.
26741 * json.h (json::object::get): New decl.
26742 * selftest-run-tests.c (selftest::run_tests): Call
26743 selftest::diagnostic_format_json_cc_tests.
26744 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26745 decl.
26746
26747 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26748 Andrew Stubbs <amd@codesourcery.com>
26749
26750 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26751 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26752 (kernel): Rename to...
26753 (main_kernel): ... this.
26754 (load_image): Load _init_array and _fini_array kernels.
26755 (run): Add argument for kernel to run.
26756 (main): Run init_array_kernel before main_kernel, and
26757 fini_array_kernel after.
26758 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26759 amdgpu_hsa_kernel attribute on functions.
26760 (gcn_disable_constructors): Delete.
26761 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26762 * config/gcn/crt0.c (size_t): Define.
26763 (_init_array, _fini_array): New.
26764 (__preinit_array_start, __preinit_array_end,
26765 __init_array_start, __init_array_end,
26766 __fini_array_start, __fini_array_end): Declare weak references.
26767
26768 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26769
26770 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26771
26772 2019-05-22 Jason Merrill <jason@redhat.com>
26773
26774 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26775
26776 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26777
26778 PR target/88483
26779 * config/i386/i386-options.c (ix86_init_machine_status): Set
26780 stack_frame_required to true.
26781 * config/i386/i386.c (ix86_get_frame_size): New function.
26782 (ix86_frame_pointer_required): Replace get_frame_size with
26783 ix86_get_frame_size.
26784 (ix86_compute_frame_layout): Likewise.
26785 (ix86_find_max_used_stack_alignment): Changed to void. Set
26786 stack_frame_required.
26787 (ix86_finalize_stack_frame_flags): Always call
26788 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26789 ix86_get_frame_size.
26790 * config/i386/i386.h (machine_function): Add stack_frame_required.
26791
26792 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26793
26794 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26795
26796 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26797
26798 * common/config/aarch64/aarch64-common.c
26799 (struct aarch64_option_extension, struct processor_name_to_arch,
26800 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26801 aarch64_contains_opt,
26802 aarch64_get_extension_string_for_isa_flags): Change type of
26803 variables storing flags to uint64_t.
26804 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26805 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26806 * config/aarch64/aarch64.c (struct processor,
26807 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26808 aarch64_validate_march, aarch64_override_options,
26809 aarch64_option_print, aarch64_handle_attr_isa_flags,
26810 aarch64_declare_function_name, aarch64_start_file): Make flag
26811 variables uint64_t.
26812 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26813 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26814 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26815 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26816 * config/aarch64/driver-aarch64.c
26817 (struct aarch64_arch_extension, struct aarch64_core_data,
26818 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26819 flag variables uint64_t.
26820 * doc/invoke.texi: Add documentation for new arguments.
26821
26822 2019-05-22 Richard Biener <rguenther@suse.de>
26823
26824 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26825 rewrite ...
26826 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26827
26828 2019-05-22 Martin Liska <mliska@suse.cz>
26829
26830 PR lto/90500
26831 * doc/extend.texi: Document the change.
26832
26833 2019-05-22 Richard Biener <rguenther@suse.de>
26834
26835 PR tree-optimization/90450
26836 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26837 (mem_ref_hasher::equal): Check it.
26838 (mem_ref_alloc): Initialize it.
26839 (gather_mem_refs_stmt): Set it.
26840
26841 2019-05-22 Richard Biener <rguenther@suse.de>
26842
26843 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26844 Add ABS_EXPR.
26845 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26846 as ABSU_EXPR.
26847
26848 2019-05-22 Alan Modra <amodra@gmail.com>
26849
26850 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26851 (ASM_CPU_SPEC): Conditionally add -many.
26852 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26853 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26854 (rs6000_file_start): ..extracted from here, and modified to
26855 test all ISA bits.
26856 (rs6000_output_function_prologue): Emit .machine as necessary.
26857
26858 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26859
26860 PR middle-end/90553
26861 * ira-lives.c (process_bb_node_lives): Consider defs
26862 for a call insn to be die before the call, not after.
26863
26864 * function.c (assign_parm_setup_block): Raise alignment of
26865 stacked parameter only for STRICT_ALIGNMENT targets.
26866
26867 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26868
26869 * config/rs6000/constraints.md (define_register_constraint "wz"):
26870 Delete.
26871 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26872 RS6000_CONSTRAINT_wz.
26873 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26874 (rs6000_init_hard_regno_mode_ok): Adjust.
26875 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26876 * doc/md.texi (Machine Constraints): Adjust.
26877
26878 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26879
26880 * config/rs6000/constraints.md (define_register_constraint "wl"):
26881 Delete.
26882 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26883 RS6000_CONSTRAINT_wl.
26884 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26885 (rs6000_init_hard_regno_mode_ok): Adjust.
26886 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26887 * doc/md.texi (Machine Constraints): Adjust.
26888
26889 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26890
26891 * config/rs6000/constraints.md (define_register_constraint "wm"):
26892 Delete.
26893 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26894 RS6000_CONSTRAINT_wm.
26895 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26896 (rs6000_init_hard_regno_mode_ok): Adjust.
26897 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26898 * doc/md.texi (Machine Constraints): Adjust.
26899
26900 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26901
26902 * config/rs6000/constraints.md (define_register_constraint "wk"):
26903 Delete.
26904 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26905 RS6000_CONSTRAINT_wk.
26906 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26907 (rs6000_init_hard_regno_mode_ok): Adjust.
26908 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26909 * doc/md.texi (Machine Constraints): Adjust.
26910
26911 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26912
26913 * config/rs6000/constraints.md (define_register_constraint "wj"):
26914 Delete.
26915 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26916 RS6000_CONSTRAINT_wj.
26917 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26918 (rs6000_init_hard_regno_mode_ok): Adjust.
26919 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26920 (VS_64dm): Delete.
26921 * config/rs6000/vsx.md: Ditto.
26922 * doc/md.texi (Machine Constraints): Adjust.
26923
26924 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26925
26926 * config/rs6000/constraints.md (define_register_constraint "wh"):
26927 Delete.
26928 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26929 RS6000_CONSTRAINT_wh.
26930 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26931 (rs6000_init_hard_regno_mode_ok): Adjust.
26932 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26933 * doc/md.texi (Machine Constraints): Adjust.
26934
26935 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26936
26937 PR target/90547
26938 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26939 Avoid calling gen_lowpart with CONST operand.
26940
26941 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26942
26943 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26944 field template_last_to_copy.
26945 (ssa_create_duplicates): Set it, and use it. Attempt to
26946 preserve more debug stmts.
26947
26948 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26949
26950 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26951 (signbit<mode>2): New expander
26952
26953 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26954
26955 PR bootstrap/87338
26956 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26957 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26958
26959 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26960
26961 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26962 %ebx and %ecx bafore calling cpuid with leaf 1 or
26963 non-constant leaf argument.
26964
26965 2019-05-21 Alan Modra <amodra@gmail.com>
26966
26967 PR target/90545
26968 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26969 power9 direct move cost.
26970
26971 2019-05-21 Richard Biener <rguenther@suse.de>
26972
26973 PR middle-end/90510
26974 * fold-const.c (fold_read_from_vector): New function.
26975 * fold-const.h (fold_read_from_vector): Declare.
26976 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26977 single-element insert permutations. Canonicalize selector
26978 further and fix issue with last commit.
26979
26980 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26981
26982 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26983 parameter with default value false to declaration.
26984 (split_edges_for_insertion): New inline function. Wrapper for
26985 split_critical_edges with for_edge_insertion_p = true.
26986 * tree-cfg.c (split_critical_edges): Don't split non-critical
26987 edges if for_edge_insertion_p is false. Fix whitespace.
26988 * tree-ssa-pre.c (pass_pre::execute): Call
26989 split_edges_for_insertion instead of split_critical_edges.
26990 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26991 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26992 (pass_data_sink_code): Update function name in the comment.
26993
26994 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26995
26996 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26997 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26998 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26999 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27000 positives.
27001
27002 2019-05-21 Martin Liska <mliska@suse.cz>
27003
27004 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27005 an extra newline.
27006 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27007 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27008 vec_lvsr.
27009 * config/rs6000/rs6000.c (rs6000_option_override_internal):
27010 Quote a C type.
27011 (rs6000_function_arg): Likewise.
27012 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27013 (rs6000_expand_ternop_builtin): Use interval syntax.
27014 (get_element_number): Likewise.
27015 (altivec_expand_builtin): Likewise.
27016 (rs6000_get_function_versions_dispatcher): Quote target_clones.
27017
27018 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27019
27020 PR c++/59813
27021 PR target/90418
27022 * function.h (struct function): Add calls_eh_return member.
27023 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27024 gimplifying __builtin_eh_return call.
27025 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27026 to cfun.
27027 (expand_call_inline): Or in src_cfun->calls_eh_return into
27028 dst_cfun->calls_eh_return.
27029 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27030 cfun->calls_eh_return.
27031 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27032 * lto-streamer-out.c (output_struct_function_base): Write
27033 calls_eh_return.
27034
27035 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
27036
27037 PR rtl-optimization/43147
27038 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27039 IX86_BUILTIN_SHUFPD.
27040
27041 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27042
27043 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27044 (refs_may_alias_p_1): ... here; update stats.
27045 (refs_may_alias_p): Do not update stats here.
27046
27047 2019-05-20 Richard Biener <rguenther@suse.de>
27048
27049 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27050 doesn't produce pointers.
27051 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27052 the first operand points to.
27053
27054 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27055
27056 * tree-ssa-alias.c (compare_sizes): New function.
27057 (sompare_type_sizes): New function
27058 (aliasing_component_refs_p): Use it.
27059 (indirect_ref_may_alias_decl_p): Likewise.
27060
27061 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27062
27063 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27064
27065 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27066
27067 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27068 (LIBLSAN_EARLY_SPEC): Likewise.
27069 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27070
27071 2019-05-20 Martin Liska <mliska@suse.cz>
27072
27073 * config/i386/i386.c (ix86_libc_has_fast_function):
27074 Add ATTRIBUTE_UNUSED for the argument.
27075
27076 2019-05-20 Richard Biener <rguenther@suse.de>
27077
27078 * gimple-match-head.c: Include vec-perm-indices.h.
27079 * generic-match-head.c: Likewise.
27080 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27081 is included.
27082 * fold-const.c (fold_vec_perm): Export.
27083 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27084 (match.pd): ...here.
27085
27086 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27087
27088 * cfgloop.h (struct loop): Add simdlen member.
27089 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27090 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27091 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27092 as new argument to autovectorize_vector_sizes target hook. If
27093 loop->simdlen, pick up vector size where the vectorization factor
27094 is equal to loop->simd, and if there is none, fall back to the first
27095 successful one.
27096 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27097 caller.
27098 * omp-low.c (omp_clause_aligned_alignment): Likewise.
27099 * omp-general.c (omp_max_vf): Likewise.
27100 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27101 * tree-vect-slp.c (vect_slp_bb): Likewise.
27102 * target.def (autovectorize_vector_sizes): Add ALL argument and
27103 document it.
27104 * doc/tm.texi: Adjust documentation.
27105 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27106 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27107 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27108 bool argument.
27109 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27110 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27111 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27112 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
27113 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27114 preferred vector size is not 512-bit or 256-bit, just put those
27115 unpreferred ones last.
27116
27117 2019-05-20 Martin Liska <mliska@suse.cz>
27118
27119 * targhooks.c (default_libc_has_fast_function): New function.
27120 * targhooks.h (default_libc_has_fast_function): Likewise.
27121
27122 2019-05-20 Martin Liska <mliska@suse.cz>
27123
27124 PR middle-end/90263
27125 * builtins.c (expand_builtin_memory_copy_args): When having a
27126 target with fast mempcpy implementation do now use memcpy.
27127 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27128 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27129 * doc/tm.texi: Likewise.
27130 * doc/tm.texi.in: Likewise.
27131 * target.def:
27132 * expr.c (emit_block_move_hints): Add 2 new arguments.
27133 * expr.h (emit_block_move_hints): Bail out when libcall
27134 to memcpy would be used.
27135
27136 2019-05-20 Martin Liska <mliska@suse.cz>
27137
27138 * profile-count.c: Add vertical spacing in order
27139 to separate functions.
27140 * profile-count.h: Likewise.
27141
27142 2019-05-20 Martin Liska <mliska@suse.cz>
27143
27144 * profile-count.h: Do not use full qualified
27145 names if possible.
27146 * profile-count.c (profile_count::to_frequency): Likewise.
27147
27148 2019-05-20 Martin Liska <mliska@suse.cz>
27149
27150 * profile-count.h (enum profile_quality): Use capital letters
27151 for enum value names. Use the adjusted names.
27152 * profile-count.c: Use the adjusted names.
27153
27154 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27155
27156 * config/rs6000/constraints.md (define_register_constraint "wH"):
27157 Delete.
27158 (define_register_constraint "wI"): Delete.
27159 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27160 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27161 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27162 (rs6000_init_hard_regno_mode_ok): Adjust.
27163 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27164 resp. "d", or with "wa" as appropriate, all with "p8v".
27165 * config/rs6000/vsx.md: Ditto.
27166 * doc/md.texi (Machine Constraints): Adjust.
27167
27168 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27169
27170 * config/rs6000/constraints.md (define_register_constraint "wy"):
27171 Delete.
27172 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27173 RS6000_CONSTRAINT_wy.
27174 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27175 (rs6000_init_hard_regno_mode_ok): Adjust.
27176 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27177 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27178 (define_mode_attr Fisa): New.
27179 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27180 * doc/md.texi (Machine Constraints): Adjust.
27181
27182 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27183
27184 * config/rs6000/constraints.md (define_register_constraint "wu"):
27185 Delete.
27186 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27187 RS6000_CONSTRAINT_wu.
27188 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27189 (rs6000_init_hard_regno_mode_ok): Adjust.
27190 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27191 both with "p8v".
27192 (define_mode_attr Fa): Delete.
27193 * config/rs6000/vsx.md: Ditto.
27194 * doc/md.texi (Machine Constraints): Adjust.
27195
27196 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27197
27198 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27199 Delete.
27200 (define_register_constraint "wK"): Delete.
27201 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27202 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27203 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27204 (rs6000_init_hard_regno_mode_ok): Adjust.
27205 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27206 Replace "wK" constraint by "wH" with "p9v".
27207 * config/rs6000/vsx.md: Ditto.
27208 * doc/md.texi (Machine Constraints): Adjust.
27209
27210 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27211
27212 * config/rs6000/constraints.md (define_register_constraint "wb"):
27213 Delete.
27214 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27215 RS6000_CONSTRAINT_wb.
27216 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27217 (rs6000_init_hard_regno_mode_ok): Adjust.
27218 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27219 * config/rs6000/vsx.md: Ditto.
27220 * doc/md.texi (Machine Constraints): Adjust.
27221
27222 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27223
27224 * config/rs6000/constraints.md (define_register_constraint "wo"):
27225 Delete.
27226 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27227 RS6000_CONSTRAINT_wo.
27228 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27229 (rs6000_init_hard_regno_mode_ok): Adjust.
27230 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27231 * config/rs6000/altivec.md: Ditto.
27232 * doc/md.texi (Machine Constraints): Adjust.
27233
27234 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27235
27236 * config/darwin-c.c (darwin_register_objc_includes): Do not
27237 prepend the sysroot when building gnu-runtime header search
27238 paths.
27239
27240 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27241
27242 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27243 instead of direct output of the asm.
27244
27245 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27246
27247 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27248 argument to be type bool (was int before).
27249 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27250 at first use. Use type bool for some variables. Fix a theoretical
27251 eh_return bug for svr4.
27252
27253 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27254
27255 * config/rs6000/rs6000.md (isa): New attribute.
27256 (enabled): New attribute.
27257
27258 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27259
27260 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27261 assemble_start_function and assemble_end_function.
27262
27263 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27264
27265 PR middle-end/89433
27266 * omp-general.c (oacc_verify_routine_clauses): Change formal
27267 parameters. Add checking if already marked with an OpenACC
27268 'routine' directive. Adjust all users.
27269
27270 PR middle-end/89433
27271 * omp-general.c (oacc_build_routine_dims): Move some of its
27272 processing into...
27273 (oacc_verify_routine_clauses): ... this new function.
27274 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27275
27276 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27277
27278 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27279 formating of picbase labels to match other ports.
27280
27281 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27282
27283 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27284 in the generated code.
27285
27286 2019-05-16 Martin Sebor <msebor@redhat.com>
27287
27288 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27289 identifiers, keywords, operators, and types in diagnostics. Correct
27290 quoting, spelling, and sentence capitalization issues.
27291 (expand_builtin_atomic_is_lock_free): Same.
27292 (fold_builtin_next_arg): Same.
27293 * cfgexpand.c (expand_one_var): Same.
27294 (tree_conflicts_with_clobbers_p): Same.
27295 (expand_asm_stmt): Same.
27296 (verify_loop_structure): Same.
27297 * cgraphunit.c (process_function_and_variable_attributes): Same.
27298 * collect-utils.c (collect_execute): Same.
27299 * collect2.c (maybe_run_lto_and_relink): Same.
27300 (is_lto_object_file): Same.
27301 (scan_prog_file): Same.
27302 * convert.c (convert_to_real_1): Same.
27303 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27304 * except.c (verify_eh_tree): Same.
27305 * gcc.c (execute): Same.
27306 (eval_spec_function): Same.
27307 (run_attempt): Same.
27308 (driver::set_up_specs): Same.
27309 (compare_debug_auxbase_opt_spec_function): Same.
27310 * gcov-tool.c (unlink_gcda_file): Same.
27311 (do_merge): Same.
27312 (do_rewrite): Same.
27313 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27314 * gimplify.c (gimplify_asm_expr): Same.
27315 (gimplify_adjust_omp_clauses): Same.
27316 * hsa-gen.c (gen_hsa_addr_insns): Same.
27317 (gen_hsa_insns_for_load): Same.
27318 (gen_hsa_cmp_insn_from_gimple): Same.
27319 (gen_hsa_insns_for_operation_assignment): Same.
27320 (gen_get_level): Same.
27321 (gen_hsa_alloca): Same.
27322 (omp_simple_builtin::generate): Same.
27323 (gen_hsa_atomic_for_builtin): Same.
27324 (gen_hsa_insns_for_call): Same.
27325 * input.c (dump_location_info): Same.
27326 * ipa-devirt.c (compare_virtual_tables): Same.
27327 * ira.c (ira_setup_eliminable_regset): Same.
27328 * lra-assigns.c (lra_assign): Same.
27329 * lra-constraints.c (lra_constraints): Same.
27330 * lto-streamer-in.c (lto_input_mode_table): Same.
27331 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27332 (merge_and_complain): Same.
27333 (compile_offload_image): Same.
27334 (compile_images_for_offload_targets): Same.
27335 (debug_objcopy): Same.
27336 (run_gcc): Same.
27337 (main): Same.
27338 * opts.c (print_specific_help): Same.
27339 (parse_no_sanitize_attribute): Same.
27340 (print_help): Same.
27341 (handle_param): Same.
27342 * plugin.c (add_new_plugin): Same.
27343 (parse_plugin_arg_opt): Same.
27344 (try_init_one_plugin): Same.
27345 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27346 operators, and types in diagnostics. Correct quoting and spelling
27347 issues.
27348 * read-rtl-function.c (parse_edge_flag_token): Same.
27349 (function_reader::parse_enum_value): Same.
27350 * reg-stack.c (check_asm_stack_operands): Same.
27351 * regcprop.c (validate_value_data): Same.
27352 * sched-rgn.c (make_pass_sched_fusion): Same.
27353 * stmt.c (check_unique_operand_names): Same.
27354 * targhooks.c (default_target_option_pragma_parse): Same.
27355 * tlink.c (recompile_files): Same.
27356 * toplev.c (process_options): Same.
27357 (do_compile): Same.
27358 * trans-mem.c (diagnose_tm_1): Same.
27359 (ipa_tm_scan_irr_block): Same.
27360 (ipa_tm_diagnose_transaction): Same.
27361 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27362 format a tree code name in a diagnostic.
27363 (verify_types_in_gimple_min_lval): Same.
27364 (verify_types_in_gimple_reference): Same.
27365 (verify_gimple_call): Same.
27366 (verify_gimple_assign_unary): Same.
27367 (verify_gimple_assign_binary): Same.
27368 (verify_gimple_assign_ternary): Same.
27369 (verify_gimple_assign_single): Same.
27370 (verify_gimple_switch): Same.
27371 (verify_gimple_label): Same.
27372 (verify_gimple_phi): Same.
27373 (verify_gimple_in_seq): Same.
27374 (verify_eh_throw_stmt_node): Same.
27375 (collect_subblocks): Same.
27376 (gimple_verify_flow_info): Same.
27377 (do_warn_unused_result): Same.
27378 * tree-inline.c (expand_call_inline): Same.
27379 * tree-into-ssa.c (update_ssa): Same.
27380 * tree.c (tree_int_cst_elt_check_failed): Same.
27381 (tree_vec_elt_check_failed): Same.
27382 (omp_clause_operand_check_failed): Same.
27383 (verify_type_variant): Same.
27384 (verify_type): Same.
27385 * value-prof.c (verify_histograms): Same.
27386 * varasm.c (assemble_start_function): Same.
27387
27388 2019-05-16 Martin Sebor <msebor@redhat.com>
27389
27390 * config/i386/i386-expand.c (get_element_number): Quote keywords
27391 and other internal names in diagnostics. Adjust other diagnostic
27392 formatting issues noted by -Wformat-diag.
27393 * config/i386/i386-features.c
27394 (ix86_mangle_function_version_assembler_name): Same.
27395 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27396 * config/i386/i386.c (ix86_function_type_abi): Same.
27397 (ix86_function_ms_hook_prologue): Same.
27398 (classify_argument): Same.
27399 (ix86_expand_prologue): Same.
27400 (ix86_md_asm_adjust): Same.
27401 (ix86_memmodel_check): Same.
27402
27403 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27404
27405 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27406 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27407 and fpxx modes.
27408
27409 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27410
27411 PR target/90497
27412 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27413 intrinsics without SSE/SSE2/SSSE3.
27414 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27415 check.
27416 (*mmx_uavgv8qi3): Likewise.
27417
27418 2019-05-17 Richard Biener <rguenther@suse.de>
27419
27420 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27421 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27422
27423 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27424
27425 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27426 vec_sldw insn pattern.
27427
27428 2019-05-17 Richard Biener <rguenther@suse.de>
27429
27430 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27431
27432 2019-05-17 Martin Liska <mliska@suse.cz>
27433
27434 PR driver/90496
27435 * toplev.c (output_stack_usage): With LTO and sanitizer it
27436 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27437 has no file location.
27438
27439 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27440
27441 PR c++/90484
27442 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27443 sz0 is equal to sz1, instead return false in that case.
27444
27445 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27446 has non-constant expression, force sctx.lane and use two
27447 argument IFN_GOMP_SIMD_LANE instead of single argument.
27448 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27449 two argument IFN_GOMP_SIMD_LANE without lhs.
27450 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27451 member.
27452 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27453 Define.
27454 (LOOP_REQUIRES_VERSIONING): Or in
27455 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27456 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27457 simd_if_cond.
27458 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27459 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27460 from simd if clause if needed.
27461
27462 2019-05-16 Richard Biener <rguenther@suse.de>
27463
27464 * tree-affine.c (expr_to_aff_combination): New function split
27465 out from...
27466 (tree_to_aff_combination): ... here.
27467 (aff_combination_expand): Avoid building a GENERIC tree.
27468
27469 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27470
27471 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27472 assemble_start_function and assemble_end_function calls.
27473 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27474 assemble_start_function and assemble_end_function.
27475 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27476 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27477 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27478 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27479 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27480 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27481 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27482 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27483 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27484 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27485 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27486 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27487 Likewise.
27488 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27489 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27490 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27491 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27492 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27493 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27494 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27495 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27496 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27497 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27498 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27499 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27500 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27501 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27502 Likewise.
27503 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27504 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27505 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27506
27507 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27508
27509 * tree-ssa-alias.c (alias_stats): Add
27510 aliasing_component_refs_p_may_alias and
27511 aliasing_component_refs_p_no_alias.
27512 (dump_alias_stats): Print aliasing_component_refs_p stats.
27513 (aliasing_component_refs_p): Update stats.
27514
27515 2019-05-16 Martin Liska <mliska@suse.cz>
27516
27517 PR lto/90500
27518 * multiple_target.c (expand_target_clones): Do not allow
27519 target_clones being used with a symbol that is an alias.
27520
27521 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27522
27523 PR tree-optimization/90394
27524 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27525 positives rather than ICE for cases where (code2 == NE_EXPR
27526 && code1 == BIT_AND_EXPR).
27527
27528 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27529
27530 PR fortran/90329
27531 * tree-core.h (struct tree_decl_common): Document
27532 decl_nonshareable_flag for PARM_DECLs.
27533 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27534 * calls.c (expand_call): Don't try tail call if caller
27535 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27536 passed on the stack and callee needs to pass any arguments on the
27537 stack.
27538 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27539 else if instead of series of mutually exclusive ifs. Handle
27540 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27541 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27542
27543 * lto-streamer.h (LTO_major_version): Bump to 9.
27544
27545 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27546
27547 PR tree-optimization/90106
27548 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27549 new parameter as new internal function call, also move it to new
27550 basic block.
27551 (use_internal_fn): Pass internal function call to
27552 shrink_wrap_one_built_in_call_with_conds.
27553
27554 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27555
27556 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27557 max_vf to 1.
27558 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27559 safelen_int and set loop->dont_vectorize.
27560
27561 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27562
27563 PR target/89021
27564 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27565 SSE/SSE2/SSSE3.
27566 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27567 Likewise.
27568 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27569 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27570 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27571 is defined.
27572
27573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27574
27575 PR target/89021
27576 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27577 define_insn_and_split to support SSE emulation.
27578 (*vec_extractv2sf_0): Likewise.
27579 (*vec_extractv2sf_1): Likewise.
27580 (*vec_extractv2si_0): Likewise.
27581 (*vec_extractv2si_1): Likewise.
27582 (*vec_extractv2si_zext_mem): Likewise.
27583 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27584 (vec_extractv2sf_1 splitter): Likewise.
27585 (vec_extractv2sfsf): Likewise.
27586 (vec_setv2si): Likewise.
27587 (vec_extractv2si_1 splitter): Likewise.
27588 (vec_extractv2sisi): Likewise.
27589 (vec_setv4hi): Likewise.
27590 (vec_extractv4hihi): Likewise.
27591 (vec_setv8qi): Likewise.
27592 (vec_extractv8qiqi): Likewise.
27593 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27594 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27595 (vec_extractv2sisi): Likewise.
27596 (vec_extractv4hihi): Likewise.
27597 (vec_extractv8qiqi): Likewise.
27598 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27599 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27600 (vec_initv2sisi): Likewise.
27601 (vec_initv4hihi): Likewise.
27602 (vec_initv8qiqi): Likewise.
27603 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27604 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27605 (vec_setv4hi): Likewise.
27606 (vec_setv8qi): Likewise.
27607
27608 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27609
27610 PR target/89021
27611 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27612 TARGET_MMX_WITH_SSE.
27613 (MMXMODE:*mov<mode>_internal): Likewise.
27614 (MMXMODE:movmisalign<mode>): Likewise.
27615
27616 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27617
27618 PR target/89021
27619 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27620 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27621 (sse2_cvtpd2pi): Ditto.
27622 (sse2_cvttpd2pi): Ditto.
27623 (*vec_concatv2sf_sse4_1): Ditto.
27624 (*vec_concatv2sf_sse): Ditto.
27625 (*vec_concatv2si_sse4_1): Ditto.
27626 (*vec_concatv2si): Ditto.
27627 (*vec_concatv4si_0): Ditto.
27628 (*vec_concatv2di_0): Ditto.
27629
27630 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27631
27632 PR target/89021
27633 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27634
27635 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27636
27637 PR target/89021
27638 * config/i386/sse.md (ssse3_palignrdi): Changed to
27639 define_insn_and_split to support SSE emulation.
27640
27641 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27642
27643 PR target/89021
27644 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27645
27646 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27647
27648 PR target/89021
27649 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27650 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27651 SSE emulation.
27652
27653 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27654
27655 PR target/89021
27656 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27657 or TARGET_MMX_WITH_SSE.
27658 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27659
27660 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27661
27662 PR target/89021
27663 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27664
27665 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27666
27667 PR target/89021
27668 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27669 Changed to define_insn_and_split to support SSE emulation.
27670
27671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27672
27673 PR target/89021
27674 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27675 Changed to define_insn_and_split to support SSE emulation.
27676
27677 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27678
27679 PR target/89021
27680 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27681 (*mmx_<emms>): This.
27682 (mmx_<emms>): New expander.
27683
27684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27685
27686 PR target/89021
27687 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27688 support.
27689 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27690
27691 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27692
27693 PR target/89021
27694 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27695
27696 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27697
27698 PR target/89021
27699 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27700
27701 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27702
27703 PR target/89021
27704 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27705 TARGET_MMX_WITH_SSE.
27706 (*mmx_uavgv4hi3): Add SSE emulation.
27707
27708 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27709
27710 PR target/89021
27711 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27712 and TARGET_MMX_WITH_SSE.
27713 (*mmx_uavgv8qi3): Add SSE emulation.
27714
27715 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27716
27717 PR target/89021
27718 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27719 maskmovdqu for __MMX_WITH_SSE__.
27720
27721 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27722
27723 PR target/89021
27724 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27725 TARGET_MMX and TARGET_MMX_WITH_SSE.
27726 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27727
27728 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27729
27730 PR target/89021
27731 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27732 define_insn_and_split to support SSE emulation.
27733
27734 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27735
27736 PR target/89021
27737 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27738 and TARGET_MMX_WITH_SSE.
27739 (mmx_<code>v8qi3): Likewise.
27740 (smaxmin:<code>v4hi3): New.
27741 (umaxmin:<code>v8qi3): Likewise.
27742 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27743 (umaxmin:*mmx_<code>v8qi3): Likewise.
27744
27745 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27746
27747 PR target/89021
27748 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27749 TARGET_MMX_WITH_SSE.
27750 (*mmx_pinsrw): Add SSE emulation.
27751
27752 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27753
27754 PR target/89021
27755 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27756
27757 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27758
27759 PR target/89021
27760 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27761 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27762 SSE emulation.
27763
27764 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27765
27766 PR target/89021
27767 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27768 (sse_cvttps2pi): Likewise.
27769
27770 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27771
27772 PR target/89021
27773 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27774 TARGET_MMX_WITH_SSE.
27775 (mmx_pshufw_1): Add SSE emulation.
27776 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27777 TARGET_MMX_WITH_SSE to support SSE emulation.
27778
27779 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27780
27781 PR target/89021
27782 * config/i386/constraints.md (Yw): New constraint.
27783 * config/i386/mmx.md (*vec_dupv2si): Changed to
27784 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27785 support SSE emulation.
27786
27787 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27788
27789 PR target/89021
27790 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27791 TARGET_MMX_WITH_SSE.
27792 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27793 support.
27794 (mmx_gt<mode>3): Likewise.
27795
27796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27797
27798 PR target/89021
27799 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27800 TARGET_MMX_WITH_SSE. Add SSE support.
27801
27802 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27803
27804 PR target/89021
27805 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27806 TARGET_MMX_WITH_SSE.
27807 (any_logic:<code><mode>3): New.
27808 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27809 Add SSE support.
27810
27811 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27812
27813 PR target/89021
27814 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27815 TARGET_MMX_WITH_SSE. Add SSE emulation.
27816 (mmx_<shift_insn><mode>3): Likewise.
27817 (ashr<mode>3): New.
27818 (<shift_insn><mode>3): Likewise.
27819
27820 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27821
27822 PR target/89021
27823 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27824 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27825
27826 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27827
27828 PR target/89021
27829 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27830 TARGET_MMX_WITH_SSE.
27831 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27832 SSE support.
27833
27834 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27835
27836 PR target/89021
27837 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27838 TARGET_MMX_WITH_SSE.
27839 (mulv4hi3): New.
27840 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27841 support.
27842
27843 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27844
27845 PR target/89021
27846 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27847 (plusminus:mmx_<plusminus_insn><mode>3): Check
27848 TARGET_MMX_WITH_SSE.
27849 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27850 (<plusminus_insn><mode>3): New.
27851 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27852 (*mmx_<plusminus_insn><mode>3): Likewise.
27853
27854 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27855
27856 PR target/89021
27857 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27858 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27859 prototype.
27860 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27861 define_insn_and_split to support SSE emulation.
27862 (mmx_punpcklbw): Likewise.
27863 (mmx_punpckhwd): Likewise.
27864 (mmx_punpcklwd): Likewise.
27865 (mmx_punpckhdq): Likewise.
27866 (mmx_punpckldq): Likewise.
27867
27868 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27869 Uros Bizjak <ubizjak@gmail.com>
27870
27871 PR target/89021
27872 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27873 New function.
27874 (ix86_split_mmx_pack): Likewise.
27875 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27876 New prototype.
27877 (ix86_split_mmx_pack): Likewise.
27878 * config/i386/i386.md (mmx_isa): New.
27879 (enabled): Also check mmx_isa.
27880 * config/i386/mmx.md (any_s_truncate): New code iterator.
27881 (s_trunsuffix): New code attr.
27882 (mmx_packsswb): Removed.
27883 (mmx_packssdw): Likewise.
27884 (mmx_packuswb): Likewise.
27885 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27886 MMX packsswb/packuswb with SSE2.
27887 (mmx_packssdw): Likewise.
27888 * config/i386/predicates.md (register_mmxmem_operand): New.
27889
27890 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27891
27892 PR target/89021
27893 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27894 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27895 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27896 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27897 (ix86_vector_mode_supported_p): Likewise.
27898 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27899
27900 2019-05-15 Martin Liska <mliska@suse.cz>
27901
27902 PR middle-end/90478
27903 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27904 Check for overflow.
27905
27906 2019-05-15 Richard Biener <rguenther@suse.de>
27907
27908 * tree-into-ssa.c (pass_build_ssa::execute): Run
27909 update_address_taken before going into SSA.
27910
27911 2019-05-15 Richard Biener <rguenther@suse.de>
27912
27913 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27914 as __BIT_FIELD_REF with type with -gimple.
27915
27916 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27917
27918 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27919 semantically equivalent branches (left over after prior refactorings).
27920
27921 2019-05-15 Richard Biener <rguenther@suse.de>
27922
27923 PR tree-optimization/88828
27924 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27925 bogus check.
27926
27927 2019-05-14 Richard Biener <rguenther@suse.de>
27928
27929 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27930 as __VIEW_CONVERT with -gimple.
27931
27932 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27933
27934 PR target/82920
27935 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27936 Darwin.
27937
27938 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27939
27940 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27941 define_split to become a define_insn_and_split.
27942
27943 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27944
27945 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27946 arguments.
27947 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27948 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27949 (sibcall_epilogue): Adjust.
27950 (epilogue): Adjust.
27951
27952 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27953
27954 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27955 to unsupported ones.
27956 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27957 * config.host: Likewise.
27958 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27959 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27960 __svr4__]: Remove "brand" fallback.
27961 [!KSTAT_DATA_STRING]: Remove.
27962 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27963 to *-*-solaris2*.
27964 (comdat_group): Likewise.
27965 (set_have_as_tls): Likewise.
27966 (gcc_cv_target_dl_iterate_phdr): Likewise.
27967 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27968 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27969 * configure: Regenerate.
27970 * doc/install.texi: Simplify Solaris target triplets.
27971 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27972 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27973 Remove Solaris 10 references.
27974 Remove obsolete Solaris bug reference.
27975 (Specific, sparc-sun-solaris2.10): Remove.
27976
27977 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27978
27979 * config/i386/i386.md (any_div): New code iterator.
27980 (paired_mod): New code attribute.
27981 (sgnprefix): Handle DIV and UDIV RTXes.
27982 (u): Ditto.
27983 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27984 and udivmod<mode>4 patterns using any_div code iterator.
27985 (divmod splitters): Macroize splitters using any_div code iterator.
27986 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27987 (*udivmodsi4_pow2_zext_2): Ditto.
27988 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27989 and *udivmod<mode>4_noext patterns using any_div code iterator.
27990 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27991 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27992 patterns using any_div code iterator.
27993 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27994 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27995 patterns using any_div code iterator.
27996 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27997 udivmodhiqi3 patterns using any_extend code iterator.
27998
27999 2019-05-14 Richard Biener <rguenther@suse.de>
28000 H.J. Lu <hongjiu.lu@intel.com>
28001
28002 PR tree-optimization/88828
28003 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28004 permuting in a single non-constant element not extracted
28005 from a vector.
28006
28007 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
28008
28009 * internal-fn.def (SIGNBIT): New.
28010 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28011 defined.
28012 (signbitv4sf2): Likewise.
28013
28014 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
28015
28016 PR target/90357
28017 * config/mips/mips.c (mips_split_move): Skip forward SRC into
28018 next insn when the SRC reg is dead.
28019
28020 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
28021
28022 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28023 (alloc_cand_and_find_basis): Ditto.
28024 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28025 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28026 (create_add_imm_cand, slsr_process_cast): Ditto.
28027 (slsr_process_copy, replace_mult_candidate): Ditto.
28028 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28029 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28030 (pass_strength_reduction::execute): Init the first NULL element.
28031
28032 2019-05-13 Nathan Sidwell <nathan@acm.org>
28033
28034 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
28035 (run_attempt): Reformat line break.
28036
28037 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
28038
28039 PR target/90418
28040 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28041 data registers in sibcall epilogues.
28042 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28043
28044 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
28045
28046 PR target/89221
28047 * configure.ac (--enable-frame-pointer):
28048 Disable by default for cygwin and mingw.
28049 * configure: Regenerate.
28050
28051 2019-05-13 Nathan Sidwell <nathan@acm.org>
28052
28053 * dwarf2out.c (breakout_comdat_types): Move comment to correct
28054 piece of code.
28055 (const_ok_for_output_1): Balance parens around #if/#else/#endif
28056 (gen_member_die): Move abstract origin check earlier. Only VARs
28057 can be static_inline_p. Simplify splicing control flow.
28058
28059 2019-05-13 Richard Biener <rguenther@suse.de>
28060
28061 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28062 VIEW_CONVERT_EXPR.
28063 (vect_build_slp_tree_1): Likewise.
28064
28065 2019-05-13 Richard Biener <rguenther@suse.de>
28066
28067 PR tree-optimization/90402
28068 * tree-if-conv.c (tree_if_conversion): Value number only
28069 the loop body by making the latch an exit of the region
28070 as well.
28071 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28072 processing PHIs.
28073 (do_rpo_vn): Deal with multiple edges into the entry block
28074 that are not backedges inside the region by skipping PHIs
28075 of the entry block.
28076
28077 2019-05-13 Richard Biener <rguenther@suse.de>
28078
28079 PR tree-optimization/90316
28080 * tree-ssa-pre.c (insert_aux): Fold into ...
28081 (insert): ... this function. Use a RPO walk to reduce the
28082 number of required iterations.
28083
28084 2019-05-13 Martin Liska <mliska@suse.cz>
28085
28086 PR tree-optimization/90416
28087 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28088 string instead of passing the second part as va_arg argument.
28089
28090 2019-05-13 Martin Liska <mliska@suse.cz>
28091
28092 PR gcov-profile/90380
28093 * gcov.c (handle_cycle): Do not support zero cycle count,
28094 it should not be possible.
28095 (path_contains_zero_cycle_arc): New function.
28096 (circuit): Ignore zero cycle arc counts.
28097
28098 2019-05-13 Martin Liska <mliska@suse.cz>
28099
28100 PR gcov-profile/90380
28101 * gcov.c (enum loop_type): Remove the enum and
28102 the operator.
28103 (handle_cycle): Assert that we should not reach
28104 a negative count.
28105 (circuit): Use loop_found instead of a tri-state loop_type.
28106 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28107 happen.
28108
28109 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28110
28111 PR target/82920
28112 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28113 (ix86_output_indirect_branch_via_reg): Use output mechanism
28114 accounting for __USER_LABEL_PREFIX__.
28115 (ix86_output_indirect_branch_via_push): Likewise.
28116 (ix86_output_function_return): Likewise.
28117 (ix86_output_indirect_function_return): Likewise.
28118
28119 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28120
28121 * doc/md.texi: Document use of code attributes in rtx patterns.
28122 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28123 * read-rtl.c (find_code): Split out search loops into...
28124 (maybe_find_code): ...this new function.
28125 (check_code_iterator): Make the error message more informative.
28126 (check_code_attribute): New function.
28127 (rtx_reader::rtx_alloc_for_name): Likewise.
28128 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28129 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28130 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28131 <max_opp> directly as an rtx code instead of via a match_operator.
28132 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28133 (<su>abd<mode>_3): Update accordingly.
28134
28135 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28136
28137 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28138 is given, print the state of the EH "save world" computation for
28139 Darwin.
28140
28141 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28142
28143 PR c++/59813
28144 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28145 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28146
28147 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28148
28149 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28150 Use pinsrd for TARGET_SSE4_1.
28151 * config/i386/sse.md (movdi_to_sse): Ditto.
28152
28153 2019-05-10 Richard Biener <rguenther@suse.de>
28154
28155 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28156 (do_rpo_vn): Initialize next_value_id.
28157
28158 2019-05-10 Martin Liska <mliska@suse.cz>
28159
28160 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28161 Fix plural form.
28162
28163 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28164
28165 PR tree-optimization/90385
28166 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28167 arguments of the exit phis.
28168
28169 PR c++/90383
28170 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28171 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28172 id->do_not_fold.
28173 (copy_tree_body_r): Likewise.
28174 (copy_fn): Set id.do_not_fold to true.
28175
28176 2019-05-10 Martin Liska <mliska@suse.cz>
28177
28178 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28179 Reapply changes from r269790.
28180
28181 2019-05-10 Martin Liska <mliska@suse.cz>
28182
28183 PR middle-end/90340
28184 * doc/invoke.texi: New params.
28185 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28186 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28187 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28188 Use it.
28189 * tree-switch-conversion.h (struct jump_table_cluster):
28190 Likewise.
28191
28192 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28193
28194 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28195
28196 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28197
28198 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28199
28200 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28201
28202 PR rtl-optimization/88879
28203 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28204
28205 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28206
28207 PR target/90405
28208 * config/arm/arm.c (callee_saved_reg_p): Move before
28209 thumb_find_work_register.
28210 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28211 thumb_find_work_register. Only call df_get_live_out once.
28212 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28213 (thumb_find_work_register): Use
28214 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28215 algorithms to locate a spare call clobbered reg.
28216
28217 2019-05-09 Martin Liska <mliska@suse.cz>
28218
28219 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28220 and MAX_EXPR in GIMPLE FE format.
28221
28222 2019-05-09 Martin Liska <mliska@suse.cz>
28223
28224 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28225 * gimple-pretty-print.c (dump_gimple_bb_header):
28226 Dump BB count.
28227 (pp_cfg_jump): Dump edge probability.
28228 * profile-count.c (profile_quality_as_string): Simplify
28229 with a static array.
28230 (parse_profile_quality): New function.
28231 (profile_count::dump): Simplify with a static array.
28232 (profile_count::from_gcov_type): Add new argument.
28233 * profile-count.h (parse_profile_quality): Likewise.
28234 * predict.h (set_hot_bb_threshold): New.
28235 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28236 New param.
28237 * predict.c (get_hot_bb_threshold): Set from the new param.
28238 (set_hot_bb_threshold): New.
28239
28240 2019-05-09 Richard Biener <rguenther@suse.de>
28241
28242 PR tree-optimization/90395
28243 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28244 rewrite vector stores that throw internally.
28245
28246 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28247
28248 * cif-code.def (CHKP): Remove.
28249
28250 PR target/89221
28251 * configure.ac (--enable-frame-pointer): Disable by default for
28252 GNU systems.
28253 * configure: Regenerate.
28254
28255 2019-05-09 Alan Modra <amodra@gmail.com>
28256
28257 PR target/89271
28258 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28259 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28260 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28261 cost for general <-> vsx when direct moves are available.
28262 Cost union classes at minimal cost for any reg in the class.
28263 Correct calculation for moves between vsx, float, and altivec.
28264 Don't return a low cost for moves between special regs. Don't
28265 use hard coded register numbers.
28266 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28267 (rs6000_ira_change_pseudo_allocno_class): New function.
28268 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28269 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28270 alternatives.
28271 (movsi_internal1): Don't disparage vector alternatives.
28272 (mov<mode>_internal): Likewise, excepting alternative that
28273 will be split.
28274 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28275 we <- b alternative.
28276
28277 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28278
28279 PR c++/59813
28280 PR tree-optimization/89060
28281 * tree-ssa-live.h (live_vars_map): New typedef.
28282 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28283 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28284 (struct compute_live_vars_data): New type.
28285 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28286 live_vars_at_stmt, destroy_live_vars): New functions.
28287 * tree-tailcall.c: Include tree-ssa-live.h.
28288 (live_vars, live_vars_vec): New global variables.
28289 (find_tail_calls): Perform variable life analysis before punting.
28290 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28291 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28292 member.
28293 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28294 Perform variable life analysis to select variables that really need
28295 clobbers added.
28296 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28297 instead set id->eh_landing_pad_dest and assert it is the same.
28298 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28299
28300 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28301 Richard Earnshaw <rearnsha@arm.com>
28302
28303 PR target/88167
28304 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28305 function.
28306 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28307 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28308 register if both the epilogue and prologue can use call-clobbered
28309 regs.
28310 (thumb1_unexpanded_epilogue): Use
28311 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28312 picking temporaries for restoring high regs to match that of the
28313 prologue where possible.
28314 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28315 the list of work registers. Detect if the return address is still live
28316 at the end of the prologue and avoid using it for a work register if so.
28317 If the return address is not live, add LR to the list of pushable regs
28318 after the first pass.
28319
28320 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28321
28322 PR tree-optimization/90078
28323 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28324 (INFTY): Increase the value for infinite cost.
28325 (struct comp_cost): Promote type of members to int64_t.
28326 (infinite_cost): Don't set complexity in initialization.
28327 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28328 overflows to infinite_cost.
28329 (adjust_setup_cost): Promote type of parameter and cost computation
28330 to int64_t.
28331 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28332 int64_t.
28333 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28334 cost computation to int64_t.
28335 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28336 int64_t's format specifier in dump.
28337
28338 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28339
28340 PR tree-optimization/90240
28341 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28342 with respect to scaling factor pre-computed for each basic block.
28343 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28344 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28345 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28346 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28347 live range for array of loop's basic blocks. Cleanup aux field of
28348 loop's basic blocks.
28349
28350 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28351
28352 PR tree-optimization/90356
28353 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28354
28355 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28356
28357 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28358 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28359 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28360 (ix86_handle_option): Handle -mavx512bf16.
28361 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28362 to extra_headers.
28363 * config/i386/avx512bf16vlintrin.h: New.
28364 * config/i386/avx512bf16intrin.h: New.
28365 * config/i386/cpuid.h (bit_AVX512BF16): New.
28366 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28367 * config/i386/i386-builtin-types.def: Add new types.
28368 * config/i386/i386-builtin.def: Add new builtins.
28369 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28370 __AVX512BF16__.
28371 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28372 (ix86_option_override_internal): Handle BF16.
28373 (ix86_valid_target_attribute_inner_p): Ditto.
28374 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28375 * config/i386/i386-builtin.c (enum processor_features): Add
28376 F_AVX512BF16.
28377 (static const _isa_names_table isa_names_table): Ditto.
28378 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28379 (PTA_AVX512BF16): Ditto.
28380 * config/i386/i386.opt: Add -mavx512bf16.
28381 * config/i386/immintrin.h: Include avx512bf16intrin.h
28382 and avx512bf16vlintrin.h.
28383 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28384 avx512f_cvtneps2bf16_<mode><mask_name>,
28385 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28386 * config/i386/subst.md (mask_half): Add new subst.
28387 * doc/invoke.texi: Document -mavx512bf16.
28388
28389 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28390
28391 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28392 Delete declaration.
28393 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28394 (rs6000_debug_legitimize_reload_address): Delete.
28395 (rs6000_legitimize_reload_address_ptr): Delete.
28396 (rs6000_option_override_internal): Adjust.
28397 (mem_operand_gpr): Adjust comment.
28398 (legitimate_lo_sum_address_p): Ditto.
28399 (rs6000_legitimize_reload_address): Delete.
28400 (rs6000_debug_legitimize_reload_address): Delete.
28401 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28402
28403 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28404
28405 PR target/89765
28406 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28407 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28408 to compute vector element selector for both constant and variable
28409 operands.
28410
28411 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28412
28413 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28414 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28415 ashrdi3_cvt using SWI48 mode iterator.
28416
28417 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28418
28419 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28420 (aarch64_<su>abd<mode>_3): Likewise.
28421 (*aarch64_<su>abd<mode>_3): New define_insn.
28422 (<sur>sad<vsi2qi>): New define_expand.
28423 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28424 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28425 (build_vect_cond_expr): Likewise.
28426
28427 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28428
28429 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28430 clobbers outside of accessible_reg_set.
28431 * config/i386/i386.c (ix86_conditional_register_usage):
28432 Disable register sets by clearing corresponding bits in
28433 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28434 call_used_regs and don't clear corresponding reg_names array members.
28435
28436 2019-05-07 Richard Biener <rguenther@suse.de>
28437
28438 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28439 not specified still compute a comp_vectype for invariant
28440 compares.
28441
28442 2019-05-07 Richard Biener <rguenther@suse.de>
28443
28444 PR tree-optimization/90316
28445 * tree-ssa-pre.c (translate_vuse_through_block): When
28446 same_valid is NULL do not bother to search for a virtual
28447 PHI continuation.
28448 (phi_translate_1): When operands changed we cannot keep
28449 the same value-number so do not bother to ask whether
28450 that's possible from translate_vuse_through_block.
28451
28452 2019-05-07 Martin Liska <mliska@suse.cz>
28453
28454 * bitmap.c (bitmap_register): Come up with
28455 alloc_descriptor_max_uid and assign it for
28456 a new bitmap.
28457 (register_overhead): Use get_descriptor as
28458 a descriptor.
28459 (release_overhead): New.
28460 (bitmap_elem_to_freelist): Call it.
28461 (bitmap_elt_clear_from): Likewise.
28462 (bitmap_obstack_free): Likewise.
28463 (bitmap_move): Sensitively release memory.
28464 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28465 (bitmap_initialize): Initialize alloc_descriptor to zero.
28466 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28467
28468 2019-05-07 Richard Biener <rguenther@suse.de>
28469
28470 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28471 we build a SLP node. Remove max_size and limiting.
28472 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28473
28474 2019-05-07 Richard Biener <rguenther@suse.de>
28475
28476 PR tree-optimization/90316
28477 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28478 limit by reference.
28479 (walk_non_aliased_vuses): Take walking limit argument.
28480 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28481 walking if it is reached instead of just counting.
28482 (get_continuation_for_phi): Likewise.
28483 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28484 limiting to the callback.
28485 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28486 (vn_reference_lookup_3): Likewise.
28487 (vn_reference_lookup_pieces): Likewise.
28488 (vn_reference_lookup): Likewise.
28489 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28490 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28491 (avail_exprs_stack::lookup_avail_expr): Likewise.
28492
28493 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28494
28495 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28496 for comparaible types in the second direction even if first one
28497 hits incomparable type.
28498
28499 2019-05-07 Richard Biener <rguenther@suse.de>
28500
28501 PR lto/90369
28502 * lto-wrapper.c (debug_objcopy): Use the original filename
28503 including archive offset for the filename used for -save-temps.
28504
28505 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28506
28507 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28508 detection.
28509
28510 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28511 Hongtao Liu <hongtao.liu@intel.com>
28512
28513 PR target/89750
28514 PR target/86444
28515 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28516 Modified, original implementation isn't correct.
28517
28518 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28519
28520 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28521 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28522 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28523 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28524 (FRAME_POINTER_REGNUM): Change numbering.
28525 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28526 (alt_reg_names): Adjust.
28527 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28528 fixed.
28529 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28530 (DWARF_FRAME_REGISTERS): Delete.
28531 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28532 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28533 Adjust.
28534 (REG_ALLOC_ORDER): Adjust.
28535 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28536 (REG_CLASS_CONTENTS): Adjust.
28537 (RETURN_ADDR_RTX): Change comment.
28538 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28539 instead of 67.
28540 (REGISTER_NAMES): Adjust.
28541 (ADDITIONAL_REGISTER_NAMES): Adjust.
28542 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28543
28544 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28545
28546 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28547 Delete.
28548 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28549 (DWARF_FRAME_REGISTERS): Adjust.
28550 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28551 Adjust.
28552 (REG_ALLOC_ORDER): Adjust.
28553 (enum reg_class): Delete SPR_REGS.
28554 (REG_CLASS_NAMES): Delete SPR_REGS.
28555 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28556 (REGISTER_NAMES): Adjust.
28557 (ADDITIONAL_REGISTER_NAMES): Adjust.
28558 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28559 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28560 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28561 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28562 (htm_spr_regno): Delete.
28563 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28564 argument.
28565 (rs6000_dbx_register_number): Adjust.
28566
28567 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28568
28569 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28570
28571 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28572
28573 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28574 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28575
28576 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28577
28578 PR tree-optimization/88709
28579 PR tree-optimization/90271
28580 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28581 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28582 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28583 variable.
28584 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28585 of the store merging group is larger than
28586 PARAM_STORE_MERGING_MAX_SIZE parameter.
28587 (split_group): Add bzero_first argument. If set, always emit first
28588 the first store which must be = {} of the whole area and then for the
28589 rest of the stores consider all zero bytes as paddings.
28590 (imm_store_chain_info::output_merged_store): Check if first store
28591 is = {} of the whole area and if yes, determine which setting of
28592 bzero_first for split_group gives smaller number of stores. Adjust
28593 split_group callers.
28594 (lhs_valid_for_store_merging_p): Allow decls.
28595 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28596 no elts.
28597 (pass_store_merging::process_store): Likewise.
28598
28599 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28600
28601 PR target/89424
28602 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28603 handling of V1TImode.
28604
28605 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28606
28607 PR target/89221
28608 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28609 and enable_frame_pointer ...
28610 * configure.ac: ... here. Update help strings for
28611 --enable-frame-pointer.
28612 * configure: Regenerate.
28613 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28614 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28615 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28616 (USE_X86_64_FRAME_POINTER): Ditto.
28617
28618 2019-05-06 Martin Liska <mliska@suse.cz>
28619
28620 * config.gcc: Append to target_gtfiles and fix indentation.
28621
28622 2019-05-06 Richard Biener <rguenther@suse.de>
28623
28624 PR tree-optimization/90358
28625 * tree-vect-stmts.c (get_group_load_store_type): Properly
28626 detect unused upper half of load.
28627 (vectorizable_load): Likewise.
28628
28629 2019-05-06 Richard Biener <rguenther@suse.de>
28630
28631 PR tree-optimization/88828
28632 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28633 (simplify_vector_constructor): ...here. Handle constants in
28634 the constructor.
28635
28636 2019-05-06 Richard Biener <rguenther@suse.de>
28637
28638 PR tree-optimization/90328
28639 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28640 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28641 is valid in the loop nest before using it.
28642 (initialize_data_dependence_relation): Adjust.
28643 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28644 loop as loop-nest to dr_may_alias_p.
28645
28646 2019-05-06 Richard Biener <rguenther@suse.de>
28647
28648 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28649
28650 2019-05-06 Richard Biener <rguenther@suse.de>
28651
28652 PR tree-optimization/90316
28653 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28654 compute target on demand.
28655 (get_continuation_for_phi): Remove code walking stmts to
28656 get to a target virtual operand which could end up being
28657 quadratic.
28658
28659 2019-05-06 Martin Liska <mliska@suse.cz>
28660
28661 PR sanitizer/90312
28662 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28663 when -mabi is selected to a non-default version.
28664
28665 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28666 Martin Liska <mliska@suse.cz>
28667
28668 * Makefile.in: Add lto-dump.texi.
28669 * cgraph.h: Add new functions get_visibility_string and
28670 get_symtab_type_string.
28671 * doc/gcc.texi: Include lto-dump section.
28672 * doc/lto-dump.texi: New file.
28673 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28674 (parse_dump_option): Factor out this function.
28675 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28676 (parse_dump_option): Export the function.
28677 * symtab.c (symtab_node::get_visibility_string): New function.
28678 (symtab_node::get_symtab_type_string): Likewise.
28679
28680 2019-05-06 Martin Liska <mliska@suse.cz>
28681
28682 * config/i386/i386-builtins.c: New file.
28683 * config/i386/i386-builtins.h: New file.
28684 * config/i386/i386-expand.c: New file.
28685 * config/i386/i386-expand.h: New file.
28686 * config/i386/i386-features.c: New file.
28687 * config/i386/i386-features.h: New file.
28688 * config/i386/i386-options.c: New file.
28689 * config/i386/i386-options.h: New file.
28690 * config.gcc: Add new files into extra_objs and
28691 target_gtfiles.
28692 * config/i386/i386.c: Split content of the file
28693 into newly introduced files.
28694 * config/i386/i386.h: Declare common variables
28695 and macros.
28696 * config/i386/t-i386: Define dependencies for new files.
28697
28698 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28699
28700 PR target/89400
28701 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28702 Restrict 'all' variant to 32-bit configurations.
28703 (unaligned_loadhiu): Likewise.
28704 (unaligned_storehi): Likewise.
28705 (unaligned_storesi): Likewise.
28706 (unaligned_loadhis): Disable when compiling for thumb1.
28707
28708 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28709
28710 PR tree-optimization/90269
28711 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28712 Ignore clobbers.
28713
28714 2019-05-03 Martin Liska <mliska@suse.cz>
28715
28716 * hash-map.h: Add is_empty function.
28717 * hash-set.h: Likewise.
28718 * hash-table.h: Likewise.
28719 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28720 elements () == 0 (and similar usages).
28721 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28722 * gimplify.c (gimplify_bind_expr): Likewise.
28723 (gimplify_switch_expr): Likewise.
28724 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28725 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28726 * postreload-gcse.c (dump_hash_table): Likewise.
28727 (gcse_after_reload_main): Likewise.
28728 * predict.c (combine_predictions_for_bb): Likewise.
28729 * tree-parloops.c (reduction_phi): Likewise.
28730 (separate_decls_in_region): Likewise.
28731 (transform_to_exit_first_loop): Likewise.
28732 (gen_parallel_loop): Likewise.
28733 (gather_scalar_reductions): Likewise.
28734 (try_create_reduction_list): Likewise.
28735 * var-tracking.c (dump_vars): Likewise.
28736 (emit_notes_for_changes): Likewise.
28737 (vt_emit_notes): Likewise.
28738
28739 2019-05-03 Richard Biener <rguenther@suse.de>
28740
28741 PR tree-optimization/90316
28742 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28743 before running VN.
28744
28745 2019-05-03 Richard Biener <rguenther@suse.de>
28746
28747 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28748 peeling for gaps by loading only lower halves of vectors
28749 if possible.
28750 (vectorizable_load): Likewise.
28751
28752 2019-05-03 Richard Biener <rguenther@suse.de>
28753
28754 PR middle-end/89518
28755 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28756
28757 2019-05-03 Richard Biener <rguenther@suse.de>
28758
28759 PR middle-end/87314
28760 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28761 Handle STRING_CST vs DECL or STRING_CST.
28762
28763 2019-05-03 Richard Biener <rguenther@suse.de>
28764
28765 PR tree-optimization/88963
28766 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28767 vector loads feeding only BIT_FIELD_REFs to component
28768 loads. Rewrite stores fed by CONSTRUCTORs to component
28769 stores.
28770
28771 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28772
28773 * opts.h (finish_options): Remove lang_mask argument.
28774 (print_help, help_option_argument): Declare.
28775 * opts.c (print_help): Remove forward declaration, no longer static.
28776 (finish_options): Remove lang_mask argument, don't call print_help
28777 here.
28778 * opts-global.c (decode_options): Adjust finish_option caller, call
28779 print_help here.
28780
28781 PR tree-optimization/90303
28782 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28783 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28784
28785 2019-05-03 Richard Biener <rguenther@suse.de>
28786
28787 PR tree-optimization/89698
28788 * gimple-fold.c (canonicalize_constructor_val): Early out
28789 for constants, handle unfolded INTEGER_CSTs as they appear in
28790 C++ virtual table ctors.
28791
28792 2019-05-03 Richard Biener <rguenther@suse.de>
28793
28794 * passes.c (execute_function_todo): Remove dead code.
28795
28796 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28797
28798 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28799 the internal register number, for any "real" register.
28800
28801 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28802
28803 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28804 correct numbers for TFHAR, TFIAR, TEXASR.
28805
28806 2019-05-02 Richard Biener <rguenther@suse.de>
28807
28808 PR tree-optimization/89653
28809 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28810 update-address-taken before the pass.
28811 * passes.def (pass_tree_loop_init): Put comment before it.
28812
28813 2019-05-02 Richard Biener <rguenther@suse.de>
28814
28815 PR tree-optimization/89509
28816 * tree-ssa-structalias.c (compute_dependence_clique): Look
28817 at the first subvar when determining whether it is restrict.
28818
28819 2019-05-02 Richard Biener <rguenther@suse.de>
28820
28821 PR tree-optimization/90273
28822 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28823 useless debug stmts.
28824
28825 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28826
28827 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28828 ACLE branch.
28829 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28830 SVE ACLE branch.
28831 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28832 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28833 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28834 (vectorizable_reduction): Use the functions above to vectorize in a
28835 fully masked loop codes that don't have a conditional internal
28836 function.
28837
28838 2019-05-02 Martin Liska <mliska@suse.cz>
28839
28840 * cgraphclones.c: Call valid_attribute_p with 1 for
28841 target_clone.
28842 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28843 it's for target attribute.
28844 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28845 Add new boolean argument.
28846 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28847 Likewise.
28848 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28849 to ix86_valid_target_attribute_inner_p.
28850 (ix86_valid_target_attribute_p): Pass flags argument to
28851 ix86_valid_target_attribute_inner_p.
28852 (get_builtin_code_for_version): Use 0 as it's target attribute.
28853
28854 2019-05-02 Martin Liska <mliska@suse.cz>
28855
28856 * gcc.c (process_command): Add dummy file only
28857 if n_infiles == 0.
28858 * opts-global.c (decode_options): Pass lang_mask.
28859 * opts.c (print_help): New function.
28860 (finish_options): Print --help if help_option_argument
28861 is set.
28862 (common_handle_option): Factor out content of OPT__help_
28863 into print_help.
28864 * opts.h (finish_options): Add new argument.
28865
28866 2019-05-02 Martin Liska <mliska@suse.cz>
28867
28868 PR target/88809
28869 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28870 With -minline-all-stringops use inline expansion using 4B loop.
28871 * doc/invoke.texi: Document the change of
28872 -minline-all-stringops.
28873
28874 2019-05-01 Jeff Law <law@redhat.com>
28875
28876 PR tree-optimization/88797
28877 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28878 PHI feeds a conditional on the RHS of an assignment.
28879
28880 2019-04-30 Andrew Waterman <andrew@sifive.com>
28881 Jim Wilson <jimw@sifive.com>
28882
28883 * config/riscv/constraints.md (L): New.
28884 * config/riscv/predicates.md (lui_operand): New.
28885 (sfb_alu_operand): New.
28886 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28887 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28888 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28889 * config/riscv/risc.md (type): Add sfb_alu.
28890 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28891 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28892 (branch_zero<mode>): Delete.
28893 (mov<mode>cc): New.
28894 (mov<GPR:mode><X:mode>cc): Likewise.
28895 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28896
28897 2019-04-30 Nathan Sidwell <nathan@acm.org>
28898
28899 * tree.h (MARK_TS_EXP): New.
28900
28901 2019-04-30 Martin Liska <mliska@suse.cz>
28902
28903 * opts.c (enable_warning_as_error): Provide hints
28904 for unknown options.
28905
28906 2019-04-30 Martin Liska <mliska@suse.cz>
28907
28908 PR debug/90288
28909 * doc/invoke.texi: Add missing dash for gas-locview-support
28910 and gno-as-locview-support.
28911
28912 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28913
28914 PR target/89093
28915 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28916 whitespace at the start of target attribute string.
28917
28918 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28919
28920 PR target/86538
28921 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28922 Define __ARM_FEATURE_ATOMICS.
28923
28924 2019-04-30 Martin Liska <mliska@suse.cz>
28925
28926 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28927 into built_in_function enum. Remove code for endp == 2 and
28928 use BUILT_IN_* constants.
28929 (gimple_fold_builtin): Call the function with fcode.
28930
28931 2019-04-30 Martin Liska <mliska@suse.cz>
28932
28933 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28934 DECL_FUNCTION_CODE into ix86_builtins enum before
28935 the switch statement.
28936
28937 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28938
28939 PR tree-optimization/89475
28940 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28941 calls.
28942
28943 2019-04-30 Martin Liska <mliska@suse.cz>
28944
28945 PR translation/90274
28946 * opts.c (print_filtered_help): Wrap string in _(...).
28947
28948 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28949
28950 PR tree-optimization/90240
28951 Revert:
28952 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28953
28954 PR tree-optimization/90078
28955 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28956 checks for infinite_cost overflow.
28957
28958 2019-04-29 Jeff Law <law@redhat.com>
28959
28960 * passes.def: Move -Wrestrict pass after copy propagation.
28961
28962 2019-04-29 Maya Rashish <coypu@sdf.org>
28963
28964 * config.gcc (default_gnu_indirect_function): Default to yes
28965 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28966 sparc*-*-netbsd*, x86_64-*-netbsd*.
28967
28968 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28969
28970 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28971 where cond2 is NE_EXPR.
28972 (is_value_included_in): Update comment.
28973
28974 2019-04-29 Richard Biener <rguenther@suse.de>
28975
28976 PR tree-optimization/90278
28977 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28978 EH on comparison simplification.
28979
28980 2019-04-29 Jason Merrill <jason@redhat.com>
28981
28982 PR c++/82081 - tail call optimization breaks noexcept
28983 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28984 nothrow function to a might-throw function into a tail call.
28985
28986 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28987
28988 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28989 (DDR_INNER_LOOP): Likewise.
28990 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28991 (initialize_data_dependence_relation): Likewise.
28992 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28993
28994 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28995
28996 PR rtl-optimization/90257
28997 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28998 return value.
28999
29000 Revert the revert:
29001 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29002
29003 PR target/90178
29004 Revert:
29005 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29006
29007 Revert the revert:
29008 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29009
29010 Revert:
29011 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29012
29013 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29014
29015 2019-04-29 Richard Biener <rguenther@suse.de>
29016
29017 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29018 rhs issue a reset.
29019
29020 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
29021
29022 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
29023 varasm.h, and netbsd-protos.h.
29024
29025 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
29026
29027 PR target/89261
29028 * config/i386/i386-protos.h (ix86_data_alignment): Change
29029 the second argument type to unsigned int.
29030 * config/i386/i386.c (ix86_data_alignment): Change "align"
29031 argument type to unsigned int.
29032
29033 2019-04-27 Martin Liska <mliska@suse.cz>
29034
29035 PR middle-end/90258
29036 * opt-suggestions.c (option_proposer::build_option_suggestions):
29037 When get_valid_option_values returns empty values, add the
29038 misspelling candidate.
29039
29040 2019-04-26 Jim Wilson <jimw@sifive.com>
29041
29042 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29043 parameter.
29044 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29045 Pass orig_mode to riscv_build_integer.
29046 (riscv_split_integer): Pass mode to riscv_move_integer.
29047 (riscv_legitimize_const_move): Likewise.
29048 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29049 promoted_mode. Replace force_reg call with code to load constant into
29050 promoted reg and then subreg it for the store.
29051 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29052 riscv_move_integer.
29053
29054 2018-04-26 Eugene Sharygin <eush@ispras.ru>
29055
29056 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29057 corrupt codes.
29058
29059 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
29060
29061 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29062 commentary about the encoding of precision.
29063
29064 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
29065
29066 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29067 * config/i386/t-freebsd64: New file.
29068 * config.gcc: Add the t-freebsd64 for multilib support.
29069
29070 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
29071
29072 * doc/extend.texi (vector_size): Add missing comma after @xref.
29073
29074 2019-04-25 Jakub Jelinek <jakub@redhat.com>
29075
29076 * BASE-VER: Set to 10.0.0.
29077
29078 2019-04-25 Richard Biener <rguenther@suse.de>
29079
29080 PR middle-end/89765
29081 * gimplify.c (gimplify_expr): Avoid turning a lvalue
29082 VIEW_CONVERT_EXPR into one operating on an rvalue.
29083
29084 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
29085
29086 PR target/89929
29087 * config/i386/i386.c (feature_priority): Moved to file scope.
29088 (processor_features): Likewise.
29089 (processor_model): Likewise.
29090 (_arch_names_table): Likewise.
29091 (arch_names_table): Likewise.
29092 (_feature_list): Removed.
29093 (feature_list): Likewise.
29094 (_isa_names_table): Moved to file scope. Add priority.
29095 (isa_names_table): Likewise.
29096 (get_builtin_code_for_version): Replace feature_list with
29097 isa_names_table. Update error message for P_ZERO priority.
29098
29099 2019-04-25 Richard Biener <rguenther@suse.de>
29100
29101 * tree-pass.h (make_pass_phi_only_cprop): Remove.
29102 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29103
29104 2019-04-24 Jeff Law <law@redhat.com>
29105
29106 PR tree-optimization/90037
29107 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29108 * passes.def: Replace all instance of phi-only cprop with the
29109 lattice propagator. Move propagation pass from after erroneous
29110 path isolation to before erroneous path isolation.
29111 * tree-ssa-phionlycprop.c: Remove.
29112
29113 2019-04-24 Richard Biener <rguenther@suse.de>
29114
29115 PR middle-end/90213
29116 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29117 by size and BITS_PER_UNIT on poly-wide-ints.
29118
29119 2019-04-25 Richard Biener <rguenther@suse.de>
29120
29121 PR middle-end/90194
29122 * match.pd: Add pattern to simplify view-conversion of an
29123 empty constructor.
29124
29125 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29126
29127 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29128 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29129 for Go on 32 bit AIX.
29130 * config/rs6000/aix72.h: Likewise.
29131
29132 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29133
29134 PR target/90193
29135 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29136 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29137
29138 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29139
29140 PR target/89952
29141 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29142 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29143 for restored hard frame pointer.
29144 (s390_sched_dependencies_evaluation): Implement new target hook.
29145 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29146
29147 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29148
29149 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29150 * config/arc/arc.c (arc_init): Cleanup warning message.
29151 (arc_override_options): Likewise.
29152
29153 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29154
29155 PR target/90187
29156 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29157 a register if both if_true and if_false are MEMs.
29158
29159 PR tree-optimization/90208
29160 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29161 after labels of new_bb, not before them.
29162
29163 PR tree-optimization/90211
29164 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29165 which are not SSA_NAMEs.
29166
29167 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29168
29169 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29170 AArch64.
29171 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29172
29173 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29174
29175 PR rtl-optimization/87979
29176 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29177 not equal zero.
29178
29179 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29180
29181 PR rtl-optimization/84032
29182 * modulo-sched.c (ps_insn_find_column): Change condition so that
29183 branch will always be the last insn in a row inside partial
29184 schedule.
29185
29186 2019-04-23 Richard Biener <rguenther@suse.de>
29187
29188 PR debug/90131
29189 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29190 dest_single_pred_p argument.
29191 (remove_forwarder_block): Adjust.
29192 (remove_forwarder_block_with_phi): Likewise.
29193
29194 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29195 Bernd Edlinger <bernd.edlinger@hotmail.de>
29196 Jakub Jelinek <jakub@redhat.com>
29197
29198 PR target/89093
29199 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29200 if used with general-regs-only.
29201 (arm_conditional_register_usage): Don't add non-general regs if
29202 general-regs-only.
29203 (arm_valid_target_attribute_rec): Handle general-regs-only.
29204 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29205 general-regs-only.
29206 (TARGET_HARD_FLOAT_SUB): Define.
29207 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29208 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29209 (TARGET_REALLY_IWMMXT2): Likewise.
29210 * config/arm/arm.opt: Add -mgeneral-regs-only.
29211 * doc/extend.texi: Document ARM general-regs-only target.
29212 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29213
29214 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29215
29216 PR tree-optimization/90078
29217 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29218 checks for infinite_cost overflow.
29219
29220 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29221
29222 PR tree-optimization/90021
29223 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29224 and check univariate against it.
29225 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29226 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29227
29228 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29229
29230 PR target/90178
29231 Revert:
29232 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29233
29234 Revert the revert:
29235 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29236
29237 Revert:
29238 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29239
29240 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29241
29242 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29243
29244 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29245 names using operand format, rather than hard-wired.
29246 (speculation_barrier): Likewise.
29247
29248 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29249
29250 PR tree-optimization/88055
29251 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29252 (gen_one_condition): Use it if !HONOR_NANS.
29253
29254 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29255
29256 PR middle-end/90139
29257 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29258 assign_temp instead of gen_reg_rtx.
29259
29260 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29261
29262 PR translation/90118
29263 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29264 Add missing space before %<.
29265
29266 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29267
29268 PR rtl-optimization/87871
29269 * ira-lives.c (make_object_dead): Don't add conflicts to
29270 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29271
29272 2019-04-18 Martin Sebor <msebor@redhat.com>
29273
29274 PR middle-end/89797
29275 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29276 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29277 assuming type size fits in SHWI.
29278
29279 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29280
29281 PR ipa/85051
29282 * ipa-inline.c (flatten_function): New parameter UPDATE.
29283 (ipa_inline, early_inliner): Use it.
29284
29285 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29286
29287 * fold-const.c (int_const_binop): Return early on failure.
29288
29289 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29290
29291 PR middle-end/85164
29292 * combine.c (force_int_to_mode): Cast the argument rather than
29293 the result of known_alignment.
29294 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29295
29296 2019-04-18 Richard Biener <rguenther@suse.de>
29297
29298 PR debug/90131
29299 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29300 out from ...
29301 (remove_forwarder_block): ... here.
29302 (remove_forwarder_block_with_phi): Also move debug stmts here.
29303
29304 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29305
29306 PR translation/79183
29307 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29308 inform where appropriate.
29309
29310 2019-04-18 Richard Biener <rguenther@suse.de>
29311
29312 * tree.c (get_qualified_type): Put found type variants at the
29313 head of the variant list.
29314
29315 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29316
29317 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29318
29319 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29320
29321 PR target/90125
29322 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29323 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29324 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29325 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29326 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29327
29328 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29329
29330 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29331 even for allocno's with no conflicts.
29332 (print_conflicts): Print an extra newline.
29333
29334 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29335
29336 * auto-inc-dec.c (attempt_change): Set the alignment of the
29337 temporary memory to that of the original.
29338
29339 2019-04-17 Joao Moreira <jmoreira@suse.de>
29340
29341 * targhooks.c (default_print_patchable_function_entry): Emit
29342 __patchable_function_entries section with writable flags to allow
29343 relocation resolution.
29344
29345 2019-04-17 Jonny Grant <jg@jguk.org>
29346
29347 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29348
29349 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29350
29351 PR middle-end/90095
29352 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29353 on lowpart SUBREGs.
29354
29355 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29356
29357 * config/arc/arc.c (arc_init): Format diagnostic string.
29358 (arc_override_options): Likewise.
29359 (check_if_valid_regno_const): Likewise.
29360 (arc_reorg): Likewise.
29361
29362 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29363
29364 PR target/17108
29365 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29366 name.
29367 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29368 name.
29369 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29370 (*movdi_update1): Use Pmode.
29371 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29372 (movdi_<mode>_update_stack): Rename to ...
29373 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29374 use Pmode.
29375 (*movsi_update1): Use Pmode.
29376 (*movsi_update2): Use Pmode.
29377 (movsi_update): Rename to ...
29378 (movsi_<mode>_update): ... this. Use Pmode.
29379 (movsi_update_stack): Fix condition.
29380 (*movhi_update1): Use Pmode. Fix argument to
29381 avoiding_indexed_address_p.
29382 (*movhi_update2): Ditto.
29383 (*movhi_update3): Ditto.
29384 (*movhi_update4): Ditto.
29385 (*movqi_update1): Ditto.
29386 (*movqi_update2): Ditto.
29387 (*movqi_update3): Ditto.
29388 (*movsf_update1, *movdf_update1): Merge, rename to...
29389 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29390 avoiding_indexed_address_p. Add "size" attribute.
29391 (*movsf_update2, *movdf_update2): Merge, rename to...
29392 (*mov<mode>_update2): This. Ditto.
29393 (*movsf_update3): Use Pmode. Fix argument to
29394 avoiding_indexed_address_p.
29395 (*movsf_update4): Ditto.
29396 (allocate_stack): Simplify condition. Adjust pattern names.
29397
29398 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29399
29400 PR target/89093
29401 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29402 whitespace at the start of target attribute string.
29403
29404 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29405
29406 PR target/84369
29407 * config/rs6000/power9.md: Add store forwarding bypass.
29408
29409 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29410
29411 PR debug/89528
29412 * valtrack.c (dead_debug_insert_temp): Reset debug references
29413 to the return value of a call being removed.
29414
29415 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29416
29417 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29418 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29419 implement target hook.
29420 (arc_memory_move_cost): New function.
29421 (TARGET_REGISTER_MOVE_COST): Define.
29422 (TARGET_MEMORY_MOVE_COST): Likewise.
29423 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29424 (MEMORY_MOVE_COST): Likewise.
29425
29426 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29427
29428 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29429 (sibcall_value_insn): Likewise.
29430 * config/arc/constraints.md (Rs5): Remove.
29431
29432 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29433
29434 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29435 for last two fake registers.
29436 (arc_conditional_register_usage): Make sure fake frame and arg
29437 pointer regs are in general regs class.
29438 (FRAME_POINTER_MASK): Remove.
29439 (RETURN_ADDR_MASK): Remove.
29440 (arc_must_save_register): Use hard frame regnum.
29441 (frame_restore_reg): Use hard_frame_pointer_rtx.
29442 (arc_save_callee_saves): Likewise.
29443 (arc_restore_callee_saves): Likewise.
29444 (arc_save_callee_enter): Likewise.
29445 (arc_restore_callee_leave): Likewise.
29446 (arc_save_callee_milli): Likewise.
29447 (arc_eh_return_address_location): Likewise.
29448 (arc_check_multi): Use hard frame regnum.
29449 (arc_can_eliminate): Likewise.
29450 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29451 for register allocator.
29452 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29453 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29454 (FRAME_POINTER_REGNUM): Change it to a fake register.
29455 (HARD_FRAME_POINTER_REGNUM): Defined.
29456 (ARG_POINTER_REGNUM): Change it to a new fake register.
29457 (ELIMINABLE_REGS): Update.
29458 (REGISTER_NAMES): Update names.
29459 * config/arc/arc.md (LP_START): Remove.
29460 (LP_END): Likewise.
29461 (shift_si3_loop): Update pattern.
29462
29463 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29464
29465 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29466 to avoid delay slot scheduling.
29467 (arc_must_save_register): Don't save SP.
29468 * config/arc/arc.md (stack_tie): Remove.
29469 (UNSPEC_ARC_STKTIE): Likewise.
29470
29471 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29472 Shiva Chen <shiva0217@gmail.com>
29473
29474 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29475 code gen with large shift amount.
29476
29477 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29478
29479 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29480 subreg.
29481
29482 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29483
29484 PR target/90096
29485 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29486 print -m64/-mx32/-m32 if it is true.
29487 (ix86_debug_options, ix86_function_specific_print): Pass true as
29488 ADD_ABI_P to ix86_target_string.
29489 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29490 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29491 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29492
29493 PR rtl-optimization/90082
29494 * dce.c (can_delete_call): New function.
29495 (deletable_insn_p, mark_insn): Use it.
29496
29497 PR tree-optimization/90090
29498 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29499 throw internally.
29500 (is_division_by_square): Likewise. Formatting fix.
29501
29502 2019-04-16 Richard Biener <rguenther@suse.de>
29503
29504 PR tree-optimization/56049
29505 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29506 equality check if alias-set zero will prevail.
29507
29508 2019-04-15 Jeff Law <law@redhat.com>
29509
29510 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29511 size and alignment as unsigned.
29512
29513 2019-04-15 Richard Biener <rguenther@suse.de>
29514
29515 PR debug/90074
29516 * tree-loop-distribution.c (destroy_loop): Preserve correct
29517 debug info.
29518
29519 2019-04-15 Richard Biener <rguenther@suse.de>
29520
29521 PR tree-optimization/90071
29522 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29523 abnormal operands from def stmts.
29524
29525 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29526
29527 PR rtl-optimization/89794
29528 * combine.c (count_auto_inc): New function.
29529 (try_combine): Count how many auto_inc expressions there were in the
29530 original instructions. Ensure we have the same number in the new
29531 instructions. Remove the code that tried to ensure auto_inc side
29532 effects on i1 and i0 are not lost.
29533
29534 2019-04-15 Richard Biener <rguenther@suse.de>
29535
29536 PR ipa/88936
29537 * tree.h (auto_var_p): Declare.
29538 * tree.c (auto_var_p): New function, split out from ...
29539 (auto_var_in_fn_p): ... here.
29540 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29541 member.
29542 (new_var_info): Initialize it.
29543 (set_uids_in_ptset): Also set the shadow variable uid if required.
29544 (ipa_pta_execute): Postprocess points-to solutions assigning
29545 shadow variable uids for locals that may reach their containing
29546 function recursively.
29547 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29548 assert but instead check whether the points-to solution is
29549 a singleton.
29550
29551 2019-04-15 Martin Jambor <mjambor@suse.cz>
29552
29553 PR ipa/pr89693
29554 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29555 the thunk chain.
29556
29557 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29558
29559 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29560
29561 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29562 Kito Cheng <kito.cheng@gmail.com>
29563 Shiva Chen <shiva0217@gmail.com>
29564
29565 * config/nds32/nds32-md-auxiliary.c
29566 (nds32_legitimize_pic_address): Use new PIC pattern.
29567 (nds32_legitimize_tls_address): Use new TLS pattern.
29568 (nds32_output_symrel): New.
29569 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29570 (nds32_alloc_relax_group_id): Ditto.
29571 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29572 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29573 relax_group_id.
29574 (nds32_group_tls_insn): Ditto.
29575 (nds32_group_float_insns): Ditto.
29576 * config/nds32/nds32.md (tls_le): New.
29577 (sym_got): Ditto.
29578
29579 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29580
29581 * configure: Add nds32 target for dwarf2 debug_line checking.
29582 * configure.ac: Regenerated.
29583
29584 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29585
29586 PR lto/89358
29587 * ipa-devirt.c (skip_in_fields_list_p): New.
29588 (odr_types_equivalent_p): Use it.
29589
29590 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29591
29592 PR target/89093
29593 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29594 instead of strncmp when checking for thumb and arm. Formatting fixes.
29595
29596 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29597
29598 * doc/install.texi: Document --with-target-system-zlib.
29599
29600 2019-04-12 Martin Sebor <msebor@redhat.com>
29601
29602 PR c/88383
29603 PR c/89288
29604 PR c/89798
29605 PR c/89797
29606 * targhooks.c (default_vector_alignment): Avoid assuming
29607 argument fits in SHWI.
29608 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29609 a shift expression.
29610 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29611
29612 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29613
29614 PR rtl-optimization/89965
29615 * dce.c: Include rtl-iter.h.
29616 (struct check_argument_load_data): New type.
29617 (check_argument_load): New function.
29618 (find_call_stack_args): Check for loads from stack slots still tracked
29619 in sp_bytes and punt if any is found.
29620
29621 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29622
29623 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29624
29625 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29626 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29627
29628 2019-04-12 Martin Liska <mliska@suse.cz>
29629
29630 PR middle-end/89970
29631 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29632 in error message.
29633 (separate_attrs): Handle multiple 'default's.
29634 (expand_target_clones): Rework error handling code.
29635
29636 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29637
29638 PR target/87532
29639 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29640 mode of vector rather than mode of destination for move instruction.
29641 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29642 Use QI inner mode with V16QI vector mode.
29643
29644 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29645
29646 PR target/52726
29647 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29648 "invalid %%t operand" in output_operand_lossage message.
29649
29650 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29651
29652 * config/s390/predicates.md (permute_pattern_operand): New
29653 predicate.
29654 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29655 operand for the permute pattern.
29656 ("*vec_perm<mode>"): New insn definition.
29657 ("bswap<mode>"): Generate the permute pattern operand in the
29658 expander and perform the operand reloads for pre arch13 level
29659 already.
29660 ("*bswap<mode>_emu"): Rename to ...
29661 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29662 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29663 Add the USE operand for the permute pattern.
29664 ("*vec_set_bswap_vec<mode>"): Likewise.
29665
29666 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29667
29668 PR c/89946
29669 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29670 and gcc_unreachable if it fails, just call tree_to_uhwi which
29671 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29672 Start warning message with a lower-case letter. Formatting fixes.
29673
29674 PR rtl-optimization/90026
29675 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29676 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29677 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29678 in cfglayout mode, use emit_barrier_after_bb.
29679
29680 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29681
29682 PR rtl-optimization/87763
29683 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29684 New Instruction.
29685
29686 2019-04-11 Tom de Vries <tdevries@suse.de>
29687
29688 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29689 max macro using statement expression.
29690
29691 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29692
29693 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29694 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29695 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29696 read_only_private_data_section using xcoff_private_rodata_section_name.
29697 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29698
29699 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29700
29701 PR target/90016
29702 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29703
29704 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29705
29706 PR rtl-optimization/89965
29707 * dce.c (sp_based_mem_offset): New function.
29708 (find_call_stack_args): Use sp_based_mem_offset.
29709
29710 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29711
29712 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29713
29714 2019-04-11 Richard Biener <rguenther@suse.de>
29715
29716 PR tree-optimization/90020
29717 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29718 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29719 * tree-ssa-pre.c (compute_avail): Use it to not put
29720 possibly trapping references after a call that might not
29721 return into EXP_GEN.
29722 * gcse.c (compute_hash_table_work): Do not elide
29723 marking a block containing a call if the call might not
29724 return.
29725
29726 2019-04-11 Richard Biener <rguenther@suse.de>
29727
29728 PR tree-optimization/90018
29729 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29730 Test both SLP and interleaving variants.
29731
29732 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29733
29734 * config/s390/8561.md: New file.
29735 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29736 Add arch13 cpu model.
29737 * config/s390/s390-opts.h (enum processor_type): Likewise.
29738 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29739 (s390_get_unit_mask): Likewise.
29740 (s390_is_fpd): Likewise.
29741 (s390_is_fxd): Likewise.
29742 * config/s390/s390.h (s390_tune_attr): Likewise.
29743 * config/s390/s390.md: Include arch13 pipeline description.
29744 * config/s390/s390.opt: Add arch13.
29745
29746 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29747
29748 PR rtl-optimization/87763
29749 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29750 New prototype.
29751 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29752 New function.
29753 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29754 New instruction.
29755 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29756 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29757 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29758 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29759
29760 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29761
29762 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29763 "Although" in -fipa-icf documentation.
29764
29765 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29766 of using multiple -g options.
29767
29768 2019-04-10 Martin Liska <mliska@suse.cz>
29769
29770 PR gcov-profile/89959
29771 * doc/gcov.texi: Make documentation of -x option
29772 more precise.
29773
29774 2019-04-10 Richard Biener <rguenther@suse.de>
29775
29776 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29777 member.
29778 (DR_GROUP_SAME_DR_STMT): Remove.
29779 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29780 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29781 replace with assert.
29782 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29783 (vect_record_grouped_load_vectors): Remove unreachable code.
29784
29785 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29786
29787 PR target/90016
29788 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29789 obsolete reference to N.
29790
29791 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29792
29793 PR middle-end/90025
29794 * expr.c (store_expr): Set properly size on the MEM passed to
29795 clear_storage.
29796
29797 PR c++/90010
29798 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29799 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29800 translation is needed, and when translation is needed, only append
29801 ... if the string length is hostsz or more bytes long. Avoid using
29802 strncpy or strcat.
29803
29804 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29805
29806 PR target/90024
29807 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29808 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29809 into three.
29810 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29811 differences directly.
29812 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29813
29814 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29815
29816 PR translation/90011
29817 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29818 from diagnostics.
29819 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29820 diagnostics.
29821 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29822 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29823 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29824 trailing space from -gsplit-dwarf diagnostics.
29825
29826 PR tree-optimization/89998
29827 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29828 instead of integer_type_node if possible, don't add ranges if return
29829 type is not compatible with int.
29830 * gimple-fold.c (gimple_fold_builtin_sprintf,
29831 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29832 integer_type_node.
29833
29834 2019-04-09 Martin Liska <mliska@suse.cz>
29835
29836 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29837 * doc/install.texi: Document the new config.
29838
29839 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29840
29841 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29842 use gimple_expr_type for load and store calls. Skip over the
29843 condition argument in a conditional internal function.
29844 Protect use of TREE_INT_CST_LOW.
29845
29846 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29847
29848 PR target/90015
29849 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29850 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29851 trailing period from it too.
29852
29853 2019-04-08 wu yuan <wuyuan5@huawei.com>
29854
29855 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29856 * config/aarch64/aarch64.md: Add "tsv110.md".
29857 * config/aarch64/tsv110.md: New file.
29858
29859 2019-04-08 Richard Biener <rguenther@suse.de>
29860
29861 PR tree-optimization/90006
29862 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29863 calls like lrint.
29864
29865 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29866
29867 PR target/83033
29868 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29869 construction.
29870 (fma_root_node): Likewise.
29871 (func_fma_steering): Likewise.
29872
29873 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29874
29875 PR rtl-optimization/89865
29876 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29877
29878 PR rtl-optimization/89865
29879 * config/i386/i386.md
29880 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29881 numbers not to clash with the additional operands[4].
29882 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29883 with extra register copy in the middle.
29884
29885 2019-04-08 Martin Liska <mliska@suse.cz>
29886
29887 PR gcov-profile/89961
29888 * doc/gcov.texi: Document data_file.
29889 * gcov.c (generate_results): Add data_info into JSON output.
29890
29891 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29892
29893 PR tree-optimization/89725
29894 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29895 loop's chrec as invariant symbol.
29896 * tree-chrec.h (chrec_contains_symbols): New parameter.
29897 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29898 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29899 function of loops not in DDR's loop_nest.
29900 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29901
29902 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29903
29904 PR target/89623
29905 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29906 Mask.
29907
29908 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29909
29910 PR target/89945
29911 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29912 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29913
29914 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29915
29916 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29917 targetm.fixed_condition_code_regs.
29918
29919 2019-04-05 Richard Biener <rguenther@suse.de>
29920
29921 PR debug/89892
29922 PR debug/89905
29923 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29924 debug bind stmts but reset them if they are not valid at the
29925 destination.
29926
29927 2019-04-05 Martin Liska <mliska@suse.cz>
29928
29929 PR translation/89936
29930 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29931 order to wrap keywords or arguments.
29932 * collect2.c (main): Likewise.
29933 (scan_prog_file): Likewise.
29934 (scan_libraries): Likewise.
29935 * common/config/riscv/riscv-common.c
29936 (riscv_subset_list::parsing_subset_version): Likewise.
29937 (riscv_subset_list::parse_std_ext): Likewise.
29938 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29939 Likewise.
29940 * config/arm/arm.c (arm_option_override): Likewise.
29941 * config/cris/cris.c (cris_print_operand): Likewise.
29942 * config/darwin-c.c (darwin_pragma_options): Likewise.
29943 (darwin_pragma_unused): Likewise.
29944 (darwin_pragma_ms_struct): Likewise.
29945 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29946 * config/i386/i386.c (print_reg): Likewise.
29947 (ix86_print_operand): Likewise.
29948 * config/i386/xm-djgpp.h: Likewise.
29949 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29950 * config/m32c/m32c.c (m32c_option_override): Likewise.
29951 * config/msp430/msp430.c (msp430_option_override): Likewise.
29952 * config/nds32/nds32.c (nds32_option_override): Likewise.
29953 * config/nvptx/mkoffload.c (main): Likewise.
29954 * config/rx/rx.c (rx_print_operand): Likewise.
29955 (valid_psw_flag): Likewise.
29956 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29957 (vms_pragma_nomember_alignment): Likewise.
29958 (vms_pragma_extern_model): Likewise.
29959 * lto-wrapper.c (compile_offload_image): Likewise.
29960 * omp-offload.c (oacc_parse_default_dims): Likewise.
29961 * symtab.c (symtab_node::verify_base): Likewise.
29962 * tlink.c (recompile_files): Likewise.
29963 (start_tweaking): Likewise.
29964 * tree-profile.c (parse_profile_filter): Likewise.
29965
29966 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29967
29968 PR tree-optimization/89956
29969 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29970 multiple negates of the same value.
29971
29972 2019-04-04 Martin Sebor <msebor@redhat.com>
29973
29974 PR middle-end/89957
29975 PR middle-end/89911
29976 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29977 have the same precision since the function crashes otherwise.
29978 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29979 has non-zero arguments.
29980
29981 2019-04-04 Martin Sebor <msebor@redhat.com>
29982
29983 PR middle-end/89934
29984 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29985 out if the number of arguments is less than expected.
29986
29987 2019-04-04 Jeff Law <law@redhat.com>
29988
29989 PR rtl-optimization/89399
29990 * ree.c (combine_set_extension): Use single_set rather than
29991 digging into PATTERN for items on the candidate list.
29992 (combine_reaching_defs): Likewise.
29993
29994 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29995
29996 PR rtl-optimization/46590
29997 * loop-invariant.c (find_defs): Move df_remove_problem and
29998 df_process_deferred_rescans to move_invariants.
29999 Move df_live_add_problem and df_live_set_all_dirty calls
30000 to move_invariants.
30001 (move_invariants): Likewise.
30002 (move_loop_invariants): Likewise, making the df_live calls
30003 conditional on -O. Remove the problem again if we added it
30004 locally.
30005
30006 2019-04-03 qing zhao <qing.zhao@oracle.com>
30007
30008 PR tree-optimization/89730
30009 * ipa-inline.c (can_inline_edge_p): Delete the checking for
30010 -flive-patching=inline-only-static.
30011 (can_inline_edge_by_limits_p): Add the checking for
30012 -flive-patching=inline-only-static and grant always_inline
30013 even when -flive-patching=inline-only-static is specified.
30014
30015 2019-04-03 Jeff Law <law@redhat.com>
30016
30017 PR rtl-optimization/81025
30018 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30019
30020 2019-04-03 Richard Biener <rguenther@suse.de>
30021
30022 PR tree-optimization/84101
30023 * tree-vect-stmts.c: Include explow.h for hard_function_value,
30024 regs.h for hard_regno_nregs.
30025 (cfun_returns): New helper.
30026 (vect_model_store_cost): When vectorizing a store to a decl
30027 we return and the function ABI returns in a multi-reg location
30028 account for the possible spilling that will happen.
30029
30030 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
30031
30032 * config/s390/s390.c (s390_legitimate_address_p): Reject long
30033 displacement addresses for vector mode operands.
30034
30035 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
30036
30037 * config/arc/arc.c (GMASK_LEN): Define.
30038 (arc_restore_callee_saves): Restore first blink when
30039 !optimize_size.
30040
30041 2019-04-03 Sudakshina Das <sudi.das@arm.com>
30042
30043 * doc/extend.texi: Add deprecated comment on sign-return-address
30044 function attribute and add mbranch-protection.
30045 * doc/invoke.texi: Add bti to the options for mbranch-protection.
30046
30047 2019-04-03 Richard Biener <rguenther@suse.de>
30048
30049 PR lto/89896
30050 * lto-wrapper.c (run_gcc): Avoid implicit rules making
30051 the all target phony.
30052
30053 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
30054
30055 PR target/89902
30056 PR target/89903
30057 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30058 Return false for variable DImode shifts.
30059 (dimode_scalar_chain::compute_convert_gain): Do not handle
30060 register count operand in variable DImode shifts.
30061 (dimode_scalar_chain::make_vector_copies): Remove support to copy
30062 count argument of a variable shift instruction to a vector register.
30063 (dimode_scalar_chain::convert_reg): Remove support to convert
30064 count argument of a variable shift instruction.
30065
30066 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30067
30068 PR rtl-optimization/84206
30069 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30070 iterating over loop headers.
30071
30072 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30073
30074 PR rtl-optimization/85876
30075 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30076 beyond the original fence.
30077
30078 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
30079
30080 * config.gcc: Mark spu* targets as deprecated/obsolete.
30081
30082 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30083
30084 * config/s390/s390-builtin-types.def: New builtin function type
30085 definitions. Remove unused types.
30086 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30087 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30088 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30089 overloaded builtins.
30090 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30091 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30092 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30093 (vec_double, vec_signed, vec_unsigned): Define to use the new
30094 overloaded builtins.
30095 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30096 Remove expanders.
30097
30098 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30099
30100 * config/s390/s390-builtin-types.def: New builtin function type
30101 definitions.
30102 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30103 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30104 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30105 (s390_vstrszh, s390_vstrszf): New low-level builtins.
30106 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30107 constant definitions.
30108 * config/s390/vecintrin.h (vec_search_string_cc)
30109 (vec_search_string_until_zero_cc): New builtin name definitions.
30110 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30111 expanders.
30112 ("vec_vstrs<mode>"): New insn definition.
30113
30114 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30115
30116 * config/s390/s390-builtin-types.def: Add new builtin function
30117 types.
30118 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30119 New overloaded builtins.
30120 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30121 s390_vsrd.
30122 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30123 (UNSPEC_VEC_SLDBYTE): ... this.
30124 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30125 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30126 definitions.
30127 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30128 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30129 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30130
30131 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30132
30133 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30134 New insn definition.
30135 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30136 * config/s390/vector.md (V_HW_HSD): ... here.
30137
30138 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30139
30140 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30141 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30142 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30143 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30144 New insn definitions.
30145
30146 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30147
30148 * config/s390/s390-builtin-types.def: Add new builtin function type.
30149 * config/s390/s390-builtins.def: Add overloaded builtin
30150 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30151 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30152 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30153 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30154 ("eltswap<mode>"): New expander.
30155 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30156 insn definitions.
30157
30158 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30159
30160 * config/s390/s390-builtin-types.def: Add new builtin function types.
30161 * config/s390/s390-builtins.def: Add overloaded builtin
30162 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30163 instructions.
30164 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30165 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30166 ("bswap<mode>"): New expander.
30167 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30168
30169 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30170
30171 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30172 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30173 vector builtin version number in __VEC__.
30174
30175 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30176
30177 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30178 iterators.
30179 (SFSI): New mode attribute.
30180 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30181 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30182 rename to ...
30183 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30184 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30185 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30186 ("floatsi<mode>2"): Add wcefb instruction.
30187
30188 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30189
30190 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30191 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30192 mode iterators.
30193 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30194 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30195 support 32 bit fp-int conversions. Rename to ...
30196 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30197 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30198 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30199 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30200 ... to these.
30201
30202 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30203
30204 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30205 if-then-else constructs if we can use the select instruction.
30206 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30207
30208 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30209
30210 * config/s390/s390.md ("*popcountdi_arch13_cc")
30211 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30212 definition.
30213 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30214 Append _z196 to make it ...
30215 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30216 ("popcounthi2_z196"): ... this.
30217 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30218 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30219
30220 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30221
30222 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30223 certain compares for arch13 in order to make use of the condition
30224 code result produced by the new instructions.
30225 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30226 nxrk, and nxgrk instruction patterns.
30227 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30228 (inv_no): Add new code iterator together with some attributes.
30229 ("*andc_split_<mode>"): Disable splitter for arch13.
30230 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30231 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30232 ("*<ANDOR:bitops_name>c<GPR:mode>")
30233 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30234 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30235 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30236 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30237
30238 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30239
30240 * common/config/s390/s390-common.c (processor_flags_table): New
30241 entry for arch13.
30242 * config.gcc: Support arch13 with the --with-arch= configure flag.
30243 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30244 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30245 * config/s390/s390.c (s390_get_sched_attrmask)
30246 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30247 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30248 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30249 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30250 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30251 definitions.
30252 * config/s390/s390.opt: Support arch13 as processor type in
30253 command line options.
30254
30255 2019-04-02 Martin Liska <mliska@suse.cz>
30256
30257 PR translation/89912
30258 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30259 Fix param description of graphite-max-arrays-per-scop.
30260
30261 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30262
30263 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30264 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30265 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30266
30267 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30268
30269 PR rtl-optimization/85412
30270 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30271 sel_sched_region_1, not after.
30272
30273 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30274
30275 PR rtl-optimization/86928
30276 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30277 compute_live if necessary.
30278 (sel_redirect_edge_and_branch): Likewise.
30279
30280 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30281
30282 PR rtl-optimization/89865
30283 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30284 register if it is a part of small class.
30285
30286 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30287
30288 PR rtl-optimization/87273
30289 * sel-sched-ir.c (merge_fences): Remove assert.
30290
30291 2019-04-01 Richard Biener <rguenther@suse.de>
30292
30293 PR tree-optimization/46590
30294 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30295 (dom_walker::m_reachability): Add in place of...
30296 (dom_walker::m_skip_unreachable_blocks): ...this.
30297 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30298 Move complex initialization ...
30299 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30300 lazily and initialize edge flags on each invocation.
30301 (dom_walker::bb_reachable): Use m_reachability.
30302
30303 2019-04-01 Martin Liska <mliska@suse.cz>
30304
30305 PR driver/89861
30306 * opt-suggestions.c (option_proposer::build_option_suggestions):
30307 Add variant without any argument in order to provide better
30308 hints.
30309
30310 2019-04-01 Richard Biener <rguenther@suse.de>
30311
30312 PR c/71598
30313 * gimple.c: Include langhooks.h.
30314 (gimple_get_alias_set): Treat enumeral types as the underlying
30315 integer type.
30316
30317 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30318 Eric Botcazou <ebotcazou@adacore.com>
30319
30320 PR rtl-optimization/89862
30321 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30322 that operates on the full registers for WORD_REGISTER_OPERATIONS
30323 architectures.
30324
30325 2019-03-29 Jim Wilson <jimw@sifive.com>
30326
30327 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30328 Clear MASK_RVC and then set if C subset supported.
30329
30330 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30331
30332 PR c/89872
30333 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30334 non-addressable complit into its initializer if it is volatile.
30335
30336 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30337
30338 * opts-common.c (integral_argument): Set errno properly in one case.
30339
30340 2019-03-29 Martin Liska <mliska@suse.cz>
30341
30342 * doc/invoke.texi: Remove -Wchkp from documentation.
30343
30344 2019-03-29 Martin Liska <mliska@suse.cz>
30345
30346 * dbgcnt.c (print_limit_reach): New function.
30347 (dbg_cnt): Use it.
30348
30349 2019-03-29 Martin Liska <mliska@suse.cz>
30350
30351 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30352 (dbg_cnt_process_opt): Parse first tokens aas
30353 dbg_cnt_process_single_pair is also using strtok.
30354
30355 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30356
30357 PR rtl-optimization/87485
30358 * function.c (expand_function_end): Move stack_protect_epilogue
30359 before loading of return value into hard register(s).
30360
30361 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30362
30363 PR middle-end/89621
30364 * tree-inline.h (struct copy_body_data): Add
30365 dont_remap_vla_if_no_change flag.
30366 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30367 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30368 and remap_type_2 returns false.
30369 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30370 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30371 only from where it is copied to nested contexts.
30372
30373 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30374
30375 PR target/89865
30376 * config/i386/i386.md (RMW operation with LEA peephole):
30377 Use LEAMODE mode attribute instead of SWI mode iterator for
30378 LEA pattern.
30379
30380 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30381
30382 PR target/89848
30383 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30384 Also process XEXP (src, 0) of a shift insn.
30385
30386 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30387
30388 PR middle-end/89725
30389 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30390 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30391
30392 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30393
30394 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30395 test.
30396 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30397 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30398 immediately after first one with df_analyze in between, but rather
30399 process all bbs, queueing ones that need second pass in a worklist,
30400 df_analyze, process queued debug insn changes and if second pass is
30401 needed, process bbs from worklist, df_analyze, process queued debug
30402 insns again.
30403
30404 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30405 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30406 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30407
30408 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30409
30410 PR c/79022
30411 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30412 definition.
30413
30414 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30415
30416 PR target/85667
30417 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30418 function for 32-bit MS_ABI.
30419 (function_value_ms_32): New function.
30420
30421 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30422
30423 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30424 (movdi): Call gen_movdi_symbol_save_scc.
30425 (gen_movdi_symbol_save_scc): New insn and split.
30426
30427 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30428
30429 PR rtl-optimization/89313
30430 * function.c (matching_constraint_num): New static function.
30431 (match_asm_constraints_1): Use it. Fixup white space and comment.
30432 Don't replace inputs with non-matching constraints which conflict
30433 with early clobber outputs.
30434
30435 2019-03-27 Jeff Law <law@redhat.com>
30436
30437 PR rtl-optimization/87761
30438 PR rtl-optimization/89826
30439 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30440 slightly later.
30441 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30442 note problem to get REG_DEAD/REG_UNUSED notes updated.
30443
30444 2019-03-27 Richard Biener <rguenther@suse.de>
30445
30446 PR tree-optimization/89463
30447 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30448 queue edges to remove.
30449 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30450 dead stmts. Delay edge removal until PHIs are removed to
30451 make debug-stmt creation not confused by seemingly degenerate
30452 PHIs.
30453
30454 2019-03-27 Alan Modra <amodra@gmail.com>
30455
30456 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30457 throughout file.
30458 * config/rs6000/darwin.h: Likewise.
30459 * config/rs6000/rs6000.c: Likewise.
30460
30461 2019-03-27 Alan Modra <amodra@gmail.com>
30462
30463 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30464 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30465
30466 2019-03-26 Andrew Waterman <andrew@sifive.com>
30467 Jim Wilson <jimw@sifive.com>
30468
30469 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30470 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30471 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30472 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30473 (generic_alu): Add auipc to type list.
30474 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30475 (riscv_microarchitecture): Declare.
30476 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30477 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30478 field.
30479 (riscv_microarchitecture): New.
30480 (sifive_7_tune_info): New.
30481 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30482 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30483 entries.
30484 (riscv_store_data_bypass_p): New.
30485 (riscv_option_override): Set riscv_microarchitecture from
30486 cpu->microarchitecture.
30487 * config/riscv/riscv.md: Include sifive-7.md.
30488 (type): Add auipc.
30489 (tune): New.
30490 (auipc<mode>): Change type to auipc.
30491 (restore_stack_nonlocal): New.
30492 * config/riscv/sifive-7.md: New.
30493 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30494
30495 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30496
30497 PR target/89827
30498 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30499 Also process XEXP (src, 0) of a shift insn.
30500
30501 2019-03-26 Richard Biener <rguenther@suse.de>
30502
30503 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30504 (copy_debug_stmt): Likewise.
30505 (expand_call_inline): Likewise.
30506 (copy_bb): Avoid redundant lookup & set of gimple_block.
30507 * gimple-low.c (lower_gimple_return): Likewise.
30508 (lower_builtin_setjmp): Likewise.
30509
30510 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30511
30512 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30513 is constant 0, turn into static const data member initialized to false.
30514 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30515 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30516
30517 2019-03-26 Jason Merrill <jason@redhat.com>
30518 Jakub Jelinek <jakub@redhat.com>
30519
30520 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30521 method.
30522 (mem_alloc_description::release_object_overhead): Fix comment typos.
30523 * hash-table.h (hash_table::~hash_table): Call
30524 release_instance_overhead only if m_entries is non-NULL, otherwise
30525 call unregister_descriptor.
30526
30527 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30528
30529 PR tree-optimization/81740
30530 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30531 In case of outer loop vectorization, check for backward dependence
30532 at the inner loop if outer loop dependence is reversed.
30533
30534 2019-03-26 Alan Modra <amodra@gmail.com>
30535
30536 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30537 rs6000_vector_mem init. Correct wI and wJ comment.
30538
30539 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30540
30541 PR rtl-optimization/88347
30542 PR rtl-optimization/88423
30543 * sched-deps.c (sched_analyze_insn): Take into account that for
30544 tablejumps the barrier appears after a label and a jump_table_data.
30545
30546 2019-03-25 Martin Sebor <msebor@redhat.com>
30547
30548 PR c/89812
30549 * c-common.c (check_user_alignment): Rename local. Correct maximum
30550 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30551 convert it to UHWI when it fits.
30552
30553 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30554
30555 PR debug/86964
30556 * dwarf2out.c (premark_used_variables): New function.
30557 (prune_unused_types_walk): Do not mark not premarked external
30558 variables.
30559 (prune_unused_types): Call premark_used_variables.
30560
30561 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30562
30563 PR rtl-optimization/89676
30564 * lra-constraints.c (curr_insn_transform): Do match reload for
30565 early clobbers when the match was successful only for different
30566 registers.
30567
30568 2019-03-25 Martin Sebor <msebor@redhat.com>
30569
30570 * doc/extend.texi (Common Type Attributes): Document vector_size.
30571 (Common Variable Attributes): Mention size constraint. Correct
30572 quoting and typos.
30573 (Vector Extensions): Use @dfn when defining bas type. Clarify
30574 base type and size constraints.
30575
30576 2019-03-25 Richard Biener <rguenther@suse.de>
30577
30578 PR tree-optimization/89789
30579 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30580 changes from non-undefined back to undefined.
30581
30582 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30583
30584 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30585 heap string and a gc string, but since this variable is unknown to
30586 ggc the gc string might get reused and corrupted. Fixed by always
30587 using a heap string.
30588
30589 2019-03-25 Richard Biener <rguenther@suse.de>
30590
30591 PR tree-optimization/89779
30592 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30593 to remove IV defs, delay actual removal.
30594 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30595 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30596 very end, properly also reset loop control IV information.
30597
30598 2019-03-25 Richard Biener <rguenther@suse.de>
30599
30600 PR tree-optimization/89802
30601 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30602 move EH data to folded stmt.
30603
30604 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30605
30606 * config/s390/s390-builtin-types.def: Remove few unused types and
30607 fix sort order for others.
30608
30609 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30610
30611 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30612 expected and found types with -mdebug during builtin matching.
30613
30614 2019-03-25 Richard Biener <rguenther@suse.de>
30615
30616 PR middle-end/89790
30617 * fold-const.c (operand_equal_p): Revert last change with
30618 updated comment.
30619
30620 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30621
30622 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30623 notes for the result of the __tls_get_addr calls.
30624 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30625
30626 2019-03-24 Jeff Law <law@redhat.com>
30627
30628 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30629
30630 PR rtl-optimization/87761
30631 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30632 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30633 as needed.
30634 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30635 rescans. Reprocess blocks as needed, calling df_analyze before
30636 reprocessing. Always call df_analyze before fixing up debug bind
30637 insns.
30638
30639 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30640
30641 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30642 big endian.
30643
30644 2019-03-22 Andrew Pinski <apinski@marvell.com>
30645
30646 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30647 attrribute for uxtw.
30648
30649 2019-03-26 Jeff Law <law@redhat.com>
30650
30651 PR rtl-optimization/87761
30652 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30653 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30654 (mips_split_move): Accept new INSN argument. Try to forward SRC
30655 into the next instruction.
30656 (mips_split_move_insn): Pass INSN through to mips_split_move.
30657
30658 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30659
30660 PR rtl-optimization/89676
30661 * lra-constraints.c (curr_insn_transform): Do match reload for
30662 early clobbers even if the match was successful.
30663
30664 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30665
30666 PR c++/87481
30667 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30668
30669 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30670
30671 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30672
30673 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30674
30675 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30676 <avx512>_fmsub_<mode>_mask3<round_name>,
30677 <avx512>_fnmadd_<mode>_mask3<round_name>,
30678 <avx512>_fnmsub_<mode>_mask3<round_name>,
30679 avx512f_vmfmadd_<mode>_mask3<round_name>,
30680 avx512f_vmfmsub_<mode>_mask3<round_name>,
30681 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30682 instead of register_operand and %v instead of v for match_operand 1.
30683 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30684 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30685 <round_nimm_predicate> instead of register_operand and %v instead of v
30686 for match_operand 1.
30687
30688 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30689 <avx512>_fmadd_<mode>_mask3<round_name>,
30690 <avx512>_fmsub_<mode>_mask<round_name>,
30691 <avx512>_fmsub_<mode>_mask3<round_name>,
30692 <avx512>_fnmadd_<mode>_mask<round_name>,
30693 <avx512>_fnmadd_<mode>_mask3<round_name>,
30694 <avx512>_fnmsub_<mode>_mask<round_name>,
30695 <avx512>_fnmsub_<mode>_mask3<round_name>,
30696 <avx512>_fmaddsub_<mode>_mask<round_name>,
30697 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30698 <avx512>_fmsubadd_<mode>_mask<round_name>,
30699 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30700 <round_nimm_predicate> instead of nonimmediate_operand.
30701 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30702 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30703 Use register_operand instead of <round_nimm_predicate> for the
30704 operand that needs to match output.
30705 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30706 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30707 Likewise. Formatting fixes.
30708
30709 PR target/89784
30710 * config/i386/i386.c (enum ix86_builtins): Remove
30711 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30712 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30713 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30714 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30715 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30716 __builtin_ia32_vfmsubss3_mask3): New builtins.
30717 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30718 avx512f_vmfmadd_<mode>_mask3<round_name>,
30719 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30720 *avx512f_vmfmsub_<mode>_mask<round_name>,
30721 avx512f_vmfmsub_<mode>_mask3<round_name>,
30722 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30723 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30724 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30725 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30726 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30727 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30728 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30729 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30730 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30731 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30732 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30733 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30734 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30735 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30736 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30737 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30738 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30739 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30740 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30741 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30742 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30743 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30744 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30745 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30746 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30747 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30748 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30749 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30750
30751 2019-03-21 Martin Sebor <msebor@redhat.com>
30752
30753 PR tree-optimization/89350
30754 * builtins.c (compute_objsize): Also ignore offsets whose upper
30755 bound is negative.
30756 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30757 (builtin_memref::builtin_memref): Initialize new member.
30758 Allow EXPR to be null.
30759 (builtin_memref::extend_offset_range): Replace local with a member.
30760 Avoid assuming pointer offsets are unsigned.
30761 (builtin_memref::set_base_and_offset): Determine base object
30762 before computing offset range.
30763 (builtin_access::builtin_access): Handle memset.
30764 (builtin_access::generic_overlap): Replace local with a member.
30765 (builtin_access::strcat_overlap): Same.
30766 (builtin_access::overlap): Same.
30767 (maybe_diag_overlap): Same.
30768 (maybe_diag_access_bounds): Same.
30769 (wrestrict_dom_walker::check_call): Handle memset.
30770 (check_bounds_or_overlap): Same.
30771
30772 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30773 Jakub Jelinek <jakub@redhat.com>
30774
30775 PR lto/89692
30776 * tree.c (fld_type_variant, fld_incomplete_type_of,
30777 fld_process_array_type): Call fld->pset.add and don't call
30778 add_tree_to_fld_list if it returns true.
30779 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30780 non-marked types from TYPE_NEXT_VARIANT list.
30781 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30782
30783 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30784
30785 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30786 to false, if true, don't alloc_entries during construction, but defer
30787 it to the first method that needs m_entries allocated.
30788 (hash_table::hash_table, hash_table::~hash_table,
30789 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30790 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30791 hash_table::clear_slot, hash_table::traverse_noresize,
30792 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30793 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30794 false.
30795 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30796 NO_INSERT instead of find_with_hash.
30797 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30798 hash_set::m_table): Add Lazy to template params of hash_table.
30799 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30800 * attribs.c (test_attribute_exclusions): Likewise.
30801 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30802 hash_set. Add tests for hash_set with Lazy = true.
30803
30804 2019-03-21 Richard Biener <rguenther@suse.de>
30805
30806 PR tree-optimization/89779
30807 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30808 checks with respect to released SSA names now having error_mark_node
30809 type.
30810 * fold-const.c (operand_equal_p): Likewise.
30811
30812 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30813
30814 PR target/89775
30815 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30816 available to ...
30817 (s390_optimize_register_info): Use global_not_special_regno_p to
30818 check for global regs.
30819
30820 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30821
30822 PR target/89752
30823 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30824 update this_alternative nor this_alternative_set.
30825
30826 2019-03-19 Jim Wilson <jimw@sifive.com>
30827
30828 PR target/89411
30829 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30830 align, size, offset. Use them to handle a BLKmode reference. Update
30831 comment.
30832 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30833
30834 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30835
30836 PR rtl-optimization/89768
30837 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30838 instead of GEN_INT.
30839 (unroll_loop_runtime_iterations): Likewise.
30840
30841 2019-03-19 Martin Sebor <msebor@redhat.com>
30842
30843 PR tree-optimization/89644
30844 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30845 rather than endptr as an indicator of nul-termination.
30846
30847 PR tree-optimization/89644
30848 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30849 arrays in determining sequence sizes in strncpy and stpncpy.
30850
30851 2019-03-19 Martin Liska <mliska@suse.cz>
30852
30853 PR middle-end/89737
30854 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30855 unlikely_edges if there's an edge that belongs to both these sets.
30856
30857 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30858
30859 PR target/89746
30860 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30861 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30862 go via a stack temporary.
30863
30864 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30865
30866 PR target/89378
30867 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30868 instead of gen_rtx_SUBREG.
30869 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30870
30871 2019-03-19 Richard Biener <rguenther@suse.de>
30872
30873 PR debug/88389
30874 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30875
30876 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30877
30878 PR lto/87809
30879 PR lto/89335
30880 * tree.c (free_lang_data_in_decl): Do not free context of C++
30881 destrutors.
30882
30883 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30884
30885 PR target/89506
30886 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30887 subs for the first alternative except when operands[3] is 1.
30888
30889 PR target/89752
30890 * gimplify.c (gimplify_asm_expr): For output argument with
30891 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30892 diagnose error.
30893
30894 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30895
30896 PR rtl-optimization/89753
30897 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30898 explicit unrolling factor even more robust.
30899
30900 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30901
30902 PR target/89726
30903 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30904 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30905 signed zeros, do another copysign after the compensation.
30906
30907 2019-03-18 Martin Sebor <msebor@redhat.com>
30908
30909 PR tree-optimization/89720
30910 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30911 more conservatively, the same as anti-range.
30912
30913 2019-03-18 Richard Biener <rguenther@suse.de>
30914
30915 PR middle-end/88945
30916 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30917 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30918 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30919 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30920
30921 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30922
30923 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30924 Extend queue to 1024 entries.
30925 Add "consumed" field.
30926 (gomp_print_output): Remove print_index parameter.
30927 Add final parameter.
30928 Change limit to unsigned.
30929 Use consumed field to implement circular buffer.
30930 Detect interrupted print in final pass.
30931 Flush output at the end.
30932 (run): Update gomp_print_output usage.
30933 (main): Initialize kernargs->output_data.consumed.
30934
30935 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30936
30937 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30938 calculation of the minimum number of scalar iterations for
30939 fully-predicated loops.
30940
30941 2019-03-18 Martin Jambor <mjambor@suse.cz>
30942
30943 PR tree-optimization/89546
30944 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30945 any propagation to its children took place.
30946
30947 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30948
30949 PR target/89627
30950 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30951 parameter, and make use of it.
30952 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30953
30954 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30955
30956 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30957 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30958 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30959 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30960 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30961 match what the ops is doing.
30962 (push_multi_fp_blink): Likewise.
30963 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30964 compiling for size and elf target.
30965 (arc_save_callee_enter): Adjust note to match what enter/leave
30966 operation does.
30967
30968 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30969
30970 * config/arc/arc.md (tst_movb): Fix constraint.
30971
30972 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30973
30974 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30975
30976 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30977
30978 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30979 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30980 reg_alloc_order references.
30981 (size_alloc_order): Define.
30982 (arc_adjust_reg_alloc_order): New function.
30983 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30984 order.
30985 (ADJUST_REG_ALLOC_ORDER): Define.
30986 (HONOR_REG_ALLOC_ORDER): Likewise.
30987
30988 2019-03-18 Richard Biener <rguenther@suse.de>
30989
30990 PR target/87561
30991 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30992 loads and stores a bit more.
30993
30994 2019-03-18 Richard Biener <rguenther@suse.de>
30995
30996 PR target/87561
30997 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30998 load pessimization to stores as well.
30999
31000 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
31001
31002 PR middle-end/86979
31003 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31004 successor, use NULL as its av set.
31005
31006 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
31007
31008 PR rtl-optimization/89721
31009 * lra-constraints (invariant_p): Return false if side_effects_p holds.
31010
31011 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
31012
31013 PR target/87532
31014 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31015 When handling vec_extract, use modular arithmetic to allow
31016 constant selectors greater than vector length.
31017 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31018 V1TImode vectors to have constant selector values greater than 0.
31019 Use modular arithmetic to compute vector index.
31020 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31021 index for in-memory vectors. Correct code generation for
31022 in-register vectors.
31023 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31024 compute index.
31025
31026 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
31027
31028 PR c++/88534
31029 PR c++/88537
31030 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31031 VAR_DECL args.
31032
31033 2019-03-15 Jakub Jelinek <jakub@redhat.com>
31034
31035 PR c++/89709
31036 * tree.c (inchash::add_expr): Strip any location wrappers.
31037 * fold-const.c (operand_equal_p): Move stripping of location wrapper
31038 after hash verification.
31039
31040 PR debug/89704
31041 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31042 SIGN_EXTEND and ZERO_EXTEND.
31043
31044 2019-03-14 Jason Merrill <jason@redhat.com>
31045 Jakub Jelinek <jakub@redhat.com>
31046
31047 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31048 than if is_empty (*slot).
31049 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31050 existing elt and for elt removal.
31051 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31052 of already removed elt.
31053
31054 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
31055
31056 PR target/89650
31057 * config/i386/i386.c (remove_partial_avx_dependency): Handle
31058 REG_EH_REGION note.
31059
31060 2019-03-14 Martin Liska <mliska@suse.cz>
31061
31062 PR other/89712
31063 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31064
31065 2019-03-14 Richard Biener <rguenther@suse.de>
31066
31067 PR target/89711
31068 * config/i386/i386.c (make_resolver_func): Properly set
31069 DECL_CONTEXT on the RESULT_DECL.
31070 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31071
31072 2019-03-14 Richard Biener <rguenther@suse.de>
31073
31074 * gimple-pretty-print.c: Include cfgloop.h.
31075 (dump_gimple_phi): Adjust.
31076 (dump_gimple_bb_header): Dump loop header for GIMPLE.
31077 (pp_cfg_jump): Adjust.
31078 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31079 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31080 (lower_phi_internal_fn): Remove.
31081 (verify_gimple_call): Remove IFN_PHI special-casing.
31082 (dump_function_to_file): Dump IL state.
31083 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31084 done to deal with PHI nodes being present in non-SSA state.
31085
31086 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31087
31088 PR ipa/89684
31089 * multiple_target.c (create_dispatcher_calls): Change
31090 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31091 In the node->iterate_referring loop, push *ref rather than ref, call
31092 ref->remove_reference () and always pass 0 to iterate_referring.
31093
31094 PR rtl-optimization/89679
31095 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31096 would contain a paradoxical SUBREG.
31097
31098 2019-03-14 Richard Biener <rguenther@suse.de>
31099
31100 PR tree-optimization/89710
31101 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31102 safe_dyn_cast.
31103
31104 2019-03-14 Martin Liska <mliska@suse.cz>
31105
31106 * coverage.c (coverage_begin_function): Stream also
31107 end_column.
31108 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
31109 documentation about function declaration location.
31110 * gcov-dump.c (tag_function): Print whole range
31111 of function declaration.
31112 * gcov.c (struct function_info): Add end_column field.
31113 (function_info::function_info): Initialize it.
31114 (output_json_intermediate_file): Output {start,end}_column
31115 fields.
31116 (read_graph_file): Read end_column.
31117
31118 2019-03-14 Richard Biener <rguenther@suse.de>
31119
31120 PR middle-end/89698
31121 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31122 that the access types are similar.
31123
31124 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31125
31126 PR tree-optimization/89703
31127 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31128 aren't compatible also with builtin_decl_explicit. Check pure
31129 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31130 and BUILT_IN_STPNCPY{,_CHK}.
31131
31132 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31133
31134 PR target/89523
31135 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31136 addr32 prefix to VSIB address for X32.
31137 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31138 "%M2" to opcode.
31139 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31140 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31141 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31142 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31143 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31144 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31145 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31146 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31147 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31148 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31149 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31150 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31151 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31152 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31153 (*avx512f_scatterdi<mode>): Likewise.
31154
31155 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31156
31157 PR target/85860
31158 * lra-constraints.c (inherit_in_ebb): Update
31159 potential_reload_hard_regs along with live_hard_regs.
31160
31161 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31162
31163 PR debug/89498
31164 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31165 DWARF_OFFSET_SIZE.
31166 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31167
31168 2019-03-13 Martin Sebor <msebor@redhat.com>
31169
31170 PR tree-optimization/89662
31171 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31172 has a size.
31173
31174 2019-03-13 Richard Biener <rguenther@suse.de>
31175
31176 PR middle-end/89677
31177 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31178 throw FP expressions at tree-affine.
31179
31180 2019-03-14 Richard Biener <rguenther@suse.de>
31181
31182 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31183 dump negative integer constants using _Literal (type) -num.
31184
31185 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31186
31187 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31188 nonlocal_value member.
31189
31190 PR middle-end/88588
31191 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31192 (ipa_simd_modify_function_body): Handle PHIs.
31193
31194 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31195
31196 * config/s390/s390.c (s390_option_override_internal): Use more
31197 aggressive inlining parameters.
31198
31199 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31200
31201 * config/s390/3906.md: New file.
31202 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31203 (LONGRUNNING_THRESHOLD): Remove.
31204 (MAX_SCHED_MIX_SCORE): Decrease.
31205 (MAX_SCHED_MIX_DISTANCE): Decrease.
31206 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31207 (struct s390_sched_state): New struct to hold scheduling state.
31208 (S390_SCHED_STATE_NORMAL): Remove.
31209 (S390_SCHED_STATE_CRACKED): Remove.
31210 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31211 (s390_get_sched_attrmask): Use new attribute.
31212 (s390_get_unit_mask): Use new units.
31213 (s390_is_fpd): New function.
31214 (s390_is_fxd): New function.
31215 (s390_is_longrunning): New function.
31216 (s390_sched_score): Use new functions.
31217 (s390_sched_reorder): Likewise.
31218 (s390_sched_variable_issue): Rework and use new functions.
31219 (s390_sched_init): Use new functions.
31220 * config/s390/s390.h (s390_tune_attr): Add z14.
31221 * config/s390/s390.md: Add z14.
31222
31223 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31224
31225 * config/s390/2964.md: Update pipeline description.
31226 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31227 (LONGRUNNING_THRESHOLD): Remove.
31228 (LATENCY_FACTOR): Remove.
31229 (s390_get_unit_mask): Add unit.
31230 (s390_sched_score): Use fxd/fpd.
31231 (s390_sched_variable_issue): Use fxd/fpd.
31232
31233 2019-03-12 Martin Liska <mliska@suse.cz>
31234
31235 * config/i386/i386.c: Reword an error message.
31236
31237 2019-03-12 Martin Jambor <mjambor@suse.cz>
31238
31239 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31240 terminate with newline.
31241
31242 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31243
31244 PR target/52726
31245 * config/s390/s390.md (tabort): Use %wd instead of
31246 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31247 letters and periods.
31248 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31249 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31250 's with %< and %>.
31251
31252 PR middle-end/89663
31253 * builtins.c (expand_builtin_int_roundingfn,
31254 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31255 gcc_unreachable if validate_arglist fails.
31256
31257 2019-03-12 Richard Biener <rguenther@suse.de>
31258
31259 PR tree-optimization/89664
31260 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31261 free the occurance tree after the early out.
31262
31263 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31264
31265 PR middle-end/89655
31266 PR bootstrap/89656
31267 * vr-values.c (vr_values::update_value_range): If
31268 old_vr->varying_p (), don't update it, make new_vr also VARYING
31269 and return false.
31270
31271 2019-03-11 Martin Liska <mliska@suse.cz>
31272
31273 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31274 Fix double string quoting.
31275
31276 2019-03-11 Martin Liska <mliska@suse.cz>
31277
31278 * collect-utils.c (collect_wait): Wrap apostrophes
31279 in gcc internal format with %'.
31280 * collect2.c (main): Likewise.
31281 (scan_prog_file): Likewise.
31282 (scan_libraries): Likewise.
31283 * config/i386/i386.c (ix86_expand_call): Likewise.
31284 (ix86_handle_interrupt_attribute): Likewise.
31285 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31286 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31287 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31288 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31289 * symtab.c (symtab_node::verify_base): Likewise.
31290 * tree-cfg.c (verify_gimple_label): Likewise.
31291 * tree.c (verify_type_variant): Likewise.
31292
31293 2019-03-11 Martin Liska <mliska@suse.cz>
31294
31295 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31296 in a string format message and fix GNU coding style.
31297 (expand_builtin_set_thread_pointer): Likewise.
31298 * common/config/aarch64/aarch64-common.c
31299 (aarch64_rewrite_selected_cpu): Likewise.
31300 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31301 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31302 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31303 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31304 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31305 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31306 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31307 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31308 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31309 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31310 Likewise.
31311 * common/config/riscv/riscv-common.c
31312 (riscv_subset_list::parsing_subset_version): Likewise.
31313 (riscv_subset_list::parse_std_ext): Likewise.
31314 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31315 (riscv_subset_list::parse): Likewise.
31316 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31317 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31318 (aarch64_override_options_internal): Likewise.
31319 (aarch64_validate_mcpu): Likewise.
31320 (aarch64_validate_march): Likewise.
31321 (aarch64_validate_mtune): Likewise.
31322 (aarch64_override_options): Likewise.
31323 * config/alpha/alpha.c (alpha_option_override): Likewise.
31324 * config/arc/arc.c (arc_init): Likewise.
31325 (parse_mrgf_banked_regs_option): Likewise.
31326 (arc_override_options): Likewise.
31327 (arc_expand_builtin_aligned): Likewise.
31328 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31329 (arm_expand_builtin): Likewise.
31330 * config/arm/arm.c (arm_option_check_internal): Likewise.
31331 (arm_configure_build_target): Likewise.
31332 (arm_option_override): Likewise.
31333 (arm_options_perform_arch_sanity_checks): Likewise.
31334 (arm_handle_cmse_nonsecure_entry): Likewise.
31335 (arm_handle_cmse_nonsecure_call): Likewise.
31336 (arm_tls_referenced_p): Likewise.
31337 (thumb1_expand_prologue): Likewise.
31338 * config/avr/avr.c (avr_option_override): Likewise.
31339 * config/bfin/bfin.c (bfin_option_override): Likewise.
31340 * config/c6x/c6x.c (c6x_option_override): Likewise.
31341 * config/cr16/cr16.c (cr16_override_options): Likewise.
31342 * config/cris/cris.c (cris_option_override): Likewise.
31343 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31344 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31345 * config/darwin.c (darwin_override_options): Likewise.
31346 * config/frv/frv.c (frv_expand_builtin): Likewise.
31347 * config/h8300/h8300.c (h8300_option_override): Likewise.
31348 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31349 (ix86_option_override_internal): Likewise.
31350 (warn_once_call_ms2sysv_xlogues): Likewise.
31351 (ix86_expand_prologue): Likewise.
31352 (split_stack_prologue_scratch_regno): Likewise.
31353 (ix86_warn_parameter_passing_abi): Likewise.
31354 * config/ia64/ia64.c (fix_range): Likewise.
31355 * config/m68k/m68k.c (m68k_option_override): Likewise.
31356 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31357 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31358 (mips_set_compression_mode): Likewise.
31359 * config/mmix/mmix.c (mmix_option_override): Likewise.
31360 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31361 * config/msp430/msp430.c (msp430_option_override): Likewise.
31362 * config/nds32/nds32.c (nds32_option_override): Likewise.
31363 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31364 (nios2_option_override): Likewise.
31365 (nios2_expand_custom_builtin): Likewise.
31366 * config/nvptx/mkoffload.c (main): Likewise.
31367 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31368 * config/pa/pa.c (fix_range): Likewise.
31369 (pa_option_override): Likewise.
31370 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31371 (riscv_option_override): Likewise.
31372 * config/rl78/rl78.c (rl78_option_override): Likewise.
31373 * config/rs6000/aix61.h: Likewise.
31374 * config/rs6000/aix71.h: Likewise.
31375 * config/rs6000/aix72.h: Likewise.
31376 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31377 * config/rs6000/freebsd64.h: Likewise.
31378 * config/rs6000/linux64.h: Likewise.
31379 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31380 (rs6000_expand_zeroop_builtin): Likewise.
31381 (rs6000_expand_mtfsb_builtin): Likewise.
31382 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31383 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31384 (rs6000_invalid_builtin): Likewise.
31385 (rs6000_expand_split_stack_prologue): Likewise.
31386 * config/rs6000/rtems.h: Likewise.
31387 * config/rx/rx.c (valid_psw_flag): Likewise.
31388 (rx_expand_builtin): Likewise.
31389 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31390 * config/s390/s390.c (s390_expand_builtin): Likewise.
31391 (s390_function_profiler): Likewise.
31392 (s390_option_override_internal): Likewise.
31393 (s390_option_override): Likewise.
31394 * config/sh/sh.c (sh_option_override): Likewise.
31395 (sh_builtin_saveregs): Likewise.
31396 (sh_fix_range): Likewise.
31397 * config/sh/vxworks.h: Likewise.
31398 * config/sparc/sparc.c (sparc_option_override): Likewise.
31399 * config/spu/spu.c (spu_option_override): Likewise.
31400 (fix_range): Likewise.
31401 * config/visium/visium.c (visium_option_override): Likewise.
31402 (visium_handle_interrupt_attr): Likewise.
31403 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31404 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31405 (dbg_cnt_process_opt): Likewise.
31406 * dwarf2out.c (output_dwarf_version): Likewise.
31407 * except.c (expand_eh_return): Likewise.
31408 * gcc.c (defined): Likewise.
31409 (driver_handle_option): Likewise.
31410 (process_command): Likewise.
31411 (compare_files): Likewise.
31412 (driver::prepare_infiles): Likewise.
31413 (driver::do_spec_on_infiles): Likewise.
31414 (driver::maybe_run_linker): Likewise.
31415 * omp-offload.c (oacc_parse_default_dims): Likewise.
31416 * opts-global.c (handle_common_deferred_options): Likewise.
31417 * opts.c (parse_sanitizer_options): Likewise.
31418 (common_handle_option): Likewise.
31419 (enable_warning_as_error): Likewise.
31420 * passes.c (enable_disable_pass): Likewise.
31421 * plugin.c (parse_plugin_arg_opt): Likewise.
31422 (default_plugin_dir_name): Likewise.
31423 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31424 (default_pch_valid_p): Likewise.
31425 * toplev.c (init_asm_output): Likewise.
31426 (process_options): Likewise.
31427 (toplev::run_self_tests): Likewise.
31428 * tree-cfg.c (verify_gimple_call): Likewise.
31429 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31430 (tree_inlinable_function_p): Likewise.
31431 * var-tracking.c (vt_find_locations): Likewise.
31432
31433 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31434
31435 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31436 only on the else branch.
31437
31438 2019-03-11 Martin Liska <mliska@suse.cz>
31439
31440 * gcov.c (output_intermediate_json_line): Print function
31441 name of each line.
31442 (output_json_intermediate_file): Add new argument.
31443 * doc/gcov.texi: Document the change.
31444
31445 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31446
31447 PR rtl-optimization/89588
31448 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31449 explicit unrolling factor more robust.
31450
31451 2019-03-11 Richard Biener <rguenther@suse.de>
31452
31453 PR tree-optimization/89649
31454 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31455 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31456 on the prolog and epilog loops.
31457 (vect_loop_versioning): Return copy of loop.
31458 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31459 on the non-vectorized version of the loop.
31460
31461 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31462
31463 PR target/68924
31464 * config/i386/sse.md (*vec_extractv2di_0_sse):
31465 Add (=r,x) alternative and corresponding splitter.
31466
31467 2019-03-10 Martin Jambor <mjambor@suse.cz>
31468
31469 PR tree-optimization/85762
31470 PR tree-optimization/87008
31471 PR tree-optimization/85459
31472 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31473 it points to if there is a type changing MEM_REF. Adjust all callers.
31474 (build_accesses_from_assign): Disable total scalarization if
31475 contains_vce_or_bfcref_p returns true through the new parameter, for
31476 both rhs and lhs.
31477
31478 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31479
31480 PR c/88568
31481 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31482 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31483
31484 PR target/79645
31485 * common.opt (fdiagnostics-show-labels,
31486 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31487 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31488 gas-locview-support, ginline-points, ginternal-reset-location-views):
31489 Terminate description text with a dot.
31490 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31491 * config/mcore/mcore.opt (m210, m340): Likewise.
31492 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31493 mnops=): Start description text with a capital letter.
31494 * config/arc/arc.opt (msize-level=): Likewise.
31495 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31496 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31497 mnewlib): Likewise.
31498 * config/ft32/ft32.opt (msim): Likewise.
31499 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31500 (mnodiv, mnopm): Terminate description text with a dot.
31501 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31502 a colon.
31503 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31504 Likewise.
31505 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31506 text.
31507
31508 PR rtl-optimization/89634
31509 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31510 are modified in BB_END (e->src) instruction.
31511
31512 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31513
31514 PR target/79926
31515 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31516 messages more amenable to translation, and improve wording.
31517
31518 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31519
31520 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31521 ud- and du-chains between phases.
31522
31523 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31524
31525 PR debug/89631
31526 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31527 instead of POLY_INT_CST.
31528
31529 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31530
31531 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31532 requirement.
31533
31534 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31535
31536 PR target/68924
31537 PR target/78782
31538 PR target/87558
31539 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31540 (_mm_storeu_si64): Ditto.
31541
31542 2019-03-08 Martin Liska <mliska@suse.cz>
31543
31544 PR target/86952
31545 * config/i386/i386.c (ix86_option_override_internal): Disable
31546 jump tables when retpolines are used.
31547
31548 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31549
31550 PR go/63560
31551 * ipa-split.c (execute_split_functions): Do not split
31552 'noinline' or 'section' function.
31553
31554 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31555
31556 PR target/79846
31557 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31558 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31559 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31560
31561 PR ipa/80000
31562 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31563 from diagnostics. Formatting fixes.
31564
31565 PR target/85665
31566 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31567 warn_odr diagnostics.
31568
31569 PR other/80058
31570 * lra-constraints.c (process_alt_operands): Avoid one space before
31571 " at the end of line and another after " on another line in a string
31572 literal.
31573 * attribs.c (handle_dll_attribute): Likewise.
31574 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31575
31576 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31577 warning_at or inform messages in G_() if there is no ?:.
31578
31579 PR tree-optimization/89550
31580 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31581 returned true. Formatting fixes.
31582 (expand_builtin_strnlen): Formatting fixes.
31583 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31584 if warning_at returned true.
31585 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31586
31587 2019-03-08 Richard Biener <rguenther@suse.de>
31588
31589 PR middle-end/89578
31590 * cfgloop.h (struct loop): Add owned_clique field.
31591 * cfgloopmanip.c (copy_loop_info): Copy it.
31592 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31593 cliques.
31594 * tree-inline.c (copy_loops): Remap owned_clique.
31595 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31596 * lto-streamer-out.c (output_cfg): Likewise.
31597
31598 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31599
31600 PR target/80190
31601 * config/darwin.c: Include intl.h.
31602 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31603 composing the message out of two separate parts.
31604
31605 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31606
31607 PR target/80003
31608 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31609 doesn't start with a capital letter and doesn't end with a dot.
31610 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31611 with a capital letter.
31612 (ix86_mangle_function_version_assembler_name): Likewise.
31613 (ix86_generate_version_dispatcher_body): Likewise.
31614 (fold_builtin_cpu): Likewise.
31615 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31616 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31617 translators, wrap full type name in %qs.
31618
31619 PR translation/79999
31620 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31621 depend clause with source (or sink) modifier.
31622 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31623
31624 PR target/89602
31625 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31626 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31627 (avx512f_load<mode>_mask): New define_expand.
31628 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31629 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31630 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31631 __builtin_ia32_movess_mask): New builtins.
31632 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31633 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31634 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31635 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31636
31637 2019-03-07 Martin Jambor <mjambor@suse.cz>
31638
31639 PR lto/87525
31640 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31641 for extern inline functions.
31642
31643 2019-03-07 Martin Jambor <mjambor@suse.cz>
31644
31645 PR ipa/88235
31646 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31647 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31648 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31649 have multiple callees. At the end check if declarations match as
31650 opposed to cgraph_nodes.
31651
31652 2019-03-07 Martin Liska <mliska@suse.cz>
31653
31654 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31655 which is equivalent to searching for this in clones chain.
31656 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31657 names with a neighbour and special case first node in a chain.
31658
31659 2019-01-25 Jason Merrill <jason@redhat.com>
31660
31661 PR c++/80916 - spurious "static but not defined" warning.
31662 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31663 for an internal symbol with DECL_EXTERNAL.
31664
31665 2019-04-07 Richard Biener <rguenther@suse.de>
31666
31667 PR middle-end/89618
31668 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31669 * tree-inline.c (copy_loops): Simplify.
31670
31671 2019-03-07 Martin Liska <mliska@suse.cz>
31672
31673 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31674
31675 2019-03-07 Richard Biener <rguenther@suse.de>
31676
31677 PR tree-optimization/89595
31678 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31679 stmt iterator as reference, take boolean output parameter to
31680 indicate whether the stmt was removed and thus the iterator
31681 already advanced.
31682 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31683 stmts created by folding.
31684
31685 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31686
31687 PR c++/89585
31688 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31689 at toplevel.
31690
31691 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31692
31693 PR rtl-optimization/88845
31694 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31695 LRA.
31696 * lra.c (remove_scratches_1): New function.
31697 (remove_scratches): Use it.
31698 (lra_emit_move): Likewise.
31699
31700 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31701
31702 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31703 unaligned_access variable.
31704 * config/arc/arc.c (arc_override_options): Set unaligned access
31705 default on for HS CPUs.
31706 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31707
31708 2019-03-06 Martin Liska <mliska@suse.cz>
31709
31710 PR gcov-profile/89577
31711 * doc/gcov.texi: Prefer to use --coverage.
31712 * doc/sourcebuild.texi: Likewise.
31713
31714 2019-03-02 Jason Merrill <jason@redhat.com>
31715
31716 PR c++/86485 - -Wmaybe-unused with empty class ?:
31717 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31718
31719 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31720
31721 PR target/89587
31722 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31723 if_multiarch.
31724
31725 PR middle-end/89590
31726 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31727 exactly one argument.
31728
31729 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31730 Richard Sandiford <richard.sandiford@arm.com>
31731
31732 PR tree-optimization/89570
31733 * match.pd (vec_cond into cond_op simplification): Don't use
31734 get_conditional_internal_fn, use as_internal_fn (cond_op).
31735
31736 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31737
31738 PR target/89222
31739 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31740 to decide when to split off a non-zero offset from a symbol.
31741 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31742 in function symbols.
31743
31744 2019-03-05 Richard Biener <rguenther@suse.de>
31745
31746 PR tree-optimization/89594
31747 * tree-if-conv.c (pass_if_conversion::execute): Handle
31748 case where .LOOP_VECTORIZED_FUNCTION was removed.
31749
31750 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31751
31752 PR bootstrap/89560
31753 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31754 instead alloca it only when needed with the needed size.
31755
31756 PR tree-optimization/89570
31757 * match.pd (vec_cond into cond_op simplification): Guard with
31758 vectorized_internal_fn_supported_p test and #if GIMPLE.
31759
31760 PR tree-optimization/89566
31761 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31762 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31763 Punt if get_user_idx_format succeeds, but idx_format argument is
31764 not provided or doesn't have pointer type, or if idx_args is above
31765 number of provided arguments.
31766
31767 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31768
31769 PR tree-optimization/89437
31770 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31771
31772 2019-03-04 Richard Biener <rguenther@suse.de>
31773
31774 PR middle-end/89572
31775 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31776 safe_dyn_cast.
31777
31778 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31779
31780 PR tree-optimization/89487
31781 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31782 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31783 (distribute_loop): Don't do runtime alias check if there is non-
31784 addressable data reference.
31785 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31786 is a register variable.
31787
31788 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31789
31790 PR target/89506
31791 * config/arm/arm.md (cmpsi2_addneg): Use
31792 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31793 If operands[2] is 0 or INT_MIN, force use of subs.
31794 (*compare_scc splitter): Use gen_int_mode.
31795 (*negscc): Likewise.
31796 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31797
31798 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31799 Monk Chiang <sh.chiang04@gmail.com>
31800
31801 * common/config/riscv/riscv-common.c: Include sstream.
31802 (riscv_subset_list::to_string): New.
31803 (riscv_arch_str): Likewise.
31804 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31805 * config.in: Regen.
31806 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31807 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31808 (riscv_emit_attribute): New.
31809 (riscv_file_start): Emit attribute if needed.
31810 (riscv_option_override): Init riscv_emit_attribute_p.
31811 * config/riscv/riscv.opt (mriscv-attribute): New option.
31812 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31813 * configure: Regen.
31814 * doc/install.texi: Document --with-riscv-attribute.
31815 * doc/invoke.texi: Document -mriscv-attribute.
31816
31817 * common/config/riscv/riscv-common.c:
31818 Include config/riscv/riscv-protos.h.
31819 (INCLUDE_STRING): Defined.
31820 (RISCV_DONT_CARE_VERSION): Defined.
31821 (riscv_subset_t): Declare.
31822 (riscv_subset_t::riscv_subset_t): New.
31823 (riscv_subset_list): Declare.
31824 (riscv_subset_list::riscv_subset_list): New.
31825 (riscv_subset_list::~riscv_subset_list): Likewise.
31826 (riscv_subset_list::parsing_subset_version): Likewise.
31827 (riscv_subset_list::parse_std_ext): Likewise.
31828 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31829 (riscv_subset_list::add): Likewise.
31830 (riscv_subset_list::lookup): Likewise.
31831 (riscv_subset_list::xlen): Likewise.
31832 (riscv_subset_list::parse): Likewise.
31833 (riscv_supported_std_ext): Likewise.
31834 (current_subset_list): Likewise.
31835 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31836 parse.
31837
31838 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31839
31840 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31841 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31842 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31843
31844 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31845
31846 PR rtl-optimization/85899
31847 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31848 fallthru edges leading to the exit block.
31849
31850 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31851
31852 PR target/89517
31853 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31854 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31855
31856 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31857
31858 PR tree-optimization/89535
31859 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31860 for each operand. Calculate the fallback choice for mask operands
31861 and pass it to vect_get_vec_def_for_operand.
31862
31863 2019-03-01 Richard Biener <rguenther@suse.de>
31864
31865 PR middle-end/89541
31866 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31867 get virtual operands.
31868 (get_expr_operands): Handle CONST_DECL like other decls.
31869
31870 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31871
31872 PR middle-end/89503
31873 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31874 on DECL_P and EXPR_P.
31875
31876 2019-03-01 Richard Biener <rguenther@suse.de>
31877
31878 PR middle-end/89497
31879 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31880 argument, defaulted to zero.
31881 * passes.c (execute_function_todo): Pass down SSA update flags
31882 to cleanup_tree_cfg.
31883 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31884 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31885 form if requested.
31886 (cleanup_tree_cfg): Get and pass down SSA update flags.
31887
31888 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31889
31890 PR bootstrap/89539
31891 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31892 early_lto_debug argument.
31893
31894 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31895
31896 PR tree-optimization/89536
31897 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31898 only whether bit #0 of the value is 0 instead of the entire value.
31899
31900 2019-02-28 Marek Polacek <polacek@redhat.com>
31901
31902 PR c++/87068 - missing diagnostic with fallthrough statement.
31903 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31904 at the end of a seq, save its location to walk_stmt_info.
31905 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31906 a switch.
31907
31908 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31909
31910 PR lto/88585
31911 * tree.c (find_atomic_core_type): Move ahead in file.
31912 (check_base_type): Correctly compare alignments of atomic types.
31913
31914 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31915
31916 PR target/89455
31917 * config/i386/i386.c (get_builtin_code_for_version): Identify
31918 Westmere from PCLMUL, instead of AES.
31919
31920 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31921
31922 PR target/89434
31923 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31924 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31925 -UINTVAL (...).
31926
31927 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31928
31929 PR target/88530
31930 * config/aarch64/aarch64-option-extensions.def: Document it.
31931 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31932 if empty hwcaps.
31933
31934 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31935
31936 PR c/89520
31937 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31938 builtins if they don't have a single scalar floating point argument.
31939 Formatting fixes.
31940
31941 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31942
31943 PR rtl-optimization/89490
31944 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31945 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31946 block section is not mergeable.
31947
31948 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31949
31950 PR target/70341
31951 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31952 old define_insn to ...
31953 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31954 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31955 Rename old define_insn to ...
31956 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31957 (thumb2_casesi_internal_pic): New define_expand. Rename old
31958 define_insn to ...
31959 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31960 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31961 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31962
31963 2019-02-27 Richard Biener <rguenther@suse.de>
31964
31965 PR debug/88878
31966 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31967
31968 2019-02-27 Richard Biener <rguenther@suse.de>
31969
31970 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31971 building.
31972
31973 2019-02-27 Richard Biener <rguenther@suse.de>
31974
31975 PR debug/88878
31976 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31977 parameter, prefix section name with .gnu.debuglto_ if true.
31978 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31979 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31980
31981 2019-02-27 Richard Biener <rguenther@suse.de>
31982
31983 PR debug/89514
31984 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31985 rather than on use_debug_types, doing what output_die does.
31986 (value_format): Likewise.
31987
31988 2019-02-27 Martin Jambor <mjambor@suse.cz>
31989 Martin Sebor <msebor@redhat.com>
31990
31991 * doc/invoke.texi (Warning Options): Reword description of
31992 -Wno-absolute-value.
31993
31994 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31995
31996 PR tree-optimization/89280
31997 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31998 builtin_setjmp_setup_bb): New functions.
31999 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32000 When visiting __builtin_setjmp_setup block, queue in special
32001 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32002 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
32003 from visited after the loop if they don't have any visited successor
32004 blocks.
32005
32006 2018-02-26 Steve Ellcey <sellcey@marvell.com>
32007
32008 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32009 New function.
32010 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32011
32012 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32013
32014 PR c++/89507
32015 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32016 with types other than sizetype/ssizetype.
32017
32018 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32019
32020 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32021 (enum sparc_processor_type): ...this.
32022 (enum sparc_code_model_type): New enumeration type.
32023 (enum sparc_memory_model_type): Tweak comments.
32024 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32025 (mtune): Likewise.
32026 (mcmodel): Use sparc_code_model enumeration and variable.
32027 (sparc_code_model): New enumeration.
32028 (mdebug): Add Undocumented marker.
32029 * config/sparc/sparc.h (enum cmodel): Delete.
32030 (sparc_cmodel): Likewise.
32031 (TARGET_CM_MEDLOW): Adjust to above renaming.
32032 (TARGET_CM_MEDMID): Likewise.
32033 (TARGET_CM_MEDANY): Likewise.
32034 (TARGET_CM_EMBMEDANY): Likewise.
32035 * config/sparc/sparc.c (sparc_cmodel): Delete.
32036 (sparc_option_override): Remove string/value mapping support for the
32037 code model. Move code and memory model support to after the handling
32038 of target flags. Do private machine setup last.
32039 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32040 (sparc_legitimize_reload_address): Likewise.
32041 (sparc_output_mi_thunk): Likewise.
32042 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32043
32044 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32045
32046 PR tree-optimization/89500
32047 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32048 (handle_builtin_strlen): Remove noncst_bound variable. Always
32049 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
32050 cst if the first cst bytes starting at x are known to be non-zero,
32051 even if the string is not zero terminated. Don't try to modify
32052 *si for strnlen. Update strlen_to_stridx only for strlen or if
32053 we can prove strnlen returns the same value as strlen would.
32054
32055 2019-02-26 Martin Liska <mliska@suse.cz>
32056
32057 * alloc-pool.h (struct pool_usage): Remove extra
32058 print_dash_line.
32059 * bitmap.h (struct bitmap_usage): Likewise.
32060 * ggc-common.c (struct ggc_usage): Likewise.
32061 * mem-stats.h (struct mem_usage): Likewise.
32062 (mem_alloc_description::dump): Print dash lines
32063 here and repeat header at the end of a table report.
32064 It's then more readable.
32065 * tree-phinodes.c (phinodes_print_statistics): Make
32066 horizontal alignment.
32067 * tree-ssanames.c (ssanames_print_statistics): Likewise.
32068 * vec.c (struct vec_usage): Remove extra print_dash_line.
32069 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32070
32071 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
32072
32073 * doc/extend.texi (__builtin_object_size):
32074 Use @pxref instead of @xref inside parenthesis.
32075 (__builtin_has_attribute): Add missing comma after @xref.
32076 (__builtin_object_size): Ditto.
32077 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32078
32079 2019-02-26 Jeff Law <law@redhat.com>
32080
32081 PR rtl-optimization/87761
32082 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32083 detect obviously dead insns and delete them.
32084
32085 2019-02-26 Richard Biener <rguenther@suse.de>
32086
32087 PR tree-optimization/89505
32088 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32089 to handle restrict pointed-to vars with multiple subvars
32090 correctly.
32091
32092 2019-02-26 Richard Biener <rguenther@suse.de>
32093
32094 PR tree-optimization/89489
32095 * tree-parloops.c (create_loop_fn): Copy over last_clique.
32096
32097 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32098
32099 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32100 and move around comment.
32101 <BIT_AND_EXPR>: Likewise.
32102 <BIT_NOT_EXPR>: Add specific handling for boolean types.
32103
32104 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32105
32106 PR target/89474
32107 * config/i386/i386.c (remove_partial_avx_dependency): Call
32108 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32109 after changing possibly many instructions to use that pseudo. Fix up
32110 insertion of v4sf_const0 setter at the start of bb.
32111
32112 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32113
32114 PR c/80409
32115 * doc/extend.texi (Variadic Pointer Args): New section.
32116
32117 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32118 Martin Sebor <msebor@gmail.com>
32119
32120 * common.opt (Wattribute-alias): Likewise.
32121 * doc/invoke.texi (Option Summary): List general form of
32122 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32123 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32124 Add cross-references.
32125 (-Wattribute-alias): Rewrite and correct default. Mention
32126 considered attributes (same as for -Wmissing-attributes).
32127
32128 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32129
32130 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32131 (_mm_cvtpd_ps): Likewise.
32132 (_mm_cvttpd_epi32): Likewise.
32133
32134 PR target/89338
32135 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32136 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32137
32138 PR target/89339
32139 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32140
32141 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32142
32143 PR target/88530
32144 * common/config/aarch64/aarch64-common.c
32145 (struct aarch64_option_extension): Add is_synthetic.
32146 (all_extensions): Use it.
32147 (TARGET_OPTION_INIT_STRUCT): Define hook.
32148 (struct gcc_targetm_common): Moved to end.
32149 (all_extensions_by_on): New.
32150 (opt_ext_cmp, typedef opt_ext): New.
32151 (aarch64_option_init_struct): New.
32152 (aarch64_contains_opt): New.
32153 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32154 * config/aarch64/aarch64-option-extensions.def
32155 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32156 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32157 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32158 Set is_synthetic to false.
32159 (crypto): Set is_synthetic to true.
32160 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32161 SYNTHETIC.
32162
32163 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32164
32165 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32166 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32167 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32168 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32169 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32170 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32171 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32172 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32173 Rename ...
32174 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32175 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32176 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32177 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32178 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32179 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32180 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32181 vfmlsl_laneq_high_f16): ... To this.
32182 * config/arm/neon.md: Update comments.
32183
32184 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32185
32186 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32187 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32188 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32189 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32190 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32191 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32192 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32193 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32194 Rename ...
32195 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32196 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32197 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32198 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32199 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32200 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32201 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32202 vfmlslq_laneq_high_f16): ... To this.
32203
32204 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32205
32206 PR rtl-optimization/86096
32207 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32208 comparing mw_order values.
32209
32210 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32211
32212 PR target/89434
32213 * config/arm/arm.md (*subsi3_carryin_const): Use
32214 arm_neg_immediate_operand predicate instead of
32215 arm_not_immediate_operand, "L" constraint instead of "K" and
32216 print it using %n2 instead of %B2.
32217 (*subsi3_carryin_const0): New define_insn.
32218 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32219 instead of arm_not_operand and "I" constraint instead of "K" and
32220 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32221 another match_operand and in the condition check that it is negation
32222 of operands[2].
32223 (*subsi3_carryin_compare_const0): New define_ins.
32224 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32225 *subsi3_carryin_const.
32226 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32227 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32228
32229 PR target/89438
32230 * config/arm.vfp.md (*negdf2_vfp): Use
32231 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32232 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32233
32234 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32235
32236 PR rtl-optimization/89445
32237 * simplify-rtx.c (simplify_ternary_operation): Don't use
32238 simplify_merge_mask on operands that may trap.
32239 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32240 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32241 second operand is CONST_VECTOR, check if any element could be zero.
32242 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32243 their operands can trap.
32244
32245 2019-02-23 Martin Sebor <msebor@redhat.com>
32246
32247 * gimple-ssa-sprintf.c (target_strtol): Rename...
32248 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32249 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32250 check for range error.
32251
32252 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32253
32254 PR driver/69471
32255 * opts-common.c (prune_options): Also prune joined switches
32256 with Negative and RejectNegative.
32257 * config/i386/i386.opt (march=): Add Negative(march=).
32258 (mtune=): Add Negative(mtune=).
32259 * doc/options.texi: Document Negative used together with Joined
32260 and RejectNegative.
32261
32262 2019-02-22 Martin Sebor <msebor@redhat.com>
32263
32264 * doc/extend.texi (Other Builtins): Add
32265 __builtin_is_constant_evaluated.
32266
32267 2019-02-22 Richard Biener <rguenther@suse.de>
32268
32269 PR tree-optimization/87609
32270 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32271
32272 2019-02-22 Jeff Law <law@redhat.com>
32273
32274 PR rtl-optimization/87761
32275 * config/mips/mips.md: Add new combiner pattern to recognize
32276 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32277
32278 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32279
32280 PR target/89324
32281 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32282 destination register in peepholes generating patterns for ADDS/SUBS.
32283 (add<mode>3_compare0,
32284 *addsi3_compare0_uxtw, add<mode>3_compareC,
32285 add<mode>3_compareV_imm, add<mode>3_compareV,
32286 *adds_<optab><ALLX:mode>_<GPI:mode>,
32287 *subs_<optab><ALLX:mode>_<GPI:mode>,
32288 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32289 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32290 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32291 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32292 sub<mode>3_compare1): Allow stack pointer for source register.
32293 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32294
32295 2019-02-22 Martin Sebor <msebor@redhat.com>
32296
32297 PR tree-optimization/88993
32298 PR tree-optimization/88853
32299 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32300 New helper.
32301 (sprintf_dom_walker::call_info::is_string_func): New helper.
32302 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32303 for formatted string functions.
32304 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32305
32306 2019-02-22 Martin Sebor <msebor@redhat.com>
32307
32308 PR c/89425
32309 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32310 unreachable subexpressions.
32311
32312 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32313 Hongtao Liu <hongtao.liu@intel.com>
32314 Sunil K Pandey <sunil.k.pandey@intel.com>
32315
32316 PR target/87007
32317 * config/i386/i386-passes.def: Add
32318 pass_remove_partial_avx_dependency.
32319 * config/i386/i386-protos.h
32320 (make_pass_remove_partial_avx_dependency): New.
32321 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32322 New function.
32323 (pass_data_remove_partial_avx_dependency): New.
32324 (pass_remove_partial_avx_dependency): Likewise.
32325 (make_pass_remove_partial_avx_dependency): Likewise.
32326 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32327 (*extendsfdf2): Add avx_partial_xmm_update.
32328 (truncdfsf2): Likewise.
32329 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32330 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32331
32332 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32333
32334 PR middle-end/85598
32335 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32336 analysis for pass.
32337
32338 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32339
32340 PR target/89444
32341 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32342 (PTA_SKYLAKE): Add PTA_AES.
32343 (PTA_GOLDMONT): Likewise.
32344
32345 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32346
32347 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32348 instruction if enabled.
32349 (aarch64_override_options): Remove reference to return address key.
32350
32351 2019-02-22 Richard Biener <rguenther@suse.de>
32352
32353 PR tree-optimization/89440
32354 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32355 not necessary assert.
32356
32357 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32358
32359 PR fortran/72741
32360 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32361 (oacc_replace_fn_attrib_attr): ... this new function.
32362 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32363 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32364
32365 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32366
32367 * config/arm/arm-cpus.in (ares): Rename to...
32368 (neoverse-n1): ... This. Add ares as alias.
32369 * config/arm/arm-tables.opt: Regenerate.
32370 * config/arm/arm-tune.md: Likewise.
32371 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32372
32373 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32374
32375 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32376 * config/aarch64/aarch64-tune.md: Regenerate.
32377 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32378
32379 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32380
32381 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32382 (neoversen1_tunings): ... This.
32383 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32384 (neoverse-n1): New CPU.
32385 * config/aarch64/aarch64-tune.md: Regenerate.
32386 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32387
32388 2019-02-22 Richard Biener <rguenther@suse.de>
32389
32390 PR middle-end/87609
32391 * cfghooks.h (dependence_hash): New typedef.
32392 (struct copy_bb_data): New type.
32393 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32394 (duplicate_block): Likewise.
32395 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32396 (copy_bbs): Create and pass down copy_bb_data.
32397 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32398 (rtl_duplicate_bb): Likewise.
32399 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32400 remap dependence info.
32401
32402 2019-02-22 Richard Biener <rguenther@suse.de>
32403
32404 PR tree-optimization/87609
32405 * tree-core.h (tree_base): Document special clique values.
32406 * tree-inline.c (remap_dependence_clique): Do not use the
32407 special clique value of one.
32408 (maybe_set_dependence_info): Use clique one.
32409 (clear_dependence_clique): New callback.
32410 (compute_dependence_clique): Clear clique one from all refs
32411 before assigning it (again).
32412
32413 2019-02-21 Martin Sebor <msebor@redhat.com>
32414
32415 * doc/extend.texi (__clear_cache): Correct signature.
32416
32417 2019-02-21 Ian Lance Taylor <iant@golang.org>
32418
32419 PR go/89170
32420 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32421 than output_constant_def.
32422 (add_constant_to_table): New static function.
32423 (output_constant_def): Call add_constant_to_table.
32424 (tree_output_constant_def): Likewise.
32425
32426 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32427
32428 PR c++/89285
32429 * builtins.c (fold_builtin_arith_overflow): If first two args are
32430 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32431 to ifn.
32432
32433 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32434
32435 PR target/87412
32436 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32437 error for -mindirect-branch/-mfunction-return with incompatible
32438 -fcf-protection.
32439
32440 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32441
32442 PR bootstrap/88714
32443 * constraints.md (q): Remove.
32444 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32445 instead of q.
32446
32447 2019-02-21 Martin Jambor <mjambor@suse.cz>
32448
32449 PR hsa/89302
32450 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32451 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32452 (omp_adjust_for_condition): ...here. Added necessary parameters.
32453 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32454 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32455 proper values to new parameters of omp_adjust_for_condition.
32456
32457 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32458
32459 PR middle-end/89412
32460 * expr.c (expand_assignment): If result is a MEM, use change_address
32461 instead of simplify_gen_subreg.
32462
32463 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32464 David Malcolm <dmalcolm@redhat.com>
32465
32466 PR middle-end/89091
32467 * fold-const.c (decode_field_reference): Return NULL_TREE if
32468 lang_hooks.types.type_for_size returns NULL. Check it before
32469 overwriting *exp_. Use return NULL_TREE instead of return 0.
32470
32471 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32472
32473 PR middle-end/88074
32474 PR middle-end/89415
32475 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32476 buggy mpc_norm.
32477
32478 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32479
32480 PR target/89397
32481 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32482 TARGET_SSE in addition to TARGET_SSE_MATH.
32483
32484 (ix86_excess_precision): Ditto.
32485 (ix86_float_exceptions_rounding_supported_p): Ditto.
32486 (use_rsqrt_p): Ditto.
32487 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32488
32489 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32490
32491 PR c/89410
32492 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32493 linenum_arith_t when determining if two adjacent line spans are
32494 close enough to merge.
32495 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32496 lines within each line_span.
32497
32498 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32499
32500 PR target/86487
32501 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32502 paradoxical SUBREGS.
32503
32504 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32505
32506 PR target/88100
32507 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32508 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32509 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32510 range checking it.
32511
32512 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32513
32514 * config/gcn/gcn.c (print_operand): Fix typo.
32515
32516 2019-02-19 Richard Biener <rguenther@suse.de>
32517
32518 PR middle-end/88074
32519 * toplev.c (do_compile): Initialize mpfr's exponent range
32520 based on available float modes.
32521
32522 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32523
32524 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32525 as long as the epilogue isn't completed.
32526
32527 2019-02-18 Martin Sebor <msebor@redhat.com>
32528
32529 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32530 __has_cpp_attribute, and __has_include.
32531
32532 2019-02-18 Martin Sebor <msebor@redhat.com>
32533
32534 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32535
32536 2019-02-18 Martin Sebor <msebor@redhat.com>
32537
32538 PR middle-end/89294
32539 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32540 expression.
32541 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32542
32543 2019-02-18 Richard Biener <rguenther@suse.de>
32544
32545 PR tree-optimization/89296
32546 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32547 of no-warning flag to cases that might emit the bogus warning.
32548
32549 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32550
32551 PR bootstrap/88714
32552 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32553 "q" constraint.
32554 * config/arm/vfp.md (*movdi_vfp): Likewise.
32555 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32556 "q" constraint for operands[0].
32557
32558 PR target/89369
32559 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32560 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32561 pattern in a temporary buffer.
32562 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32563 than 64-operands[2].
32564
32565 PR target/89361
32566 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32567 s390_indirect_branch_settings): Define unconditionally.
32568 (s390_set_current_function): Likewise, but guard the whole body except
32569 the s390_indirect_branch_settings call with
32570 #if S390_USE_TARGET_ATTRIBUTE.
32571 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32572
32573 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32574 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32575 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32576 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32577 HOST_WIDE_INT_1U instead of 1ULL.
32578 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32579 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32580 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32581 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32582 instead of 1UL.
32583 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32584 instead of 1ul.
32585
32586 2019-02-18 Martin Jambor <mjambor@suse.cz>
32587
32588 PR tree-optimization/89209
32589 * tree-sra.c (create_access_replacement): New optional parameter
32590 reg_tree. Use it as a type if non-NULL and access type is not of
32591 a register type.
32592 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32593 to create_access_replacement.
32594 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32595 Check lacc is non-NULL before attempting to re-create it on the RHS.
32596
32597 2019-02-18 Martin Liska <mliska@suse.cz>
32598
32599 PR ipa/89306
32600 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32601 by default.
32602 (symbol_table::free_edge): Recycle m_summary_id.
32603 * cgraph.h (get_summary_id): New.
32604 (symbol_table::release_symbol): Set m_summary_id to -1
32605 by default.
32606 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32607 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32608 function_summary to fast_function_summary.
32609 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32610 * ipa-pure-const.c (class funct_state_summary_t):
32611 Switch from function_summary to fast_function_summary.
32612 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32613 (class ipa_ref_opt_summary_t): Switch from function_summary
32614 to fast_function_summary.
32615 * symbol-summary.h (class function_summary_base): New class
32616 that is created from base of former function_summary.
32617 (function_summary_base::unregister_hooks): New.
32618 (class function_summary): Inherit from function_summary_base.
32619 (class call_summary_base): New class
32620 that is created from base of former call_summary.
32621 (class call_summary): Inherit from call_summary_base.
32622 (struct is_same): New.
32623 (class fast_function_summary): New summary class.
32624 (class fast_call_summary): New summary class.
32625 * vec.h (vec_safe_grow_cleared): New function.
32626
32627 2019-02-18 Martin Liska <mliska@suse.cz>
32628
32629 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32630 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32631 * doc/tm.texi: Document new target hook.
32632 * doc/tm.texi.in: Likewise.
32633 * target.def: Add new target macro.
32634 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32635 suffixes.
32636
32637 2019-02-17 Alan Modra <amodra@gmail.com>
32638
32639 PR target/89271
32640 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32641 output reg on add insn.
32642 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32643
32644 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32645
32646 PR target/89372
32647 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32648 (PMULHRSW): Likewise.
32649 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32650 TARGET_AVX2.
32651 (ssse3_pmulhrswv4hi3): New expander.
32652
32653 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32654
32655 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32656 MMX. Add isa attribute.
32657
32658 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32659
32660 PR rtl-optimization/66152
32661 * builtins.h (c_readstr): Declare.
32662 * builtins.c (c_readstr): Remove forward declaration. Add
32663 null_terminated_p argument, if false, read all bytes from the
32664 string instead of stopping after '\0'.
32665 * expr.c (string_cst_read_str): New function.
32666 (store_expr): Use string_cst_read_str instead of
32667 builtin_strncpy_read_str. Try to store by pieces the whole
32668 exp_len first, and only if that fails, split it up into
32669 store by pieces followed by clear_storage. Formatting fix.
32670
32671 * config/i386/i386.md (*movqi_internal): Remove static from
32672 buf variable. Use output_asm_insn (buf, operands); return "";
32673 instead of return buf;.
32674 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32675 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32676 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32677
32678 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32679
32680 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32681 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32682 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32683 (CC1_SPEC): Likewise.
32684 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32685
32686 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32687
32688 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32689 the base address on 64-bit strict-alignment platforms.
32690
32691 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32692
32693 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32694
32695 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32696
32697 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32698
32699 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32700
32701 PR rtl-optimization/88308
32702 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32703 on copied instruction.
32704
32705 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32706
32707 * final.c (insn_current_reference_address): Replace test on JUMP_P
32708 with test on jump_to_label_p.
32709 * config/visium/visium-passes.def: New file.
32710 * config/visium/t-visium (PASSES_EXTRA): Define.
32711 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32712 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32713 (TRAMPOLINE_ALIGNMENT): Define.
32714 * config/visium/visium.c (visium_option_override): Do not register
32715 the machine-specific reorg pass here.
32716 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32717 for the GR6.
32718 (output_branch): Adjust threshold for long branch instruction.
32719 * config/visium/visium.md (cpu): Move around.
32720 (length): Adjust for the GR6.
32721
32722 2019-02-15 Richard Biener <rguenther@suse.de>
32723 Jakub Jelinek <jakub@redhat.com>
32724
32725 PR tree-optimization/89278
32726 * tree-loop-distribution.c: Include tree-eh.h.
32727 (generate_memset_builtin, generate_memcpy_builtin): Call
32728 rewrite_to_non_trapping_overflow on builtin->size before passing it
32729 to force_gimple_operand_gsi.
32730
32731 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32732
32733 PR other/89342
32734 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32735 optimize_debug.
32736 * opth-gen.awk: Likewise.
32737
32738 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32739
32740 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32741 Enable MMX, SSE and SSE2 by default.
32742 * config/i386/i386.c (ix86_option_override_internal): Do not
32743 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32744
32745 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32746
32747 PR rtl-optimization/89354
32748 * combine.c (make_extraction): Punt if extraction_mode is narrower
32749 than len bits.
32750
32751 2019-02-14 Maya Rashish <coypu@sdf.org>
32752
32753 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32754 * config/netbsd-d.c: New file.
32755 * config/t-netbsd: Add netbsd-d.o
32756
32757 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32758
32759 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32760 affects_type_identity to true for aarch64_vector_pcs.
32761 (aarch64_comp_type_attributes): New function.
32762 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32763
32764 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32765
32766 PR target/88850
32767 * config/arm/iterators.md (ANY64): Add V4HF.
32768
32769 2019-02-14 Martin Liska <mliska@suse.cz>
32770
32771 PR rtl-optimization/89242
32772 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32773 process a transformation.
32774
32775 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32776
32777 PR tree-optimization/89314
32778 * fold-const.c (fold_binary_loc): Cast strlen argument to
32779 const char * before dereferencing it. Formatting fixes.
32780
32781 PR middle-end/89284
32782 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32783
32784 2019-02-13 Ian Lance Taylor <iant@golang.org>
32785
32786 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32787 and set current index for other optimizations.
32788
32789 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32790
32791 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32792 nonimmediate_operand as operand 2 predicate.
32793 (vec_set<VF2_512_256:mode>_0): Ditto.
32794 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32795 (*vec_concatv2si): Remove alternative 2.
32796 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32797 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32798 (vec_concatv2di): Split alternatives 4,5,6 to ...
32799 (*vec_concatv2di_0) ... new pattern.
32800
32801 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32802
32803 PR target/89190
32804 * config/arm/arm.c (ldm_stm_operation_p) Set
32805 addr_reg_in_reglist correctly for first register.
32806 (load_multiple_sequence): Remove dead base check.
32807 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32808
32809 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32810
32811 PR target/88847
32812 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32813 Expose as @aarch64_pred_mov.
32814 * config/aarch64/aarch64.c (aarch64_classify_address):
32815 Use expand_insn which legitimizes operands.
32816
32817 2019-02-13 Martin Liska <mliska@suse.cz>
32818
32819 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32820 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32821 and pointer_offset fields.
32822 (initialize_argument_information): Remove usage of dead
32823 fields.
32824 * cgraph.h (struct cgraph_thunk_info): Remove
32825 add_pointer_bounds_args.
32826 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32827 fields.
32828 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32829 fields.
32830 * config/i386/i386.c (ix86_function_arg_advance): Remove
32831 unrelated comment.
32832 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32833 (def_builtin): Remove usage of dead fields.
32834 (ix86_add_new_builtins): Likewise.
32835 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32836 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32837 (sem_function::init): Likewise.
32838 (sem_variable::merge): Likewise.
32839 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32840 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32841 * lto-cgraph.c (lto_output_node): Likewise.
32842 (lto_output_varpool_node): Likewise.
32843 (input_node): Likewise.
32844 (input_varpool_node): Likewise.
32845 * lto-streamer-out.c (lto_output): Likewise.
32846 * tree-inline.c (expand_call_inline): Remove usage of
32847 assign_stmts.
32848 * tree-inline.h (struct copy_body_data): Likewise.
32849 * varpool.c (varpool_node::dump): Likewise.
32850
32851 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32852
32853 PR middle-end/89303
32854 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32855 into pt->vars_contains_escaped_heap instead of setting
32856 pt->vars_contains_escaped_heap to it.
32857
32858 PR middle-end/89281
32859 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32860 INTVAL (size), compare it to GET_MODE_MASK instead of
32861 1 << GET_MODE_BITSIZE.
32862
32863 PR target/89290
32864 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32865 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32866 -mcmodel=large.
32867
32868 2019-02-13 Martin Liska <mliska@suse.cz>
32869
32870 PR lto/88858
32871 * cfgrtl.c (remove_barriers_from_footer): New function.
32872 (try_redirect_by_replacing_jump): Use it.
32873 (cfg_layout_redirect_edge_and_branch): Likewise.
32874
32875 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32876
32877 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32878 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32879 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32880 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32881 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32882 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32883 New BU_CRYPTO_2.
32884 * config/rs6000/rs6000.c (builtin_function_type)
32885 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32886 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32887 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32888 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32889 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32890
32891 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32892
32893 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32894 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32895
32896 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32897
32898 PR target/89229
32899 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32900 268678 and revision 268657.
32901 (*movti_internal): Likewise.
32902
32903 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32904
32905 PR target/89233
32906 * config/s390/s390.c (s390_decompose_address): Update comment.
32907 (s390_check_qrst_address): Reject invalid address forms after
32908 LRA.
32909
32910 2019-02-12 Martin Liska <mliska@suse.cz>
32911
32912 PR lto/88876
32913 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32914 we need default values of funct_state for a function that
32915 is not optimized.
32916
32917 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32918
32919 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32920 the object to pick the size of stores on strict-alignment platforms.
32921
32922 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32923 (*movdi_insn_sp32): Likewise.
32924 (*movdi_insn_sp64): Likewise.
32925
32926 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32927
32928 PR lto/88677
32929 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32930 types that needs constructiong.
32931 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32932
32933 2019-02-12 Richard Biener <rguenther@suse.de>
32934
32935 PR tree-optimization/89253
32936 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32937 duplicate the loop.
32938
32939 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32940
32941 PR lto/88147
32942 * input.c (selftest::test_line_offset_overflow): New selftest.
32943 (selftest::input_c_tests): Call it.
32944
32945 2019-02-11 Martin Sebor <msebor@redhat.com>
32946
32947 PR tree-optimization/88771
32948 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32949 when -Wstringop-overflow is set.
32950 (builtin_memref::builtin_memref): Adjust excessive upper bound
32951 only when lower bound is not excessive.
32952 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32953 -Wstringop-ovefflow.
32954 (maybe_diag_offset_bounds): Rename...
32955 (maybe_diag_access_bounds): ...to this.
32956 (check_bounds_or_overlap): Adjust for name change above.
32957
32958 2019-02-11 Martin Sebor <msebor@redhat.com>
32959
32960 PR c++/87996
32961 * builtins.c (max_object_size): Move from here...
32962 * builtins.h (max_object_size): ...and here...
32963 * tree.c (max_object_size): ...to here...
32964 * tree.h (max_object_size): ...and here.
32965
32966 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32967
32968 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32969 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32970 for correct semantics.
32971
32972 2019-02-11 Alan Modra <amodra@gmail.com>
32973
32974 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32975 -mlongcall and -mpltseq.
32976 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32977 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32978 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32979 * config/rs6000/sysv4.opt (mpltseq): New option.
32980 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32981 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32982 support is lacking. Don't allow -mpltseq with -mbss-plt.
32983 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32984 -mpltseq given for ELFv1.
32985 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32986 Only use UNSPEC_PLTSEQ for inline PLT calls.
32987 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32988 use UNSPEC_PLTSEQ for inline PLT calls.
32989 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32990 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32991 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32992 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32993 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32994 (pltseq_mtctr_<mode>): Likewise.
32995
32996 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32997
32998 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32999 Solaris ld.
33000 * configure: Regenerate.
33001
33002 2019-02-11 Jakub Jelinek <jakub@redhat.com>
33003
33004 PR bootstrap/88714
33005 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33006 instead of r.
33007
33008 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33009
33010 * function.c (assign_parm_setup_block): Use the stored
33011 size, not the passed size, when allocating stack-space,
33012 also for a parameter with alignment larger than
33013 MAX_SUPPORTED_STACK_ALIGNMENT.
33014
33015 2019-02-11 Martin Liska <mliska@suse.cz>
33016
33017 PR ipa/89009
33018 * ipa-cp.c (build_toporder_info): Remove usage of a param.
33019 * ipa-inline.c (inline_small_functions): Likewise.
33020 * ipa-pure-const.c (propagate_pure_const): Likewise.
33021 (propagate_nothrow): Likewise.
33022 * ipa-reference.c (propagate): Likewise.
33023 * ipa-utils.c (struct searchc_env): Remove unused field.
33024 (searchc): Always search across AVAIL_INTERPOSABLE.
33025 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33026 the only called IPA pure const can properly not propagate
33027 across interposable boundary.
33028 * ipa-utils.h (ipa_reduced_postorder): Remove param.
33029
33030 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
33031
33032 * config/nds32/nds32.md (call_internal, call_value_internal,
33033 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33034
33035 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33036
33037 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33038 typo.
33039
33040 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
33041
33042 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33043 in comments
33044
33045 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33046
33047 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33048
33049 2019-02-10 Jakub Jelinek <jakub@redhat.com>
33050
33051 PR tree-optimization/89268
33052 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33053 if preds is non-NULL.
33054
33055 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33056
33057 PR lto/89272
33058 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33059 polymorphic types.
33060
33061 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33062
33063 * config/nds32/nds32.md (trap): New pattern.
33064
33065 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33066
33067 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33068 dwarf span.
33069
33070 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33071
33072 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33073 to split POST_INC.
33074
33075 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33076
33077 * ipa-visibility.c (localize_node): Also do not localize
33078 LDPR_PREVAILING_DEF_IRONLY_EXP.
33079
33080 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33081
33082 PR lto/87957
33083 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33084 instead of type_with_linkage.
33085
33086 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33087
33088 PR ipa/88755
33089 * params.def (uninlined-function-insns, uninlined-function-time,
33090 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33091 bound so we don't get overflows.
33092
33093 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
33094
33095 * config/rs6000/rs6000-string.c (expand_compare_loop,
33096 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33097 memcmp/strncmp.
33098
33099 2019-02-09 Jakub Jelinek <jakub@redhat.com>
33100
33101 PR middle-end/89246
33102 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33103 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33104 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33105
33106 2019-02-09 Alan Modra <amodra@gmail.com>
33107
33108 PR target/88343
33109 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33110 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
33111 setup.
33112
33113 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
33114
33115 PR middle-end/88560
33116 * lra-constraints.c (process_alt_operands): Don't increase reject
33117 for memory when offset memory is required.
33118
33119 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33120
33121 * config/s390/vector.md: Implement vector copysign.
33122
33123 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33124
33125 * expr.c (expand_constructor): Correct indentations.
33126
33127 2019-02-08 Richard Biener <rguenther@suse.de>
33128
33129 PR tree-optimization/89247
33130 * tree-if-conv.c: Include tree-cfgcleanup.h.
33131 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33132 (tree_if_conversion): Pass through predicate vector.
33133 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33134 inline, see if any if-converted loops we refrece in
33135 LOOP_VECTORIZED calls vanished and fixup.
33136 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33137
33138 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33139
33140 * config/s390/constraints.md (jdd): New constraint.
33141
33142 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33143
33144 PR target/89229
33145 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33146 upper 16 vector registers without TARGET_AVX512VL.
33147 (*movti_internal): Likewise.
33148
33149 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33150
33151 PR rtl-optimization/89234
33152 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33153 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33154 (copy_reg_eh_region_note_backward): Likewise.
33155
33156 2019-02-08 Richard Biener <rguenther@suse.de>
33157
33158 PR middle-end/89223
33159 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33160 doesn't fit in HWI.
33161 (analyze_subscript_affine_affine): Handle failure from
33162 initialize_matrix_A.
33163
33164 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33165
33166 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33167 cfun everywhere.
33168
33169 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33170
33171 PR tree-optimization/86637
33172 PR tree-optimization/89235
33173 * tree-vect-loop.c (optimize_mask_stores): Add an
33174 auto_purge_vect_location sentinel to ensure that vect_location is
33175 purged on exit.
33176 * tree-vectorizer.c
33177 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33178 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33179 to ensure that vect_location is purged on exit.
33180 (pass_slp_vectorize::execute): Likewise, replacing the manual
33181 reset.
33182 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33183
33184 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33185
33186 * config/aarch64/iterators.md (max_opp): New code_attr.
33187 (USMAX): New code iterator.
33188 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33189 (aarch64_smax): Likewise.
33190 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33191 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33192 MINUS (MAX MIN).
33193
33194 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33195
33196 PR target/89229
33197 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33198 for TARGET_AVX512VL.
33199 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33200
33201 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33202
33203 * config/s390/s390-builtin-types.def: Add new types.
33204 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33205 (s390_vec_xlw4): Make the memory operand into a const pointer.
33206 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33207 float.
33208 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33209 a new vector type with the alignment of the scalar memory operand.
33210
33211 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33212 Jakub Jelinek <jakub@redhat.com>
33213
33214 PR bootstrap/88714
33215 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33216 arm_count_ldrdstrd_insns): New declarations.
33217 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33218 MINUS.
33219 (valid_operands_ldrd_strd): New function.
33220 (arm_count_ldrdstrd_insns): New function.
33221 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33222 sets instead of single DImode set and define new insns to match this.
33223
33224 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33225
33226 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33227 Make it a C initializer.
33228
33229 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33230
33231 PR/target 88850
33232 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33233
33234 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33235
33236 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33237 Use neon_dot<q> for type.
33238 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33239
33240 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33241
33242 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33243 Use neon_dot<q> for type.
33244 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33245 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33246
33247 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33248
33249 PR rtl-optimization/89225
33250 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33251 sizes check.
33252
33253 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33254
33255 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33256 after restoring registers saved to allocate the frame on Windows.
33257
33258 2019-02-06 Richard Biener <rguenther@suse.de>
33259
33260 PR tree-optimization/89182
33261 * graphite.h (cached_scalar_evolution_in_region): Declare.
33262 * graphite.c (struct seir_cache_key): New.
33263 (struct sese_scev_hash): Likewise.
33264 (seir_cache): New global.
33265 (cached_scalar_evolution_in_region): New function.
33266 (graphite_transform_loops): Allocate and release seir_cache.
33267 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33268 cached_scalar_evolution_in_region.
33269 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33270 Simplify.
33271 (scop_detection::graphite_can_represent_expr: Use
33272 cached_scalar_evolution_in_region.
33273 (scop_detection::stmt_simple_for_scop_p): Likewise.
33274 (find_params_in_bb): Likewise.
33275 (gather_bbs::before_dom_children): Likewise.
33276 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33277 (add_loop_constraints): Likewise.
33278
33279 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33280
33281 PR middle-end/89210
33282 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33283 operand to new_unary_operation only if both element types are integral
33284 and it isn't a widening conversion. Return NULL_TREE if
33285 new_unary_operation failed.
33286
33287 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33288
33289 PR target/88856
33290 * config/s390/s390.md: Remove load and test FP splitter.
33291
33292 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33293
33294 PR target/89112
33295 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33296 expand_compare_loop, expand_block_compare_gpr,
33297 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33298 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33299 #include "profile-count.h" and "predict.h" for types and functions
33300 needed to work with REG_BR_PROB notes.
33301
33302 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33303
33304 PR target/89112
33305 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33306 for the long branch case.
33307
33308 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33309
33310 PR target/89188
33311 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33312 can throw, non-call exceptions are enabled and we can't delete
33313 dead exceptions or alter cfg. Set must_clean if
33314 delete_insn_and_edges returns true, don't set it blindly for calls.
33315 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33316
33317 PR rtl-optimization/89195
33318 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33319 of the original MEM.
33320
33321 2019-02-05 Martin Liska <mliska@suse.cz>
33322
33323 PR gcov-profile/89000
33324 * gcov.c (function_summary): Remove argument.
33325 (file_summary): New function.
33326 (print_usage): Replace tabs with spaces.
33327 (generate_results): Use new function file_summary.
33328
33329 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33330
33331 PR target/89186
33332 * optabs.c (prepare_cmp_insn): Pass x and y to
33333 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33334
33335 2019-02-05 Richard Biener <rguenther@suse.de>
33336
33337 PR middle-end/89150
33338 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33339 (struct bitmap_element): Drop chain_prev so we properly recurse on
33340 the prev member, supporting tree views.
33341 (struct bitmap_head): GTY skip the obstack member.
33342
33343 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33344
33345 PR c/88698
33346 * doc/extend.texi (Vector Extensions): Add an example of using vector
33347 types together with x86 intrinsics.
33348
33349 2019-02-04 Alan Modra <amodra@gmail.com>
33350
33351 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33352 str[] size to 160, and comment.
33353
33354 2019-02-04 Alan Modra <amodra@gmail.com>
33355
33356 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33357 (rs6000_pltseq_template): Guard output of TLS markers with
33358 TARGET_TLS_MARKERS.
33359 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33360 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33361 to use inline PLT sequences.
33362 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33363 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33364 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33365
33366 2019-02-04 Martin Liska <mliska@suse.cz>
33367
33368 PR ipa/88985
33369 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33370 out when ipa_fn_summaries does not contain entry for callee.
33371
33372 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33373
33374 * config/sparc/sparc.h: Remove superfluous blank lines.
33375 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33376 (got_register_rtx): ...this.
33377 (sparc_got): Adjust to above renaming.
33378 (sparc_tls_got): Likewise.
33379 (sparc_delegitimize_address): Likewise.
33380 (sparc_output_mi_thunk): Likewise.
33381 (sparc_init_pic_reg): Likewise.
33382 (save_local_or_in_reg_p): Fix test on the GOT register.
33383 (USE_HIDDEN_LINKONCE): Move around.
33384 (get_pc_thunk_name): Likewise.
33385 (gen_load_pcrel_sym): Likewise.
33386 (load_got_register): Likewise.
33387
33388 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33389
33390 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33391 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33392
33393 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33394
33395 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33396 into consideration.
33397
33398 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33399
33400 * config.gcc (with_nds32_lib, glibc):
33401 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33402 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33403 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33404
33405 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33406
33407 PR target/89071
33408 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33409 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33410 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33411 (*rcpsf2_sse): Ditto.
33412 (*rsqrtsf2_sse): Ditto.
33413 (sse4_1_round<mode<2): Ditto.
33414
33415 2019-02-03 Richard Biener <rguenther@suse.de>
33416
33417 PR debug/87295
33418 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33419 orig.
33420
33421 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33422
33423 PR middle-end/87887
33424 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33425 Punt with warning on aggregate return or argument types. Ignore
33426 type/mode checking for uniform arguments.
33427
33428 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33429
33430 * combine.c (try_combine): Do not print "Can't combine" messages unless
33431 printing failed combination attempts.
33432
33433 2019-02-01 Martin Jambor <mjambor@suse.cz>
33434
33435 PR hsa/87863
33436 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33437 segment and global segment variables before making them static.
33438
33439 2019-02-01 Martin Jambor <mjambor@suse.cz>
33440
33441 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33442 missed optimization dump with dump_enabled_p.
33443
33444 2019-02-01 Richard Biener <rguenther@suse.de>
33445
33446 PR middle-end/88597
33447 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33448 the instantiate cache.
33449 (instantiate_scev_binary): Elide second operand procesing
33450 if equal to the first.
33451 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33452 (chrec_contains_undetermined): Likewise.
33453 (tree_contains_chrecs): Likewise.
33454
33455 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33456
33457 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33458
33459 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33460
33461 PR tree-optimization/89143
33462 * wide-int-range.h (wide_int_range_absu): Declare.
33463 * wide-int-range.cc (wide_int_range_absu): New function.
33464 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33465
33466 PR tree-optimization/88107
33467 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33468 instead of assertion that eh_region_outermost is non-NULL, if it
33469 is NULL, set *ALL to true and return NULL.
33470 (move_sese_region_to_fn): Adjust caller, if all is set, call
33471 duplicate_eh_regions with NULL region.
33472
33473 2019-02-01 Richard Biener <rguenth@suse.de>
33474
33475 PR rtl-optimization/88593
33476 * mode-switching.c (optimize_mode_switching): Free dominators before
33477 calling cleanup_cfg.
33478
33479 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33480
33481 PR tree-optimization/88932
33482 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33483
33484 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33485
33486 PR middle-end/89137
33487 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33488 bogus clang warning.
33489
33490 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33491
33492 PR target/89071
33493 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33494 alternative to avoid partial SSE register stall for TARGET_AVX.
33495 (truncdfsf2): Ditto.
33496 (sse4_1_round<mode>2): Ditto.
33497
33498 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33499
33500 PR tree-optimization/89008
33501 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33502 process anything of the form X * 0.
33503
33504 2019-01-31 Richard Biener <rguenther@suse.de>
33505
33506 PR tree-optimization/89135
33507 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33508 with abnormal preds.
33509
33510 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33511
33512 PR sanitizer/89124
33513 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33514 always_inline callees into no_sanitize_address callers.
33515
33516 2019-01-31 Richard Biener <rguenther@suse.de>
33517
33518 PR rtl-optimization/89115
33519 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33520
33521 2019-01-30 Martin Sebor <msebor@redhat.com>
33522
33523 PR other/89106
33524 * doc/extend.texi (cast to a union): Correct and expand.
33525
33526 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33527
33528 PR rtl-optimization/87246
33529 * lra-constraints.c (simplify_operand_subreg): Reload memory
33530 in subreg if the address became invalid.
33531
33532 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33533
33534 PR target/87064
33535 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33536 Disable for little-endian.
33537
33538 2019-01-30 Richard Biener <rguenther@suse.de>
33539
33540 PR rtl-optimization/89115
33541 * opts.c (default_options_optimization): Reduce
33542 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33543 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33544 to the default.
33545
33546 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33547
33548 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33549 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33550 type of vector element when vec_extract is implemented by direct
33551 move.
33552
33553 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33554
33555 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33556
33557 2019-01-30 Richard Biener <rguenther@suse.de>
33558
33559 PR tree-optimization/89111
33560 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33561 canonicalization to appropriately sized access types.
33562
33563 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33564
33565 PR c++/89105
33566 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33567 for arguments to functions that are TU-local and shouldn't be
33568 referenced by assembly.
33569
33570 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33571
33572 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33573 after '='.
33574
33575 2019-01-29 Martin Sebor <msebor@redhat.com>
33576
33577 PR c/88956
33578 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33579
33580 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33581
33582 PR c++/66676
33583 PR ipa/89104
33584 * omp-simd-clone.c (simd_clone_clauses_extract)
33585 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33586 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33587
33588 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33589
33590 * config.gcc: Force .init_array for ARC.
33591
33592 2019-01-29 Richard Biener <rguenther@suse.de>
33593
33594 PR debug/87295
33595 * dwarf2out.c (collect_skeleton_dies): New helper.
33596 (copy_decls_for_unworthy_types): Call it.
33597 (build_abbrev_table): Assert we do not try to replace
33598 DW_AT_signature refs with local refs.
33599
33600 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33601
33602 PR middle-end/89002
33603 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33604 for lastprivate/linear IV, push gimplify context around gimplify_assign
33605 and, if it needed any temporaries, pop it into a gimple bind around the
33606 sequence.
33607
33608 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33609
33610 * common.opt (-Wattribute-alias): Remove "no-" from name.
33611 Make -Wattribute-alias command line option and
33612 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33613
33614 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33615
33616 PR target/89073
33617 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33618 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33619 x86 ISA options.
33620 (bmi2): Add missing @opindex.
33621 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33622 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33623 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33624 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33625 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33626 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33627 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33628 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33629 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33630 xsavec, xsaveopt and xsaves options.
33631
33632 2019-01-28 Richard Biener <rguenther@suse.de>
33633
33634 PR debug/89076
33635 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33636 support removal.
33637
33638 2019-01-28 Richard Biener <rguenther@suse.de>
33639
33640 PR tree-optimization/88739
33641 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33642 BIT_FIELD_REFs only are applied to mode-precision operands
33643 when they are integral.
33644 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33645 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33646 BIT_FIELD_REFs of non-mode-precision integral operands.
33647
33648 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33649
33650 PR target/87214
33651 * config/i386/sse.md
33652 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33653 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33654 first constants in pairs are multiples of 2. Formatting fixes.
33655 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33656 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33657 first constants in each quadruple are multiples of 4. Formatting fixes.
33658
33659 2019-01-26 Martin Jambor <mjambor@suse.cz>
33660
33661 PR ipa/88933
33662 * tree-inline.c: Include tree-cfgcleanup.h.
33663 (delete_unreachable_blocks_update_callgraph): Move...
33664 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33665 ...here, make externally visible, make second argument bool, adjust
33666 all callers.
33667 * tree-cfgcleanup.c: Include cgraph.h.
33668 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33669 Declare.
33670 * ipa-prop.c: Include tree-cfgcleanup.h.
33671 (ipcp_transform_function): Call
33672 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33673
33674 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33675
33676 PR rtl-optimization/88846
33677 * ira.c (process_set_for_memref_referenced_p): New.
33678 (memref_referenced_p): Add new param. Use
33679 process_set_for_memref_referenced_p. Add new switch cases.
33680 (memref_used_between_p): Pass new arg to memref_referenced_p.
33681
33682 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33683
33684 PR target/88469
33685 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33686 argument ABI_BREAK. Set to true if the calculated alignment has
33687 changed in gcc-9. Check bit-fields for their base type alignment.
33688 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33689 (aarch64_function_arg_boundary): Likewise.
33690 (aarch64_gimplify_va_arg_expr): Likewise.
33691
33692 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33693
33694 PR middle-end/89037
33695 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33696 instead of accessing TREE_INT_CST_ELT directly.
33697
33698 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33699
33700 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33701 fenv_exceptions description.
33702
33703 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33704
33705 PR rtl-optimization/87763
33706 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33707 Allow SUBREG when matching CC_NZmode compare.
33708
33709 2019-01-25 Richard Biener <rguenther@suse.de>
33710
33711 PR tree-optimization/89049
33712 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33713 Look at the pattern stmt to determine if the stmt is vectorized.
33714
33715 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33716
33717 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33718 (pred_mov<mode>): Handle all-register forms using both a new
33719 alternative and a split.
33720
33721 2019-01-25 Richard Biener <rguenther@suse.de>
33722
33723 PR tree-optimization/86865
33724 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33725 Reject non-do-while loops.
33726
33727 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33728
33729 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33730 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33731 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33732 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33733 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33734 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33735 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33736 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33737 vlogical_operand, gpc_reg_operand, int_reg_operand,
33738 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33739 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33740 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33741 (save_world_operation, restore_world_operation, lmw_operation,
33742 stmw_operation): Use MEM_P and REG_P.
33743 (tie_operand): Use MEM_P.
33744 (vrsave_operation, crsave_operation): Use REG_P.
33745 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33746 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33747 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33748 (call_operand): Use HARD_REGISTER_P.
33749 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33750 Use CONST_INT_P.
33751 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33752 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33753 quad_aligned_load_p, replace_swapped_aligned_store,
33754 recombine_lvx_pattern, replace_swapped_aligned_load,
33755 recombine_stvx_pattern): Use MEM_P.
33756 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33757 Use MEM_P and SYMBOL_REF_P.
33758 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33759 (insn_is_swappable_p): Use REG_P and MEM_P.
33760 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33761 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33762 Use CONST_INT_P.
33763 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33764 Use CONST_DOUBLE_P.
33765 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33766 CONST_WIDE_INT_P.
33767 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33768 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33769 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33770 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33771 reg_or_subregno:
33772 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33773 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33774 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33775 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33776 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33777 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33778 rs6000_split_logical_di): Use CONST_INT_P.
33779 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33780 REG_P and SYMBOL_REF_P.
33781 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33782 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33783 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33784 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33785 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33786 (small_data_operand, print_operand_address): Use CONST_INT_P and
33787 SYMBOL_REF_P.
33788 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33789 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33790 Use HARD_REGISTER_NUM_P.
33791 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33792 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33793 SUBREG_P and SYMBOL_REF_P.
33794 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33795 and HARD_REGISTER_NUM_P.
33796 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33797 reg_or_subregno.
33798 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33799 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33800 MEM_P and REG_P.
33801 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33802 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33803 find_addr_reg): Use REG_P.
33804 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33805 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33806 (offsettable_ok_by_alignment, constant_pool_expr_p,
33807 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33808 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33809 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33810 rs6000_assemble_integer, create_TOC_reference,
33811 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33812 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33813 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33814 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33815 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33816 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33817 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33818 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33819 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33820 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33821 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33822 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33823 and cbranch<mode>4): Use CONST_INT_P.
33824 (multiple define_splits): Use REG_P and SUBREG_P.
33825 (define_expands call, call_value): Use MEM_P.
33826 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33827 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33828 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33829 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33830 and HARD_REGISTER_NUM_P.
33831 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33832
33833 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33834
33835 PR rtl-optimization/88948
33836 * rtl.h (prepare_copy_insn): New prototype.
33837 * gcse.c (prepare_copy_insn): New function, split out from
33838 process_insert_insn.
33839 (process_insert_insn): Use prepare_copy_insn.
33840 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33841 instead of gen_move_insn.
33842
33843 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33844
33845 PR debug/89006
33846 * config/i386/i386.c (ix86_pic_register_p): Return true for
33847 UNSPEC_SET_GOT too.
33848
33849 PR tree-optimization/88964
33850 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33851 punt if HONOR_SNANS (chrec).
33852
33853 PR middle-end/89015
33854 * tree-nested.c (convert_nonlocal_reference_stmt,
33855 convert_local_reference_stmt, convert_tramp_reference_stmt,
33856 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33857 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33858 or GIMPLE_OMP_TASK.
33859
33860 PR tree-optimization/89027
33861 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33862 for "omp simd array" variables.
33863
33864 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33865
33866 PR target/88469
33867 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33868 force the alignment of m_val.
33869
33870 2019-01-24 Richard Biener <rguenther@suse.de>
33871
33872 PR lto/87187
33873 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33874 When in "legacy" debug mode make sure to reset self-origins.
33875
33876 2019-01-24 Martin Liska <mliska@suse.cz>
33877
33878 PR gcov-profile/88994
33879 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33880 result will be always smaller or equal to the original.
33881 * gcov.c (mangle_name): Fix else branch where we should
33882 also copy to PTR and shift the pointer.
33883
33884 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33885
33886 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33887 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33888
33889 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33890
33891 * common/config/i386/i386-common.c
33892 (OPTION_MASK_ISA_ENQCMD_SET,
33893 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33894 (ix86_handle_option): Handle -menqcmd.
33895 * config.gcc (enqcmdintrin.h): New header file.
33896 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33897 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33898 -menqcmd.
33899 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33900 function type.
33901 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33902 __builtin_ia32_enqcmds): New builtins.
33903 * config/i386/i386-c.c (__ENQCMD__): New macro.
33904 * config/i386/i386-option.c (ix86_target_string): Add
33905 -menqcmd.
33906 (ix86_valid_target_attribute_inner_p): Likewise.
33907 * config/i386/i386-expand.c
33908 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33909 IX86_BUILTIN_ENQCMDS.
33910 * config/i386/i386.h (TARGET_ENQCMD): New.
33911 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33912 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33913 (movdir64b_<mode>): Parameterize to enable share expansion code
33914 with ENQCMD in function ix86_expand_builtin.
33915 * config/i386/i386.opt: Add -menqcmd.
33916 * config/i386/immintrin.h: Include enqcmdintrin.h.
33917 * config/i386/enqcmdintrin.h: New intrinsic file.
33918 * doc/invoke.texi: Add -menqcmd.
33919
33920 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33921 Steve Ellcey <sellcey@marvell.com>
33922
33923 PR target/85711
33924 * recog.c (address_operand): Return false on wrong mode for address.
33925 (constrain_operands): Check for mode with 'p' constraint.
33926
33927 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33928
33929 PR target/88998
33930 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33931 Disparage MMX alternative.
33932 (sse2_cvtpd2pi): Ditto.
33933 (sse2_cvttpd2pi): Ditto.
33934
33935 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33936
33937 PR driver/89014
33938 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33939 use-after-free of the result of
33940 aarch64_get_extension_string_for_isa_flags.
33941
33942 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33943
33944 PR c/44715
33945 * doc/extend.texi: Document break and continue behavior in
33946 statement expressions.
33947
33948 2019-01-23 Richard Biener <rguenther@suse.de>
33949
33950 PR tree-optimization/89008
33951 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33952 not leave another stray operand.
33953
33954 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33955
33956 * BASE-VER: Bump to 9.0.1.
33957
33958 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33959
33960 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33961 thunk that returns by reference, use the type of the return object
33962 of the thunk instead of that of the alias to build the dereference.
33963
33964 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33965
33966 * config/arc/atomic.md: Add operand to DMB instruction.
33967
33968 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33969
33970 PR tree-optimization/88964
33971 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33972 build_zero_cst instead of build_int_cst. Return false for loop
33973 invariants which honor signed zeros.
33974
33975 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33976
33977 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33978
33979 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33980
33981 PR target/88965
33982 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33983 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33984 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33985
33986 PR middle-end/88968
33987 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33988 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33989
33990 PR target/87064
33991 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33992 Disable for little endian.
33993
33994 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33995
33996 PR target/88469
33997 * config/arm/arm.c (arm_needs_double_word_align): Check
33998 DECL_BIT_FIELD_TYPE.
33999
34000 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
34001 H.J. Lu <hongjiu.lu@intel.com>
34002
34003 PR target/88909
34004 * config/i386/i386-builtin.def: Add mask2 to all builtin
34005 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34006 SPECIAL_ARGS.
34007 * config/i386/i386.c (BDESC): Add mask2 to the definition.
34008 (BDESC_FIRST): Likewise.
34009 (define_builtin): Add an argument for mask2. Updated to handle
34010 both ix86_isa_flags and ix86_isa_flags2.
34011 (define_builtin_const): Likewise.
34012 (define_builtin_pure): Likewise.
34013 (define_builtin2): Deleted.
34014 (define_builtin_const2): Likewise.
34015 (builtin_description): Add a member, mask2.
34016 (bdesc_*): Add mask2 to builtin initializations.
34017 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34018 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
34019 support.
34020 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34021
34022 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
34023
34024 PR target/88954
34025 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34026 noplt attribute.
34027
34028 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34029
34030 PR target/88469
34031 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34032 alignment is dominated by a bitfield with 64-bit aligned base type.
34033 (arm_function_arg): Emit a warning if the alignment has changed since
34034 earlier GCC releases.
34035 (arm_function_arg_boundary): Likewise.
34036 (arm_setup_incoming_varargs): Likewise.
34037
34038 2019-01-22 Richard Biener <rguenther@suse.de>
34039
34040 PR tree-optimization/88862
34041 * graphite-scop-detection.c
34042 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34043
34044 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
34045
34046 * doc/extend.tex (AMD GCN Function Attributes): New section.
34047 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34048 * doc/invoke.texi (AMD GCN Options): New section.
34049 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34050
34051 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
34052
34053 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34054 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34055
34056 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34057
34058 PR tree-optimization/88044
34059 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34060 is false in the first iteration, but !every_iteration, return false
34061 instead of true with niter->niter zero.
34062
34063 PR rtl-optimization/88904
34064 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34065 any nonequal registers before processing BB_END (b).
34066
34067 PR target/88905
34068 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34069 GET_MODE (op0).
34070 (expand_binop_directly, expand_doubleword_clz,
34071 expand_doubleword_popcount, expand_ctz, expand_ffs,
34072 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34073
34074 PR rtl-optimization/49429
34075 PR target/49454
34076 PR rtl-optimization/86334
34077 PR target/88906
34078 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34079 addressable from here...
34080 (emit_block_op_via_libcall): ... to here.
34081
34082 2019-01-22 Richard Biener <rguenther@suse.de>
34083
34084 * tree-vect-loop.c (vect_analyze_loop_operations): Use
34085 auto_vec for cost vector to fix memleak.
34086 (vectorize_fold_left_reduction): Properly gather SLP defs.
34087 (vectorizable_comparison): Do not swap operands to properly
34088 gather SLP defs.
34089
34090 2019-01-22 Alan Modra <amodra@gmail.com>
34091
34092 PR target/88614
34093 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34094 stays a reg. Allow a const_int.
34095 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34096 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34097 (IS_NOMARK_TLSGETADDR): Define.
34098 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34099 (rs6000_output_tlsargs): New function.
34100 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34101 __tls_get_addr call takes an arg.
34102 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34103 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34104 delete split..
34105 (call_value_nonlocal_sysv): ..or here, delete split.
34106 (tls_gdld_nomark): Delete.
34107 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34108 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
34109 (call_value_nonlocal_sysv): Likewise.
34110 (call_value_nonlocal_sysv_secure): Likewise.
34111 (call_value_nonlocal_aix): Likewise.
34112 (call_value_indirect_aix): Likewise.
34113 (call_value_indirect_elfv2): Likewise.
34114 (call_value_local32, call_value_local64): Disable for no-mark tls.
34115 (call_value_local_aix): Likewise.
34116
34117 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
34118
34119 PR target/88938
34120 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34121 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34122
34123 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34124
34125 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34126 string contents as hash_map keys.
34127
34128 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34129
34130 PR c/88928
34131 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34132 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34133 instead of TYPE_ALIGN.
34134 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34135 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34136 pointer from TYPE_STUB_DECL.
34137
34138 2019-01-21 Richard Biener <rguenther@suse.de>
34139
34140 PR tree-optimization/88934
34141 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34142 at the possibly non-constant operand.
34143 (vect_get_constant_vectors): Adjust.
34144
34145 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34146
34147 PR target/71659
34148 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34149 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34150 instead of _X86INTRIN_H_INCLUDED.
34151 * onfig/i386/clwbintrin.h: Likewise.
34152 * config/i386/pkuintrin.h: Likewise.
34153 * config/i386/prfchwintrin.h: Likewise.
34154 * config/i386/rdseedintrin.h: Likewise.
34155 * config/i386/wbnoinvdintrin.h: Likewise.
34156 * config/i386/xsavecintrin.h: Likewise.
34157 * config/i386/xsavesintrin.h: Likewise.
34158 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34159 * config/i386/xsaveintrin.h: Likewise.
34160 * config/i386/xsaveoptintrin.h: Likewise.
34161 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34162 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34163 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34164 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34165 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34166 * config/i386/immintrin.h: Here.
34167
34168 2019-01-20 Martin Jambor <mjambor@suse.cz>
34169
34170 PR ipa/87615
34171 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34172 with aa_walk_budget.
34173 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34174 aa_walk_budget_p parameter.
34175 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34176 walk. Updated all callers.
34177 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34178 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34179 unmodified_parm.
34180 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34181 parameter info. Extract info from fbi. Pass fbi to recursive calls
34182 and to unmodified_parm.
34183 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34184 info, updated call to will_be_nonconstant_expr_predicate.
34185 (param_change_prob): New parameter fbi, limit AA walking.
34186 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34187 calls to various above functions.
34188 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34189 parameter. Use it to limit AA walking.
34190 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34191 fbi, limit AA walk.
34192 (detect_type_change): New parameter fbi, pass it on to
34193 detect_type_change_from_memory_writes.
34194 (detect_type_change_ssa): Likewise.
34195 (aa_overwalked): Removed.
34196 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34197 accordingly, adjust to the neew AA limiting scheme.
34198 (parm_ref_data_preserved_p): Likewise.
34199 (ipa_compute_jump_functions_for_edge): Adjust call to
34200 get_dynamic_type.
34201 (ipa_analyze_call_uses): Likewise.
34202 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34203 (ipa_analyze_node): Initialize aa_walk_budget.
34204 (ipcp_transform_function): Likewise.
34205 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34206 to get_dynamic_type.
34207
34208 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34209
34210 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34211 outside of #if CHECKING_P code.
34212
34213 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34214
34215 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34216 New function, split out from...
34217 (loop_versioning::analyze_stride): ...here.
34218 (loop_versioning::find_per_loop_multiplication): Use gassign.
34219 (loop_versioning::analyze_term_using_scevs): Return a success code.
34220 (loop_versioning::analyze_arbitrary_term): New function.
34221 (loop_versioning::analyze_address_fragment): Use
34222 analyze_arbitrary_term if all else fails.
34223
34224 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34225
34226 PR target/88892
34227 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34228 operands.
34229
34230 2019-01-18 Richard Biener <rguenther@suse.de>
34231
34232 PR tree-optimization/88903
34233 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34234 scalar stmts a SLP shift amount is composed of when detecting
34235 shifts by scalars.
34236
34237 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34238
34239 PR target/88799
34240 * config/arm/arm-cpus.in (mp): New feature.
34241 (sec): New feature.
34242 (fgroup ARMv7ve): Add mp and sec features.
34243 (arch armv7-a): Add options to allow mp and sec extensions.
34244 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34245 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34246 extenstions to the base architecture.
34247 (cpu cortex-a8): Add sec extension to the base architecture.
34248 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34249 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34250 variants down to the base v7-a varaint.
34251 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34252 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34253 of permitted extensions for -march=armv7-a and for
34254 -mcpu=generic-armv7-a.
34255
34256 2019-01-18 Martin Liska <mliska@suse.cz>
34257
34258 * params.def: Fix comment.
34259 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34260 name.
34261 (gimple_gen_ic_func_profiler): Likewise.
34262
34263 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34264
34265 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34266 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34267 and put in error checks for stack protector guard options.
34268 (aarch64_stack_protect_guard): New.
34269 (TARGET_STACK_PROTECT_GUARD): Define.
34270 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34271 (reg_stack_protect_address<mode>): New.
34272 (stack_protect_set): Adjust for SSP_GLOBAL.
34273 (stack_protect_test): Likewise.
34274 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34275 (-mstack-protector-guard): Likewise.
34276 (-mstack-protector-guard-offset): Likewise.
34277
34278 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34279
34280 PR tree-optimization/86214
34281 * tree-inline.h (struct copy_body_data): Add
34282 add_clobbers_to_eh_landing_pads member.
34283 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34284 (copy_edges_for_bb): Call it if EH edge destination is <
34285 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34286 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34287 if flag_stack_reuse != SR_NONE and clear it afterwards.
34288
34289 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34290
34291 PR target/85596
34292 * doc/install.texi (with-multilib-list): Document for aarch64.
34293
34294 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34295
34296 PR target/88734
34297 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34298 (("..."))) with ("...").
34299
34300 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34301
34302 * doc/extend.texi (Built-in Functions for Memory Model Aware
34303 Atomic Operations): Document atomic fetch and nand.
34304
34305 2019-01-18 Martin Liska <mliska@suse.cz>
34306 Richard Biener <rguenther@suse.de>
34307
34308 PR middle-end/88587
34309 * cgraph.h (create_version_clone_with_body): Add new argument
34310 with attributes.
34311 * cgraphclones.c (cgraph_node::create_version_clone): Add
34312 DECL_ATTRIBUTES to a newly created decl. And call
34313 valid_attribute_p so that proper cl_target_optimization_node
34314 is set for the newly created declaration.
34315 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34316 for declaration.
34317 (expand_target_clones): Do not call valid_attribute_p, it must
34318 be already done.
34319 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34320 vector types.
34321
34322 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34323
34324 PR target/88734
34325 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34326 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34327 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34328
34329 2019-01-17 Martin Sebor <msebor@redhat.com>
34330
34331 PR middle-end/88273
34332 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34333 Handle anti-ranges the same as no range at all.
34334
34335 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34336
34337 * config/aarch64/aarch64.c (cgraph.h): New include.
34338 (intl.h): New include.
34339 (supported_simd_type): New function.
34340 (currently_supported_simd_type): Ditto.
34341 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34342 (aarch64_simd_clone_adjust): Ditto.
34343 (aarch64_simd_clone_usable): Ditto.
34344 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34345 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34346 (TARGET_SIMD_CLONE_USABLE): Ditto.
34347 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34348 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34349 call.
34350
34351 2019-01-17 Martin Sebor <msebor@redhat.com>
34352
34353 PR tree-optimization/88800
34354 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34355 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34356 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34357 redundant argument. Add new argument and issue diagnostics under
34358 its control. Detect out-of-bounds access even with warnings
34359 disabled.
34360 (check_bounds_or_overlap): Change return type. Add argument.
34361 (wrestrict_dom_walker::check_call): Adjust.
34362 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34363 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34364 check_bounds_or_overlap's return value.
34365 (handle_builtin_stxncpy): Same.
34366 (handle_builtin_strcat): Same.
34367
34368 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34369 Kwok Cheung Yeung <kcy@codesourcery.com>
34370 Julian Brown <julian@codesourcery.com>
34371 Tom de Vries <tom@codesourcery.com>
34372
34373 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34374
34375 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34376
34377 * doc/sourcebuild.texi: Document dg-require-effective-target
34378 llvm_binutils and offload_gcn.
34379
34380 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34381 Kwok Cheung Yeung <kcy@codesourcery.com>
34382 Julian Brown <julian@codesourcery.com>
34383 Tom de Vries <tom@codesourcery.com>
34384
34385 * doc/sourcebuild.texi: Document dg-required-effective-target
34386 exceptions.
34387
34388 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34389 Kwok Cheung Yeung <kcy@codesourcery.com>
34390 Julian Brown <julian@codesourcery.com>
34391 Tom de Vries <tom@codesourcery.com>
34392 Jan Hubicka <hubicka@ucw.cz>
34393 Martin Jambor <mjambor@suse.cz>
34394
34395 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34396 * configure.ac: Check for dlopen.
34397 * configure: Regenerate.
34398
34399 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34400 Kwok Cheung Yeung <kcy@codesourcery.com>
34401 Julian Brown <julian@codesourcery.com>
34402 Tom de Vries <tom@codesourcery.com>
34403 Jan Hubicka <hubicka@ucw.cz>
34404 Martin Jambor <mjambor@suse.cz>
34405
34406 * common/config/gcn/gcn-common.c: New file.
34407 * config/gcn/driver-gcn.c: New file.
34408 * config/gcn/gcn-builtins.def: New file.
34409 * config/gcn/gcn-hsa.h: New file.
34410 * config/gcn/gcn-modes.def: New file.
34411 * config/gcn/gcn-opts.h: New file.
34412 * config/gcn/gcn-passes.def: New file.
34413 * config/gcn/gcn-protos.h: New file.
34414 * config/gcn/gcn-run.c: New file.
34415 * config/gcn/gcn-tree.c: New file.
34416 * config/gcn/gcn.c: New file.
34417 * config/gcn/gcn.h: New file.
34418 * config/gcn/gcn.opt: New file.
34419 * config/gcn/t-gcn-hsa: New file.
34420
34421 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34422 Kwok Cheung Yeung <kcy@codesourcery.com>
34423 Julian Brown <julian@codesourcery.com>
34424 Tom de Vries <tom@codesourcery.com>
34425 Jan Hubicka <hubicka@ucw.cz>
34426 Martin Jambor <mjambor@suse.cz>
34427
34428 * config/gcn/constraints.md: New file.
34429 * config/gcn/gcn-valu.md: New file.
34430 * config/gcn/gcn.md: New file.
34431 * config/gcn/predicates.md: New file.
34432
34433 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34434
34435 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34436 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34437 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34438 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34439
34440 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34441
34442 PR target/88851
34443 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34444 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34445 it and document registers.
34446
34447 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34448
34449 * config/aarch64/aarch64.c (ares_tunings): Define.
34450 * config/aarch64/aarch64-cores.def (ares): Use the above.
34451
34452 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34453
34454 PR target/88794
34455 Revert:
34456 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34457
34458 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34459 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34460 (_mm512_maskz_fixupimm_round_pd): Ditto.
34461 (_mm512_fixupimm_round_ps): Ditto.
34462 (_mm512_maskz_fixupimm_round_ps): Ditto.
34463 (_mm_fixupimm_round_sd): Ditto.
34464 (_mm_maskz_fixupimm_round_sd): Ditto.
34465 (_mm_fixupimm_round_ss): Ditto.
34466 (_mm_maskz_fixupimm_round_ss): Ditto.
34467 (_mm512_fixupimm_pd): Ditto.
34468 (_mm512_maskz_fixupimm_pd): Ditto.
34469 (_mm512_fixupimm_ps): Ditto.
34470 (_mm512_maskz_fixupimm_ps): Ditto.
34471 (_mm_fixupimm_sd): Ditto.
34472 (_mm_maskz_fixupimm_sd): Ditto.
34473 (_mm_fixupimm_ss): Ditto.
34474 (_mm_maskz_fixupimm_ss): Ditto.
34475 (_mm512_mask_fixupimm_round_pd): Update builtin.
34476 (_mm512_mask_fixupimm_round_ps): Ditto.
34477 (_mm_mask_fixupimm_round_sd): Ditto.
34478 (_mm_mask_fixupimm_round_ss): Ditto.
34479 (_mm512_mask_fixupimm_pd): Ditto.
34480 (_mm512_mask_fixupimm_ps): Ditto.
34481 (_mm_mask_fixupimm_sd): Ditto.
34482 (_mm_mask_fixupimm_ss): Ditto.
34483 * config/i386/avx512vlintrin.h:
34484 (_mm256_fixupimm_pd): Update parameters and builtin.
34485 (_mm256_maskz_fixupimm_pd): Ditto.
34486 (_mm256_fixupimm_ps): Ditto.
34487 (_mm256_maskz_fixupimm_ps): Ditto.
34488 (_mm_fixupimm_pd): Ditto.
34489 (_mm_maskz_fixupimm_pd): Ditto.
34490 (_mm_fixupimm_ps): Ditto.
34491 (_mm_maskz_fixupimm_ps): Ditto.
34492 (_mm256_mask_fixupimm_pd): Update builtin.
34493 (_mm256_mask_fixupimm_ps): Ditto.
34494 (_mm_mask_fixupimm_pd): Ditto.
34495 (_mm_mask_fixupimm_ps): Ditto.
34496 * config/i386/i386-builtin-types.def: Add new types and remove
34497 useless ones.
34498 * config/i386/i386-builtin.def: Update builtin definitions.
34499 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34500 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34501 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34502 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34503 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34504 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34505 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34506 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34507 * config/i386/subst.md:
34508 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34509 (round_saeonly_sd_mask_op4): Ditto.
34510 (round_saeonly_expand_operand5): Ditto.
34511 (round_saeonly_expand): Update.
34512
34513 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34514
34515 PR target/88794
34516 Revert:
34517 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34518
34519 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34520 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34521 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34522 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34523 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34524 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34525 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34526
34527 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34528
34529 PR target/88794
34530 Revert:
34531 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34532
34533 PR target/88489
34534 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34535 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34536 instead of UNSPEC_FIXUPIMM.
34537
34538 2019-01-17 Richard Biener <rguenther@suse.de>
34539
34540 PR lto/86736
34541 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34542 and friends for the LTO part of debug info.
34543
34544 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34545
34546 PR tree-optimization/86214
34547 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34548 if x == y.
34549
34550 PR rtl-optimization/88870
34551 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34552 throw if we can't alter the cfg or delete dead exceptions.
34553 (mark_insn): Don't call find_call_stack_args for such calls.
34554
34555 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34556
34557 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34558 prototypes for vec_st.
34559 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34560 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34561 mainly on signed/unsigned long long and double.
34562
34563 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34564
34565 PR target/88861
34566 * combine.c (delete_noop_moves): Convert to "bool" return,
34567 returning true if any edges are eliminated.
34568 (combine_instructions): Also return true if delete_noop_moves
34569 returns true.
34570
34571 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34572
34573 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34574 correct max nunits for endian swap.
34575 (aarch64_expand_fcmla_builtin): Correct subreg code.
34576 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34577 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34578 lane endianness.
34579
34580 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34581
34582 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34583 Handle split indirect COMPLEX_TYPE arguments.
34584
34585 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34586
34587 PR target/86891
34588 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34589 bit is set by add and compare.
34590 (CC_ADC): New CC_MODE.
34591 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34592 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34593 comparison. Add detection for CC_ADCmode.
34594 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34595 CC_ADCmode.
34596 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34597 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34598 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34599 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34600 to eliminate the need for zero-extending the operands.
34601 (add<mode>3_compareC_imm): Delete. Merge into ...
34602 (add<mode>3_compareC): ... this. Restructure the comparison to
34603 eliminate the need for zero-extending the operands.
34604 (add<mode>3_carryin): Use LTU for the overflow detection.
34605 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34606 Reexpress comparison for overflow.
34607 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34608 (add<mode>3_carryinC): Likewise.
34609 (add<mode>3_carryinV): Use LTU for carry between partials.
34610 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34611 handling of CC_Cmode and add CC_ADCmode.
34612 (aarch64_borrow_operation): Likewise.
34613
34614 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34615
34616 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34617 Remove patternmode.
34618 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34619 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34620 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34621 Remove endianness conversion.
34622
34623 2019-01-16 Martin Liska <mliska@suse.cz>
34624
34625 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34626 for GCC driver.
34627 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34628 a new argument.
34629 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34630 (path_prefix_reset): Move up in the source file.
34631 (find_fortran_preinclude_file): Make complex search for the
34632 fortran header files.
34633
34634 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34635
34636 * godump.c (go_output_typedef): When outputting a typedef, refer
34637 to the underlying type by its name and not its structure.
34638
34639 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34640
34641 PR c++/88795
34642 * tree.c (build_function_type): Assert that arg_types is not
34643 error_mark_node.
34644
34645 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34646
34647 PR inline-asm/52813
34648 * doc/extend.texi: Document that listing the stack pointer in the
34649 clobber list of an asm is a deprecated feature.
34650 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34651 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34652 warning instead of an error for clobbers of the stack pointer.
34653 Add a note explaining why.
34654
34655 2019-01-15 Richard Biener <rguenther@suse.de>
34656
34657 PR debug/88046
34658 * dwarf2out.c (gen_member_die): Do not generate inheritance
34659 DIEs late.
34660
34661 2019-01-15 Richard Biener <rguenther@suse.de>
34662
34663 PR tree-optimization/88855
34664 * tree-if-conv.c (combine_blocks): Collect
34665 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34666
34667 2019-01-15 Tom de Vries <tdevries@suse.de>
34668
34669 PR target/80547
34670 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34671 lhs == NULL_TREE for gang-level reduction.
34672
34673 2019-01-15 Richard Biener <rguenther@suse.de>
34674 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34675
34676 PR ipa/88788
34677 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34678 return true if SSA_NAME is already marked in visited bitmap.
34679 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34680
34681 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34682
34683 PR tree-optimization/88775
34684 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34685 equal == 0 equality pointer comparisons some more if compared in
34686 integral types and either one points to an automatic var and the
34687 other to a global, or we can prove at least one points to the middle
34688 or both point to start or both point to end.
34689
34690 2019-01-14 Andi Kleen <ak@linux.intel.com>
34691
34692 * Makefile.in: Lower autofdo sampling rate by 10x.
34693 * Makefile.tpl: Dito.
34694
34695 2019-01-14 Tom Honermann <tom@honermann.net>
34696
34697 * defaults.h: Define CHAR8_TYPE.
34698
34699 2019-01-14 Martin Sebor <msebor@redhat.com>
34700
34701 PR target/88638
34702 * doc/extend.texi (Darwin Format Checks): Clarify.
34703
34704 2019-01-14 Richard Biener <rguenther@suse.de>
34705
34706 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34707 whether we are in (simplify ...) or (match ...) context.
34708
34709 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34710
34711 PR rtl-optimization/88796
34712 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34713 * cfgexpand.c (stack_protect_prologue): Initialize
34714 crtl->stack_protect_guard_decl.
34715 * function.c (stack_protect_epilogue): Use it instead of calling
34716 targetm.stack_protect_guard again.
34717 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34718 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34719 crtl->stack_protect_guard_decl.
34720 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34721 on the returned MEM_EXPR.
34722
34723 2019-01-12 Tom de Vries <tdevries@suse.de>
34724
34725 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34726 vector length using -fopenacc-dim.
34727
34728 2019-01-12 Tom de Vries <tdevries@suse.de>
34729
34730 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34731 lengths into account.
34732
34733 2019-01-12 Svante Signell <svante.signell@gmail.com>
34734
34735 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34736 (TARGET_CAN_SPLIT_STACK): Define.
34737 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34738
34739 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34740
34741 * params.def (inline-unit-growth): Set to 40.
34742
34743 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34744
34745 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34746
34747 2019-01-12 Tom de Vries <tdevries@suse.de>
34748
34749 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34750 region calling vector-partitionable routine, set default_vector_length
34751 to WARP_SIZE.
34752
34753 2019-01-12 Tom de Vries <tdevries@suse.de>
34754
34755 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34756 variable default_vector_length.
34757
34758 2019-01-12 Tom de Vries <tdevries@suse.de>
34759
34760 PR middle-end/88703
34761 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34762 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34763 dimensions limits.
34764
34765 2019-01-12 Tom de Vries <tdevries@suse.de>
34766
34767 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34768 (nvptx_goacc_validate_dims): Add used parameter.
34769 * doc/tm.texi: Regenerate.
34770 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34771 argument to call to targetm.goacc.validate_dims.
34772 (default_goacc_validate_dims): Add used
34773 parameter.
34774 * target.def (validate_dims): Add used parameter in DEFHOOK.
34775 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34776
34777 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34778
34779 PR middle-end/85956
34780 PR lto/88733
34781 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34782 field.
34783 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34784 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34785 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34786 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34787
34788 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34789
34790 PR rtl-optimization/87305
34791 * lra-assigns.c
34792 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34793 for little endian pseudos used as paradoxical subreg.
34794
34795 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34796
34797 PR tree-optimization/88693
34798 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34799 for STRING_CSTs that don't contain any NUL characters in the first
34800 TREE_STRING_LENGTH bytes.
34801
34802 2019-01-11 Alan Modra <amodra@gmail.com>
34803
34804 PR 88777
34805 PR 88614
34806 * genattrtab.c (min_fn): Don't translate values.
34807 (min_attr_value): Return INT_MAX when the value can't be calculated.
34808 Return minimum among any values that can be calculated.
34809 (max_attr_value): Adjust.
34810
34811 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34812
34813 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34814
34815 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34816
34817 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34818 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34819 (aarch64_return_call_with_max_clobbers): New function.
34820 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34821 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34822 argument.
34823 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34824 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34825 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34826 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34827 * cselib.c (cselib_process_insn): Add argument to
34828 targetm.hard_regno_call_part_clobbered call.
34829 * ira-conflicts.c (ira_build_conflicts): Ditto.
34830 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34831 * lra-constraints.c (inherit_reload_reg): Ditto.
34832 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34833 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34834 argument. Call targetm.return_call_with_max_clobbers.
34835 Add argument to targetm.hard_regno_call_part_clobbered call.
34836 (calls_have_same_clobbers_p): New function.
34837 (process_bb_lives): Add call_insn and last_call_insn variables.
34838 Pass call_insn to check_pseudos_live_through_calls.
34839 Modify if stmt to check targetm.return_call_with_max_clobbers.
34840 Update setting of flush variable.
34841 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34842 to false.
34843 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34844 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34845 targetm.hard_regno_call_part_clobbered call.
34846 * reginfo.c (choose_hard_reg_mode): Ditto.
34847 * regrename.c (check_new_reg_p): Ditto.
34848 * reload.c (find_equiv_reg): Ditto.
34849 * reload1.c (emit_reload_insns): Ditto.
34850 * sched-deps.c (deps_analyze_insn): Ditto.
34851 * sel-sched.c (init_regs_for_mode): Ditto.
34852 (mark_unavailable_hard_regs): Ditto.
34853 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34854 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34855 (return_call_with_max_clobbers): New target function.
34856 * doc/tm.texi: Regenerate.
34857 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34858 * hooks.c (hook_bool_uint_mode_false): Change to
34859 hook_bool_insn_uint_mode_false.
34860 * hooks.h (hook_bool_uint_mode_false): Ditto.
34861
34862 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34863
34864 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34865 (aarch64_remove_extra_call_preserved_regs): New function.
34866 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34867 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34868 * doc/tm.texi: Regenerate.
34869 * final.c (get_call_reg_set_usage): Call new hook.
34870 * target.def (remove_extra_call_preserved_regs): New hook.
34871 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34872 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34873
34874 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34875
34876 PR bootstrap/88714
34877 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34878 inside of pass_combine_1 dump rather than pass_profile_1.
34879
34880 2019-01-11 Tom de Vries <tdevries@suse.de>
34881
34882 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34883 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34884 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34885 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34886 num_workers 16.
34887
34888 2019-01-11 Tom de Vries <tdevries@suse.de>
34889
34890 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34891
34892 2019-01-11 Jan Beulich <jbeulich@suse.com>
34893
34894 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34895 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34896 sse2_cvtsi2sd): Add {l}.
34897 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34898 syntax.
34899
34900 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34901
34902 PR target/88785
34903 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34904 define_expand.
34905 (*float<floatunssuffix>v2div2sf2): New define_insn.
34906 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34907 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34908 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34909 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34910 match_operands with "const0_operand" "C".
34911
34912 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34913
34914 * config/aarch64/aarch64-builtins.c
34915 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34916 (aarch64_init_simd_builtins): ...Here
34917
34918 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34919
34920 PR rtl-optimization/87305
34921 * lra-assigns.c
34922 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34923 allocation for big endian pseudos used as paradoxical subregs and
34924 spill them if it is wrong.
34925 * lra-constraints.c (lra_constraints): Add a comment.
34926
34927 2019-01-10 Richard Biener <rguenther@suse.de>
34928
34929 PR tree-optimization/88792
34930 * tree-ssa-pre.c (get_representative_for): Do not return a
34931 value-number here.
34932
34933 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34934
34935 PR middle-end/84877
34936 PR bootstrap/88450
34937 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34938 (assign_parm_setup_block): Do the argument slot realignment here
34939 instead.
34940
34941 2019-01-10 Stefan Agner <stefan@agner.ch>
34942
34943 PR target/88648
34944 * config/arm/arm.c (arm_option_override_internal): Force
34945 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34946
34947 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34948
34949 PR c/88568
34950 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34951 DECL_EXTERNAL.
34952
34953 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34954
34955 * config/arm/arm-builtins.c
34956 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34957 (MAC_LANE_PAIR_QUALIFIERS): New.
34958 (arm_expand_builtin_args): Use it.
34959 (arm_expand_builtin_1): Likewise.
34960 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34961 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34962 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34963 * config/arm/arm_neon.h:
34964 (vcadd_rot90_f16): New.
34965 (vcaddq_rot90_f16): New.
34966 (vcadd_rot270_f16): New.
34967 (vcaddq_rot270_f16): New.
34968 (vcmla_f16): New.
34969 (vcmlaq_f16): New.
34970 (vcmla_lane_f16): New.
34971 (vcmla_laneq_f16): New.
34972 (vcmlaq_lane_f16): New.
34973 (vcmlaq_laneq_f16): New.
34974 (vcmla_rot90_f16): New.
34975 (vcmlaq_rot90_f16): New.
34976 (vcmla_rot90_lane_f16): New.
34977 (vcmla_rot90_laneq_f16): New.
34978 (vcmlaq_rot90_lane_f16): New.
34979 (vcmlaq_rot90_laneq_f16): New.
34980 (vcmla_rot180_f16): New.
34981 (vcmlaq_rot180_f16): New.
34982 (vcmla_rot180_lane_f16): New.
34983 (vcmla_rot180_laneq_f16): New.
34984 (vcmlaq_rot180_lane_f16): New.
34985 (vcmlaq_rot180_laneq_f16): New.
34986 (vcmla_rot270_f16): New.
34987 (vcmlaq_rot270_f16): New.
34988 (vcmla_rot270_lane_f16): New.
34989 (vcmla_rot270_laneq_f16): New.
34990 (vcmlaq_rot270_lane_f16): New.
34991 (vcmlaq_rot270_laneq_f16): New.
34992 (vcadd_rot90_f32): New.
34993 (vcaddq_rot90_f32): New.
34994 (vcadd_rot270_f32): New.
34995 (vcaddq_rot270_f32): New.
34996 (vcmla_f32): New.
34997 (vcmlaq_f32): New.
34998 (vcmla_lane_f32): New.
34999 (vcmla_laneq_f32): New.
35000 (vcmlaq_lane_f32): New.
35001 (vcmlaq_laneq_f32): New.
35002 (vcmla_rot90_f32): New.
35003 (vcmlaq_rot90_f32): New.
35004 (vcmla_rot90_lane_f32): New.
35005 (vcmla_rot90_laneq_f32): New.
35006 (vcmlaq_rot90_lane_f32): New.
35007 (vcmlaq_rot90_laneq_f32): New.
35008 (vcmla_rot180_f32): New.
35009 (vcmlaq_rot180_f32): New.
35010 (vcmla_rot180_lane_f32): New.
35011 (vcmla_rot180_laneq_f32): New.
35012 (vcmlaq_rot180_lane_f32): New.
35013 (vcmlaq_rot180_laneq_f32): New.
35014 (vcmla_rot270_f32): New.
35015 (vcmlaq_rot270_f32): New.
35016 (vcmla_rot270_lane_f32): New.
35017 (vcmla_rot270_laneq_f32): New.
35018 (vcmlaq_rot270_lane_f32): New.
35019 (vcmlaq_rot270_laneq_f32): New.
35020 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35021 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35022 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35023 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35024 vcmlaq_lane270): New.
35025 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35026 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35027 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35028 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35029 (arm_option_reconfigure_globals): Use them.
35030 * config/arm/iterators.md (VDF, VQ_HSF): New.
35031 (VCADD, VCMLA): New.
35032 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35033 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35034 New.
35035 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35036 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35037
35038 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35039
35040 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35041 Add qualifier_lane_pair_index.
35042 (emit-rtl.h): Include.
35043 (TYPES_QUADOP_LANE_PAIR): New.
35044 (aarch64_simd_expand_args): Use it.
35045 (aarch64_simd_expand_builtin): Likewise.
35046 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35047 New.
35048 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35049 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35050 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35051 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35052 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35053 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35054 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35055 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35056 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35057 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35058 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35059 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35060 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35061 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35062 Add __ARM_FEATURE_COMPLEX.
35063 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35064 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35065 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35066 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35067 fcmlaq_lane270): New.
35068 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35069 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35070 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35071 * config/aarch64/arm_neon.h:
35072 (vcadd_rot90_f16): New.
35073 (vcaddq_rot90_f16): New.
35074 (vcadd_rot270_f16): New.
35075 (vcaddq_rot270_f16): New.
35076 (vcmla_f16): New.
35077 (vcmlaq_f16): New.
35078 (vcmla_lane_f16): New.
35079 (vcmla_laneq_f16): New.
35080 (vcmlaq_lane_f16): New.
35081 (vcmlaq_rot90_lane_f16): New.
35082 (vcmla_rot90_laneq_f16): New.
35083 (vcmla_rot90_lane_f16): New.
35084 (vcmlaq_rot90_f16): New.
35085 (vcmla_rot90_f16): New.
35086 (vcmlaq_laneq_f16): New.
35087 (vcmla_rot180_laneq_f16): New.
35088 (vcmla_rot180_lane_f16): New.
35089 (vcmlaq_rot180_f16): New.
35090 (vcmla_rot180_f16): New.
35091 (vcmlaq_rot90_laneq_f16): New.
35092 (vcmlaq_rot270_laneq_f16): New.
35093 (vcmlaq_rot270_lane_f16): New.
35094 (vcmla_rot270_laneq_f16): New.
35095 (vcmlaq_rot270_f16): New.
35096 (vcmla_rot270_f16): New.
35097 (vcmlaq_rot180_laneq_f16): New.
35098 (vcmlaq_rot180_lane_f16): New.
35099 (vcmla_rot270_lane_f16): New.
35100 (vcadd_rot90_f32): New.
35101 (vcaddq_rot90_f32): New.
35102 (vcaddq_rot90_f64): New.
35103 (vcadd_rot270_f32): New.
35104 (vcaddq_rot270_f32): New.
35105 (vcaddq_rot270_f64): New.
35106 (vcmla_f32): New.
35107 (vcmlaq_f32): New.
35108 (vcmlaq_f64): New.
35109 (vcmla_lane_f32): New.
35110 (vcmla_laneq_f32): New.
35111 (vcmlaq_lane_f32): New.
35112 (vcmlaq_laneq_f32): New.
35113 (vcmla_rot90_f32): New.
35114 (vcmlaq_rot90_f32): New.
35115 (vcmlaq_rot90_f64): New.
35116 (vcmla_rot90_lane_f32): New.
35117 (vcmla_rot90_laneq_f32): New.
35118 (vcmlaq_rot90_lane_f32): New.
35119 (vcmlaq_rot90_laneq_f32): New.
35120 (vcmla_rot180_f32): New.
35121 (vcmlaq_rot180_f32): New.
35122 (vcmlaq_rot180_f64): New.
35123 (vcmla_rot180_lane_f32): New.
35124 (vcmla_rot180_laneq_f32): New.
35125 (vcmlaq_rot180_lane_f32): New.
35126 (vcmlaq_rot180_laneq_f32): New.
35127 (vcmla_rot270_f32): New.
35128 (vcmlaq_rot270_f32): New.
35129 (vcmlaq_rot270_f64): New.
35130 (vcmla_rot270_lane_f32): New.
35131 (vcmla_rot270_laneq_f32): New.
35132 (vcmlaq_rot270_lane_f32): New.
35133 (vcmlaq_rot270_laneq_f32): New.
35134 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35135 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35136 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35137 (FCADD, FCMLA): New.
35138 (rot): New.
35139 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35140
35141 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35142
35143 PR other/16615
35144
35145 * config/pa/pa.c: Change "can not" to "cannot".
35146 * gimple-ssa-evrp-analyze.c: Likewise.
35147 * ipa-icf.c: Likewise.
35148 * ipa-polymorphic-call.c: Likewise.
35149 * ipa-pure-const.c: Likewise.
35150 * lra-constraints.c: Likewise.
35151 * lra-remat.c: Likewise.
35152 * reload1.c: Likewise.
35153 * reorg.c: Likewise.
35154 * tree-ssa-uninit.c: Likewise.
35155
35156 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35157
35158 PR other/16615
35159
35160 * Makefile.in: Mechanically replace "can not" with "cannot".
35161 * alias.c: Likewise.
35162 * builtins.c: Likewise.
35163 * calls.c: Likewise.
35164 * cgraph.c: Likewise.
35165 * cgraph.h: Likewise.
35166 * cgraphclones.c: Likewise.
35167 * cgraphunit.c: Likewise.
35168 * combine-stack-adj.c: Likewise.
35169 * combine.c: Likewise.
35170 * common/config/i386/i386-common.c: Likewise.
35171 * config/aarch64/aarch64.c: Likewise.
35172 * config/alpha/sync.md: Likewise.
35173 * config/arc/arc.c: Likewise.
35174 * config/arc/predicates.md: Likewise.
35175 * config/arm/arm-c.c: Likewise.
35176 * config/arm/arm.c: Likewise.
35177 * config/arm/arm.h: Likewise.
35178 * config/arm/arm.md: Likewise.
35179 * config/arm/cortex-r4f.md: Likewise.
35180 * config/csky/csky.c: Likewise.
35181 * config/csky/csky.h: Likewise.
35182 * config/darwin-f.c: Likewise.
35183 * config/epiphany/epiphany.md: Likewise.
35184 * config/i386/i386.c: Likewise.
35185 * config/i386/sol2.h: Likewise.
35186 * config/m68k/m68k.c: Likewise.
35187 * config/mcore/mcore.h: Likewise.
35188 * config/microblaze/microblaze.md: Likewise.
35189 * config/mips/20kc.md: Likewise.
35190 * config/mips/sb1.md: Likewise.
35191 * config/nds32/nds32.c: Likewise.
35192 * config/nds32/predicates.md: Likewise.
35193 * config/pa/pa.c: Likewise.
35194 * config/rs6000/e300c2c3.md: Likewise.
35195 * config/rs6000/rs6000.c: Likewise.
35196 * config/s390/s390.h: Likewise.
35197 * config/sh/sh.c: Likewise.
35198 * config/sh/sh.md: Likewise.
35199 * config/spu/vmx2spu.h: Likewise.
35200 * cprop.c: Likewise.
35201 * dbxout.c: Likewise.
35202 * df-scan.c: Likewise.
35203 * doc/cfg.texi: Likewise.
35204 * doc/extend.texi: Likewise.
35205 * doc/fragments.texi: Likewise.
35206 * doc/gty.texi: Likewise.
35207 * doc/invoke.texi: Likewise.
35208 * doc/lto.texi: Likewise.
35209 * doc/md.texi: Likewise.
35210 * doc/objc.texi: Likewise.
35211 * doc/rtl.texi: Likewise.
35212 * doc/tm.texi: Likewise.
35213 * dse.c: Likewise.
35214 * emit-rtl.c: Likewise.
35215 * emit-rtl.h: Likewise.
35216 * except.c: Likewise.
35217 * expmed.c: Likewise.
35218 * expr.c: Likewise.
35219 * fold-const.c: Likewise.
35220 * genautomata.c: Likewise.
35221 * gimple-fold.c: Likewise.
35222 * hard-reg-set.h: Likewise.
35223 * ifcvt.c: Likewise.
35224 * ipa-comdats.c: Likewise.
35225 * ipa-cp.c: Likewise.
35226 * ipa-devirt.c: Likewise.
35227 * ipa-fnsummary.c: Likewise.
35228 * ipa-icf.c: Likewise.
35229 * ipa-inline-transform.c: Likewise.
35230 * ipa-inline.c: Likewise.
35231 * ipa-polymorphic-call.c: Likewise.
35232 * ipa-profile.c: Likewise.
35233 * ipa-prop.c: Likewise.
35234 * ipa-pure-const.c: Likewise.
35235 * ipa-reference.c: Likewise.
35236 * ipa-split.c: Likewise.
35237 * ipa-visibility.c: Likewise.
35238 * ipa.c: Likewise.
35239 * ira-build.c: Likewise.
35240 * ira-color.c: Likewise.
35241 * ira-conflicts.c: Likewise.
35242 * ira-costs.c: Likewise.
35243 * ira-int.h: Likewise.
35244 * ira-lives.c: Likewise.
35245 * ira.c: Likewise.
35246 * ira.h: Likewise.
35247 * loop-invariant.c: Likewise.
35248 * loop-unroll.c: Likewise.
35249 * lower-subreg.c: Likewise.
35250 * lra-assigns.c: Likewise.
35251 * lra-constraints.c: Likewise.
35252 * lra-eliminations.c: Likewise.
35253 * lra-lives.c: Likewise.
35254 * lra-remat.c: Likewise.
35255 * lra-spills.c: Likewise.
35256 * lra.c: Likewise.
35257 * lto-cgraph.c: Likewise.
35258 * lto-streamer-out.c: Likewise.
35259 * postreload-gcse.c: Likewise.
35260 * predict.c: Likewise.
35261 * profile-count.h: Likewise.
35262 * profile.c: Likewise.
35263 * recog.c: Likewise.
35264 * ree.c: Likewise.
35265 * reload.c: Likewise.
35266 * reload1.c: Likewise.
35267 * reorg.c: Likewise.
35268 * resource.c: Likewise.
35269 * rtl.def: Likewise.
35270 * rtl.h: Likewise.
35271 * rtlanal.c: Likewise.
35272 * sched-deps.c: Likewise.
35273 * sched-ebb.c: Likewise.
35274 * sched-rgn.c: Likewise.
35275 * sel-sched-ir.c: Likewise.
35276 * sel-sched.c: Likewise.
35277 * shrink-wrap.c: Likewise.
35278 * simplify-rtx.c: Likewise.
35279 * symtab.c: Likewise.
35280 * target.def: Likewise.
35281 * toplev.c: Likewise.
35282 * tree-call-cdce.c: Likewise.
35283 * tree-cfg.c: Likewise.
35284 * tree-complex.c: Likewise.
35285 * tree-core.h: Likewise.
35286 * tree-eh.c: Likewise.
35287 * tree-inline.c: Likewise.
35288 * tree-loop-distribution.c: Likewise.
35289 * tree-nrv.c: Likewise.
35290 * tree-profile.c: Likewise.
35291 * tree-sra.c: Likewise.
35292 * tree-ssa-alias.c: Likewise.
35293 * tree-ssa-dce.c: Likewise.
35294 * tree-ssa-dom.c: Likewise.
35295 * tree-ssa-forwprop.c: Likewise.
35296 * tree-ssa-loop-im.c: Likewise.
35297 * tree-ssa-loop-ivcanon.c: Likewise.
35298 * tree-ssa-loop-ivopts.c: Likewise.
35299 * tree-ssa-loop-niter.c: Likewise.
35300 * tree-ssa-phionlycprop.c: Likewise.
35301 * tree-ssa-phiopt.c: Likewise.
35302 * tree-ssa-propagate.c: Likewise.
35303 * tree-ssa-threadedge.c: Likewise.
35304 * tree-ssa-threadupdate.c: Likewise.
35305 * tree-ssa-uninit.c: Likewise.
35306 * tree-ssanames.c: Likewise.
35307 * tree-streamer-out.c: Likewise.
35308 * tree.c: Likewise.
35309 * tree.h: Likewise.
35310 * vr-values.c: Likewise.
35311
35312 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35313
35314 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35315 (ix86_split_xorsign): Ditto.
35316 * config/i386/i386.c (ix86_expand_xorsign): New function.
35317 (ix86_split_xorsign): Ditto.
35318 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35319 (xorsign<mode>3): New expander.
35320 (xorsign<mode>3_1): New insn_and_split pattern.
35321 * config/i386/sse.md (xorsign<mode>3): New expander.
35322
35323 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35324
35325 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35326 (*tablejump_sp64): Likewise.
35327 (*tablejump<P:mode>): ...this.
35328 (*call_address_sp32): Merge into...
35329 (*call_address_sp64): Likewise.
35330 (*call_address<P:mode>): ...this.
35331 (*call_symbolic_sp32): Merge into...
35332 (*call_symbolic_sp64): Likewise.
35333 (*call_symbolic<P:mode>): ...this.
35334 (call_value): Remove constraint and add predicate.
35335 (*call_value_address_sp32): Merge into...
35336 (*call_value_address_sp64): Likewise.
35337 (*call_value_address<P:mode>): ...this.
35338 (*call_value_symbolic_sp32): Merge into...
35339 (*call_value_symbolic_sp64): Likewise.
35340 (*call_value_symbolic<P:mode>): ...this.
35341 (*sibcall_symbolic_sp32): Merge into...
35342 (*sibcall_symbolic_sp64): Likewise.
35343 (*sibcall_symbolic<P:mode>): ...this.
35344 (sibcall_value): Remove constraint and add predicate.
35345 (*sibcall_value_symbolic_sp32): Merge into...
35346 (*sibcall_value_symbolic_sp64): Likewise.
35347 (*sibcall_value_symbolic<P:mode>): ...this.
35348 (window_save): Minor tweak.
35349 (*branch_sp32): Merge into...
35350 (*branch_sp64): Likewise.
35351 (*branch<P:mode>): ...this.
35352
35353 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35354 James Clarke <jrtc27@jrtc27.com>
35355
35356 PR target/84010
35357 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35358 consistently in TLS address generation and adjust code to the renaming
35359 of patterns. Mark calls to __tls_get_addr as const.
35360 * config/sparc/sparc.md (tgd_hi22): Turn into...
35361 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35362 (tgd_lo10): Turn into...
35363 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35364 (tgd_add32): Merge into...
35365 (tgd_add64): Likewise.
35366 (tgd_add<P:mode>): ...this and use Pmode throughout.
35367 (tldm_hi22): Turn into...
35368 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35369 (tldm_lo10): Turn into...
35370 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35371 (tldm_add32): Merge into...
35372 (tldm_add64): Likewise.
35373 (tldm_add<P:mode>): ...this and use Pmode throughout.
35374 (tldm_call32): Merge into...
35375 (tldm_call64): Likewise.
35376 (tldm_call<P:mode>): ...this and use Pmode throughout.
35377 (tldo_hix22): Turn into...
35378 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35379 (tldo_lox10): Turn into...
35380 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35381 (tldo_add32): Merge into...
35382 (tldo_add64): Likewise.
35383 (tldo_add<P:mode>): ...this and use Pmode throughout.
35384 (tie_hi22): Turn into...
35385 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35386 (tie_lo10): Turn into...
35387 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35388 (tie_ld64): Use DImode throughout.
35389 (tie_add32): Merge into...
35390 (tie_add64): Likewise.
35391 (tie_add<P:mode>): ...this and use Pmode throughout.
35392 (tle_hix22_sp32): Merge into...
35393 (tle_hix22_sp64): Likewise.
35394 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35395 (tle_lox22_sp32): Merge into...
35396 (tle_lox22_sp64): Likewise.
35397 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35398 (*tldo_ldub_sp32): Merge into...
35399 (*tldo_ldub_sp64): Likewise.
35400 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35401 (*tldo_ldub1_sp32): Merge into...
35402 (*tldo_ldub1_sp64): Likewise.
35403 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35404 (*tldo_ldub2_sp32): Merge into...
35405 (*tldo_ldub2_sp64): Likewise.
35406 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35407 (*tldo_ldsb1_sp32): Merge into...
35408 (*tldo_ldsb1_sp64): Likewise.
35409 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35410 (*tldo_ldsb2_sp32): Merge into...
35411 (*tldo_ldsb2_sp64): Likewise.
35412 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35413 (*tldo_ldub3_sp64): Use DImode throughout.
35414 (*tldo_ldsb3_sp64): Likewise.
35415 (*tldo_lduh_sp32): Merge into...
35416 (*tldo_lduh_sp64): Likewise.
35417 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35418 (*tldo_lduh1_sp32): Merge into...
35419 (*tldo_lduh1_sp64): Likewise.
35420 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35421 (*tldo_ldsh1_sp32): Merge into...
35422 (*tldo_ldsh1_sp64): Likewise.
35423 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35424 (*tldo_lduh2_sp64): Use DImode throughout.
35425 (*tldo_ldsh2_sp64): Likewise.
35426 (*tldo_lduw_sp32): Merge into...
35427 (*tldo_lduw_sp64): Likewise.
35428 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35429 (*tldo_lduw1_sp64): Use DImode throughout.
35430 (*tldo_ldsw1_sp64): Likewise.
35431 (*tldo_ldx_sp64): Likewise.
35432 (*tldo_stb_sp32): Merge into...
35433 (*tldo_stb_sp64): Likewise.
35434 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35435 (*tldo_sth_sp32): Merge into...
35436 (*tldo_sth_sp64): Likewise.
35437 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35438 (*tldo_stw_sp32): Merge into...
35439 (*tldo_stw_sp64): Likewise.
35440 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35441 (*tldo_stx_sp64): Use DImode throughout.
35442
35443 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35444
35445 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35446 check configure option to set BTI and Return Address Signing.
35447 * configure.ac: Add --enable-standard-branch-protection and
35448 --disable-standard-branch-protection.
35449 * configure: Regenerated.
35450 * doc/install.texi: Document the same.
35451
35452 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35453 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35454
35455 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35456 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35457 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35458 if bti is enabled.
35459 * config/aarch64/aarch64-bti-insert.c: New file.
35460 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35461 pass.
35462 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35463 new bti pass.
35464 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35465 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35466 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35467 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35468
35469 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35470
35471 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35472 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35473 Disable bti for -mbranch-protection=none.
35474 (aarch64_handle_standard_branch_protection): Enable bti for
35475 -mbranch-protection=standard.
35476 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35477 -mbranch-protection.
35478 (aarch64_bti_enabled): Check if bti is enabled.
35479 * config/aarch64/aarch64.opt: Declare target variable.
35480 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35481
35482 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35483
35484 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35485 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35486 (aarch64_expand_epilogue): Likewise.
35487 (aarch64_output_mi_thunk): Likewise.
35488 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35489 TAILCALL_ADDR_REGS to x16 and x17.
35490 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35491
35492 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35493
35494 * config/aarch64/aarch64-option-extensions.def: Define
35495 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35496 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35497 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35498 (AARCH64_FL_PREDRES): New.
35499 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35500 AARCH64_FL_PREDRES by default.
35501 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35502
35503 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35504
35505 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35506 ARMv8.5-A.
35507 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35508 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35509 * doc/invoke.texi: Document ARMv8.5-A.
35510
35511 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35512
35513 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35514 (xorsign<mode>3): Likewise.
35515
35516 2019-01-09 Jelinek <jakub@redhat.com>
35517
35518 PR middle-end/88758
35519 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35520 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35521
35522 PR rtl-optimization/88331
35523 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35524 not currently_expanding_to_rtl.
35525
35526 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35527
35528 * doc/invoke.texi (-Os): Remove trailing spaces.
35529 (-finline-functions): Remove reference to -O2.
35530
35531 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35532
35533 PR rtl-optimization/79593
35534 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35535
35536 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35537 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35538
35539 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35540
35541 PR bootstrap/88721
35542 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35543 to -1 on entry.
35544
35545 PR debug/88723
35546 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35547 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35548
35549 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35550
35551 PR target/88717
35552 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35553 ix86_avx_u128_mode_entry.
35554
35555 2019-01-08 Martin Liska <mliska@suse.cz>
35556
35557 PR tree-optimization/88753
35558 * tree-switch-conversion.c (switch_conversion::build_one_array):
35559 Come up with local variable constructor. Convert first to
35560 type of constructor values.
35561
35562 2019-01-08 Richard Biener <rguenther@suse.de>
35563
35564 PR tree-optimization/86554
35565 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35566 rpo_avail): Move earlier.
35567 (visit_nary_op): When value-numbering to expressions
35568 with different overflow behavior make sure there's an
35569 available expression on the path.
35570
35571 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35572
35573 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35574 aarch64_parse_branch_protection,
35575 struct aarch64_branch_protect_type,
35576 aarch64_handle_no_branch_protection,
35577 aarch64_handle_standard_branch_protection,
35578 aarch64_validate_mbranch_protection,
35579 aarch64_handle_pac_ret_protection,
35580 aarch64_handle_attr_branch_protection,
35581 accepted_branch_protection_string,
35582 aarch64_pac_ret_subtypes,
35583 aarch64_branch_protect_types,
35584 aarch64_handle_pac_ret_leaf): Define.
35585 (aarch64_override_options_after_change_1, aarch64_override_options):
35586 Add check for accepted_branch_protection_string.
35587 (aarch64_option_save): Save accepted_branch_protection_string.
35588 (aarch64_option_restore): Save accepted_branch_protection_string.
35589 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35590 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35591 msign-return-address.
35592 * doc/invoke.texi: Add mbranch-protection.
35593
35594 2019-01-08 Alan Modra <amodra@gmail.com>
35595
35596 PR target/88614
35597 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35598 Delete "unknownp" parameter. Adjust callers. Handle
35599 CONST_INT, PLUS, MINUS, and MULT.
35600 (attr_value_aligned): Renamed from or_attr_value.
35601 (min_attr_value): Return INT_MIN for unhandled rtl case..
35602 (min_fn): ..and translate to INT_MAX here.
35603 (write_length_unit_log): Modify to cope without "unknown".
35604 (write_attr_value): Handle IF_THEN_ELSE.
35605
35606 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35607
35608 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35609 optimization for masked stores.
35610
35611 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35612
35613 PR middle-end/88567
35614 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35615 output vector directly to duplicate_and_interleave instead of
35616 going through a temporary. Postpone insertion of ctor_seq to
35617 the end of the loop.
35618
35619 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35620
35621 PR target/86891
35622 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35623 unsigned_p. Handle signed and unsigned overflow correction as
35624 required.
35625 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35626 prototype.
35627 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35628 for operand 2.
35629 (add<mode>3_compareV_imm): Make this callable for expanding.
35630 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35631 aarch64_plus_operand for operand 2.
35632 (subv<GPI:mode>_insn): New insn pattern.
35633 (subv<GPI:mode>_imm): Likewise.
35634 (negv<GPI:mode>3): New expand pattern.
35635 (negv<GPI:mode>_insn): New insn pattern.
35636 (negv<GPI:mode>_cmp_only): Likewise.
35637 (cmpv<GPI:mode>_insn): Likewise.
35638 (subvti4): Use register_operand for operand 1. Update call to
35639 aarch64_expand_subvti.
35640 (usubvti4): Likewise.
35641 (negvti3): New expand pattern.
35642 (negdi_carryout): New insn pattern.
35643 (negvdi_carryinV): New insn pattern.
35644 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35645 version the named version.
35646 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35647 operands.
35648 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35649 patterns.
35650 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35651 patterns.
35652 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35653 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35654 (sub<mode>3_carryinCV): Delete.
35655 (sub<GPI:mode>3_carryinV): New expand pattern.
35656 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35657
35658 2019-01-07 Richard Biener <rguenther@suse.de>
35659
35660 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35661 of tree_operand_hash.
35662
35663 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35664
35665 PR tree-optimization/88598
35666 * tree.h (single_nonzero_element): Declare.
35667 * tree.c (single_nonzero_element): New function.
35668 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35669 if I is the only nonzero element of CST.
35670
35671 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35672
35673 PR tree-optimization/88598
35674 * tree.h (initializer_each_zero_or_onep): Declare.
35675 * tree.c (initializer_each_zero_or_onep): New function.
35676 (signed_or_unsigned_type_for): Handle float types too.
35677 (unsigned_type_for, signed_type_for): Update comments accordingly.
35678 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35679 x & { 0 or -1, 0 or -1, ... }.
35680
35681 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35682
35683 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35684 with x86_64-pc-linux-gnu.
35685
35686 2019-01-07 Tom de Vries <tdevries@suse.de>
35687
35688 PR target/85486
35689 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35690 function.
35691 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35692 routines.
35693
35694 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35695
35696 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35697 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35698 TARGET_AVX512F as condition.
35699
35700 PR debug/88723
35701 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35702 const_not_ok_for_debug_p target hook.
35703 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35704 on UNSPEC and subexpressions thereof if all subexpressions of the
35705 UNSPEC are CONSTANT_P.
35706
35707 PR tree-optimization/88676
35708 * tree-ssa-phiopt.c (two_value_replacement): New function.
35709 (tree_ssa_phiopt_worker): Call it.
35710
35711 PR sanitizer/88619
35712 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35713 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35714
35715 PR c++/85052
35716 * tree-vect-generic.c: Include insn-config.h and recog.h.
35717 (expand_vector_piecewise): Add defaulted ret_type argument,
35718 if non-NULL, use that in preference to type for the result type.
35719 (expand_vector_parallel): Formatting fix.
35720 (do_vec_conversion, do_vec_narrowing_conversion,
35721 expand_vector_conversion): New functions.
35722 (expand_vector_operations_1): Call expand_vector_conversion
35723 for VEC_CONVERT ifn calls.
35724 * internal-fn.def (VEC_CONVERT): New internal function.
35725 * internal-fn.c (expand_VEC_CONVERT): New function.
35726 * fold-const-call.c (fold_const_vec_convert): New function.
35727 (fold_const_call): Use it for CFN_VEC_CONVERT.
35728 * doc/extend.texi (__builtin_convertvector): Document.
35729
35730 2019-01-07 Tom de Vries <tdevries@suse.de>
35731
35732 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35733 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35734 vector_red_partition, vector_red_sym): New global variables.
35735 (nvptx_option_override): Initialize vector_red_sym.
35736 (nvptx_declare_function_name): Restore red_partition register.
35737 (nvptx_file_end): Emit code to declare the vector reduction variables.
35738 (nvptx_output_red_partition): New function.
35739 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35740 large vector reductions.
35741 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35742 (nvptx_init_builtins): Add VECTOR_ADDR.
35743 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35744 Handle nvptx_expand_shared_addr.
35745 (nvptx_get_shared_red_addr): Add vector argument and handle large
35746 vectors.
35747 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35748 large vectors.
35749 (nvptx_goacc_reduction_init): Likewise.
35750 (nvptx_goacc_reduction_fini): Likewise.
35751 (nvptx_goacc_reduction_teardown): Likewise.
35752 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35753 init,fini,teardown}.
35754 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35755 (nvptx_set_current_function): Init vector_red_partition.
35756 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35757 (nvptx_red_partition): New insn.
35758 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35759
35760 2019-01-07 Tom de Vries <tdevries@suse.de>
35761
35762 PR target/85381
35763 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35764 empty loops.
35765
35766 2019-01-07 Tom de Vries <tdevries@suse.de>
35767
35768 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35769 (nvptx_option_override): Init oacc_bcast_partition.
35770 (nvptx_init_oacc_workers): New function.
35771 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35772 (nvptx_needs_shared_bcast): New function.
35773 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35774 to propagate state.
35775 (nvptx_shared_propagate): Initialize vector bcast partition and
35776 synchronization state.
35777 (nvptx_single): Generalize to enable vectors to use shared-memory
35778 to propagate state.
35779 (nvptx_process_pars): Likewise.
35780 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35781 * config/nvptx/nvptx.h (struct machine_function): Add
35782 bcast_partition and sync_bar members.
35783
35784 2019-01-07 Tom de Vries <tdevries@suse.de>
35785
35786 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35787 (nvptx_apply_dim_limits): New function.
35788 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35789 PTX_WARP_SIZE.
35790
35791 2019-01-07 Tom de Vries <tdevries@suse.de>
35792
35793 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35794 as late as possible.
35795
35796 2019-01-07 Tom de Vries <tdevries@suse.de>
35797
35798 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35799 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35800 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35801 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35802 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35803
35804 2019-01-07 Tom de Vries <tdevries@suse.de>
35805
35806 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35807
35808 2019-01-07 Tom de Vries <tdevries@suse.de>
35809
35810 * omp-offload.c (oacc_get_min_dim): New function.
35811 * omp-offload.h (oacc_get_min_dim): Declare.
35812
35813 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35814
35815 PR target/88521
35816 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35817 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35818
35819 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35820
35821 PR tree-opt/86020
35822 Revert:
35823 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35824
35825 * ipa-inline.c (edge_badness): Use inlined_time instead of
35826 inline_summaries->get.
35827
35828 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35829
35830 * opts.c (enable_fdo_optimizations): Enable
35831 version-loops-for-strides, loop-interchange, unrol-and-jam
35832 and tree-loop-distribution.
35833 * invoke.texi: Document newly enabled options.
35834
35835 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35836
35837 * doc/invoke.texi (max-inline-insns-small): New parameters.
35838 * ipa-inline.c (want_early_inline_function_p): simplify.
35839 (want_inline_small_function_p): Fix pasto from previous patch;
35840 use max-inline-insns-small bound.
35841 * params.def (max-inline-insns-small): New param.
35842 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35843 variables correctly.
35844
35845 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35846
35847 * doc/invoke.texi: Document max-inline-insns-size,
35848 uninlined-function-insns, uninlined-function-time,
35849 uninlined-thunk-insns and uninlined-thunk-time.
35850 * params.def: Add max-inline-insns-size,
35851 uninlined-function-insns, uninlined-function-time,
35852 uninlined-thunk-insns and uninlined-thunk-time.
35853 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35854 new parameters.
35855 * ipa-inline.c (can_inline_edge_by_limits_p,
35856 want_inline_small_function_p): Use new parameters.
35857
35858 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35859
35860 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35861
35862 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35863
35864 PR middle-end/82564
35865 PR target/88620
35866 * expr.c (expand_assignment): For calls returning VLA structures
35867 if to_rtx is not a MEM, force it into a stack temporary.
35868
35869 PR debug/88635
35870 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35871 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35872 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35873 subexpressions of both operands.
35874 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35875 subrtxes are CONSTANT_P.
35876 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35877 2018-11-09 changes.
35878
35879 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35880
35881 * params.def (hot-bb-count-ws-permille): Set to 990.
35882
35883 2019-01-04 Martin Sebor <msebor@redhat.com>
35884
35885 PR c/88546
35886 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35887 leaf.
35888
35889 2019-01-04 Martin Sebor <msebor@redhat.com>
35890
35891 PR c/88363
35892 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35893
35894 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35895
35896 * gdbinit.in: Turn off pagination for the skip commands, restore
35897 it to previous state afterwards.
35898
35899 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35900
35901 PR target/88594
35902 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35903 of GET_MODE (opN) as modes of the libcall arguments.
35904
35905 2019-01-04 Jan Beulich <jbeulich@suse.com>
35906
35907 * config/i386/sse.md
35908 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35909 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35910 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35911 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35912 avx512f_vmcmp<mode>3<round_saeonly_name>,
35913 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35914 avx512f_maskcmp<mode>3,
35915 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35916 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35917 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35918 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35919 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35920 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35921 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35922 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35923 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35924 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35925 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35926 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35927 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35928 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35929 avx512cd_maskb_vec_dup<mode>,
35930 avx512cd_maskw_vec_dup<mode>,
35931 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35932 avx512dq_vmfpclass<mode>,
35933 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35934 instead of =Yk.
35935
35936 2019-01-03 Martin Sebor <msebor@redhat.com>
35937
35938 PR tree-optimization/88659
35939 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35940
35941 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35942
35943 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35944 unaligned vsx and avoid lxvd2x/stxvd2x.
35945 (gen_lvx_v4si_move): New function.
35946
35947 2019-01-03 Tom de Vries <tdevries@suse.de>
35948
35949 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35950 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35951 function.
35952 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35953
35954 2019-01-03 Tom de Vries <tdevries@suse.de>
35955
35956 * config/nvptx/nvptx.c (struct offload_attrs): New.
35957 (populate_offload_attrs): New function. Factor mask extraction out of
35958 nvptx_reorg. Add extraction of dimensions.
35959 (nvptx_reorg): Use populate_offload_attrs.
35960
35961 2019-01-03 Tom de Vries <tdevries@suse.de>
35962
35963 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35964 cases for oacc_min_dims_p and routine_p. Add asserts for
35965 oacc_default_dims_p and offload_region_p.
35966
35967 2019-01-03 Tom de Vries <tdevries@suse.de>
35968
35969 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35970 factored out of ...
35971 (nvptx_goacc_validate_dims): ... here.
35972
35973 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35974
35975 PR tree-optimization/85574
35976 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35977 structure.
35978 (struct ssa_equip_hash_traits): Declare.
35979 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35980
35981 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35982
35983 PR debug/88644
35984 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35985 change it to qualified_type.
35986
35987 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35988
35989 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35990 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35991
35992 2019-01-02 Martin Sebor <msebor@redhat.com>
35993 Jeff Law <law@redhat.com>
35994
35995 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35996 (get_range_strlen_tree): Update appropriately.
35997 (get_range_strlen)
35998 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35999
36000 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36001 rather than set_range_info.
36002 * tree-ssa-strlen.c (set_strlen_range): Extracted from
36003 maybe_set_strlen_range. Handle potentially boundary crossing
36004 cases more conservatively.
36005 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36006 Call set_strlen_range.
36007 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36008
36009 PR middle-end/88663
36010 * gimple-fold.c (get_range_strlen): Update prototype to no longer
36011 need the flexp argument.
36012 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
36013 from calls to get_range_strlen. Update comments. Just update
36014 VAL for an unterminated const char array and let the reset of the
36015 code handle it normally. No longer try to set *flexp. Adjust
36016 return value.
36017 (get_range_strlen): Update for the new get_range_strlen API.
36018 (get_maxval_strlen): Similarly.
36019 (gimple_fold_builtin_strlen): Handle update meaning of return value
36020 from get_range_strlen.
36021 * gimple-ssa-sprintf.c (get_string_length): Update for the new
36022 get_range_strlen API.
36023
36024 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
36025
36026 PR lto/88130
36027 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36028 false at WPA time when body was removed.
36029
36030 2019-01-02 Martin Liska <mliska@suse.cz>
36031
36032 PR tree-optimization/88650
36033 * predict.c (set_even_probabilities): Calculate probability
36034 remainer only when really used.
36035
36036 2019-01-02 Richard Biener <rguenther@suse.de>
36037
36038 PR middle-end/88651
36039 * tree-data-ref.c (analyze_subscript_affine_affine): Use
36040 widest_ints when mangling max_stmt_execution results.
36041
36042 2019-01-02 Richard Biener <rguenther@suse.de>
36043
36044 PR tree-optimization/88621
36045 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36046 bitfields when canoncalizing.
36047
36048 2019-01-02 Richard Biener <rguenther@suse.de>
36049
36050 PR target/87545
36051 * config/i386/x86-tune-costs.h (intel_cost): Adjust
36052 cost of cheap SSE instruction.
36053
36054 2019-01-02 Richard Biener <rguenther@suse.de>
36055
36056 PR ipa/85574
36057 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36058 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36059 function.
36060 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36061 set after UIDs before splitting them.
36062
36063 2019-01-01 Martin Sebor <msebor@redhat.com>
36064 Jeff Law <law@redhat.com>
36065
36066 * gimple-fold.c (get_range_strlen_tree): Record if the computed
36067 length is optimistic. If it is, then arrange to compute the
36068 conservative length as well.
36069
36070 * gimple-fold.h (get_range_strlen): Update prototype.
36071 * builtins.c (check_access): Update call to get_range_strlen to use
36072 c_strlen_data pointer. Change various variable accesses to instead
36073 pull data from the c_strlen_data structure.
36074 (check_strncat_sizes, expand_builtin_strncat): Likewise.
36075 * calls.c (maybe_warn_nonstring_arg): Likewise.
36076 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
36077 minimum length if maximum lengh is unknown.
36078 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
36079 that used c_strlen, it's no longer needed. Restructure slightly.
36080 (format_string): Set unlikely range appropriately.
36081 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
36082 formatting issues.
36083 (get_range_strlen): Accept c_strlen_data pointer for external
36084 call sites as well. Pass through to call to internal get_range_strlen.
36085 Adjust minlen, maxlen and maxbound as needed.
36086 (get_maxval_strlen): Update comments.
36087 (gimple_fold_builtin_strlen): Update call to get_range_strlen
36088 to use c_strlen_data pointer. Change variable accesses to instead
36089 use c_strlen_data data members.
36090
36091 * gimple-fold.c (get_range_strlen): Update prototype.
36092 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
36093 local variables. Use pdata to return information to caller.
36094 Update calls to get_range_strlen. Update pdata->maxbound.
36095 (get_range_strlen -- static version): Similarly.
36096 (get_range_strlen -- extern version): Update for internal
36097 get_range_strlen API change. Convert to external data format.
36098 (get_maxval_strlen): Similarly.
36099
36100 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
36101
36102 * coverage.c (get_coverage_counts): Use current_function_decl.
36103 * profile.c (read_thunk_profile): New function.
36104 (branch_prob): Add THUNK parameter.
36105 * tree-profile.c (tree_profiling): Handle thunks.
36106 * value-prof.c (init_node_map): Handle thunks.
36107 * value-prof.h (branch_prob): Upate prototype.
36108 (read_thunk_profile): Declare.
36109
36110 2019-01-01 Jakub Jelinek <jakub@redhat.com>
36111
36112 Update copyright years.
36113
36114 * gcc.c (process_command): Update copyright notice dates.
36115 * gcov-dump.c (print_version): Ditto.
36116 * gcov.c (print_version): Ditto.
36117 * gcov-tool.c (print_version): Ditto.
36118 * gengtype.c (create_file): Ditto.
36119 * doc/cpp.texi: Bump @copying's copyright year.
36120 * doc/cppinternals.texi: Ditto.
36121 * doc/gcc.texi: Ditto.
36122 * doc/gccint.texi: Ditto.
36123 * doc/gcov.texi: Ditto.
36124 * doc/install.texi: Ditto.
36125 * doc/invoke.texi: Ditto.
36126 \f
36127 Copyright (C) 2019 Free Software Foundation, Inc.
36128
36129 Copying and distribution of this file, with or without modification,
36130 are permitted in any medium without royalty provided the copyright
36131 notice and this notice are preserved.