re PR target/92904 (varargs for __int128 is placed at an unaligned location and uses...
[gcc.git] / gcc / ChangeLog
1 2019-12-12 Jakub Jelinek <jakub@redhat.com>
2
3 PR target/92904
4 * config/i386/i386.c (ix86_gimplify_va_arg): If need_intregs and
5 not need_temp, decrease alignment of the read because the GPR save
6 area only guarantees 8-byte alignment.
7
8 2019-12-12 Georg-Johann Lay <avr@gjlay.de>
9
10 Add support for some more AVR devices from avrxmega3 family.
11
12 * config/avr/avr-mcus.def (attiny1604, attiny1606, attiny1607)
13 (attiny402, attiny404, attiny406)
14 (attiny804, attiny806, attiny807)
15 (attiny202, attiny204): Add AVR_MCU lines to support them.
16 * doc/avr-mmcu.texi: Regenerate.
17
18 2019-12-12 Jan Hubicka <hubicka@ucw.cz>
19
20 * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
21 of execution of function call parameters.
22
23 2019-12-12 Vineet Gupta <vgupta@synopsys.com>
24
25 * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
26 helps codegen generate exceptions even for quiet NaN.
27 * config/arc/arc.c (arc_init_reg_tables): Handle New CC_FPUE mode.
28 (get_arc_condition_code): Likewise.
29 (arc_select_cc_mode): LT, LE, GT, GE to use the New CC_FPUE mode.
30 * config/arc/arc.h (REVERSE_CONDITION): Handle New CC_FPUE mode.
31 * config/arc/predicates.md (proper_comparison_operator): Likewise.
32 * config/arc/fpu.md (cmpsf_fpu_trap): New Pattern for CC_FPUE.
33 (cmpdf_fpu_trap): Likewise.
34
35 2019-12-12 Claudiu Zissulescu <claziss@synopsys.com>
36
37 * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE.
38 (cstoredi4): Use TARGET_HARD_FLOAT.
39
40 2019-12-11 Jakub Jelinek <jakub@redhat.com>
41
42 * opts.c (default_options_table): Move -ftree-loop-distribute-patterns
43 entry from -O3 or later section to -O2 or later section.
44 * doc/invoke.texi (-ftree-loop-distribute-patterns): Mention the
45 option is enabled by default at -O2+ rather than just at -O3.
46
47 PR target/92723
48 * tree-vect-patterns.c (vect_recog_rotate_pattern): If dt is not
49 vect_internal_def, use oprnd1 as is, without trying to cast it.
50 Formatting fix.
51
52 2019-12-11 Martin Sebor <msebor@redhat.com>
53
54 * builtins.c (compute_objsize): Add an argument and set it to offset
55 into destination.
56 * builtins.h (compute_objsize): Add an argument.
57 * tree-object-size.c (addr_object_size): Add an argument and set it
58 to offset into destination.
59 (compute_builtin_object_size): Same.
60 * tree-object-size.h (compute_builtin_object_size): Add an argument.
61 * tree-ssa-strlen.c (get_addr_stridx): Add an argument and set it
62 to offset into destination.
63 (maybe_warn_overflow): New function.
64 (handle_store): Call maybe_warn_overflow to issue warnings.
65
66 2019-12-11 Jozef Lawrynowicz <jozef.l@mittosystems.com>
67
68 * config/msp430/msp430.h (STARTFILE_SPEC) [!fexceptions]: Use
69 crtbegin_no_eh.o if building for the C language.
70 [fno-exceptions]: Use crtbegin_no_eh.o if building for any language
71 except C.
72 (ENDFILE_SPEC) [!fexceptions]: Use crtend_no_eh.o if building for
73 the C language.
74 [fno-exceptions]: Use crtend_no_eh.o if building for any language
75 except C.
76 * config/msp430/t-msp430: Add -fno-exceptions multilib.
77 * doc/install.texi: Document --disable-no-exceptions multilib configure
78 option.
79 * doc/sourcebuild.texi: Document exceptions_enabled effective target.
80
81 2019-12-11 David Malcolm <dmalcolm@redhat.com>
82
83 * pretty-print.c (pretty_printer::pretty_printer): New copy-ctor.
84 (pretty_printer::clone): New vfunc implementation.
85 * pretty-print.h (format_postprocessor::clone): New pure vfunc
86 decl.
87 (pretty_printer::pretty_printer): New copy-ctor decl.
88 (pretty_printer::clone): New vfunc decl.
89
90 2019-12-11 David Malcolm <dmalcolm@redhat.com>
91
92 * function-tests.c (selftest::make_fndecl): Make non-static.
93 * selftest.h (selftest::make_fndecl): New decl.
94
95 2019-12-11 Lewis Hyatt <lhyatt@gmail.com>
96
97 PR 91853
98 * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid
99 multibyte input. Fix off-by-one-bug printing the last byte before a
100 hex-escaped output.
101 (pp_character): Don't apply line wrapping in the middle of multibyte
102 characters.
103 (test_utf8): New test.
104 (pretty_print_c_tests): Call the new test.
105
106 2019-12-11 Richard Earnshaw <rearnsha@arm.com>
107
108 * config/arm/arm-cpus.in (ALL_SIMD_EXTERNAL): New fgroup.
109 (ALL_SIMD): Use it.
110 (ALL_FPU_EXTERNAL): New fgroup.
111 (ALL_FP): Use it.
112 (cortex-a55, cortex-a75, cortex-a76, cortex-a76ae): Remove redundant
113 +simd from architecture specification.
114 (cortex-a77, neoverse-n1, cortex-a75.cortex-a55): Likewise.
115 * config/arm/arm.c (isa_all_fpubits, fpu_bitlist): Rename to ...
116 (isa_all_fpubits_internal, fpu_bitlist_internal): ... these.
117 (isa_all_fpbits): New bitmap.
118 (arm_option_override): Initialize it.
119 (arm_configure_build_target): If the target isa does not have any
120 FP enabled, do not warn about mismatches in FP-related feature bits.
121
122 2019-12-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
123
124 * real.c (struct arm_bfloat_half_format,
125 encode_arm_bfloat_half, decode_arm_bfloat_half): New.
126 * real.h (arm_bfloat_half_format): New.
127
128 2019-12-11 Hongtao Liu <hongtao.liu@intel.com>
129
130 PR target/92865
131 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Enable
132 integer mask cmov when available even with TARGET_XOP.
133
134 2019-12-10 Jakub Jelinek <jakub@redhat.com>
135
136 PR tree-optimization/92891
137 * builtins.c (gimple_call_alloc_size): Convert size to sizetype
138 before returning it.
139
140 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
141
142 PR rtl-optimization/92796
143 * lra-int.h (lra_risky_transformations_p): Rename to
144 check_and_force_assignment_correctness_p.
145 * lra-assigns.c: Ditto.
146 (lra_assign): Reset check_and_force_assignment_correctness_p.
147 * lra-constraints.c (lra_risky_transformations_p): Rename to
148 check_and_force_assignment_correctness_p.
149 (lra_constraints): Set up check_and_force_assignment_correctness_p
150 only for the 1st sub-pass.
151 * lra-eliminations.c (process_insn_for_elimination): Set up
152 check_and_force_assignment_correctness_p if the insn chnaged its
153 code.
154
155 2019-12-10 Jakub Jelinek <jakub@redhat.com>
156
157 PR rtl-optimization/92882
158 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
159 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
160 NONDEBUG_INSN_P.
161
162 PR ipa/92883
163 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
164 than *jfunc->m_vr to intersect. Formatting fix.
165
166 PR middle-end/92825
167 * cfgexpand.c (add_stack_protection_conflicts): Change return type
168 from void to bool, return true if at least one stack_vars[i].decl
169 is addressable.
170 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
171 (expand_used_vars): Don't call stack_protect_decl_p, instead for
172 -fstack-protector-strong set gen_stack_protect_signal to true
173 if add_stack_protection_conflicts returned true. Formatting fixes.
174 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
175 out variables or variables not living on the stack don't count.
176 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
177 rather than > 8 byte.
178
179 * ipa-param-manipulation.c
180 (ipa_param_body_adjustments::register_replacement): Fix comment typo
181 - accross -> across.
182 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
183 Likewise.
184 (param_splitting_across_edge): Fix typo in dump message - accross
185 -> across.
186
187 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
188
189 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
190 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
191 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
192 (expand_all_functions): First expand ordered section and then
193 unordered.
194 * profile.c (compute_value_histograms): Error on out of range
195 tp_first_runs.
196
197 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
198
199 * predict.c (compute_function_frequency): Check for presence of IPA
200 profile.
201
202 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
203
204 * varasm.c (default_function_section): Fix confused tests for
205 tp_first_run reordering.
206
207 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
208
209 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
210 allow SVE modes in GPRs.
211
212 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
213
214 * config/aarch64/iterators.md (vccore): New iterator.
215 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
216 of vwcore.
217 (*vec_series<mode>_plus): Likewise.
218
219 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
220
221 * omp-low.c (scan_omp_for): Use clause location in warning.
222
223 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
224
225 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
226 (add_const_value_attribute): Likewise.
227
228 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
229
230 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
231 handling direct_slp_reduc, allow the PHI arguments to have
232 a different type from the vector elements.
233
234 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
235
236 * tree-vect-stmts.c (vectorizable_condition): Record the loop
237 masks required for extract-last reductions.
238
239 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
240
241 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
242 original scalar statement rather than a pattern statement.
243 (vectorizable_condition): Likewise, in the handling of extract-last
244 reductions.
245
246 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
247
248 * tree-vect-loop.c (vectorizable_reduction): Don't use
249 EXTRACT_LAST_REDUCTION for chained reductions.
250
251 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
252
253 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
254 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
255 second demangled name.
256
257 2019-12-10 Jakub Jelinek <jakub@redhat.com>
258
259 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
260
261 2019-12-10 Martin Liska <mliska@suse.cz>
262
263 PR tree-optimization/92862
264 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
265 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
266 instead of true;
267
268 2019-12-09 David Malcolm <dmalcolm@redhat.com>
269
270 * gcc-rich-location.c
271 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
272 label_text ctor call with label_text::borrow.
273 * gcc-rich-location.h (text_range_label::get_text): Replace
274 label_text ctor called with false with label_text::borrow.
275
276 2019-12-09 David Malcolm <dmalcolm@redhat.com>
277
278 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
279 newline.
280 (selftest::test_diagnostic_show_locus_unknown_location): Remove
281 initial newline from expected outputs.
282 (selftest::test_one_liner_simple_caret): Likewise.
283 (selftest::test_one_liner_caret_and_range): Likewise.
284 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
285 (selftest::test_one_liner_fixit_insert_before): Likewise.
286 (selftest::test_one_liner_fixit_insert_after): Likewise.
287 (selftest::test_one_liner_fixit_remove): Likewise.
288 (selftest::test_one_liner_fixit_replace): Likewise.
289 (selftest::test_one_liner_fixit_replace_non_equal_range):
290 Likewise.
291 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
292 Likewise.
293 (selftest::test_one_liner_fixit_validation_adhoc_locations):
294 Likewise.
295 (selftest::test_one_liner_many_fixits_1): Likewise.
296 (selftest::test_one_liner_many_fixits_2): Likewise.
297 (selftest::test_one_liner_labels): Likewise.
298 (selftest::test_one_liner_simple_caret_utf8): Likewise.
299 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
300 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
301 Likewise.
302 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
303 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
304 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
305 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
306 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
307 Likewise.
308 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
309 Likewise.
310 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
311 Likewise.
312 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
313 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
314 (selftest::test_one_liner_labels_utf8): Likewise.
315 (selftest::test_add_location_if_nearby): Likewise.
316 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
317 (selftest::test_overlapped_fixit_printing): Likewise.
318 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
319 (selftest::test_overlapped_fixit_printing_2): Likewise.
320 (selftest::test_fixit_insert_containing_newline): Likewise.
321 (selftest::test_fixit_insert_containing_newline_2): Likewise.
322 (selftest::test_fixit_replace_containing_newline): Likewise.
323 (selftest::test_fixit_deletion_affecting_newline): Likewise.
324 (selftest::test_line_numbers_multiline_range): Likewise.
325 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
326 before call to diagnostic_show_locus.
327 (diagnostic_append_note): Likewise.
328
329 2019-12-09 Martin Sebor <msebor@redhat.com>
330
331 PR middle-end/92761
332 PR middle-end/92762
333 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
334 up tests.
335 * hash-table.h (hash_table::expand): Use placement new to copy
336 construct objects in uninitialized storage.
337 (hash_table::empty_slow): Avoid invoking copy assignment on
338 uninitialized objects.
339
340 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
341
342 PR preprocessor/49973
343 * input.c (location_compute_display_column): New function to help with
344 multibyte awareness in diagnostics.
345 (test_cpp_utf8): New self-test.
346 (input_c_tests): Call the new test.
347 * input.h (location_compute_display_column): Declare.
348 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
349 to all classes and functions.
350 (enum column_unit): New enum.
351 (class exploc_with_display_col): New class.
352 (class layout_point): Convert m_column member to array m_columns[2].
353 (layout_range::contains_point): Add col_unit argument.
354 (test_layout_range_for_single_point): Pass new argument.
355 (test_layout_range_for_single_line): Likewise.
356 (test_layout_range_for_multiple_lines): Likewise.
357 (line_bounds::convert_to_display_cols): New function.
358 (layout::get_state_at_point): Add col_unit argument.
359 (make_range): Use empty filename rather than dummy filename.
360 (get_line_width_without_trailing_whitespace): Rename to...
361 (get_line_bytes_without_trailing_whitespace): ...this.
362 (test_get_line_width_without_trailing_whitespace): Rename to...
363 (test_get_line_bytes_without_trailing_whitespace): ...this.
364 (class layout): m_exploc changed to exploc_with_display_col from
365 plain expanded_location.
366 (layout::get_linenum_width): New accessor member function.
367 (layout::get_x_offset_display): Likewise.
368 (layout::calculate_linenum_width): New subroutine for the constuctor.
369 (layout::calculate_x_offset_display): Likewise.
370 (layout::layout): Use the new subroutines. Add multibyte awareness.
371 (layout::print_source_line): Add multibyte awareness.
372 (layout::print_line): Likewise.
373 (layout::print_annotation_line): Likewise.
374 (line_label::line_label): Likewise.
375 (layout::print_any_labels): Likewise.
376 (layout::annotation_line_showed_range_p): Likewise.
377 (get_printed_columns): Likewise.
378 (class line_label): Rename m_length to m_display_width.
379 (get_affected_columns): Rename to...
380 (get_affected_range): ...this; add col_unit argument and multibyte
381 awareness.
382 (class correction): Add m_affected_bytes and m_display_cols
383 members. Rename m_len to m_byte_length for clarity. Add multibyte
384 awareness throughout.
385 (correction::insertion_p): Add multibyte awareness.
386 (correction::compute_display_cols): New function.
387 (correction::ensure_terminated): Use new member name m_byte_length.
388 (line_corrections::add_hint): Add multibyte awareness.
389 (layout::print_trailing_fixits): Likewise.
390 (layout::get_x_bound_for_row): Likewise.
391 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
392 with _utf8 suffix removed, testing multibyte awareness.
393 (test_one_liner_caret_and_range_utf8): Likewise.
394 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
395 (test_one_liner_fixit_insert_before_utf8): Likewise.
396 (test_one_liner_fixit_insert_after_utf8): Likewise.
397 (test_one_liner_fixit_remove_utf8): Likewise.
398 (test_one_liner_fixit_replace_utf8): Likewise.
399 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
400 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
401 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
402 (test_one_liner_many_fixits_1_utf8): Likewise.
403 (test_one_liner_many_fixits_2_utf8): Likewise.
404 (test_one_liner_labels_utf8): Likewise.
405 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
406 (test_overlapped_fixit_printing_utf8): Likewise.
407 (test_overlapped_fixit_printing): Adapt for changes to
408 get_affected_columns, get_printed_columns and class corrections.
409 (test_overlapped_fixit_printing_2): Likewise.
410 (test_linenum_sep): New constant.
411 (test_left_margin): Likewise.
412 (test_offset_impl): Helper function for new test.
413 (test_layout_x_offset_display_utf8): New test.
414 (diagnostic_show_locus_c_tests): Call new tests.
415
416 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
417
418 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
419 TYPE_CANONICAL from the element type only if it is true. Remove a few
420 obsolete lines and adjust recursive call.
421 (fld_process_array_type): Adjust call to build_array_type_1.
422 (build_array_type): Likewise.
423 (build_nonshared_array_type): Likewise.
424
425 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
426
427 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
428 %s to %o in asm output.
429 (gather<mode>_insn_2offsets<exec>): Likewise.
430
431 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
432
433 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
434 on a-profile.
435
436 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
437
438 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
439 set<mode>_cc.
440 (unnamed define_insn_and_split): Delete.
441 (unnamed define_insn): Delete.
442 (unnamed define_insn): Delete.
443 (unnamed define_split): Delete.
444
445 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
446
447 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
448 avoid a warning.
449
450 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
451
452 PR middle-end/92410
453 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
454 dataflow luids once basic blocks have been reordered.
455 * haifa-sched.c (reemit_notes): Create df insn record for each
456 new note.
457 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
458 insn has an insn record before trying to use it.
459
460 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
461
462 * common/config/i386/i386-common.c
463 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
464 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
465 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
466 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
467 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
468 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
469 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
470 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
471 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
472 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
473 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
474 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
475 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
476 OPTION_MASK_ISA_AVX512BF16_UNSET,
477 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
478 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
479 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
480 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
481 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
482 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
483 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
484 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
485 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
486 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
487 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
488 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
489 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
490 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
491 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
492 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
493 OPTION_MASK_ISA_ENQCMD): Ditto.
494 * config/i386/i386-builtin.def
495 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
496 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
497 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
498 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
499 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
500 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
501 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
502 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
503 * config/i386/i386-c.c
504 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
505 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
506 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
507 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
508 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
509 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
510 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
511 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
512 OPTION_MASK_ISA_ENQCMD): Ditto.
513 * config/i386/i386-option.c: Ditto
514 * config/i386/i386.opt: Ditto..
515 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
516 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
517 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
518 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
519 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
520 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
521 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
522 TARGET_ISA_ENQCMD): Ditto.
523
524 2019-12-09 Sudakshina Das <sudi.das@arm.com>
525 Richard Sandiford <richard.sandiford@arm.com>
526
527 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
528 vect_model_simple_cost call on scalar_shift_arg.
529
530 2019-12-09 Jakub Jelinek <jakub@redhat.com>
531
532 PR tree-optimization/92834
533 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
534 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
535
536 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
537
538 PR tree-optimization/89007
539 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
540 target support available, generate code to distribute rshift over plus
541 and add a carry.
542
543 2019-12-09 Martin Liska <mliska@suse.cz>
544
545 PR ipa/92737
546 * cgraph.c (symbol_table_test::symbol_table_test): Fix
547 coding style.
548 * cgraph.h (symtab_node::symtab_node): New constructor.
549 (cgraph_node::cgraph_node): Likewise.
550 (varpool_node::varpool_node): Likewise.
551 (symbol_table::allocate_cgraph_symbol): Use newly
552 created constructor.
553 (symbol_table::allocate_cgraph_symbol): Remove.
554 * cgraphunit.c (symtab_terminator): Likewise.
555 * varpool.c (varpool_node::create_empty): Use newly
556 created constructor.
557
558 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
559
560 PR target/92686
561 * config/i386/sse.md
562 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
563 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
564 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
565 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
566 * config/i386/i386.c (ix86_print_operand): New operand substitution.
567 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
568 New function.
569 (ix86_expand_sse_cmp): Relax condition for integer mask from
570 512-bit vector to all 128/256/512-bit vector. Delete code gen
571 for avx512f compare patterns since we have generic pattern now.
572 (ix86_expand_sse_movcc): Adjust condition and codegen for
573 maskcmp.
574 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
575 when corresponding vector compare is available.
576
577 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
578
579 Revert:
580 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
581
582 * config/nios2/linux.h (LINK_EH_SPEC): Define.
583
584 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
585
586 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
587 * cgraph.h (cgrpah_node): Likewise.
588 (tp_first_run_node_cmp): Deeclare.
589 * cgraphunit.c (node_cmp): Rename to ...
590 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
591 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
592 (expand_all_functions): Collect tp_first_run and normal functions to
593 two vectors so the other functions remain sorted. Do not check for
594 flag_profile_reorder_functions it is function local flag.
595 * profile.c (compute_value_histograms): Update tp_first_run printing.
596
597 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
598
599 * opts.c (common_handle_option): Do not clear ipa_reference for
600 -fprofile-use.
601
602 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
603
604 * ipa-split.c (split_function): Preserve 0 tp_first_run.
605
606 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
607
608 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
609 sanity check.
610
611 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
612
613 PR tree-optimization/92860
614 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
615 Optimization flag.
616
617 2019-12-07 Marek Polacek <polacek@redhat.com>
618
619 PR c++/91678 - wrong error with decltype and location wrapper.
620 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
621
622 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
623
624 PR middle-end/90840
625 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
626 sure to pass a valid inner mode in calls to simplify_gen_subreg.
627
628 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
629 David Malcolm <dmalcolm@redhat.com>
630 Jakub Jelinek <jakub@redhat.com>
631
632 PR c/87488
633 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
634 instead of ST sequence to terminate OSC 8 strings.
635
636 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
637 Vladimir Makarov <vmakarov@redhat.com>
638
639 PR rtl-optimization/92176
640 * lra.c (simplify_subreg_regno): Don't permit unconditional
641 changing mode for LRA too.
642
643 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
644
645 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
646 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
647 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
648 Handle them.
649
650 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
651
652 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
653 in the asm output.
654
655 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
656
657 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
658 (VEC_1REG_ALT): Likewise.
659 (VEC_ALL1REG_MODE): New mode iterator.
660 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
661 (VEC_1REG_INT_ALT): Likewise.
662 (VEC_ALL1REG_INT_MODE): New mode interator.
663 (VEC_ALL1REG_INT_ALT): Likewise.
664 (VEC_REG_MODE): Remove V64QI and V64HI.
665 (VEC_ALLREG_MODE): New mode interator.
666 (vec_merge): Change to VEC_ALLREG_MODE.
667 (vec_merge_with_clobber): Likewise.
668 (vec_merge_with_vcc): Likewise.
669 (mov<mode>): Likewise.
670 (mov<mode>_unspec): Likewise.
671 (*mov<mode>): Change to VEC_ALL1REG_MODE.
672 (mov<mode>_exec): Likewise.
673 (*mov<mode>_exec_match): Likewise.
674 (mov<mode>_sgprbase): Likewise.
675 (reload_in<mode>): Change to VEC_ALLREG_MODE.
676 (reload_out<mode>): Likewise.
677 (scalar address splits): Likewise.
678 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
679 (vec_set<mode>): Change to VEC_ALLREG_MODE.
680 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
681 (vec_duplicate<mode><exec>): Likewise.
682 (vec_extract<mode><scalar_mode>): Likewise.
683 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
684 (gather_load<mode>): Likewise.
685 (gather<mode>_exec): Likewise.
686 (gather<mode>_expr<exec>): Likewise.
687 (gather<mode>_insn_1offset<exec>): Likewise.
688 (gather<mode>_insn_1offset_ds<exec>): Likewise.
689 (gather<mode>_insn_2offsets<exec>): Likewise.
690 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
691 (VEC_INT_MODE): Remove V64QI and V64HI.
692 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
693 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
694 VEC_ALL1REG_MODE.
695 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
696 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
697 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
698 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
699 (maskstore<mode>di): Likewise.
700 (mask_gather_load<mode>): Likewise.
701 (mov_from_lane63_<mode>): Likewise.
702 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
703 and V64HImode vectorization.
704 (gcn_related_vector_mode): New function.
705 (TARGET_VECTORIZE_RELATED_MODE): New define.
706
707 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
708 Kwok Cheung Yeung <kcy@codesourcery.com>
709
710 * omp-low.c (lower_omp_target): For optional arguments, deref once
711 more to obtain the type.
712
713 2019-12-06 Richard Biener <rguenther@suse.de>
714
715 * match.pd (nop_convert): Remove empty match. Use nop_convert?
716 everywhere.
717
718 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
719
720 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
721 for empty vectors. Avoid using ordered_remove and instead
722 shuffle the vector as we go.
723
724 2019-12-06 Richard Biener <rguenther@suse.de>
725
726 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
727 VIEW_CONVERT{0,1,2}.
728 (expr::opt_grp): Add and initialize.
729 (lower_opt_convert): Rename to ...
730 (lower_opt): ... and work on opt_grp, simply switching operations
731 from being optional to being present or not.
732 (has_opt_convert): Rename to ...
733 (has_opt): ... and adjust.
734 (parser::parse_operation): Return the optional opt_grp,
735 remove special-casing of conditional operations and more generally
736 parse [digit]'?'.
737 (parser::parse_expr): Stick on the parsed opt_grp and perform
738 rough verification.
739 (parser::parse_for): Remove now unnecessary code.
740 (main): Likewise.
741 * doc/match-and-simplify.texi: Mention ? now works on all
742 unary operations and also match predicates.
743
744 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
745
746 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
747 functions, not inline clones.
748
749 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
750
751 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
752
753 2019-12-06 Richard Biener <rguenther@suse.de>
754
755 * genmatch.c (c_expr::gen_transform): Emit newlines from line
756 number changes rather than after every semicolon.
757
758 2019-12-06 Richard Biener <rguenther@suse.de>
759
760 PR tree-optimization/92819
761 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
762 into the last lane. For two-element vectors try inserting
763 into the last lane when inserting into the first fails.
764
765 2019-12-06 Jakub Jelinek <jakub@redhat.com>
766
767 * common.opt (fprofile-partial-training): Terminate description with
768 full stop.
769
770 2019-12-05 Martin Sebor <msebor@redhat.com>
771
772 PR middle-end/92622
773 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
774 left uninitialized by get_addr_base_and_unit_offset on failure.
775
776 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
777
778 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
779 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
780 (detect_type_change): Likewise.
781 (detect_type_change_ssa): Likewise.
782 (ipa_analyze_virtual_call_uses): Update.
783
784 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
785
786 * config/nios2/linux.h (LINK_EH_SPEC): Define.
787
788 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
789
790 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
791
792 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
793
794 * cgraphclones.c (localize_profile): New function.
795 (cgraph_node::create_clone): Use it for partial profiles.
796 * common.opt (fprofile-partial-training): New flag.
797 * doc/invoke.texi (-fprofile-partial-training): Document.
798 * ipa-cp.c (update_profiling_info): For partial profiles do not
799 set function profile to zero.
800 * profile.c (compute_branch_probabilities): With partial profile
801 watch if edge count is zero and turn all probabilities to guessed.
802 (compute_branch_probabilities): For partial profiles do not apply
803 profile when entry count is zero.
804 * tree-profile.c (tree_profiling): Only do value_profile_transformations
805 when profile is read.
806
807 2019-12-05 Sudakshina Das <sudi.das@arm.com>
808
809 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
810 check from if condition.
811
812 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
813
814 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
815 and Fortran's optional arguments, unconditionally add the is-present
816 condition before the libgomp call.
817
818 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
819
820 PR middle-end/92768
821 * tree-core.h (OEP_BITWISE): New flag.
822 * fold-const.c (operand_compare::operand_equal_p): Handle it.
823 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
824
825 2019-12-05 Richard Biener <rguenther@suse.de>
826
827 PR middle-end/92818
828 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
829 heuristics on what don't care element to choose.
830 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
831
832 2019-12-05 Martin Liska <mliska@suse.cz>
833
834 PR gcov-profile/92817
835 * coverage.c (build_gcov_exit_decl): Remove superfluous
836 void_type_node.
837
838 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
839
840 * config/msp430/msp430.md (cbranch<mode>4): Use
841 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
842 dest operand of CMP instruction.
843 (cbranchpsi4_real): Likewise.
844 (cbranchqi4_real): Likewise.
845 (cbranchhi4_real): Likewise.
846 (cbranchpsi4_reversed): Likewise.
847 (cbranchqi4_reversed): Likewise.
848 (cbranchhi4_reversed): Likewise.
849
850 2019-12-05 Richard Biener <rguenther@suse.de>
851
852 PR tree-optimization/92803
853 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
854 invariant vector construction.
855
856 2019-12-05 Martin Liska <mliska@suse.cz>
857
858 PR gcov-profile/91971
859 * coverage.c (coverage_init): Mangle full path
860 only when -fprofile-dir is used.
861
862 2019-12-05 Jakub Jelinek <jakub@redhat.com>
863
864 PR target/92791
865 * config/i386/i386.md (movstrict<mode>): Move test for
866 TARGET_PARTIAL_REG_STALL and not optimizing for size from
867 expander's condition to the body - FAIL; in that case.
868
869 2019-12-03 Martin Sebor <msebor@redhat.com>
870
871 PR middle-end/91582
872 * builtins.c (gimple_call_alloc_size): New function.
873 (compute_objsize): Add argument. Call gimple_call_alloc_size.
874 Handle variable offsets and indices.
875 * builtins.h (gimple_call_alloc_size): Declare.
876 (compute_objsize): Add argument.
877 * gimple-ssa-warn-restrict.c: Remove assertions.
878 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
879
880 2019-12-04 Julian Brown <julian@codesourcery.com>
881
882 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
883
884 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
885
886 PR bootstrap/92661
887 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
888 rs6000.h.
889 (altivec_overloaded_builtins): Move to rs6000-call.c.
890 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
891 rs6000-c.c.
892 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
893 (altivec_overloaded_builtins): Moved from rs6000-c.c.
894 (rs6000_common_init_builtins): Do no define builtins that overload
895 builtins that have been disabled.
896
897 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
898
899 * config/arm/arm.c (arm_option_override_internal):
900 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
901
902 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
903
904 * config/aarch64/aarch64.c
905 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
906 (thunderx_tunings): Likewise.
907 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
908 (thunderx2t99_tunings): Likewise.
909 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
910 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
911
912 2019-12-04 Richard Biener <rguenther@suse.de>
913
914 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
915 empty CTOR and memset partial-def registering. Take advantage
916 of fancy offset analysis in memset handling.
917
918 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
919
920 * fold-const.c (native_encode_vector_part): Handle
921 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
922 (native_decode_vector_tree): Delete, moving the bulk of the code to...
923 (native_interpret_vector_part): ...this new function. Use a pointer
924 and length instead of a vec<> and start index.
925 (native_interpret_vector): Use native_interpret_vector_part.
926 (fold_view_convert_vector_encoding): Likewise.
927
928 2019-12-04 Richard Biener <rguenther@suse.de>
929
930 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
931 non-constant defs in the most trivial way.
932 (vn_reference_lookup_3): Also push down SSA partial defs.
933
934 2019-12-04 Martin Liska <mliska@suse.cz>
935
936 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
937 Initialize count of newly created BB.
938
939 2019-12-04 Jakub Jelinek <jakub@redhat.com>
940
941 PR tree-optimization/92734
942 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
943 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
944
945 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
946
947 PR target/92760
948 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
949 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
950
951 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
952
953 * ipa-fnsummary.c: Include tree-into-ssa.h.
954 (compute_fn_summary): Call update_ssa.
955
956 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
957
958 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
959 is set only for symbol in comdat group.
960 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
961
962 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
963
964 * cgraph.c: Include tree-into-ssa.h
965 (cgraph_node::get_body): Call update_ssa.
966 * cgraphunit.c (cgraph_node::expand): Likewise.
967 * lto-streamer-in.c (input_function): Do not call update_ssa.
968
969 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
970
971 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
972 an array element size if array_element_size is already an invariant.
973 Similarly don't gimplify and install a field offset if
974 component_ref_field_offset is already an invariant.
975
976 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
977
978 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
979 with POLY_INT_CST size is made to a fixed-size object, force the
980 object to live in memory.
981
982 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
983
984 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
985 for the data mode.
986
987 2019-12-03 Richard Biener <rguenther@suse.de>
988
989 PR tree-optimization/92758
990 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
991 operation on uniform vectors.
992
993 2019-12-03 Richard Biener <rguenther@suse.de>
994
995 PR tree-optimization/92645
996 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
997 from or to a properly aligned register variable.
998
999 2019-12-03 Matthias Klose <doko@ubuntu.com>
1000
1001 * Makefile.in (SOURCES): Add doc/lto-dump.1.
1002 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
1003 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
1004
1005 2019-12-03 Richard Biener <rguenther@suse.de>
1006
1007 PR tree-optimization/92751
1008 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
1009 when a clobber ends up in the partial-def vector.
1010 (vn_reference_lookup_3): Let clobbers be handled by the
1011 assignment from CTOR handling.
1012
1013 2019-12-03 Jakub Jelinek <jakub@redhat.com>
1014
1015 PR tree-optimization/92734
1016 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
1017 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
1018 inner subtraction.
1019
1020 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
1021 Jakub Jelinek <jakub@redhat.com>
1022
1023 PR target/92744
1024 * config/i386/i386.md (peephole2 for *swap<mode>): Use
1025 general_reg_operand predicates instead of register_operand.
1026
1027 2019-12-03 Richard Biener <rguenther@suse.de>
1028
1029 PR tree-optimization/92645
1030 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
1031 a full def of a vector via a BIT_INSERT_EXPR.
1032
1033 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
1034
1035 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
1036 static.
1037 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
1038 decl.
1039
1040 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1041
1042 PR middle-end/92741
1043 * fold-const.c (fold_convertible_p): Check vector types more
1044 thoroughly.
1045
1046 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1047
1048 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
1049 (aarch64_expand_mov_immediate): Use it when attempting to measure
1050 the length of an SVE vector.
1051 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
1052 SVE is enabled.
1053
1054 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
1055
1056 * config/aarch64/aarch64-sve-builtins.h
1057 (gimple_folder::force_vector): Declare.
1058 * config/aarch64/aarch64-sve-builtins.cc
1059 (gimple_folder::force_vector): New function.
1060 * config/aarch64/aarch64-sve-builtins-base.cc
1061 (svcmp_impl::fold): Likewise.
1062 (svdup_impl::fold): Handle svdup_z too.
1063
1064 2019-12-02 Martin Liska <mliska@suse.cz>
1065
1066 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
1067 function.
1068 (debug_tree_odr_name): New.
1069 * ipa-utils.h (get_odr_name_for_type): New.
1070
1071 2019-12-02 Richard Biener <rguenther@suse.de>
1072
1073 PR tree-optimization/92742
1074 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
1075 touch the def-type but verify it is consistent with the
1076 original stmts.
1077
1078 2019-12-02 Jakub Jelinek <jakub@redhat.com>
1079
1080 PR tree-optimization/92712
1081 * match.pd ((A * B) +- A -> (B +- 1) * A,
1082 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
1083 even when we don't know anything about range of A, but do know
1084 something about range of B and the simplification won't introduce
1085 new UB.
1086
1087 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
1088
1089 PR ipa/92133
1090 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
1091 (ipa-cp-min-recursive-probability): Likewise.
1092 * params.opt (ipa-cp-max-recursive-depth): New.
1093 (ipa-cp-min-recursive-probability): Likewise.
1094 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
1095 val_p and unlimited.
1096 (self_recursively_generated_p): New function.
1097 (get_val_across_arith_op): Likewise.
1098 (propagate_vals_across_arith_jfunc): Add constant propagation for
1099 self-recursive function.
1100 (incorporate_penalties): Do not penalize pure self-recursive function.
1101 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
1102 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
1103 (get_info_about_necessary_edges): Relax hotness check for edge to
1104 self-recursive function.
1105 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
1106
1107 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
1108
1109 PR target/92499
1110
1111 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
1112 objects of flexible types to be small if they have internal linkage
1113 or are declared extern.
1114 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
1115 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
1116 instead of the size of the object initializer.
1117 * tree.c (flexible_array_type_p): Move from C front end, and
1118 generalize to handle fields in non-C structures.
1119 * tree.h (flexible_array_type_p): Declare.
1120
1121 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1122
1123 * profile-count.h (profile_count::operator<): Use IPA value for
1124 comparsion.
1125 (profile_count::operator>): Likewise.
1126 (profile_count::operator<=): Likewise.
1127 (profile_count::operator>=): Likewise.
1128 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
1129
1130 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1131
1132 * ipa-inline.c (compute_max_insns): Return int64_t.
1133 (inline_small_functions): Simplify.
1134
1135 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1136
1137 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1138 scaling happen.
1139
1140 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1141
1142 * cgraph.h (symtab_node): Add symver flag.
1143 * cgraphunit.c (process_symver_attribute): New.
1144 (process_common_attributes): Use process_symver_attribute.
1145 * lto-cgraph.c (lto_output_node): Stream symver.
1146 (lto_output_varpool_node): Stream symver.
1147 (input_overwrite_node): Stream symver.
1148 (input_varpool_node): Stream symver.
1149 * output.h (do_assemble_symver): Decalre.
1150 * symtab.c (symtab_node::dump_base): Dump symver.
1151 (symtab_node::verify_base): Verify symver.
1152 (symtab_node::resolve_alias): Handle symver.
1153 * varasm.c (do_assemble_symver): New function.
1154 * varpool.c (varpool_node::assemble_aliases): Use it.
1155 * doc/extend.texi: (symver attribute): Document.
1156 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1157
1158 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1159
1160 * target.h (type_context_kind): New enum.
1161 (verify_type_context): Declare.
1162 * target.def (verify_type_context): New target hook.
1163 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1164 * doc/tm.texi: Regenerate.
1165 * tree.c (verify_type_context): New function.
1166 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1167 Declare.
1168 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1169 New function.
1170 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1171 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1172
1173 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1174
1175 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1176 * cgraph.h (cgraph_node): Add unit_id and
1177 merged_extern_inline.
1178 (symbol_table): Add max_unit.
1179 (symbol_table::symbol_table): Initialize it.
1180 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1181 merged_comdat, merged_extern_inline.
1182 (cgraph_node::create_clone): Likewise.
1183 (cgraph_node::create_version_clone): Likewise.
1184 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1185 calls.
1186 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1187 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1188 * ipa-inline.c (inline_small_functions): Likewise.
1189 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1190 copy merged_comdat and merged_extern_inline.
1191 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1192 merged_extern_inline and unit_id.
1193 (input_overwrite_node): Stream in these.
1194 (input_cgraph_1): Set unit_base.
1195 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1196 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1197
1198 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1199
1200 * gcc.c (process_command): Only warn about an ineffective `-x'
1201 option if any input files have actually been supplied.
1202
1203 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1204
1205 * doc/install.texi (Options specification): Remove the list of
1206 target library subdirectories supporting
1207 `--enable-version-specific-runtime-libs'. Document defaults for
1208 the option.
1209
1210 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1211
1212 PR rtl-optimization/92283
1213 * lra.c (lra): Update reg notes after inheritance sub-pass and
1214 before constraint sub-pass.
1215
1216 2019-11-29 Richard Biener <rguenther@suse.de>
1217
1218 PR tree-optimization/91003
1219 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1220 operand number, avoid handling the non-condition operands of
1221 COND_EXPRs as comparisons.
1222 (vect_get_constant_vectors): Pass down the operand number.
1223 (vect_get_slp_defs): Likewise.
1224
1225 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1226
1227 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1228 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1229 VEC_COND_EXPR can trap.
1230
1231 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1232
1233 PR tree-optimization/92677
1234 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1235 to zero when dissolving a group of strided accesses.
1236
1237 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1238
1239 PR tree-optimization/92596
1240 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1241 operations.
1242 (vectorizable_operation): Likewise, instead of relying on
1243 vect_get_mask_type_for_stmt to do this.
1244 (vect_get_vector_types_for_stmt): Always return a vector type
1245 immediately, rather than deferring the choice for boolean results.
1246 Use a vector mask type instead of a normal vector if
1247 vect_use_mask_type_p.
1248 (vect_get_mask_type_for_stmt): Delete.
1249 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1250 mask_producers argument and special boolean_type_node handling.
1251 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1252 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1253 (vect_determine_vectorization_factor): Update call accordingly.
1254 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1255 boolean_type_node handling.
1256 (vect_slp_analyze_node_operations_1): Likewise.
1257
1258 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1259
1260 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1261 (vect_use_mask_type_p): New function.
1262 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1263 mask precision to the pattern statement.
1264 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1265 and use it to initialize the new stmt's mask precision.
1266 (search_type_for_mask_1): Delete.
1267 (search_type_for_mask): Replace with...
1268 (integer_type_for_mask): ...this new function. Use the information
1269 cached in the stmt_vec_info.
1270 (vect_recog_bool_pattern): Update accordingly.
1271 (build_mask_conversion): Pass the scalar type associated with the
1272 mask type to append_pattern_def_seq.
1273 (vect_recog_mask_conversion_pattern): Likewise. Call
1274 integer_type_for_mask instead of search_type_for_mask.
1275 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1276 of search_type_for_mask.
1277 (possible_vector_mask_operation_p): New function.
1278 (vect_determine_mask_precision): Likewise.
1279 (vect_determine_stmt_precisions): Call it.
1280
1281 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1282
1283 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1284 the slp_tree parameter with a group size parameter.
1285 (vect_get_mask_type_for_stmt): Likewise.
1286 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1287 (vect_get_mask_type_for_stmt): Likewise.
1288 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1289 call accordingly.
1290
1291 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1292
1293 * tree-vect-stmts.c (vectorizable_operation): Punt early
1294 on codes that are handled elsewhere.
1295
1296 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1297
1298 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1299 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1300 operand to a boolean comparison is a natural vector mask,
1301 handle both operands like normal integers instead.
1302
1303 2019-11-29 Richard Biener <rguenther@suse.de>
1304
1305 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1306 out early for too large objects.
1307
1308 2019-11-29 Martin Jambor <mjambor@suse.cz>
1309
1310 PR ipa/92476
1311 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1312 the summary only if the summary exists.
1313 (find_more_scalar_values_for_callers_subset): Check node_dead in
1314 the summary only if the summary exists.
1315 (ipcp_store_bits_results): Ignore nodes without lattices.
1316 (ipcp_store_vr_results): Likewise.
1317 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1318 header files required by them.
1319 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1320
1321 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1322
1323 PR tree-optimization/92710
1324 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1325 vector mask arguments.
1326
1327 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1328
1329 * profile-count.c (profile_count::to_cgraph_frequency,
1330 profile_count::to_sreal_scale): Check for compaibility of counts.
1331 * profile-count.h (compatible_p): Make public; add checking for
1332 global0 versus global types.
1333 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1334
1335 2019-11-29 Richard Biener <rguenther@suse.de>
1336
1337 PR tree-optimization/92715
1338 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1339 out for uniform vectors and source vectors with less elements
1340 than the destination.
1341
1342 2019-11-29 Martin Liska <mliska@suse.cz>
1343
1344 PR lto/91574
1345 * ipa-devirt.c (types_same_for_odr): Check for existence
1346 of TYPE_NAMEs first.
1347
1348 2019-11-29 Richard Biener <rguenther@suse.de>
1349
1350 PR tree-optimization/92704
1351 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1352 in loops performing only loads.
1353
1354 2019-11-29 Julian Brown <julian@codesourcery.com>
1355
1356 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1357 BT_DFLOAT128_PTR) Remove.
1358 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1359 TI_DFLOAT128_PTR_TYPE): Remove.
1360 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1361 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1362 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1363 dfloat128_ptr_type_node): Remove macros.
1364
1365 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1366
1367 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1368 formatting.
1369 (*movdi_internal64): Ditto.
1370
1371 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1372
1373 PR target/92602
1374 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1375 indexed_or_indirect_operand to be memory_operand.
1376 (bswap<mode>2_store for HSI): Ditto.
1377 (bswapdi2_load): Ditto.
1378 (bswapdi2_store): Ditto.
1379
1380 2019-11-28 Martin Liska <mliska@suse.cz>
1381
1382 PR debug/46558
1383 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1384 headers for translation.
1385
1386 2019-11-28 Martin Liska <mliska@suse.cz>
1387
1388 PR lto/92609
1389 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1390 consistently.
1391
1392 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1393
1394 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1395 checks.
1396
1397 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1398
1399 * profile-count.c (profile_count::combine_with_ipa_count): Return
1400 uninitialized count if called on ininitialized count.
1401
1402 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1403
1404 * ipa-inline-transform.c (inline_transform): Scale profile before
1405 redirecting.
1406
1407 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1408
1409 * profile-count.h (profile_count::max): Work on profiles of different
1410 type.
1411 (profile_count::apply_scale): Be sure that ret is not local or global0
1412 type if num is global.
1413
1414 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1415
1416 * profile-count.h (profile_count::max): Work on profiles of different
1417 type.
1418 (profile_count::apply_scale): Be sure that ret is not local or global0
1419 type if num is global.
1420
1421 2019-11-28 Martin Jambor <mjambor@suse.cz>
1422
1423 PR ipa/92697
1424 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1425 ifunc_resolvers.
1426 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1427 Removed trailig whitespace.
1428
1429 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1430
1431 * profile-count.h (profile_count::combine_with_ipa_count_within):
1432 Declare.
1433 * profile-count.c (profile_count::combine_with_ipa_count_within):
1434 New.
1435 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1436 it.
1437
1438 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1439
1440 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1441 of counters are done same way.
1442
1443 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1444
1445 * ipa-cp.c (update_profiling_info): Fix scaling.
1446
1447 2019-11-28 Richard Biener <rguenther@suse.de>
1448
1449 PR tree-optimization/92645
1450 * tree-inline.c (remap_gimple_stmt): When the return value
1451 is not wanted, elide GIMPLE_RETURN.
1452
1453 2019-11-28 Richard Biener <rguenther@suse.de>
1454
1455 PR tree-optimization/92645
1456 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1457 conversions inside a mode class. Remove restriction on
1458 preserving the element size.
1459 (simplify_vector_constructor): Deal with the above and for
1460 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1461 and VEC_PACK_TRUNC_EXPR.
1462
1463 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1464
1465 Must use push insn to pass varargs arguments of DFmode because
1466 otherwise the middle-end generates wrong code.
1467
1468 PR target/92055
1469 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1470
1471 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR tree-optimization/92691
1474 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1475 in function comment.
1476 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1477 calls, return !handle_printf_call rather than always returning true.
1478 (check_and_optimize_stmt): Describe return value meaning in function
1479 comment. Formatting fix.
1480
1481 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1482
1483 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1484 combination of globa0 and global counters..
1485
1486 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1487
1488 PR target/92566
1489 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1490 by VECTOR_UNIT_NONE_P instead.
1491
1492 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1493
1494 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1495 Refine VF to VF_AVX512VL.
1496
1497 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1498
1499 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1500 (movdi_internal64): Reformat.
1501
1502 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1503
1504 PR bootstrap/92661
1505 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1506 builtin if we don't have an actual type.
1507 (builtin_function_type): If the builtin function uses a DFP type
1508 and decimal float has been disabled, then return NULL_TREE.
1509
1510 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1511
1512 PR rtl-optimization/92510
1513 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1514 of comparison into a comparison with different mode if both imode and
1515 omode are scalar integral modes.
1516
1517 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1518
1519 PR rtl-optimization/90007
1520 * recog.c (constrain_operands): Permit hard registers too for
1521 memory when LRA is used.
1522
1523 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1524
1525 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1526 between Coldfire and regular m68k.
1527 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1528
1529 2019-11-27 Richard Biener <rguenther@suse.de>
1530
1531 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1532 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1533 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1534 * optabs-tree.c (supportable_convert_operation): Do not call
1535 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1536 * optabs-tree.h (supportable_convert_operation): Adjust.
1537 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1538 * doc/tm.texi: Regenerate.
1539 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1540 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1541 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1542 unused decl parameter and adjust.
1543 (vect_create_vectorized_promotion_stmts): Likewise.
1544 (vectorizable_conversion): Adjust.
1545
1546 2019-11-27 Richard Biener <rguenther@suse.de>
1547
1548 PR tree-optimization/92690
1549 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1550 converting elements not originally converted.
1551
1552 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1553
1554 PR middle-end/92463
1555 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1556 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1557 mpfr_rnd_t instead of mp_rnd_t.
1558 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1559 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1560 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1561 Use mpfr_exp_t instead of mp_exp_t.
1562 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1563 MPFR_RNDx instead of GMP_RNDx.
1564 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1565 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1566 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1567 of mp_rnd_t and remove MPFR_RNDx poisoning.
1568 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1569
1570 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1571
1572 PR tree-optimization/91790
1573 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1574 DR for vect_setup_realignment when first_stmt_info is different
1575 from first_stmt_info_for_drptr.
1576
1577 2019-11-27 Richard Biener <rguenther@suse.de>
1578
1579 PR tree-optimization/92645
1580 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1581 CTORs with just a subset of the original vectors.
1582
1583 2019-11-27 Richard Biener <rguenther@suse.de>
1584
1585 PR middle-end/92674
1586 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1587 edges and instead record blocks in bitmap.
1588 (gimple_expand_calls_inline): Adjust.
1589 (fold_marked_statements): Delay EH cleanup until all folding is
1590 done.
1591 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1592 inlining finished.
1593
1594 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1595
1596 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1597 LRA is enabled.
1598 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1599 disabled.
1600
1601 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1602
1603 PR debug/92664
1604 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1605
1606 2019-11-26 Martin Sebor <msebor@redhat.com>
1607
1608 PR tree-optimization/92683
1609 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1610 inadvertently removed in a previous change. Rename local variable
1611 for clarity.
1612
1613 2019-11-26 Richard Biener <rguenther@suse.de>
1614
1615 PR middle-end/92669
1616 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1617 NULL pre_order.
1618
1619 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1620
1621 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1622
1623 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1624
1625 PR tree-optimization/92644
1626 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1627 next to INTEGER_CST checks.
1628
1629 2019-11-26 Richard Biener <rguenther@suse.de>
1630
1631 PR tree-optimization/92645
1632 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1633 do not build the operation from scalars if the operand is.
1634
1635 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1636
1637 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1638 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1639 definitions.
1640
1641 2019-11-25 Martin Liska <mliska@suse.cz>
1642
1643 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1644 up used dump message.
1645
1646 2019-11-25 Martin Liska <mliska@suse.cz>
1647
1648 PR bootstrap/92653
1649 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1650 too strict checking assert.
1651
1652 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1653
1654 PR c/91985
1655 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1656 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1657 error_mark_node if corresponding global tree node is NULL.
1658 * tree.c (build_common_tree_nodes): Do not initialize
1659 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1660 decimal floating-point not supported.
1661
1662 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1663
1664 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1665 types.
1666
1667 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1668
1669 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1670 Replace code for non-CONST_INT constants with gcc_unreachable.
1671 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1672 compare and test.
1673 (CMPMODE): New mode_iterator.
1674 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1675 cbranch<mode>4.
1676 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1677 cstore<mode>4.
1678 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1679 operand.
1680 (bit test insns patterns): Use nonimmediate_operand, not
1681 register_operand, for source operands that allow memory in
1682 their constraints.
1683 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1684 Use register_operand, not nonimmediate_operand, for the
1685 destinations.
1686 (DBCC): New mode_iterator.
1687 (dbcc peepholes): Use it to reduce duplication.
1688 (trap): Use const_true_rtx, not const1_rtx.
1689 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1690 from m68k_subword_comparison_operand and changed to handle
1691 SImode.
1692
1693 PR target/91851
1694 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1695 declaration.
1696 (m68k_init_cc): New declaration.
1697 (m68k_output_compare_di, m68k_output_compare_si)
1698 (m68k_output_compare_hi, m68k_output_compare_qi)
1699 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1700 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1701 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1702 m68k_output_branch_float, m68k_output_branch_float_rev):
1703 Likewise.
1704 (valid_dbcc_comparison_p_2, flags_in_68881)
1705 (output_btst): Remove declaration.
1706 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1707 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1708 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1709 (flags_compare_op0, flags_compare_op1, flags_operand1,
1710 flags_operand2, flags_valid): New static variables.
1711 (m68k_find_flags_value, m68k_init_cc): New functions.
1712 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1713 remember_compare_flags): New static functions.
1714 (output_dbcc_and_branch): New argument CODE. Use it, and add
1715 PLUS and MINUS to the possible codes. All callers changed.
1716 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1717 and INSN arguments, add CODE arg. Return the comparison code
1718 to use. All callers changed. Use CODE instead of
1719 next_insn_tests_no_inequality, and replace cc_status management
1720 with changing the return code.
1721 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1722 RTX_COMPARE or RTX_COMM_COMPARE.
1723 (output_move_simode, output_move_qimode): Call
1724 handle_flags_for_move.
1725 (notice_update_cc): Delete function.
1726 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1727 m68k_output_compare_hi, m68k_output_compare_qi,
1728 m68k_output_compare_fp, m68k_output_branch_integer,
1729 m68k_output_branch_integer_rev, m68k_output_scc,
1730 m68k_output_branch_float, m68k_output_branch_float_rev,
1731 m68k_output_scc_float): New functions.
1732 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1733 once at the start, and set flags_valid and flags_operand1 if the
1734 flags are usable.
1735 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1736 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1737 definitions.
1738 (CC_STATUS_INIT): Define.
1739 * config/m68k/m68k.md (flags_valid): New define_attr.
1740 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1741 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1742 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1743 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1744 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1745 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1746 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1747 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1748 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1749 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1750 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1751 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1752 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1753 ctrapqi4, conditional_trap): Delete patterns.
1754 (cbranchdi4_insn): New pattern.
1755 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1756 test high part only. When testing EQ or NE, generate beq0_di
1757 and bne0_di patterns directly.
1758 (cstoredi4): When testing LT or GE, test high part only.
1759 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1760 patterns.
1761 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1762 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1763 cmp2_cf_predicate): New define_mode_attrs.
1764 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1765 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1766 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1767 New patterns.
1768 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1769 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1770 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1771 New patterns.
1772 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1773 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1774 Likewise.
1775 (BTST): New define_mode_iterator.
1776 (btst_predicate, btst_constraint, btst_range): New
1777 define_mode_attrs.
1778 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1779 patterns.
1780 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1781 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1782 patterns): Set attr "flags_valid".
1783 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1784 management. Set attr "flags_valid".
1785 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1786 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1787 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1788 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1789 manual CC_STATUS management.
1790 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1791 unnamed strict_lowpart subhi and subqi patterns): Set attr
1792 "flags_valid".
1793 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1794 Remove code to operate on address regs and assert the case
1795 does not occur.
1796 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1797 manual CC_STATUS_INIT.
1798 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1799 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1800 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1801 one_cmplqi2, unnamed strict_lowpart patterns
1802 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1803 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1804 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1805 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1806 CC_STATUS_INIT.
1807 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1808 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1809 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1810 unnamed strict_low_part patterns for HI and
1811 QI versions): Set attr "flags_valid".
1812 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1813 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1814 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1815 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1816 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1817 (various unnamed peepholes): Adjust compare/branch sequences
1818 for new cbranch patterns.
1819 (dbcc peepholes): Likewise, and output the comparison here
1820 as well.
1821 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1822 (fp_src_operand): Allow constant zero.
1823 (address_reg_operand): New predicate.
1824
1825 * rtl.h (inequality_comparisons_p): Remove declaration.
1826 * recog.h (next_insn_tests_no_inequality): Likewise.
1827 * rtlanal.c (inequality_comparisons_p): Delete function.
1828 * recog.c (next_insn_tests_no_inequality): Likewise.
1829
1830 2019-11-25 Richard Biener <rguenther@suse.de>
1831
1832 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1833 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1834 properly re-building the visited hash-map for each lane.
1835
1836 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1837
1838 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1839 gcn_md_reorg): Remove unused variables.
1840 (gcn_emutls_var_init): Add missing (but unreachable) return
1841 to silence warning.
1842 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1843 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1844 an uninitialized variable.
1845
1846 2019-11-25 Martin Jambor <mjambor@suse.cz>
1847
1848 PR ipa/92109
1849 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1850 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1851 (cgraph_materialize_clone): Move removel from clone tree to the
1852 the new method and use it instead.
1853 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1854 bodies of clones, also remove it from the clone tree.
1855
1856 2019-11-25 Martin Jambor <mjambor@suse.cz>
1857
1858 PR ipa/91956
1859 * ipa-sra.c (process_isra_node_results): Put the new node to the
1860 same comdat group as the original node.
1861
1862 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1863
1864 Build double32 / long-double32 multilibs if needed.
1865
1866 PR target/92055
1867 * config/avr/t-avr:
1868 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1869 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1870 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1871 tm_defines and pass to genmultilib.awk.
1872 * config/avr/genmultilib.awk: Use these variables to add double32
1873 and / or long-double32 multilib(s) as needed.
1874 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1875
1876 2019-11-25 Richard Biener <rguenther@suse.de>
1877
1878 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1879 loop body, defaulted to NULL.
1880 (single_likely_exit): Add exit vector argument
1881 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1882 (number_of_iterations_exit): Likewise.
1883 (number_of_iterations_exit_assumptions): Likewise.
1884 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1885 if not NULL.
1886 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1887 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1888 Compute exit vector around call to single_likely_exit.
1889 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1890 loop body to loop_only_exit_p.
1891 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1892 caller.
1893 (number_of_iterations_exit_assumptions): Get loop body from caller
1894 if not NULL.
1895 (number_of_iterations_exit): Pass through new loop body arg.
1896 (infer_loop_bounds_from_undefined): Get loop body from caller.
1897 (estimate_numbers_of_iterations): Compute loop body once.
1898
1899 2019-11-25 Richard Biener <rguenther@suse.de>
1900
1901 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1902 auto_bb_flag instead of an sbitmap for visited handling.
1903
1904 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1905
1906 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1907 iterator.
1908 (vector_fp_comparison_complex): Likewise.
1909 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1910 define_and_split.
1911 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1912 Likewise.
1913 (vector_lt<mode> for VEC_F): Refactor with
1914 vector_fp_comparison_simple.
1915 (vector_le<mode> for VEC_F): Likewise.
1916 (vector_unge<mode> for VEC_F): Likewise.
1917 (vector_unle<mode> for VEC_F): Likewise.
1918 (vector_ne<mode> for VEC_F): Likewise.
1919 (vector_ungt<mode> for VEC_F): Likewise.
1920 (vector_unlt<mode> for VEC_F): Likewise.
1921 (vector_ltgt<mode> for VEC_F): Refactor with
1922 vector_fp_comparison_complex.
1923 (vector_ordered<mode> for VEC_F): Likewise.
1924 (vector_uneq<mode> for VEC_F): Likewise.
1925 (vector_unordered<mode> for VEC_F): Likewise.
1926
1927 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1928
1929 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1930 COMPARE, representing an overflow detection.
1931
1932 * combine.c (combine_instructions): Record costs for jumps.
1933
1934 * combine.c (can_combine_p): Allow autoinc in jumps.
1935
1936 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1937
1938 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1939 * doc/invoke.texi (max-inline-insns-single-O2,
1940 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1941 early-inlining-insns-O2): Remove documentation.
1942 * ipa-fnsummary.c (analyze_function_body,
1943 compute_fn_summary): Use opt_for_fn when accessing parameters.
1944 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1945 inline_insns_auto, can_inline_edge_by_limits_p,
1946 want_early_inline_function_p, big_speedup_p,
1947 want_inline_small_function_p, want_inline_self_recursive_call_p,
1948 recursive_inlining, compute_max_insns, inline_small_functions):
1949 Likewise.
1950 * opts.c (default_options): Add -O3 defaults for
1951 OPT__param_early_inlining_insns_,
1952 OPT__param_inline_heuristics_hint_percent_,
1953 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1954 * params.opt (-param=early-inlining-insns-O2=,
1955 -param=inline-heuristics-hint-percent-O2=,
1956 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1957 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1958 -param=inline-min-speedup=, -param=inline-unit-growth=,
1959 -param=large-function-growth=, -param=large-stack-frame=,
1960 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1961 -param=max-inline-insns-recursive=,
1962 -param=max-inline-insns-recursive-auto=,
1963 -param=max-inline-insns-single=,
1964 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1965 -param=max-inline-recursive-depth=,
1966 -param=max-inline-recursive-depth-auto=,
1967 -param=min-inline-recursive-probability=,
1968 -param=partial-inlining-entry-probability=,
1969 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1970 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1971 Optimization.
1972
1973 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1974
1975 * ipa-fnsummary.c: Fix comment typos.
1976 * ipa-ref.h: Likewise.
1977 * ipa-predicate.h: Likewise.
1978 * ipa-split.c: Likewise.
1979 * ipa-inline-analysis.c: Likewise.
1980 * ipa-predicate.c: Likewise.
1981 * ipa-devirt.c: Likewise.
1982 * ipa-icf.h: Likewise.
1983 * profile-count.c: Likewise.
1984 * ipa-icf.c: Likewise.
1985 (sem_function::equals_wpa): Fix typos in dump messages.
1986 * ipa-icf-gimple.h: Fix comment typos.
1987 * ipa-inline-transform.c: Likewise.
1988 * ipa-polymorphic-call.c: Likewise.
1989 * ipa-fnsummary.h: Likewise.
1990 * ipa-inline.c: Likewise.
1991 (dump_inline_stats): Fix typo in debug dump message.
1992 * profile-count.h: Fix comment typos.
1993
1994 PR target/92615
1995 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1996 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1997 register_operand, force x into register before storing it into dest.
1998 Formatting fix.
1999
2000 PR middle-end/83859
2001 * doc/extend.texi (attribute access): Fix a typo.
2002
2003 PR rtl-optimization/92610
2004 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
2005 cse_cfg_altered is set, even when tem is 0.
2006 (rest_of_handle_cse_after_global_opts): Likewise.
2007
2008 2019-11-22 Jakub Jelinek <jakub@redhat.com>
2009
2010 PR c++/92458
2011 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
2012 tree_hash): Move to ...
2013 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
2014 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
2015 types.
2016 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
2017
2018 PR tree-optimization/92618
2019 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
2020 containing the auto_vec and a tree.
2021 (undistribute_bitref_for_vector): Handle the case when element type
2022 of vec is not the same as type of the BIT_FIELD_REF. Formatting
2023 fixes.
2024
2025 2019-11-22 Martin Sebor <msebor@redhat.com>
2026
2027 PR middle-end/83859
2028 * attribs.h (struct attr_access): New.
2029 * attribs.c (decl_attributes): Add an informational note.
2030 * builtins.c (check_access): Make extern. Consistently set no-warning
2031 after issuing a warning. Handle calls through function pointers. Set
2032 no-warning.
2033 * builtins.h (check_access): Declare.
2034 * calls.c (rdwr_access_hash): New type.
2035 (rdwr_map): Same.
2036 (init_attr_rdwr_indices): New function.
2037 (maybe_warn_rdwr_sizes): Same.
2038 (initialize_argument_information): Call init_attr_rdwr_indices.
2039 Call maybe_warn_rdwr_sizes.
2040 (get_size_range): Avoid null argument.
2041 * doc/extend.texi (attribute access): Document new attribute.
2042
2043 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2044
2045 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
2046 (ACC_LDS_SIZE): Define.
2047 (OTHER_LDS_SIZE): Define.
2048 (LDS_SIZE): Redefine using above.
2049 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
2050
2051 2019-11-22 Martin Sebor <msebor@redhat.com>
2052
2053 PR middle-end/88226
2054 * builtins.c (check_nul_terminated_array): New function.
2055 (fold_builtin_0): Remove declaration.
2056 (fold_builtin_1): Same.
2057 (fold_builtin_2): Same.
2058 (fold_builtin_3): Same.
2059 (fold_builtin_strpbrk): Add argument.
2060 (fold_builtin_strspn): Same.
2061 (fold_builtin_strcspn): Same.
2062 (expand_builtin_strcat): Call it. Remove unused argument.
2063 (expand_builtin_stpncpy): Same.
2064 (expand_builtin_strncat): Same.
2065 (expand_builtin_strncpy): Same. Adjust indentation.
2066 (expand_builtin_strcmp): Same.
2067 (expand_builtin_strncmp): Same.
2068 (expand_builtin_fork_or_exec): Same.
2069 (expand_builtin): Handle more built-ins.
2070 (fold_builtin_2): Add argument.
2071 (fold_builtin_n): Make static. Add argument.
2072 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
2073 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
2074 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
2075 (fold_call_stmt): Pass new argument to fold_builtin_n.
2076 * builtins.h: Correct a comment.
2077 * gimple-fold.c (gimple_fold_builtin_strchr): Call
2078 check_nul_terminated_array.
2079 * tree-ssa-strlen.c (handle_builtin_strlen): Call
2080 check_nul_terminated_array.
2081 (handle_builtin_strchr): Same.
2082 (handle_builtin_string_cmp): Same.
2083
2084 2019-11-22 Martin Sebor <msebor@redhat.com>
2085
2086 PR tree-optimization/92501
2087 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
2088 handle unterminated arrays. Rename local variables for clarity.
2089
2090 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
2091
2092 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
2093 granulated_sgprs according to architecture.
2094
2095 2019-11-22 Jan Hubicka <jh@suse.cz>
2096
2097 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
2098 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
2099 (memory_block_pool::reduce_free_list): ... this one.
2100 (memory_block_pool::trim): New static function.
2101 * memory-block.h (memory_block_pool::freelist_size): New constant
2102 (memory_block_pool::clear_free_list): Rename to ...
2103 (memory_block_pool::reduce_free_list): ... this one.
2104 (memory_block_pool::trim): Declare.
2105
2106 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
2107
2108 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
2109 vect_cost_for_stmt.
2110 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
2111 here rather than...
2112 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
2113
2114 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
2115
2116 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
2117 (bic_cmp0_noout): New pattern.
2118 (bic_cmp0): Likewise.
2119 (neg_scc_insn): Remove pattern.
2120 (not_scc_insn): Likewise.
2121
2122 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
2123
2124 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
2125
2126 2019-11-21 Joseph Myers <joseph@codesourcery.com>
2127
2128 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
2129 pedwarn instead of warning_at for fallthrough not preceding a case
2130 or default label.
2131
2132 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2133
2134 PR tree-optimization/92608
2135 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2136 of dyn_cast.
2137
2138 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2139
2140 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2141 New predicate.
2142 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2143 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2144 special for FP comparisons that need a cror instruction eventually.
2145 (rs6000_emit_fp_cror): New function.
2146 (rs6000_emit_sCOND): Expand all floating point comparisons to one
2147 instruction, for normal FP modes, with HONOR_NANS.
2148 (rs6000_emit_cbranch): Reformat.
2149 * config/rs6000/rs6000.md (fp_rev): New iterator.
2150 (fp_two): New iterator.
2151 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2152 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2153 *cbranch_2insn: New define_insn_and_split.
2154
2155 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2156
2157 PR tree-optimization/92526
2158 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2159 versioning for alignment if the accesses do not have a consistent
2160 mask, rather than asserting that the masks are consistent.
2161
2162 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2163
2164 PR tree-optimization/92595
2165 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2166 check.
2167 (vectorizable_store, vectorizable_load): Likewise.
2168
2169 2019-11-21 Jan Hubicka <jh@suse.cz>
2170
2171 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2172 (resolve_noninline_speculation, inline_small_functions): Avoid
2173 redundant updates.
2174
2175 2019-11-21 Richard Biener <rguenther@suse.de>
2176
2177 * lra.c (lra_insn_recog_data_pool): New.
2178 (free_insn_recog_data): Adjust.
2179 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2180 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2181
2182 2019-11-21 Richard Biener <rguenther@suse.de>
2183
2184 PR tree-optimization/92596
2185 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2186
2187 2019-11-21 Jan Hubicka <jh@suse.cz>
2188
2189 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2190 ready for some vectors to not be allocated.
2191 (evaluate_properties_for_edge): Document better; make
2192 known_vals and known_aggs caller allocated; avoid determining
2193 values of parameters which are not used.
2194 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2195 known_aggs.
2196 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2197 (do_estimate_edge_size): Likewise.
2198 (do_estimate_edge_hints): Likewise.
2199 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2200 values are not known.
2201 (ipa_release_agg_values): Add option to not release vector itself.
2202 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2203
2204 2019-11-21 Richard Biener <rguenther@suse.de>
2205
2206 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2207 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2208 (loop_iterator::loop_iterator): Adjust.
2209 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2210 (compute_dominance_frontiers): ... this. Hoist invariant
2211 get_immediate_dominator call.
2212 (compute_idf): Use a work-set instead of a work-list for more
2213 optimal iteration order and duplicate avoidance.
2214 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2215 the vector all the time, instead pre-allocate the vector only
2216 once.
2217 (delete_update_ssa): Simplify.
2218 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2219
2220 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2221
2222 PR tree-optimization/91355
2223 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2224 for early_bb scaled count with best_bb count comparison.
2225
2226 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2227 preffer -> prefer.
2228 * ipa-inline.c (edge_badness): Likewise.
2229 * lto-streamer.h (class lto_location_cache): Likewise.
2230 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2231 gratutious -> gratuitous.
2232
2233 2019-11-21 Richard Biener <rguenther@suse.de>
2234
2235 Revert
2236 2019-09-17 Richard Biener <rguenther@suse.de>
2237
2238 PR tree-optimization/91790
2239 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2240 use the correct DR for setting up realignment.
2241
2242 2019-11-21 Richard Biener <rguenther@suse.de>
2243
2244 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2245 (equiv_class_obstack): New.
2246 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2247 (perform_var_substitution): Initialize equiv_class_obstack.
2248 (free_var_substitution_info): Free equiv_class_obstack.
2249
2250 2019-11-20 Jan Hubicka <jh@suse.cz>
2251
2252 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2253 edge growth when callee function is very large.
2254 * ipa-inline.h (estimate_min_edge_growth): New.
2255
2256 2019-11-20 Jan Hubicka <jh@suse.cz>
2257
2258 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2259 negative time in calls summary; correct roundoff errors
2260 leading to negative times.
2261 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2262 if present.
2263 (ipa_update_overall_fn_summary): Add RESET parameter.
2264 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2265 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2266
2267 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2268
2269 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2270 def types for two-operation SLP.
2271
2272 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2273
2274 PR testsuite/92366
2275 * doc/sourcebuild.texi (vect_char_add): Document.
2276
2277 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2278
2279 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2280 * function.c (record_final_call): Record even calls that might
2281 have been in the cgraph.
2282 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2283 callees.
2284
2285 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2286
2287 * configure.ac: Use https for gcc.gnu.org
2288 * configure: Regenerated.
2289 * doc/install.texi: Use https for gcc.gnu.org.
2290 * doc/sourcebuild.texi: Likewise.
2291
2292 2019-11-20 Julian Brown <julian@codesourcery.com>
2293
2294 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2295
2296 2019-11-20 Jan Hubicka <jh@suse.cz>
2297
2298 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2299 parameter and update call_size_time_table.
2300 (ipa_fn_summary::max_size_time_table_size): New constant.
2301 (estimate_calls_size_and_time_1): Break out from ...
2302 (estimate_calls_size_and_time): ... here; implement summary production.
2303 (summarize_calls_size_and_time): New function.
2304 (ipa_call_context::estimate_size_and_time): Bypass
2305 estimate_calls_size_and_time for leaf functions.
2306 (ipa_update_overall_fn_summary): Likewise.
2307 * ipa-fnsummary.h (call_size_time_table): New.
2308 (ipa_fn_summary::account_size_time): Update prototype.
2309
2310 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2311
2312 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2313
2314 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2315
2316 PR85678
2317 * common.opt (fcommon): Change init to 1.
2318 * doc/invoke.texi (-fcommon): Update documentation.
2319
2320 2019-11-20 Jan Hubicka <jh@suse.cz>
2321
2322 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2323 to ordinary array.
2324
2325 2019-11-20 Jan Hubicka <jh@suse.cz>
2326
2327 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2328 Add allocator parameter.
2329 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2330 (fibonacci_heap<K,V>::m_allocator): New.
2331 (fibonacci_heap<K,V>::m_own_allocator): New.
2332 (fibonacci_heap<K,V>::insert): Use allocator.
2333 (fibonacci_heap<K,V>::extract_min): Likewise.
2334 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2335 allocator.
2336 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2337 on stack.
2338 * fibonacci_heap.c: Include alloc-pool
2339 (test_empty_heap): Initialize allocator.
2340 (test_union): Likewise.
2341 * bb-reorder.c: Include alloc-pool.h.
2342 * tracer.c: Inlclude alloc-pool.h.
2343
2344 2019-11-20 Jan Hubicka <jh@suse.cz>
2345
2346 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2347 Preallocate for 32 entries.
2348 (DFS::worklist): Likewise.
2349 (DFS::DFS): Do not initialize sccstack and worklist.
2350 (DFS::~DFS): Do not release sccstack.
2351
2352 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2353
2354 PR target/92573
2355 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2356 Handle UNORDERED if !HONOR_NANS.
2357
2358 2019-11-20 Jan Hubicka <jh@suse.cz>
2359
2360 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2361 (edge_badness): ... here.
2362 (inline_small_functions): Use monotonicity of badness calculation
2363 to avoid redundant updates.
2364
2365 2019-11-20 Richard Biener <rguenther@suse.de>
2366
2367 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2368 constructors we are actually analyzing.
2369 (vect_slp_check_for_constructors): Do not vectorize uniform
2370 constuctors, do not dump here.
2371
2372 2019-11-20 Richard Biener <rguenther@suse.de>
2373
2374 PR tree-optimization/92537
2375 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2376 vectorization validity check...
2377 (vect_slp_analyze_operations): ... here.
2378
2379 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2380
2381 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2382 (make_pass_arc_predicate_delay_insns): Likewise.
2383 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2384 method, remove clone.
2385 (class pass_arc_predicate_delay_insns): Likewise.
2386 (arc_init): Remove registering of ARC specific passes.
2387 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2388 * config/arc/arc-passes.def: New file.
2389
2390 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2391
2392 PR middle-end/90840
2393 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2394 and has a mode that doesn't have corresponding integral type.
2395
2396 PR target/90867
2397 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2398 clear opts->x_ix86_isa_flags{,2} here...
2399 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2400 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2401
2402 PR c/90898
2403 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2404 assertion.
2405 (insert_clobbers_for_var): Fix a typo in function comment.
2406
2407 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2408 Jakub Jelinek <jakub@redhat.com>
2409
2410 PR middle-end/91195
2411 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2412 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2413 load.
2414
2415 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2416
2417 Make 0-series device specs work with older versions of avr-gcc.
2418
2419 PR target/92545
2420 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2421 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2422 <*link_pm_base_address>: Don't write spec.
2423 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2424
2425 2019-11-20 Richard Biener <rguenther@suse.de>
2426
2427 PR c/92088
2428 * builtins.c (compute_objsize): Deal with VLAs.
2429
2430 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2431
2432 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2433 from common code.
2434 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2435 call new function.
2436 (power9_sched_reorder2): Call new function.
2437 (rs6000_sched_reorder2): Likewise.
2438
2439 2019-11-18 Jan Hubicka <jh@suse.cz>
2440
2441 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2442 (estimate_calls_size_and_time): Update.
2443
2444 2019-11-18 Jan Hubicka <jh@suse.cz>
2445
2446 * ipa-inline.c (inlining_speedup): New function.
2447 (edge_badness): Use it.
2448
2449 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2450 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2451
2452 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2453 Mark as not having "likely" version.
2454 * config/mips/mips.md (insn_count): The simd_div instruction with
2455 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2456 (can_delay): Exclude simd_branch.
2457 (defile_delay *): Add simd_branch instructions.
2458 They have one regular delay slot.
2459
2460 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2461
2462 Revert:
2463 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2464
2465 * cse.c (cse_insn): Delete no-op register moves too.
2466 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2467 Take a second comparison to control the value for NE.
2468 (mask_to_comparison): Handle unsigned comparisons.
2469 (simplify_logical_relational_operation): Likewise. Update call
2470 to comparison_to_mask. Handle AND if !HONOR_NANs.
2471 (simplify_binary_operation_1): Call the above for AND too.
2472
2473 2019-11-19 Martin Liska <mliska@suse.cz>
2474
2475 * toplev.c (general_init): Move the call...
2476 (toplev::main): ... here as we need init_options_struct
2477 being called.
2478
2479 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2480
2481 PR target/79262
2482 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2483 vec_to_scalar_cost.
2484
2485 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2486
2487 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2488 (armv7-a): Likewise.
2489 (armv7ve): Likewise.
2490
2491 2019-11-19 Richard Biener <rguenther@suse.de>
2492
2493 PR tree-optimization/92581
2494 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2495 condition reduction chains gather all conditions involved
2496 for computing the index reduction vector.
2497
2498 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2499
2500 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2501 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2502 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2503 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2504 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2505 (aarch64_init_memtag_builtins): New.
2506 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2507 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2508 (aarch64_expand_builtin_memtag): New.
2509 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2510 (AARCH64_BUILTIN_SUBCODE): New macro.
2511 (aarch64_resolve_overloaded_memtag): New.
2512 (aarch64_resolve_overloaded_builtin_general): New. Call
2513 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2514 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2515 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2516 (aarch64_resolve_overloaded_builtin): Call
2517 aarch64_resolve_overloaded_builtin_general.
2518 * config/aarch64/aarch64-protos.h
2519 (aarch64_resolve_overloaded_builtin_general): New declaration.
2520 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2521 (TARGET_MEMTAG): Likewise.
2522 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2523 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2524 (irg, gmi, subp, addg, ldg, stg): New instructions.
2525 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2526 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2527 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2528 (__arm_mte_get_tag): Likewise.
2529 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2530 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2531 * config/arm/types.md (memtag): New.
2532 * doc/invoke.texi (-memtag): Update description.
2533
2534 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2535
2536 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2537 to define __GCC_ASM_FLAG_OUTPUTS__.
2538 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2539 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2540 depending on TARGET_THUMB1.
2541 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2542
2543 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2544
2545 PR target/92549
2546 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2547
2548 PR middle-end/91450
2549 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2550 operand is negative and one non-negative, compare the non-negative
2551 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2552 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2553 and s2 == 0, unless one of them is known to be negative. Remove
2554 tem2 variable, use tem where tem2 has been used before.
2555
2556 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2557
2558 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2559
2560 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2561
2562 PR tree-optimization/92557
2563 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2564 vmode rather than asserting it always is.
2565
2566 2019-11-19 Richard Biener <rguenther@suse.de>
2567
2568 PR tree-optimization/92554
2569 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2570 for the actual condition stmt and deal with sign-changes.
2571
2572 2019-11-19 Richard Biener <rguenther@suse.de>
2573
2574 PR tree-optimization/92555
2575 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2576 for non-SLP stmts.
2577
2578 2019-11-19 Martin Liska <mliska@suse.cz>
2579
2580 PR bootstrap/92540
2581 * config/riscv/riscv.c (riscv_address_insns): Initialize
2582 addr in order to remove boostrap -Wmaybe-uninitialized
2583 error.
2584
2585 2019-11-18 Martin Sebor <msebor@redhat.com>
2586
2587 PR tree-optimization/92493
2588 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2589 assignment.
2590
2591 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2592
2593 * cfgloop.c (get_loop_body_in_custom_order): New.
2594 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2595 * tree-loop-distribution.c (class loop_distribution): New.
2596 (bb_top_order_cmp): Remove.
2597 (bb_top_order_cmp_r): New.
2598 (create_rdg_vertices): Move into class loop_distribution.
2599 (stmts_from_loop): Same as above.
2600 (update_for_merge): Same as above.
2601 (partition_merge_into): Same as above.
2602 (get_data_dependence): Same as above.
2603 (data_dep_in_cycle_p): Same as above.
2604 (update_type_for_merge): Same as above.
2605 (build_rdg_partition_for-vertex): Same as above.
2606 (classify_builtin_ldst): Same as above.
2607 (classify_partition): Same as above.
2608 (share_memory_accesses): Same as above.
2609 (rdg_build_partitions): Same as above.
2610 (pg_add_dependence_edges): Same as above.
2611 (build_partition_graph): Same as above.
2612 (merge_dep_scc_partitions): Same as above.
2613 (break_alias_scc_partitions): Same as above.
2614 (finalize_partitions): Same as above.
2615 (distribute_loop): Same as above.
2616 (bb_top_order_init): New method
2617 (bb_top_order_destroy): New method.
2618 (get_bb_top_order_index_size): New method.
2619 (get_bb_top_order_index_index): New method.
2620 (get_bb_top_order_index_index): New method.
2621 (loop_distribution::execute): New method.
2622 (pass_loop_distribution::execute): Instantiate loop_distribution.
2623
2624 2019-11-18 Jan Hubicka <jh@suse.cz>
2625
2626 PR ipa/92508
2627 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2628 caches.
2629 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2630
2631 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2632
2633 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2634 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2635 * doc/md.texi: Document them.
2636 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2637 internal functions.
2638 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2639 * internal-fn.c (check_ptrs_direct): New macro.
2640 (expand_check_ptrs_optab_fn): Likewise.
2641 (direct_check_ptrs_optab_supported_p): Likewise.
2642 (internal_check_ptrs_fn_supported_p): New fuction.
2643 * tree-data-ref.c: Include internal-fn.h.
2644 (create_ifn_alias_checks): New function.
2645 (create_intersect_range_checks): Use it.
2646 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2647 (optab, cmp_op): Handle it.
2648 (raw_war, unspec): New int attributes.
2649 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2650 constants.
2651 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2652 New predicate.
2653 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2654 expander.
2655 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2656 pattern.
2657
2658 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2659
2660 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2661 empty constructors.
2662
2663 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2664
2665 * cse.c (cse_insn): Delete no-op register moves too.
2666 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2667 Take a second comparison to control the value for NE.
2668 (mask_to_comparison): Handle unsigned comparisons.
2669 (simplify_logical_relational_operation): Likewise. Update call
2670 to comparison_to_mask. Handle AND if !HONOR_NANs.
2671 (simplify_binary_operation_1): Call the above for AND too.
2672
2673 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2674
2675 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2676 splitting the main code out into...
2677 (native_encode_vector_part): ...this new function.
2678 (native_decode_vector_tree): New function.
2679 (fold_view_convert_vector_encoding): Likewise.
2680 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2681 to VECTOR_TYPEs.
2682
2683 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2684
2685 * tree-data-ref.c (create_intersect_range_checks_index): If the
2686 alias pair describes simple WAW and WAR dependencies, just check
2687 whether the first B access overlaps later A accesses.
2688 (create_waw_or_war_checks): New function that performs the same
2689 optimization on addresses.
2690 (create_intersect_range_checks): Call it.
2691
2692 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2693
2694 * lra-constraints.c (valid_address_p): Take the operand and a
2695 constraint as argument. If the operand is a MEM and the constraint
2696 is a memory constraint, check whether the eliminated form of the
2697 MEM already satisfies the constraint.
2698 (process_address_1): Update calls accordingly.
2699
2700 2019-11-18 Tom Tromey <tromey@adacore.com>
2701
2702 * doc/tm.texi: Rebuild.
2703 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2704 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2705
2706 2019-11-18 Richard Biener <rguenther@suse.de>
2707
2708 PR tree-optimization/92516
2709 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2710 argument, hoist bst_map creation/destruction to ...
2711 (vect_analyze_slp): ... here, forming a true graph with
2712 SLP instances being the entries.
2713 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2714 (vect_detect_hybrid_slp): Use one visited set for all
2715 graph entries.
2716 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2717 to hash-sets of slp_tree.
2718 (vect_slp_analyze_operations): Likewise.
2719 (vect_bb_slp_scalar_cost): Remove wrapper.
2720 (vect_bb_vectorization_profitable_p): Use one visited set for
2721 all graph entries.
2722 (vect_schedule_slp_instance): Elide bst_map use.
2723 (vect_schedule_slp): Likewise.
2724
2725 2019-11-18 Richard Biener <rguenther@suse.de>
2726
2727 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2728 was vectorized with just external refs fail.
2729
2730 2019-11-18 Martin Liska <mliska@suse.cz>
2731
2732 PR ipa/92525
2733 * ipa-icf.c (sem_function::init): Unset m_checker
2734 at the end of the function.
2735
2736 2019-11-18 Richard Biener <rguenther@suse.de>
2737
2738 PR tree-optimization/92558
2739 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2740 reducting the width of a reduction vector def update new_phis.
2741
2742 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2743
2744 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2745 and s390*-*-linux-musl* targets.
2746 * configure: Regenerate.
2747
2748 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2749
2750 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2751 (MUSL_DYNAMIC_LINKER64): Define.
2752
2753 2019-11-18 Martin Liska <mliska@suse.cz>
2754
2755 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2756 message for an unknown counter.
2757 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2758 (dbg_cnt_process_opt): Remove unreachable code.
2759
2760 2019-11-18 Martin Liska <mliska@suse.cz>
2761
2762 PR ipa/92529
2763 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2764 Compare LHS types of NOP_EXPR.
2765
2766 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2767
2768 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2769 "initial_pass_name" argument -- by running "*clean_state" pass.
2770 Also free the "initial_pass_name" when done.
2771
2772 2019-11-18 Richard Biener <rguenther@suse.de>
2773
2774 PR rtl-optimization/92462
2775 * alias.c (find_base_term): Restrict the look through ANDs.
2776 (find_base_value): Likewise.
2777
2778 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2779
2780 Add support for AVR devices from the 0-series.
2781
2782 PR target/92545
2783 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2784 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2785 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2786 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2787 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2788 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2789 for spec definitions.
2790 * doc/avr-mmcu.texi: Regenerate.
2791
2792 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2793
2794 PR target/92448
2795 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2796 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2797 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2798 (ix86_reassociation_width): Ditto.
2799 * config/i386/i386-options.c (ix86_option_override_internal):
2800 Replace TARGET_AVX128_OPTIAML with
2801 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2802 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2803 (TARGET_AVX128_OPTIMAL): Deleted.
2804 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2805 DEF_TUNE.
2806
2807 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2808
2809 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2810 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2811 just SI.
2812 (cceq_rev_compare): Rename to...
2813 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2814 just SI.
2815 (define_split for <bd>tf_<mode>): Add SImode first argument to
2816 gen_cceq_ior_compare.
2817
2818 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2819
2820 * common/config/powerpcspe: Delete.
2821
2822 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2823
2824 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2825 output in UNSPEC_WRFFR.
2826
2827 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2828
2829 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2830 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2831
2832 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2833
2834 * tree-data-ref.c (create_intersect_range_checks_index)
2835 (create_intersect_range_checks): Print dump messages.
2836
2837 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2838
2839 * tree-data-ref.c (dump_alias_pair): New function.
2840 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2841
2842 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2843
2844 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2845 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2846 merging data references with different steps.
2847 (create_intersect_range_checks_index): Take a
2848 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2849 Bail out if DR_ALIAS_MIXED_STEPS is set.
2850 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2851 instead of two dr_with_seg_lens. Update call to
2852 create_intersect_range_checks_index.
2853 (create_runtime_alias_checks): Update call accordingly.
2854
2855 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2856
2857 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2858 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2859 (dr_with_seg_len_pair_t::sequencing): New enum.
2860 (dr_with_seg_len_pair_t::flags): New member variable.
2861 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2862 parameter and initialize the flags member variable.
2863 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2864 call accordingly.
2865 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2866 Ensure the two data references in an alias pair are in statement
2867 order, if there is a defined order.
2868 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2869 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2870 swapped the references in a dr_with_seg_len_pair_t. OR together
2871 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2872 try to restore the original dr_with_seg_len order, updating the
2873 flags if that fails.
2874
2875 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2876
2877 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2878 swapping the dr_as based on init values until we've decided
2879 whether to merge them.
2880
2881 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2882
2883 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2884 two accesses in each dr_with_seg_len_pair_t before trying to
2885 combine separate dr_with_seg_len_pair_ts.
2886 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2887 that here.
2888 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2889
2890 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2891
2892 * config/aarch64/aarch64-sve.md
2893 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2894 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2895 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2896 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2897 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2898 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2899 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2900 pattern.
2901 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2902 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2903 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2904 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2905
2906 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2907
2908 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2909 (SVE_4HSI): New mode iterators.
2910 (ANY_EXTEND2): New code iterator.
2911 * config/aarch64/aarch64-sve.md
2912 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2913 Extend to...
2914 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2915 ...this, handling extension to partial modes as well as full modes.
2916 Describe the extension as a predicated rather than unpredicated
2917 extension.
2918 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2919 Likewise extend to...
2920 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2921 ...this, making the same adjustments.
2922 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2923 Likewise extend to...
2924 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2925 ...this, making the same adjustments.
2926 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2927 Likewise extend to...
2928 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2929 ...this, making the same adjustments.
2930 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2931 New pattern.
2932 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2933 extension predicate.
2934 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2935 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2936 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2937 Describe the extension as a predicated rather than unpredicated
2938 extension.
2939 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2940 Likewise. Canonicalize to a constant extension predicate.
2941 * config/aarch64/aarch64-sve-builtins-base.cc
2942 (svld1_gather_extend_impl::expand): Add an extra predicate for
2943 the extension.
2944 (svldff1_gather_extend_impl::expand): Likewise.
2945
2946 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2947
2948 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2949 iterators.
2950 * config/aarch64/aarch64-sve.md
2951 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2952 (gather_load<SVE_24:mode><v_int_container>): ...this.
2953 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2954 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2955 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2956 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2957 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2958 New pattern.
2959 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2960 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2961 Allow the nominal extension predicate to be different from the
2962 load predicate.
2963 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2964 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2965
2966 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2967
2968 * config/aarch64/aarch64-sve.md
2969 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2970 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2971 function.
2972 (aarch64_sve_adjust_stmt_cost): Call it.
2973
2974 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2975
2976 * config/aarch64/aarch64-sve.md
2977 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2978 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2979 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2980 Combine into...
2981 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2982 ...this new pattern, handling extension to partial modes as well
2983 as full modes. Describe the extension as a predicated rather than
2984 unpredicated extension.
2985 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2986 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2987 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2988 Combine into...
2989 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2990 ...this new pattern, handling extension to partial modes as well
2991 as full modes. Describe the extension as a predicated rather than
2992 unpredicated extension.
2993 * config/aarch64/aarch64-sve-builtins.cc
2994 (function_expander::use_contiguous_load_insn): Add an extra
2995 predicate for extending loads.
2996 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2997 (aarch64_sve_adjust_stmt_cost): Likewise.
2998 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2999 the cost of SVE vector stmts.
3000
3001 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3002
3003 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
3004 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
3005 * config/aarch64/aarch64-sve.md
3006 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
3007 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
3008 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
3009 comment. Avoid new narrower_mask ambiguity.
3010 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3011 (*cond_uxt<mode>_2): Update comment.
3012 (*cond_uxt<mode>_any): Likewise.
3013
3014 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3015
3016 * config/aarch64/aarch64-modes.def: Define partial SVE vector
3017 float modes.
3018 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
3019 function.
3020 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
3021 new vector float modes.
3022 (aarch64_sve_container_bits): New function.
3023 (aarch64_sve_pred_mode): Likewise.
3024 (aarch64_get_mask_mode): Use it.
3025 (aarch64_sve_element_int_mode): Handle structure modes and partial
3026 modes.
3027 (aarch64_sve_container_int_mode): New function.
3028 (aarch64_vectorize_related_mode): Return SVE modes when given
3029 SVE modes. Handle partial modes, taking the preferred number
3030 of units from the size of the given mode.
3031 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
3032 in registers.
3033 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
3034 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
3035 (aarch64_split_sve_subreg_move): Use the mode form of
3036 aarch64_sve_pred_mode.
3037 (aarch64_secondary_reload): Handle partial modes in the same way
3038 as full big-endian vectors.
3039 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
3040 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
3041 merging with the Advanced SIMD modes. If two modes have the
3042 same size, try the Advanced SIMD mode first.
3043 (aarch64_simd_valid_immediate): Use the container rather than
3044 the element mode for INDEX constants.
3045 (aarch64_simd_vector_alignment): Make the alignment of partial
3046 SVE vector modes the same as their minimum size.
3047 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
3048 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
3049 (mov<SVE_ALL:mode>): ...this.
3050 (movmisalign<SVE_FULL:mode>): Extend to...
3051 (movmisalign<SVE_ALL:mode>): ...this.
3052 (*aarch64_sve_mov<mode>_le): Rename to...
3053 (*aarch64_sve_mov<mode>_ldr_str): ...this.
3054 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
3055 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
3056 partial modes regardless of endianness.
3057 (aarch64_sve_reload_be): Rename to...
3058 (aarch64_sve_reload_mem): ...this and enable for little-endian.
3059 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
3060 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
3061 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
3062 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
3063 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
3064 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3065 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3066 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
3067 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
3068 (maskload<SVE_FULL:mode><vpred>): Extend to...
3069 (maskload<SVE_ALL:mode><vpred>): ...this.
3070 (maskstore<SVE_FULL:mode><vpred>): Extend to...
3071 (maskstore<SVE_ALL:mode><vpred>): ...this.
3072 (vec_duplicate<SVE_FULL:mode>): Extend to...
3073 (vec_duplicate<SVE_ALL:mode>): ...this.
3074 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
3075 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
3076 (sve_ld1r<SVE_FULL:mode>): Extend to...
3077 (sve_ld1r<SVE_ALL:mode>): ...this.
3078 (vec_series<SVE_FULL_I:mode>): Extend to...
3079 (vec_series<SVE_I:mode>): ...this.
3080 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
3081 (*vec_series<SVE_I:mode>_plus): ...this.
3082 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
3083 new VPRED ambiguity.
3084 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
3085 (add<SVE_FULL_I:mode>3): Extend to...
3086 (add<SVE_I:mode>3): ...this.
3087 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
3088 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
3089 (VPRED, vpred): Likewise.
3090 (Vctype): New iterator.
3091 (vw): Remove SVE modes.
3092
3093 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3094
3095 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
3096 (SVE_PARTIAL_I): ...this.
3097 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3098
3099 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3100
3101 * config/aarch64/iterators.md (SVE_ALL): Rename to...
3102 (SVE_FULL): ...this.
3103 (SVE_I): Rename to...
3104 (SVE_FULL_I): ...this.
3105 (SVE_F): Rename to...
3106 (SVE_FULL_F): ...this.
3107 (SVE_BHSI): Rename to...
3108 (SVE_FULL_BHSI): ...this.
3109 (SVE_HSD): Rename to...
3110 (SVE_FULL_HSD): ...this.
3111 (SVE_HSDI): Rename to...
3112 (SVE_FULL_HSDI): ...this.
3113 (SVE_HSF): Rename to...
3114 (SVE_FULL_HSF): ...this.
3115 (SVE_SD): Rename to...
3116 (SVE_FULL_SD): ...this.
3117 (SVE_SDI): Rename to...
3118 (SVE_FULL_SDI): ...this.
3119 (SVE_SDF): Rename to...
3120 (SVE_FULL_SDF): ...this.
3121 (SVE_S): Rename to...
3122 (SVE_FULL_S): ...this.
3123 (SVE_D): Rename to...
3124 (SVE_FULL_D): ...this.
3125 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
3126 * config/aarch64/aarch64-sve2.md: Likewise.
3127
3128 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3129
3130 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
3131 New option.
3132 * doc/invoke.texi: Document it.
3133 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3134 By default, return VECT_COMPARE_COSTS for SVE.
3135
3136 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3137
3138 * target.h (VECT_COMPARE_COSTS): New constant.
3139 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3140 * doc/tm.texi: Regenerate.
3141 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3142 * targhooks.c (default_autovectorize_vector_modes): Likewise.
3143 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3144 Likewise.
3145 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3146 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3147 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3148 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3149 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3150 (_loop_vec_info::vec_inside_cost): New member variables.
3151 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3152 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3153 (vect_analyze_loop): When autovectorize_vector_modes returns
3154 VECT_COMPARE_COSTS, try vectorizing the loop with each available
3155 vector mode and picking the one with the lowest cost.
3156 (vect_estimate_min_profitable_iters): Record the computed costs
3157 in the loop_vec_info.
3158
3159 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3160
3161 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3162 element type rather than an element mode.
3163 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3164 Use get_vectype_for_scalar_type to query the natural types
3165 for a given element type rather than basing everything on
3166 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3167 query to MAX_FIXED_MODE_SIZE.
3168 (duplicate_and_interleave): Update call accordingly.
3169 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3170
3171 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3172
3173 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3174 optional maximum nunits.
3175 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3176 takes an slp_tree.
3177 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3178 (vect_get_mask_type_for_stmt): Likewise.
3179 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3180 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3181 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3182 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3183 to get an assumed vector type for data references.
3184 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3185 (vect_update_all_shared_vectypes): Likewise.
3186 (vect_build_slp_tree_1): Pass the group size to
3187 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3188 for BB vectorization.
3189 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3190 before building the vectof from scalars.
3191 (vect_analyze_slp_instance): Pass the group size to
3192 get_vectype_for_scalar_type.
3193 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3194 types for BB vectorization here; just handle the case in which
3195 we deferred the choice for booleans.
3196 (vect_get_constant_vectors): Pass the slp_tree to
3197 get_vectype_for_scalar_type.
3198 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3199 (vectorizable_call): Likewise.
3200 (vectorizable_simd_clone_call): Likewise.
3201 (vectorizable_conversion): Likewise.
3202 (vectorizable_shift): Likewise.
3203 (vectorizable_operation): Likewise.
3204 (vectorizable_comparison): Likewise.
3205 (vect_is_simple_cond): Take the slp_tree as argument and
3206 pass it to get_vectype_for_scalar_type.
3207 (vectorizable_condition): Update call accordingly.
3208 (get_vectype_for_scalar_type): Take a group_size argument.
3209 For BB vectorization, limit the the vector to that number
3210 of elements. Also define an overload that takes an slp_tree.
3211 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3212 pass it to get_vectype_for_scalar_type.
3213 (vect_get_vector_types_for_stmt): Add a group_size argument
3214 and pass it to get_vectype_for_scalar_type. Don't use the
3215 cached vector type for BB vectorization if a group size is given.
3216 Handle data references in that case.
3217 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3218 pass it to get_mask_type_for_scalar_type.
3219
3220 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3221
3222 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3223 parameter.
3224 (estimate_edge_time): Use it.
3225 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3226 ret_nonspec_time parameter.
3227
3228 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3229
3230 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3231
3232 2019-11-15 Nick Clifton <nickc@redhat.com>
3233 Szabolcs Nagy <szabolcs.nagy@arm.com>
3234
3235 PR target/65649
3236 * config/microblaze/microblaze.c (print_operand): Print value as long.
3237
3238 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3239
3240 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3241 accidental commit.
3242
3243 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3244
3245 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3246 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3247
3248 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3249
3250 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3251 (gcn_conditional_register_usage): Use constants in place of hard-coded
3252 values.
3253 (gcn_hsa_declare_function_name): Set lower bound for number of
3254 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3255 MAX_NORMAL_VGPR_COUNT.
3256
3257 2019-11-15 Martin Jambor <mjambor@suse.cz>
3258
3259 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3260 declaration.
3261
3262 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3263
3264 * config/gcn/gcn.c (default_requested_args): New.
3265 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3266 set with default_requested_args.
3267 (gcn_conditional_register_usage): Limit register usage of non-kernel
3268 functions. Reassign fixed registers if a non-standard set of args is
3269 requested.
3270 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3271
3272 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3273
3274 PR ipa/92528
3275 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3276 aggregate jump function when inlined-to caller has no edge summary.
3277
3278 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3279
3280 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3281
3282 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3283
3284 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3285 prologue use of v0.
3286 (print_operand_address): Use v1 for zero vector offset.
3287
3288 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3289
3290 PR tree-optimization/92515
3291 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3292 types when converting a vector/scalar shift into a vector/vector one,
3293 using tree_nop_conversion_p instead of useless_type_conversion_p.
3294 Move the conversion code to the transform block.
3295
3296 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3297
3298 * read-rtl-function.c
3299 (function_reader::add_fixup_source_location): Take additional
3300 parameter of a column.
3301 (function_reader::maybe_read_location): Optionally parse column
3302 information and pass to add_fixup_source_location.
3303
3304 2019-11-15 Richard Biener <rguenther@suse.de>
3305
3306 PR tree-optimization/92512
3307 * tree-vect-loop.c (check_reduction_path): Fix operand index
3308 computability check. Add check for second use in COND_EXPRs.
3309
3310 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3311
3312 PR target/92515
3313 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3314 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3315
3316 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3317
3318 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3319 register class for VCC_LO and VCC_HI.
3320 (gcn_spill_class): Use SGPR_REGS to spill registers in
3321 VCC_CONDITIONAL_REG.
3322
3323 2019-11-15 Richard Biener <rguenther@suse.de>
3324
3325 PR tree-optimization/92324
3326 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3327 singedness of SLP reduction epilouge operations. Also reduce
3328 the vector width for SLP reductions before doing elementwise
3329 operations if possible.
3330
3331 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3332
3333 * passes.c (skip_pass): Set epilogue_completed if skipping the
3334 pro_and_epilogue pass.
3335
3336 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3337
3338 * passes.c (should_skip_pass_p): Always run "dfinish".
3339
3340 2019-11-15 Richard Biener <rguenther@suse.de>
3341
3342 * ipa-inline.c (inline_small_functions): Move assignment
3343 to next before call destroying edge.
3344
3345 2019-11-15 Richard Biener <rguenther@suse.de>
3346
3347 PR tree-optimization/92039
3348 PR tree-optimization/91975
3349 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3350 previous change, treat invariants consistently as non-constant.
3351 (tree_estimate_loop_size): Ternary ops with just the first op
3352 constant are not optimized away.
3353
3354 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3355
3356 * gimplify.c (gimplify_call_expr): Don't call
3357 omp_resolve_declare_variant after gimplification.
3358 * omp-general.c (omp_context_selector_matches): For isa that might
3359 match in some other function, defer if in declare simd function.
3360 (omp_context_compute_score): Don't look for " score" in construct
3361 trait set. Set *score to -1 if it can't ever match.
3362 (omp_resolve_declare_variant): If any variants need to be deferred,
3363 don't punt immediately, but compute scores of all variants and if
3364 ther eis a score winner that doesn't need to be deferred, return that.
3365
3366 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3367
3368 * ipa-comdats.c: Fix comments typo.
3369 * ipa-profile.c: Fix comments typo.
3370 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3371 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3372 (gimple_gen_ic_func_profiler): Likewise.
3373 (pass_ipa_tree_profile::gate): Fix comments typo.
3374
3375 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3376
3377 * ipa-inline.c (inline_small_functions): Update iterator of next.
3378
3379 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3380
3381 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3382 register is suitable for the mode.
3383
3384 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3385
3386 * range-op.h (range_operator::fold_range): Return a bool.
3387 * range-op.cc (range_operator::wi_fold): Assert supported type.
3388 (range_operator::fold_range): Assert supported type and return true.
3389 (operator_equal::fold_range): Return true.
3390 (operator_not_equal::fold_range): Same.
3391 (operator_lt::fold_range): Same.
3392 (operator_le::fold_range): Same.
3393 (operator_gt::fold_range): Same.
3394 (operator_ge::fold_range): Same.
3395 (operator_plus::op1_range): Adjust call to fold_range.
3396 (operator_plus::op2_range): Same.
3397 (operator_minus::op1_range): Same.
3398 (operator_minus::op2_range): Same.
3399 (operator_exact_divide::op1_range): Same.
3400 (operator_lshift::fold_range): Return true and adjust fold_range call.
3401 (operator_rshift::fold_range): Same.
3402 (operator_cast::fold_range): Return true.
3403 (operator_logical_and::fold_range): Same.
3404 (operator_logical_or::fold_range): Same.
3405 (operator_logical_not::fold_range): Same.
3406 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3407 (operator_bitwise_not::op1_range): Same.
3408 (operator_cst::fold_range): Return true.
3409 (operator_identity::fold_range): Return true.
3410 (operator_negate::fold_range): Return true and adjust fold_range call.
3411 (operator_addr_expr::fold_range): Return true.
3412 (operator_addr_expr::op1_range): Adjust call to fold_range.
3413 (range_cast): Same.
3414 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3415 (range_fold_unary_symbolics_p): Same.
3416
3417 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3418
3419 PR tree-optimization/92506
3420 * range-op.cc (range_operator::fold_range): Start with range undefined.
3421 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3422 overflow is varying.
3423
3424 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3425
3426 * range-op.cc (*operator*::*range): Remove calls to
3427 range_intersect, range_invert, and range_union in favor of calling
3428 the in-place API methods.
3429 (range_tests): Same.
3430 * range.cc (range_intersect): Remove.
3431 (range_union): Remove.
3432 (range_invert): Remove.
3433 * range.h (range_intersect): Remove.
3434 (range_union): Remove.
3435 (range_intersect): Remove.
3436
3437 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3438
3439 PR rtl-optimization/92430
3440 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3441 (pass_jump_after_combine::execute): Perform jump threading
3442 unconditionally.
3443
3444 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3445 Doug Rupp <rupp@adacore.com>
3446 Olivier Hainque <hainque@adacore.com>
3447
3448 * config.gcc: Collapse the arm-vxworks entries into
3449 a single arm-wrs-vxworks7* one, bpabi based. Update
3450 the default cpu from arm8 to armv7-a
3451 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3452 we always use ARM_UNWIND_INFO.
3453 (DWARF2_UNWIND_INFO): Remove redefinition.
3454 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3455 (VXWORKS_PERSONALITY): Define, to "llvm".
3456 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3457
3458 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3459
3460 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3461 _VX_CPU instead of CPU and handle arm_arch8.
3462
3463 2019-11-14 Doug Rupp <rupp@adacore.com>
3464 Olivier Hainque <hainque@adacore.com>
3465 Jerome Lambourg <lambourg@adacore.com>
3466
3467 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3468 * config/aarch64/aarch64-vxworks.h: New file.
3469 * config/aarch64/t-aarch64-vxworks: New file.
3470
3471 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3472 Olivier Hainque <hainque@adacore.com>
3473
3474 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3475 definition, pointless with a VxWorks specific version
3476 of crtstuff.
3477 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3478 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3479 New local macros, controlling the addition of vxworks specific
3480 crtstuff objects depending on the EH mechanism and kind of
3481 module being linked.
3482 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3483
3484 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3485 Jerome Lambourg <lambourg@adacore.com>
3486 Olivier Hainque <hainque@adacore.com>
3487
3488 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3489 common macro definitions, conveying VXWORKS7 or 64bit general
3490 variations. Add a block to set gcc_cv_initfini_array
3491 unconditionally to "yes" for VxWorks7.
3492 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3493 by default. Update some comments.
3494 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3495 default, to be added the end of VXWORKS_LIBS_RTP.
3496 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3497 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3498 redefine.
3499 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3500 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3501 to account for the now available TLS abilities.
3502 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3503 (VXWORKS_HAVE_TLS): Likewise.
3504
3505 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3506
3507 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3508 (vect_slp_convert_to_external): Likewise.
3509 (vect_slp_analyze_node_operations): If analysis fails, try building
3510 the node from scalars instead.
3511
3512 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3513
3514 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3515 between vector types.
3516 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3517 non-widening and non-narrowing path to handle standard
3518 conversion codes, if the target supports them.
3519 * expr.c (convert_move): Try using the extend and truncate optabs
3520 for vectors.
3521 * optabs-tree.c (supportable_convert_operation): Likewise.
3522 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3523 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3524 (trunc<mode><Vnarrowq>2): New patterns.
3525
3526 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3527
3528 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3529 require vectype and nunits_vectype to have the same size;
3530 instead assert that nunits_vectype has at least as many
3531 elements as vectype. Don't compute a separate nunits_vectype
3532 if the scalar type is obviously the same as vectype's.
3533 Tweak dump messages.
3534
3535 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3536
3537 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3538 function.
3539 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3540 (TARGET_VECTORIZE_RELATED_MODE): Define.
3541
3542 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3543
3544 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3545 (vec_info::used_vector_mode): New member variable.
3546 (vect_chooses_same_modes_p): Declare.
3547 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3548 chosen vector mode in vec_info::used_vector_mode.
3549 (vect_chooses_same_modes_p): New function.
3550 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3551 the same vector statements multiple times.
3552 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3553
3554 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3555
3556 * machmode.h (opt_machine_mode::operator==): New function.
3557 (opt_machine_mode::operator!=): Likewise.
3558 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3559 (get_related_vectype_for_scalar_type): Delete.
3560 (get_vectype_for_scalar_type_and_size): Declare.
3561 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3562 whether analysis passed or failed, and with what vector modes.
3563 Use related_vector_mode to check whether trying a particular
3564 vector mode would be redundant with the autodetected mode,
3565 and print a dump message if we decide to skip it.
3566 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3567 (vect_create_epilog_for_reduction): Use
3568 get_related_vectype_for_scalar_type instead of
3569 get_vectype_for_scalar_type_and_size.
3570 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3571 with...
3572 (get_related_vectype_for_scalar_type): ...this new function.
3573 Take a starting/"prevailing" vector mode rather than a vector size.
3574 Take an optional nunits argument, with the same meaning as for
3575 related_vector_mode. Use related_vector_mode when not
3576 auto-detecting a mode, falling back to mode_for_vector if no
3577 target mode exists.
3578 (get_vectype_for_scalar_type): Update accordingly.
3579 (get_same_sized_vectype): Likewise.
3580 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3581
3582 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3583
3584 * tree-vect-stmts.c (vectorizable_call): Require the types
3585 to have the same size.
3586
3587 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3588
3589 * tree-vect-stmts.c (vectorizable_call): If an operand is
3590 constant or external, use get_vectype_for_scalar_type
3591 rather than get_same_sized_vectype to get its vector type.
3592 (vectorizable_conversion, vectorizable_shift): Likewise.
3593 (vectorizable_operation): Likewise.
3594
3595 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3596
3597 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3598 (vec_info::vector_mode): ...this new field.
3599 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3600 (vect_analyze_loop, vect_transform_loop): Likewise.
3601 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3602 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3603 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3604 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3605 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3606
3607 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3608
3609 * target.h (vector_sizes, auto_vector_sizes): Delete.
3610 (vector_modes, auto_vector_modes): New typedefs.
3611 * target.def (autovectorize_vector_sizes): Replace with...
3612 (autovectorize_vector_modes): ...this new hook.
3613 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3614 Replace with...
3615 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3616 * doc/tm.texi: Regenerate.
3617 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3618 (default_autovectorize_vector_modes): New function.
3619 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3620 (default_autovectorize_vector_modes): New function.
3621 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3622 of autovectorize_vector_sizes. Use the number of units in the mode
3623 to calculate the maximum VF.
3624 * omp-low.c (omp_clause_aligned_alignment): Use
3625 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3626 Use a loop based on related_mode to iterate through all supported
3627 vector modes for a given scalar mode.
3628 * optabs-query.c (can_vec_mask_load_store_p): Use
3629 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3630 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3631 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3632 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3633 Replace with...
3634 (aarch64_autovectorize_vector_modes): ...this new function.
3635 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3636 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3637 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3638 (arc_autovectorize_vector_modes): ...this new function.
3639 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3640 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3641 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3642 (arm_autovectorize_vector_modes): ...this new function.
3643 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3644 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3645 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3646 (ix86_autovectorize_vector_modes): ...this new function.
3647 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3648 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3649 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3650 (mips_autovectorize_vector_modes): ...this new function.
3651 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3652 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3653
3654 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3655
3656 * tree-vect-stmts.c (vectorizable_shift): Check the number
3657 of vector elements as well as the type mode when deciding
3658 whether an op1_vectype is compatible. Reuse the result of
3659 this check when generating vector statements.
3660
3661 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3662
3663 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3664 targetm.vectorize.preferred_simd_mode returns an integer mode,
3665 use mode_for_vector to decide what the vector type's mode
3666 should actually be. Use build_vector_type_for_mode instead
3667 of build_vector_type.
3668
3669 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3670
3671 * target.def (get_mask_mode): Take a vector mode itself as argument,
3672 instead of properties about the vector mode.
3673 * doc/tm.texi: Regenerate.
3674 * targhooks.h (default_get_mask_mode): Update to reflect new
3675 get_mode_mask interface.
3676 * targhooks.c (default_get_mask_mode): Likewise. Use
3677 related_int_vector_mode.
3678 * optabs-query.c (can_vec_mask_load_store_p): Update call
3679 to get_mask_mode.
3680 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3681 first that the original mode really is a vector.
3682 * tree.c (build_truth_vector_type_for): Likewise.
3683 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3684 get_mode_mask interface.
3685 (aarch64_expand_sve_vcond): Update call accordingly.
3686 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3687 get_mode_mask interface.
3688 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3689
3690 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3691
3692 * tree.h (build_truth_vector_type): Delete.
3693 (build_same_sized_truth_vector_type): Likewise.
3694 * tree.c (build_truth_vector_type): Rename to...
3695 (build_truth_vector_type_for): ...this. Make static and take
3696 a vector type as argument.
3697 (truth_type_for): Update accordingly.
3698 (build_same_sized_truth_vector_type): Delete.
3699 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3700 instead of build_same_sized_truth_vector_type.
3701 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3702 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3703 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3704 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3705 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3706 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3707 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3708 (vectorizable_store, vectorizable_condition): Likewise.
3709 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3710 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3711 build_truth_vector_type.
3712 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3713 Use truth_type_for instead of build_same_sized_truth_vector_type.
3714 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3715
3716 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3717
3718 * tree.h (build_truth_vector_type_for_mode): Declare.
3719 * tree.c (build_truth_vector_type_for_mode): New function,
3720 split out from...
3721 (build_truth_vector_type): ...here.
3722 (build_opaque_vector_type): Fix head comment.
3723 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3724 vec_info parameter.
3725 (vect_halve_mask_nunits): Replace vec_info parameter with the
3726 mode of the new vector.
3727 (vect_double_mask_nunits): Likewise.
3728 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3729 (vect_double_mask_nunits): Likewise.
3730 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3731 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3732 to vect_halve_mask_nunits, getting the required mode from the unpack
3733 patterns.
3734 (vect_set_loop_condition_masked): Update call accordingly.
3735 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3736 parameter and update call to vect_double_mask_nunits.
3737 (vectorizable_conversion): Update call accordingly.
3738 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3739 (vectorizable_call): Update call accordingly.
3740 (supportable_widening_operation): Update call to
3741 vect_halve_mask_nunits.
3742 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3743 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3744
3745 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3746
3747 * machmode.h (mode_for_int_vector): Delete.
3748 (related_int_vector_mode): Declare.
3749 * stor-layout.c (mode_for_int_vector): Delete.
3750 (related_int_vector_mode): New function.
3751 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3752 instead of mode_for_int_vector.
3753 (expand_vec_perm_const): Likewise.
3754 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3755 (aarch64_evpc_sve_tbl): Likewise.
3756 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3757 (s390_expand_vcond): Likewise.
3758
3759 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3760
3761 * target.def (related_mode): New hook.
3762 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3763 * doc/tm.texi: Regenerate.
3764 * targhooks.h (default_vectorize_related_mode): Declare.
3765 * targhooks.c (default_vectorize_related_mode): New function.
3766 * machmode.h (related_vector_mode): Declare.
3767 * stor-layout.c (related_vector_mode): New function.
3768 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3769 * optabs-query.c (qimode_for_vec_perm): Likewise.
3770 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3771 (vectorizable_store, vectorizable_load): Likewise
3772
3773 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3774
3775 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3776 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3777 * config/arm/arm-c.c (arm_cpu_builtins): Define
3778 __GCC_ASM_FLAG_OUTPUTS__.
3779 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3780 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3781 Define __GCC_ASM_FLAG_OUTPUTS__.
3782 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3783 * doc/extend.texi (FlagOutputOperands): Add documentation
3784 for ARM and AArch64.
3785
3786 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3787 * config/arm/predicates.md (nz_comparison_operator): Rename
3788 from noov_comparison_operator.
3789 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3790 (arm_gen_dicompare_reg): Likewise.
3791 (maybe_get_arm_condition_code): Likewise.
3792 (thumb1_final_prescan_insn): Likewise.
3793 (arm_emit_coreregs_64bit_shift): Likewise.
3794 * config/arm/arm.md (addsi3_compare0): Likewise.
3795 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3796 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3797 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3798 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3799 (*mulsi3addsi_compare0_scratch): Likewise.
3800 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3801 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3802 (*zeroextractsi_compare0_scratch): Likewise.
3803 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3804 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3805 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3806 (andsi_not_shiftsi_si_scc): Likewise.
3807 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3808 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3809 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3810 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3811 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3812 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3813 (return_addr_mask, *check_arch2): Likewise.
3814 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3815 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3816 (compare_scc splitters): Likewise.
3817 (movcond_addsi): Likewise.
3818 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3819 (*thumb2_addsi3_compare0_scratch): Likewise.
3820 (*thumb2_mulsi_short_compare0): Likewise.
3821 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3822 (compare peephole2s): Likewise.
3823 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3824 nz_comparison_operator names.
3825 (cbranchsi4_insn): Likewise.
3826
3827 * config/arm/constraints.md (c): Use cc_register predicate.
3828
3829 * config/aarch64/constraints.md (c): New constraint.
3830
3831 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3832
3833 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3834 ipa_merge_fn_summary_after_inlining): Micro optimize.
3835
3836 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3837
3838 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3839
3840 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3841
3842 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3843 (ipa_value_range_from_jfunc): New function.
3844 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3845 known_value_ranges parameter; use it to evalulate conditions.
3846 (evaluate_properties_for_edge): Compute known value ranges.
3847 (ipa_fn_summary_t::duplicate): Update use of
3848 evaluate_conditions_for_known_args.
3849 (estimate_ipcp_clone_size_and_time): Likewise.
3850 (ipa_merge_fn_summary_after_inlining): Likewise.
3851 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3852
3853 2019-11-14 Martin Liska <mliska@suse.cz>
3854
3855 * ipa-inline.c (want_inline_small_function_p): Use
3856 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3857 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3858
3859 2019-11-14 Martin Liska <mliska@suse.cz>
3860
3861 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3862 of a callee to get value of the param.
3863 * ipa-inline.c (inline_insns_auto): Use proper
3864 opt_for_fn.
3865 * opts.c (maybe_default_option): Do not overwrite param
3866 value if optimization level does not match. Note that
3867 params usually have default value set via Init() keyword.
3868 * params.opt: Remove -param=max-inline-insns-auto-O2.
3869 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3870 * doc/invoke.texi: Remove documentation of
3871 max-inline-insns-auto-O2.
3872
3873 2019-11-14 Martin Liska <mliska@suse.cz>
3874
3875 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3876 Do not initialize m_other_count.
3877 (switch_conversion::collect): Do not count m_default_count and
3878 m_other_count as we use frequencies for edges.
3879 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3880
3881 2019-11-14 Martin Liska <mliska@suse.cz>
3882
3883 PR other/92329
3884 * doc/invoke.texi: Document -fallocation-dce.
3885
3886 2019-11-14 Martin Liska <mliska@suse.cz>
3887
3888 PR target/92389
3889 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3890 PTA_ICELAKE_CLIENT which is later interited by
3891 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3892
3893 2019-11-14 Martin Liska <mliska@suse.cz>
3894
3895 * ipa-icf.c (sem_item_optimizer::execute): Save
3896 loaded_symbols.
3897 (sem_item_optimizer::parse_nonsingleton_classes):
3898 Return number of loaded symbols.
3899 (sem_item_optimizer::merge_classes): Print
3900 statistics about totally needed symbols.
3901 * ipa-icf.h (parse_nonsingleton_classes): Change return
3902 type.
3903 (merge_classes): Add one argument.
3904
3905 2019-11-14 Martin Liska <mliska@suse.cz>
3906
3907 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3908 func_checker::hash_operand by handling of FIELD_DECLs.
3909
3910 2019-11-14 Martin Liska <mliska@suse.cz>
3911
3912 * ipa-icf-gimple.h (func_checker::func_checker): Add
3913 default constructor.
3914 * ipa-icf.c (sem_function::init): Make operand_equal_p
3915 and hash_operand public.
3916 (sem_item::add_expr): Remove.
3917 (sem_item::add_type): Remove.
3918 (sem_function::hash_stmt): Use m_checker for hashing
3919 of GIMPLE statements.
3920 (sem_function::parse): Init with checker.
3921 (sem_variable::parse): Pass NULL as checker.
3922 (sem_item_optimizer::parse_funcs_and_vars):
3923 Pass checker to ::parse function.
3924 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3925 (sem_variable::parse): New function.
3926 (sem_variable::get_hash): Only return computed hash value.
3927 (sem_variable::init): Initialize hash of a variable.
3928 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3929 to couple of functions as a new argument.
3930
3931 2019-11-14 Martin Liska <mliska@suse.cz>
3932
3933 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3934 bail out reason.
3935 (func_checker::compare_gimple_assign): Likewise.
3936
3937 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3938
3939 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3940 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3941 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3942
3943 * omp-general.c (omp_context_name_list_prop): New function.
3944 (omp_context_selector_matches): Use it. Return 0 if it returns
3945 NULL.
3946 (omp_context_selector_props_compare): Allow equivalency of an
3947 identifier and a string literal containing no embedded zeros.
3948
3949 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3950
3951 * range-op.cc (RANGE3): Remove.
3952 (range_tests): Remove all selftest that check for multi-ranges.
3953 Put tests in namespace selftest.
3954 * selftest.h: Move range_tests into namespace selftest.
3955 * value-range.h (class value_range): Unfriend range_tests.
3956
3957 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3958
3959 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3960 normalize_symbolics and normalize_addresses working in place.
3961 (range_fold_unary_symbolics_p): Same.
3962 (range_fold_unary_symbolics_p): Same.
3963 * value-range.cc (num_pairs): Same.
3964 (lower_bound): Same.
3965 (upper_bound): Same.
3966 (contains_p): Same.
3967 (normalize_addresses): Same.
3968 (normalize_symbolics): Same.
3969 * value-range.h (normalize_symbolics): Same.
3970 (normalize_addresses): Same.
3971
3972 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3973
3974 PR ipa/91682
3975 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3976 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3977 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3978 (ipa_agg_jump_function): Remove member function equal_to.
3979 (ipa_agg_jump_function_p): Remove typedef.
3980 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3981 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3982 information for aggregate jump function.
3983 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3984 record last definition statement.
3985 (load_from_unmodified_param_or_agg): New function.
3986 (ipa_known_agg_contents_list): Add new field type and value, remove
3987 field constant.
3988 (build_agg_jump_func_from_list): Rename parameter const_count to
3989 value_count, build aggregate jump function from ipa_load_agg_data.
3990 (analyze_agg_content_value): New function.
3991 (extract_mem_content): Analyze memory store assignment to prepare
3992 information for aggregate jump function generation.
3993 (determine_known_aggregate_parts): Add new parameter fbi, remove
3994 parameter aa_walk_budeget_p.
3995 (update_jump_functions_after_inlining): Update aggregate jump function.
3996 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3997 (try_make_edge_direct_simple_call): Add new parameter new_root.
3998 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3999 new_root_info.
4000 (update_indirect_edges_after_inlining): Pass new argument to
4001 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
4002 (ipa_write_jump_function): Write aggregate jump function to file.
4003 (ipa_read_jump_function): Read aggregate jump function from file.
4004 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
4005 * ipa-cp.c (ipa_get_jf_arith_result): New function.
4006 (ipa_agg_value_from_node): Likewise.
4007 (ipa_agg_value_set_from_jfunc): Likewise.
4008 (propagate_vals_across_arith_jfunc): Likewise.
4009 (propagate_aggregate_lattice): Likewise.
4010 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
4011 (propagate_vals_across_pass_through): Call
4012 propagate_vals_across_arith_jfunc.
4013 (get_clone_agg_value): Move forward.
4014 (propagate_aggs_across_jump_function): Handle value propagation for
4015 aggregate jump function.
4016 (agg_jmp_p_vec_for_t_vec): Remove.
4017 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
4018 with vec<ipa_agg_value>.
4019 (copy_plats_to_inter, intersect_with_plats): Likewise.
4020 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
4021 (intersect_aggregate_with_edge): Likewise.
4022 (find_aggregate_values_for_callers_subset): Likewise.
4023 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4024 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
4025 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4026 (gather_context_independent_values): Likewise.
4027 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
4028 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
4029 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4030 (evaluate_properties_for_edge): Likewise.
4031 (estimate_edge_devirt_benefit): Likewise.
4032 (estimate_edge_size_and_time): Likewise.
4033 (estimate_calls_size_and_time): Likewise.
4034 (ipa_call_context::ipa_call_context): Likewise.
4035 (estimate_ipcp_clone_size_and_time): Likewise.
4036 * ipa-fnsummary.h (ipa_call_context): Replace
4037 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4038 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
4039 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
4040 (do_estimate_edge_size): Likewise.
4041 (do_estimate_edge_hints): Likewise.
4042
4043 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4044
4045 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
4046 binary operations.
4047
4048 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4049
4050 * ipa-profile.c (check_argument_count): Check properly that e_info
4051 is non-NULL; do not check descriptors.
4052
4053 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4054
4055 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
4056 check for ipa profiles.
4057
4058 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4059
4060 PR c++/92421
4061 * ipa-prop.c (update_indirect_edges_after_inlining):
4062 Mark parameter as used.
4063 * ipa-inline.c (recursive_inlining): Reset node cache
4064 after inlining.
4065 (inline_small_functions): Remove checking ifdef.
4066 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
4067 cache consistency.
4068
4069 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4070
4071 PR ipa/92498
4072 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
4073 is NULL.
4074 (ipa_profile): Fix reversed test.
4075
4076 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4077
4078 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
4079 (propagate_constants_topo): Fix typo.
4080
4081 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4082
4083 * Makefile.in (OBJS): Add value-range.o.
4084 (GTFILES): Add value-range.h.
4085 * gengtype.c (open_base_files): Add value-range.h to list of
4086 header files.
4087 * tree-vrp.c: Move the following value_range related functions:
4088 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
4089 constant_p, set_undefined, set_varying, may_contain_p,
4090 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
4091 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
4092 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
4093 value_inside_range, ranges_from_anti_range, union_ranges,
4094 intersect_ranges, intersect_helper, union_helper, union_,
4095 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
4096 upper_bound, contains_p, invert, intersect...
4097 * value-range.cc: ...to here.
4098 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
4099 associated inline methods from here...
4100 * value-range.h: ...to here.
4101
4102 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4103
4104 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
4105 instead of asserting its value.
4106
4107 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
4108
4109 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
4110 constructors and set methods so value_range_kind is the last
4111 argument and defaults to VR_RANGE.
4112 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
4113 * ipa-cp.c (propagate_vr_across_jump_function): Same.
4114 * ipa-prop.c (ipa_get_value_range): Same.
4115 (ipa_compute_jump_functions_for_edge): Same.
4116 * range-op.cc (value_range_from_overflowed_bounds): Same.
4117 (operator_cast::op1_range): Same.
4118 (range_tests): Same.
4119 * range.cc (range_nonzero): Same.
4120 * tree-ssanames.c (get_range_info): Same.
4121 * tree-vrp.c (value_range_equiv::set): Same.
4122 (value_range::value_range): Same.
4123 (value_range_equiv::value_range_equiv): Same.
4124 (value_range_equiv::update): Same.
4125 (value_range_equiv::deep_copy): Same.
4126 (value_range_equiv::move): Same.
4127 (value_range_equiv::set_undefined): Same.
4128 (value_range::set): Same.
4129 (value_range::set_nonzero): Same.
4130 (ranges_from_anti_range): Same.
4131 (extract_range_from_plus_minus_expr): Same.
4132 (value_range::intersect_helper): Same.
4133 (value_range_equiv::intersect): Same.
4134 (value_range::union_helper): Same.
4135 (value_range_equiv::union_): Same.
4136 (value_range::normalize_symbolics): Same.
4137 (value_range::invert): Same.
4138 (determine_value_range_1): Same.
4139 * tree-vrp.h (class value_range): Same.
4140 (class value_range_equiv): Same.
4141 * vr-values.c (set_value_range_to_nonnegative): Same.
4142 (set_value_range_to_truthvalue): Same.
4143 (vr_values::update_value_range): Same.
4144 (vr_values::extract_range_for_var_from_comparison_expr): Same.
4145 (vr_values::extract_range_from_binary_expr): Same.
4146 (vr_values::extract_range_from_comparison): Same.
4147 (vr_values::extract_range_basic): Same.
4148 (vr_values::adjust_range_with_scev): Same.
4149 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4150 (vr_values::extract_range_from_phi_node): Same.
4151
4152 2019-11-13 Ulrich Drepper <drepper@redhat.com>
4153
4154 * tree-dump.c (dequeue_and_dump): Print first tree operand
4155 for VIEW_CONVERT_EXPR.
4156
4157 2019-11-13 Joseph Myers <joseph@codesourcery.com>
4158
4159 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4160 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4161 * real.c (get_max_float): Add norm_max argument.
4162 * real.h (get_max_float): Update prototype.
4163 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4164 get_max_float.
4165
4166 2019-11-13 Martin Liska <mliska@suse.cz>
4167
4168 * dbgcnt.c (test_sorted_dbg_counters): New.
4169 (dbgcnt_c_tests): Likewise.
4170 * selftest-run-tests.c (selftest::run_tests): Likewise.
4171 * selftest.h (dbgcnt_c_tests): Likewise.
4172
4173 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4174 Martin Jambor <mjambor@suse.cz>
4175
4176 PR ipa/92454
4177 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4178 (identify_dead_nodes): Likewise.
4179
4180 2019-11-13 Martin Liska <mliska@suse.cz>
4181
4182 * ipa-icf.c (sem_function::equals_private): Do not overuse
4183 push/pop_cfun functions.
4184
4185 2019-11-13 Martin Liska <mliska@suse.cz>
4186
4187 * common.opt: Document change of -fdbg-cnt option.
4188 * dbgcnt.c (DEBUG_COUNTER): Remove.
4189 (dbg_cnt_is_enabled): Remove.
4190 (dbg_cnt): Work with new intervals.
4191 (dbg_cnt_set_limit_by_index): Set to new
4192 list of intervals.
4193 (dbg_cnt_set_limit_by_name): Likewise.
4194 (dbg_cnt_process_single_pair): Process new format.
4195 (dbg_cnt_process_opt): Likewise.
4196 (dbg_cnt_list_all_counters): Likewise.
4197 * doc/invoke.texi: Document change of -fdbg-cnt option.
4198 (cmp_tuples): New.
4199
4200 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4201
4202 * ipa-inline.c (ipa_inline): Check that function is defined before
4203 flattening.
4204
4205 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4206 Julian Brown <julian@codesourcery.com>
4207
4208 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4209 flag_worker_partitioning is not set.
4210 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4211 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4212
4213 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4214
4215 * config/gcn/gcn-run.c (heap_region): New global variable.
4216 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4217 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4218 (get_kernarg_region): Move contents to ....
4219 (get_memory_region): .... here.
4220 (get_heap_region): New function.
4221 (init_device): Initialize the heap_region.
4222 (device_malloc): Add region parameter.
4223 (struct kernargs): Move heap ....
4224 (heap): ... to global scope.
4225 (main): Allocate heap separate to kernargs.
4226
4227 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4228
4229 * ipa-prop.c (ipa_print_node_jump_functions,
4230 ipa_print_node_params): Print info about missing summaries.
4231
4232 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4233
4234 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4235 the cost of generating loop masks.
4236
4237 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4238
4239 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4240 New function.
4241 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4242 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4243 (vect_transform_loop): Likewise.
4244 (vect_analyze_loop_costing): Don't take the cost of versioning
4245 into account for the static profitability threshold if it turns
4246 out that no versioning is needed.
4247
4248 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4249
4250 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4251 and target_option_default_node to get -fprofile-generate ctors working
4252 right with LTO.
4253
4254 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4255
4256 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4257 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4258 (vectorizable_assignment): Don't add a cost for nop conversions.
4259 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4260 Likewise.
4261 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4262
4263 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4264
4265 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4266 number of ncopies as an additional argument.
4267 (vectorizable_conversion): Update call accordingly. Use "modifier"
4268 to check whether a conversion is between vectors with the same
4269 numbers of units.
4270
4271 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4272
4273 * config/aarch64/aarch64-sve-builtins-functions.h
4274 (unary_count::expand): Use aarch64_sve_int_mode instead of
4275 mode_for_int_vector.
4276
4277 2019-11-13 Martin Liska <mliska@suse.cz>
4278
4279 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4280
4281 2019-11-13 Martin Liska <mliska@suse.cz>
4282
4283 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4284 Remove call to finalize_options_struct.
4285
4286 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4287
4288 PR target/92055
4289 * config/avr/t-avr (avr-mcus): Do not depend on
4290 $(srcdir)/config/avr/t-multilib.
4291
4292 2019-11-13 Richard Biener <rguenther@suse.de>
4293
4294 PR tree-optimization/92473
4295 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4296 direct optab reduction in the correct type.
4297
4298 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4299
4300 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4301 hexadecimal literal.
4302
4303 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4304
4305 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4306 UNORDERED if !HONOR_NANS (DFmode).
4307 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4308 if !HONOR_NANS (<MODE>mode).
4309
4310 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4311
4312 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4313 (ipcp_verify_propagated_values): Likewise.
4314 (propagate_constants_across_call): Likewise.
4315 (propagate_constants_topo): Likewise.
4316 (ipcp_propagate_stage): Likewise.
4317
4318 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4319
4320 PR ipa/92471
4321 * ipa-profile.c (check_argument_count): Break out from ...;
4322 watch for missing summaries.
4323 (ipa_profile): Here.
4324
4325 2019-11-12 Martin Sebor <msebor@redhat.com>
4326
4327 PR tree-optimization/92412
4328 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4329 extern variables.
4330
4331 2019-11-12 Martin Sebor <msebor@redhat.com>
4332
4333 PR middle-end/83688
4334 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4335 (directive::argno): New member.
4336 (format_result::aliases, format_result::alias_count): New data members.
4337 (format_result::append_alias): New member function.
4338 (fmtresult::dst_offset): New data member.
4339 (pass_sprintf_length::call_info::dst_origin): New data member.
4340 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4341 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4342 (get_origin_and_offset): Same.
4343 (format_string): Call it.
4344 (format_directive): Call append_alias and set directive argument
4345 number.
4346 (maybe_warn_overlap): New function.
4347 (pass_sprintf_length::compute_format_length): Call it.
4348 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4349 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4350
4351 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4352
4353 PR rtl-optimization/92430
4354 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4355 dominance info at the beginning.
4356
4357 2019-11-12 Richard Biener <rguenther@suse.de>
4358
4359 PR tree-optimization/92460
4360 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4361 expression before gimplifying.
4362
4363 2019-11-12 Richard Biener <rguenther@suse.de>
4364
4365 PR tree-optimization/92461
4366 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4367 stmt after propagation.
4368
4369 2019-11-12 Martin Liska <mliska@suse.cz>
4370
4371 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4372 Use SET_OPTION_IF_UNSET.
4373 (ix86_option_override_internal): Likewise.
4374 * opts.c (default_options_optimization): Likewise.
4375 (finish_options): Likewise.
4376 (enable_fdo_optimizations): Likewise.
4377 (common_handle_option): Likewise.
4378
4379 2019-11-12 Martin Liska <mliska@suse.cz>
4380
4381 * common/common-target.def: Remove option_validate_param and
4382 option_default_params.
4383 * common/common-targhooks.c (default_option_validate_param):
4384 Remove.
4385 * common/common-targhooks.h (default_option_validate_param):
4386 Remove.
4387 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4388 Remove usage of this.
4389 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4390 (aarch64_option_validate_param): Likewise.
4391 (aarch64_option_default_params): Likewise
4392 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4393 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4394 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4395 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4396 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4397 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4398 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4399 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4400 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4401 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4402 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4403 guard_size here.
4404 * doc/tm.texi: Remove option_default_params and option_validate_param.
4405 * doc/tm.texi.in: Likewise.
4406
4407 2019-11-12 Martin Liska <mliska@suse.cz>
4408
4409 * common/common-target.def:
4410 Do not mention set_default_param_value
4411 and set_param_value.
4412 * doc/tm.texi: Likewise.
4413
4414 2019-11-12 Martin Liska <mliska@suse.cz>
4415
4416 * common.opt: Remove param_values.
4417 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4418 Remove finalize_options_struct.
4419 * gcc.c (driver::decode_argv): Do not call global_init_params
4420 and finish_params.
4421 (driver::finalize): Do not call params_c_finalize
4422 and finalize_options_struct.
4423 * opt-suggestions.c (option_proposer::get_completions): Remove
4424 special casing of params.
4425 (option_proposer::find_param_completions): Remove.
4426 (test_completion_partial_match): Update expected output.
4427 * opt-suggestions.h: Remove find_param_completions.
4428 * opts-common.c (add_misspelling_candidates): Add
4429 --param with a space.
4430 * opts.c (handle_param): Remove.
4431 (init_options_struct):. Remove init_options_struct and
4432 similar calls.
4433 (finalize_options_struct): Remove.
4434 (common_handle_option): Use SET_OPTION_IF_UNSET.
4435 * opts.h (finalize_options_struct): Remove.
4436 * toplev.c (general_init): Do not call global_init_params.
4437 (toplev::finalize): Do not call params_c_finalize and
4438 finalize_options_struct.
4439
4440 2019-11-12 Martin Liska <mliska@suse.cz>
4441
4442 * Makefile.in: Remove PARAMS_H and params.list
4443 and params.options.
4444 * params-enum.h: Remove.
4445 * params-list.h: Remove.
4446 * params-options.h: Remove.
4447 * params.c: Remove.
4448 * params.def: Remove.
4449 * params.h: Remove.
4450 * asan.c: Do not include params.h.
4451 * auto-profile.c: Likewise.
4452 * bb-reorder.c: Likewise.
4453 * builtins.c: Likewise.
4454 * cfgcleanup.c: Likewise.
4455 * cfgexpand.c: Likewise.
4456 * cfgloopanal.c: Likewise.
4457 * cgraph.c: Likewise.
4458 * combine.c: Likewise.
4459 * common/config/aarch64/aarch64-common.c: Likewise.
4460 * common/config/gcn/gcn-common.c: Likewise.
4461 * common/config/ia64/ia64-common.c: Likewise.
4462 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4463 * common/config/rs6000/rs6000-common.c: Likewise.
4464 * common/config/sh/sh-common.c: Likewise.
4465 * config/aarch64/aarch64.c: Likewise.
4466 * config/alpha/alpha.c: Likewise.
4467 * config/arm/arm.c: Likewise.
4468 * config/avr/avr.c: Likewise.
4469 * config/csky/csky.c: Likewise.
4470 * config/i386/i386-builtins.c: Likewise.
4471 * config/i386/i386-expand.c: Likewise.
4472 * config/i386/i386-features.c: Likewise.
4473 * config/i386/i386-options.c: Likewise.
4474 * config/i386/i386.c: Likewise.
4475 * config/ia64/ia64.c: Likewise.
4476 * config/rs6000/rs6000-logue.c: Likewise.
4477 * config/rs6000/rs6000.c: Likewise.
4478 * config/s390/s390.c: Likewise.
4479 * config/sparc/sparc.c: Likewise.
4480 * config/visium/visium.c: Likewise.
4481 * coverage.c: Likewise.
4482 * cprop.c: Likewise.
4483 * cse.c: Likewise.
4484 * cselib.c: Likewise.
4485 * dse.c: Likewise.
4486 * emit-rtl.c: Likewise.
4487 * explow.c: Likewise.
4488 * final.c: Likewise.
4489 * fold-const.c: Likewise.
4490 * gcc.c: Likewise.
4491 * gcse.c: Likewise.
4492 * ggc-common.c: Likewise.
4493 * ggc-page.c: Likewise.
4494 * gimple-loop-interchange.cc: Likewise.
4495 * gimple-loop-jam.c: Likewise.
4496 * gimple-loop-versioning.cc: Likewise.
4497 * gimple-ssa-split-paths.c: Likewise.
4498 * gimple-ssa-sprintf.c: Likewise.
4499 * gimple-ssa-store-merging.c: Likewise.
4500 * gimple-ssa-strength-reduction.c: Likewise.
4501 * gimple-ssa-warn-alloca.c: Likewise.
4502 * gimple-ssa-warn-restrict.c: Likewise.
4503 * graphite-isl-ast-to-gimple.c: Likewise.
4504 * graphite-optimize-isl.c: Likewise.
4505 * graphite-scop-detection.c: Likewise.
4506 * graphite-sese-to-poly.c: Likewise.
4507 * graphite.c: Likewise.
4508 * haifa-sched.c: Likewise.
4509 * hsa-gen.c: Likewise.
4510 * ifcvt.c: Likewise.
4511 * ipa-cp.c: Likewise.
4512 * ipa-fnsummary.c: Likewise.
4513 * ipa-inline-analysis.c: Likewise.
4514 * ipa-inline.c: Likewise.
4515 * ipa-polymorphic-call.c: Likewise.
4516 * ipa-profile.c: Likewise.
4517 * ipa-prop.c: Likewise.
4518 * ipa-split.c: Likewise.
4519 * ipa-sra.c: Likewise.
4520 * ira-build.c: Likewise.
4521 * ira-conflicts.c: Likewise.
4522 * loop-doloop.c: Likewise.
4523 * loop-invariant.c: Likewise.
4524 * loop-unroll.c: Likewise.
4525 * lra-assigns.c: Likewise.
4526 * lra-constraints.c: Likewise.
4527 * modulo-sched.c: Likewise.
4528 * opt-suggestions.c: Likewise.
4529 * opts.c: Likewise.
4530 * postreload-gcse.c: Likewise.
4531 * predict.c: Likewise.
4532 * reload.c: Likewise.
4533 * reorg.c: Likewise.
4534 * resource.c: Likewise.
4535 * sanopt.c: Likewise.
4536 * sched-deps.c: Likewise.
4537 * sched-ebb.c: Likewise.
4538 * sched-rgn.c: Likewise.
4539 * sel-sched-ir.c: Likewise.
4540 * sel-sched.c: Likewise.
4541 * shrink-wrap.c: Likewise.
4542 * stmt.c: Likewise.
4543 * targhooks.c: Likewise.
4544 * toplev.c: Likewise.
4545 * tracer.c: Likewise.
4546 * trans-mem.c: Likewise.
4547 * tree-chrec.c: Likewise.
4548 * tree-data-ref.c: Likewise.
4549 * tree-if-conv.c: Likewise.
4550 * tree-inline.c: Likewise.
4551 * tree-loop-distribution.c: Likewise.
4552 * tree-parloops.c: Likewise.
4553 * tree-predcom.c: Likewise.
4554 * tree-profile.c: Likewise.
4555 * tree-scalar-evolution.c: Likewise.
4556 * tree-sra.c: Likewise.
4557 * tree-ssa-ccp.c: Likewise.
4558 * tree-ssa-dom.c: Likewise.
4559 * tree-ssa-dse.c: Likewise.
4560 * tree-ssa-ifcombine.c: Likewise.
4561 * tree-ssa-loop-ch.c: Likewise.
4562 * tree-ssa-loop-im.c: Likewise.
4563 * tree-ssa-loop-ivcanon.c: Likewise.
4564 * tree-ssa-loop-ivopts.c: Likewise.
4565 * tree-ssa-loop-manip.c: Likewise.
4566 * tree-ssa-loop-niter.c: Likewise.
4567 * tree-ssa-loop-prefetch.c: Likewise.
4568 * tree-ssa-loop-unswitch.c: Likewise.
4569 * tree-ssa-math-opts.c: Likewise.
4570 * tree-ssa-phiopt.c: Likewise.
4571 * tree-ssa-pre.c: Likewise.
4572 * tree-ssa-reassoc.c: Likewise.
4573 * tree-ssa-sccvn.c: Likewise.
4574 * tree-ssa-scopedtables.c: Likewise.
4575 * tree-ssa-sink.c: Likewise.
4576 * tree-ssa-strlen.c: Likewise.
4577 * tree-ssa-structalias.c: Likewise.
4578 * tree-ssa-tail-merge.c: Likewise.
4579 * tree-ssa-threadbackward.c: Likewise.
4580 * tree-ssa-threadedge.c: Likewise.
4581 * tree-ssa-uninit.c: Likewise.
4582 * tree-switch-conversion.c: Likewise.
4583 * tree-vect-data-refs.c: Likewise.
4584 * tree-vect-loop.c: Likewise.
4585 * tree-vect-slp.c: Likewise.
4586 * tree-vrp.c: Likewise.
4587 * tree.c: Likewise.
4588 * value-prof.c: Likewise.
4589 * var-tracking.c: Likewise.
4590
4591 2019-11-12 Martin Liska <mliska@suse.cz>
4592
4593 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4594 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4595 macro.
4596 (asan_sanitize_allocas_p): Likewise.
4597 (asan_emit_stack_protection): Likewise.
4598 (asan_protect_global): Likewise.
4599 (instrument_derefs): Likewise.
4600 (instrument_builtin_call): Likewise.
4601 (asan_expand_mark_ifn): Likewise.
4602 * auto-profile.c (auto_profile): Likewise.
4603 * bb-reorder.c (copy_bb_p): Likewise.
4604 (duplicate_computed_gotos): Likewise.
4605 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4606 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4607 (try_crossjump_bb): Likewise.
4608 * cfgexpand.c (defer_stack_allocation): Likewise.
4609 (stack_protect_classify_type): Likewise.
4610 (pass_expand::execute): Likewise.
4611 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4612 (estimate_reg_pressure_cost): Likewise.
4613 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4614 * combine.c (combine_instructions): Likewise.
4615 (record_value_for_reg): Likewise.
4616 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4617 (aarch64_option_default_params): Likewise.
4618 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4619 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4620 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4621 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4622 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4623 (aarch64_allocate_and_probe_stack_space): Likewise.
4624 (aarch64_expand_epilogue): Likewise.
4625 (aarch64_override_options_internal): Likewise.
4626 * config/alpha/alpha.c (alpha_option_override): Likewise.
4627 * config/arm/arm.c (arm_option_override): Likewise.
4628 (arm_valid_target_attribute_p): Likewise.
4629 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4630 * config/i386/i386.c (get_probe_interval): Likewise.
4631 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4632 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4633 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4634 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4635 (get_stack_clash_protection_guard_size): Likewise.
4636 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4637 * config/s390/s390.c (allocate_stack_space): Likewise.
4638 (s390_emit_prologue): Likewise.
4639 (s390_option_override_internal): Likewise.
4640 * config/sparc/sparc.c (sparc_option_override): Likewise.
4641 * config/visium/visium.c (visium_option_override): Likewise.
4642 * coverage.c (get_coverage_counts): Likewise.
4643 (coverage_compute_profile_id): Likewise.
4644 (coverage_begin_function): Likewise.
4645 (coverage_end_function): Likewise.
4646 * cse.c (cse_find_path): Likewise.
4647 (cse_extended_basic_block): Likewise.
4648 (cse_main): Likewise.
4649 * cselib.c (cselib_invalidate_mem): Likewise.
4650 * dse.c (dse_step1): Likewise.
4651 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4652 (get_max_insn_count): Likewise.
4653 (make_debug_insn_raw): Likewise.
4654 (init_emit): Likewise.
4655 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4656 * final.c (compute_alignments): Likewise.
4657 * fold-const.c (fold_range_test): Likewise.
4658 (fold_truth_andor): Likewise.
4659 (tree_single_nonnegative_warnv_p): Likewise.
4660 (integer_valued_real_single_p): Likewise.
4661 * gcse.c (want_to_gcse_p): Likewise.
4662 (prune_insertions_deletions): Likewise.
4663 (hoist_code): Likewise.
4664 (gcse_or_cprop_is_too_expensive): Likewise.
4665 * ggc-common.c: Likewise.
4666 * ggc-page.c (ggc_collect): Likewise.
4667 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4668 (MAX_DATAREFS): Likewise.
4669 (OUTER_STRIDE_RATIO): Likewise.
4670 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4671 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4672 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4673 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4674 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4675 (imm_store_chain_info::output_merged_store): Likewise.
4676 (pass_store_merging::process_store): Likewise.
4677 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4678 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4679 (scop_to_isl_ast): Likewise.
4680 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4681 (optimize_isl): Likewise.
4682 * graphite-scop-detection.c (build_scops): Likewise.
4683 * haifa-sched.c (set_modulo_params): Likewise.
4684 (rank_for_schedule): Likewise.
4685 (model_add_to_worklist): Likewise.
4686 (model_promote_insn): Likewise.
4687 (model_choose_insn): Likewise.
4688 (queue_to_ready): Likewise.
4689 (autopref_multipass_dfa_lookahead_guard): Likewise.
4690 (schedule_block): Likewise.
4691 (sched_init): Likewise.
4692 * hsa-gen.c (init_prologue): Likewise.
4693 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4694 (cond_move_process_if_block): Likewise.
4695 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4696 (merge_agg_lats_step): Likewise.
4697 (devirtualization_time_bonus): Likewise.
4698 (hint_time_bonus): Likewise.
4699 (incorporate_penalties): Likewise.
4700 (good_cloning_opportunity_p): Likewise.
4701 (ipcp_propagate_stage): Likewise.
4702 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4703 (set_switch_stmt_execution_predicate): Likewise.
4704 (analyze_function_body): Likewise.
4705 (compute_fn_summary): Likewise.
4706 * ipa-inline-analysis.c (estimate_growth): Likewise.
4707 * ipa-inline.c (caller_growth_limits): Likewise.
4708 (inline_insns_single): Likewise.
4709 (inline_insns_auto): Likewise.
4710 (can_inline_edge_by_limits_p): Likewise.
4711 (want_early_inline_function_p): Likewise.
4712 (big_speedup_p): Likewise.
4713 (want_inline_small_function_p): Likewise.
4714 (want_inline_self_recursive_call_p): Likewise.
4715 (edge_badness): Likewise.
4716 (recursive_inlining): Likewise.
4717 (compute_max_insns): Likewise.
4718 (early_inliner): Likewise.
4719 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4720 * ipa-profile.c (ipa_profile): Likewise.
4721 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4722 (ipa_analyze_node): Likewise.
4723 (ipcp_transform_function): Likewise.
4724 * ipa-split.c (consider_split): Likewise.
4725 * ipa-sra.c (allocate_access): Likewise.
4726 (process_scan_results): Likewise.
4727 (ipa_sra_summarize_function): Likewise.
4728 (pull_accesses_from_callee): Likewise.
4729 * ira-build.c (loop_compare_func): Likewise.
4730 (mark_loops_for_removal): Likewise.
4731 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4732 * loop-doloop.c (doloop_optimize): Likewise.
4733 * loop-invariant.c (gain_for_invariant): Likewise.
4734 (move_loop_invariants): Likewise.
4735 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4736 (decide_unroll_runtime_iterations): Likewise.
4737 (decide_unroll_stupid): Likewise.
4738 (expand_var_during_unrolling): Likewise.
4739 * lra-assigns.c (spill_for): Likewise.
4740 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4741 * modulo-sched.c (sms_schedule): Likewise.
4742 (DFA_HISTORY): Likewise.
4743 * opts.c (default_options_optimization): Likewise.
4744 (finish_options): Likewise.
4745 (common_handle_option): Likewise.
4746 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4747 (if): Likewise.
4748 * predict.c (get_hot_bb_threshold): Likewise.
4749 (maybe_hot_count_p): Likewise.
4750 (probably_never_executed): Likewise.
4751 (predictable_edge_p): Likewise.
4752 (predict_loops): Likewise.
4753 (expr_expected_value_1): Likewise.
4754 (tree_predict_by_opcode): Likewise.
4755 (handle_missing_profiles): Likewise.
4756 * reload.c (find_equiv_reg): Likewise.
4757 * reorg.c (redundant_insn): Likewise.
4758 * resource.c (mark_target_live_regs): Likewise.
4759 (incr_ticks_for_insn): Likewise.
4760 * sanopt.c (pass_sanopt::execute): Likewise.
4761 * sched-deps.c (sched_analyze_1): Likewise.
4762 (sched_analyze_2): Likewise.
4763 (sched_analyze_insn): Likewise.
4764 (deps_analyze_insn): Likewise.
4765 * sched-ebb.c (schedule_ebbs): Likewise.
4766 * sched-rgn.c (find_single_block_region): Likewise.
4767 (too_large): Likewise.
4768 (haifa_find_rgns): Likewise.
4769 (extend_rgns): Likewise.
4770 (new_ready): Likewise.
4771 (schedule_region): Likewise.
4772 (sched_rgn_init): Likewise.
4773 * sel-sched-ir.c (make_region_from_loop): Likewise.
4774 * sel-sched-ir.h (MAX_WS): Likewise.
4775 * sel-sched.c (process_pipelined_exprs): Likewise.
4776 (sel_setup_region_sched_flags): Likewise.
4777 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4778 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4779 * toplev.c (print_version): Likewise.
4780 (process_options): Likewise.
4781 * tracer.c (tail_duplicate): Likewise.
4782 * trans-mem.c (tm_log_add): Likewise.
4783 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4784 * tree-data-ref.c (split_constant_offset): Likewise.
4785 (compute_all_dependences): Likewise.
4786 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4787 * tree-inline.c (remap_gimple_stmt): Likewise.
4788 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4789 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4790 (create_parallel_loop): Likewise.
4791 * tree-predcom.c (determine_unroll_factor): Likewise.
4792 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4793 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4794 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4795 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4796 (dse_optimize_redundant_stores): Likewise.
4797 (dse_classify_store): Likewise.
4798 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4799 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4800 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4801 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4802 (try_peel_loop): Likewise.
4803 (tree_unroll_loops_completely): Likewise.
4804 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4805 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4806 (MAX_CONSIDERED_GROUPS): Likewise.
4807 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4808 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4809 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4810 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4811 (L1_CACHE_SIZE_BYTES): Likewise.
4812 (L2_CACHE_SIZE_BYTES): Likewise.
4813 (should_issue_prefetch_p): Likewise.
4814 (schedule_prefetches): Likewise.
4815 (determine_unroll_factor): Likewise.
4816 (volume_of_references): Likewise.
4817 (add_subscript_strides): Likewise.
4818 (self_reuse_distance): Likewise.
4819 (mem_ref_count_reasonable_p): Likewise.
4820 (insn_to_prefetch_ratio_too_small_p): Likewise.
4821 (loop_prefetch_arrays): Likewise.
4822 (tree_ssa_prefetch_arrays): Likewise.
4823 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4824 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4825 (convert_mult_to_fma): Likewise.
4826 (math_opts_dom_walker::after_dom_children): Likewise.
4827 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4828 (hoist_adjacent_loads): Likewise.
4829 (gate_hoist_loads): Likewise.
4830 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4831 (compute_partial_antic_aux): Likewise.
4832 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4833 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4834 (vn_reference_lookup): Likewise.
4835 (do_rpo_vn): Likewise.
4836 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4837 * tree-ssa-sink.c (select_best_block): Likewise.
4838 * tree-ssa-strlen.c (new_stridx): Likewise.
4839 (new_addr_stridx): Likewise.
4840 (get_range_strlen_dynamic): Likewise.
4841 (class ssa_name_limit_t): Likewise.
4842 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4843 (create_variable_info_for_1): Likewise.
4844 (init_alias_vars): Likewise.
4845 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4846 (tail_merge_optimize): Likewise.
4847 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4848 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4849 (thread_jumps::find_jump_threads_backwards): Likewise.
4850 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4851 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4852 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4853 (jump_table_cluster::can_be_handled): Likewise.
4854 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4855 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4856 (param_switch_conversion_branch_ratio): Likewise.
4857 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4858 (vect_enhance_data_refs_alignment): Likewise.
4859 (vect_prune_runtime_alias_test_list): Likewise.
4860 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4861 (vect_get_datarefs_in_loop): Likewise.
4862 (vect_analyze_loop): Likewise.
4863 * tree-vect-slp.c (vect_slp_bb): Likewise.
4864 * tree-vectorizer.h: Likewise.
4865 * tree-vrp.c (find_switch_asserts): Likewise.
4866 (vrp_prop::check_mem_ref): Likewise.
4867 * tree.c (wide_int_to_tree_1): Likewise.
4868 (cache_integer_cst): Likewise.
4869 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4870 (reverse_op): Likewise.
4871 (vt_find_locations): Likewise.
4872
4873 2019-11-12 Martin Liska <mliska@suse.cz>
4874
4875 * Makefile.in: Include params.opt.
4876 * flag-types.h (enum parloops_schedule_type): Add
4877 parloops_schedule_type used in params.opt.
4878 * params.opt: New file.
4879
4880 2019-11-12 Martin Liska <mliska@suse.cz>
4881
4882 * common.opt: Remove --param and --param= options.
4883 * opt-functions.awk: Mark CL_PARAMS for options
4884 that have Param keyword.
4885 * opts-common.c (decode_cmdline_options_to_array):
4886 Replace --param key=value with --param=key=value.
4887 * opts.c (print_filtered_help): Remove special
4888 printing of params.
4889 (print_specific_help): Update title for params.
4890 (common_handle_option): Do not handle OPT__param.
4891 opts.h (SET_OPTION_IF_UNSET): New macro.
4892 * doc/options.texi: Document Param keyword.
4893
4894 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4895 Frederik Harwath <frederik@codesourcery.com>
4896 Thomas Schwinge <thomas@codesourcery.com>
4897
4898 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4899 enumeration constant.
4900 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4901 (is_gimple_omp_offloaded): Likewise.
4902 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4903 constant. Adjust the value of ORT_NONE accordingly.
4904 (is_gimple_stmt): Handle OACC_SERIAL.
4905 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4906 (gomp_needs_data_present): Likewise.
4907 (gimplify_adjust_omp_clauses): Likewise.
4908 (gimplify_omp_workshare): Handle OACC_SERIAL.
4909 (gimplify_expr): Likewise.
4910 * omp-expand.c (expand_omp_target):
4911 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4912 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4913 * omp-low.c (is_oacc_parallel): Rename function to...
4914 (is_oacc_parallel_or_serial): ... this.
4915 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4916 (scan_sharing_clauses): Adjust accordingly.
4917 (scan_omp_for): Likewise.
4918 (lower_oacc_head_mark): Likewise.
4919 (convert_from_firstprivate_int): Likewise.
4920 (lower_omp_target): Likewise.
4921 (check_omp_nesting_restrictions): Handle
4922 GF_OMP_TARGET_KIND_OACC_SERIAL.
4923 (lower_oacc_reductions): Likewise.
4924 (lower_omp_target): Likewise.
4925 * tree.def (OACC_SERIAL): New tree code.
4926 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4927
4928 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4929
4930 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4931
4932 PR target/92449
4933 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4934 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4935
4936 PR tree-optimization/92452
4937 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4938 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4939 MINUS_EXPR on it.
4940
4941 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4942
4943 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4944 safelen with 0.
4945
4946 2019-11-12 Alan Modra <amodra@gmail.com>
4947
4948 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4949 element of unspec vec.
4950 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4951 PC-relative TLS.
4952 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4953 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4954 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4955 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4956
4957 2019-11-12 Alan Modra <amodra@gmail.com>
4958
4959 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4960 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4961 (IS_NOMARK_TLSGETADDR): Likewise.
4962 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4963 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4964 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4965 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4966 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4967 (rs6000_indirect_call_template_1): Likewise.
4968 (rs6000_pltseq_template): Likewise.
4969 (rs6000_opt_vars): Remove "tls-markers" entry.
4970 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4971 with TARGET_ELF.
4972 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4973 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4974 (pltseq_plt_pcrel<mode>): Likewise.
4975 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4976 (call_value_local64): Likewise.
4977 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4978 output and length attribute sub-expression.
4979 (call_value_nonlocal_sysv<mode>),
4980 (call_value_nonlocal_sysv_secure<mode>),
4981 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4982 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4983 (call_value_indirect_pcrel<mode>): Likewise.
4984 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4985 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4986 * configure: Regenerate.
4987 * config.in: Regenerate.
4988
4989 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4990
4991 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4992 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4993 address being a prefixed load/store.
4994 (stack_protect_testdi): Deal with either address being a prefixed
4995 load.
4996
4997 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4998
4999 PR bootstrap/92433
5000 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
5001 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
5002 std::swap.
5003
5004 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
5005
5006 PR tree-optimization/92420
5007 * tree-vect-stmts.c (get_negative_load_store_type): Move further
5008 up file.
5009 (get_group_load_store_type): Use it for reversed SLP accesses.
5010
5011 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
5012
5013 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
5014 summary.
5015 (ipcp_transformation_t::duplicate): Break out from ...
5016 (ipa_node_params_t::duplicate): ... here; add copying of agg
5017 replacements.
5018 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
5019 (ipcp_transformation_t): Add duplicate.
5020
5021 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
5022
5023 PR fortran/91828
5024 * doc/install.texi: Document that the minimum MPFR version is
5025 3.1.0.
5026
5027 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5028
5029 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
5030 use new register constraint letters.
5031
5032 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
5033
5034 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
5035 as well, if interesting recover the symbol and re-legitimize the
5036 pic address.
5037
5038 2019-11-11 Martin Liska <mliska@suse.cz>
5039
5040 * dbgcnt.def (DEBUG_COUNTER): Sort counters
5041 alphabetically.
5042
5043 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
5044
5045 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
5046 account when checking if there are enough iterations to vectorize
5047 epilogue.
5048
5049 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
5050 Kwok Cheung Yeung <kcy@codesourcery.com>
5051
5052 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
5053 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
5054 (LANG_HOOKS_DECLS): Rename also here.
5055 * langhooks.h (lang_hooks_for_decls): Rename
5056 omp_is_optional_argument to omp_check_optional_argument; take
5057 additional bool argument.
5058 * omp-general.h (omp_check_optional_argument): Likewise.
5059 * omp-general.h (omp_check_optional_argument): Likewise.
5060 * omp-low.c (lower_omp_target): Update calls; handle absent
5061 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
5062
5063 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
5064
5065 PR target/87833
5066 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
5067 -fPIC and -shared the last to create offload image.
5068
5069 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
5070
5071 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
5072 of 'offset'.
5073
5074 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
5075 (config.status): Use/depend on it.
5076 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
5077 * configure: Regenerate.
5078
5079 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
5080
5081 PR tree-optimization/88760
5082 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
5083 * common/config/rs6000/rs6000-common.c
5084 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
5085 Turn on -funroll-loops and -munroll-only-small-loops.
5086 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
5087 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
5088 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
5089 Turn off -munroll-only-small-loops for explicit -funroll-loops.
5090 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
5091 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
5092
5093 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
5094
5095 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5096 Make scalar_load, vector_load, unaligned_load and
5097 vector_gather_load cost more to conform hardware latency and
5098 insn cost settings.
5099
5100 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
5101
5102 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
5103 (MACHO_SYMBOL_LINKER_VIS_P): New.
5104
5105 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
5106
5107 * lra-spills.c (assign_spill_hard_regs): Do not spill into
5108 registers in eliminable_regset.
5109
5110 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5111
5112 * ipa-inline.c (compute_uninlined_call_time,
5113 compute_inlined_call_time): Take edge frequency as
5114 parameter rather than computing it by itself.
5115 (big_speedup_p, edge_badness): Manually CSE sreal
5116 frequency calculations.
5117
5118 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5119
5120 * profile-count.c (profile_count::to_sreal_scale): Short circuit
5121 case where profiles are same.
5122
5123 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5124
5125 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
5126
5127 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
5128
5129 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
5130 args summaries of inlined edge unless it holds info about
5131 described reference.
5132
5133 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5134
5135 * config/rs6000/rs6000.md (CC_any): New mode iterator.
5136 (*movcc_internal1): Rename to...
5137 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
5138
5139 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5140
5141 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5142 (cgraph_node::create_virtual_clone): Copy it.
5143 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5144 summaries.
5145 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5146 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5147 is disabled.
5148 (propagate_constants_across_call): If callee is not analyzed, give up.
5149 (propagate_constants_topo): Lower to bottom latties of all callees of
5150 functions with ipa-cp disabled.
5151 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5152 (cgraph_edge_brings_value_p): Check for availability first.
5153 (create_specialized_node): Set ipcp_clone.
5154 (ipcp_store_bits_results): Check that info is present.
5155 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5156 thunks.
5157 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5158 conservative when callee summary is missing.
5159 (remap_edge_summaries): Lookup call summary only when needed.
5160 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5161 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5162 Use get_create.
5163 (ipa_analyze_node): Use get_create.
5164 (propagate_controlled_uses): Do not propagate when function is not
5165 analyzed.
5166 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5167 (ipa_read_node_info): Use get_create.
5168 * ipa-prop.h (IPA_NODE_REF): Use get.
5169 (IPA_NODE_REF_GET_CREATE): New.
5170
5171 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5172
5173 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5174 on function symbol.
5175
5176 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5177
5178 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5179 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5180 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5181 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5182
5183 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5184
5185 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5186 capping the growth cumulated.
5187 (offline_size): Break out from ...
5188 (estimate_growth): ... here.
5189 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5190 parameters.
5191 (growth_likely_positive): Turn to ...
5192 (growth_positive_p): Re-implement.
5193 * ipa-inline.h (growth_likely_positive): Remove.
5194 (growth_positive_p): Declare.
5195 * ipa-inline.c (want_inline_small_function_p): Use
5196 growth_positive_p.
5197 (want_inline_function_to_all_callers_p): Likewise.
5198
5199 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5200
5201 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5202 calculation of min_size.
5203 (ipa_update_overall_fn_summary): Likewise.
5204
5205 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5206
5207 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5208 estimate_edge_devirt_benefit when not computing hints;
5209 do not compute time when not asked for.
5210 (estimate_calls_size_and_time): Pass NULL hints and time when
5211 these are not computed; do not evaluate hint predicates when these are
5212 not computed.
5213 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5214 frequency.
5215
5216 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5217
5218 PR tree-optimization/92401
5219 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5220 if res_op->code is an expression with code length 1.
5221 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5222 if res_op->code is an expression with code length 2.
5223 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5224 if res_op->code is an expression with code length 3.
5225
5226 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5227
5228 * config/darwin.c (machopic_mcount_stub_name): Validate the
5229 symbol stub name when it is created.
5230 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5231 stub validation.
5232
5233 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5234
5235 * symtab.c: Fix comment typos.
5236 * cgraphunit.c: Likewise.
5237 * cgraph.h: Likewise.
5238 * cgraphclones.c: Likewise.
5239 * cgraph.c: Likewise.
5240 * varpool.c: Likewise.
5241 * tree-ssa-strlen.c: Likewise.
5242 * ipa-sra.c: Likewise.
5243 (scan_expr_access, check_all_callers_for_issues): Fix typo
5244 in a dump message.
5245
5246 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5247
5248 * config/darwin-protos.h: Add include quard.
5249
5250 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5251
5252 * range-op.h (range_operator::fold_range): Return result in a
5253 reference parameter instead of by value.
5254 (range_operator::wi_fold): Same.
5255 * range-op.cc (range_operator::wi_fold): Return result in a reference
5256 parameter instead of by value.
5257 (range_operator::fold_range): Same.
5258 (value_range_from_overflowed_bounds): Same.
5259 (value_range_with_overflow): Same
5260 (create_possibly_reversed_range): Same.
5261 (operator_equal::fold_range): Same.
5262 (operator_not_equal::fold_range): Same.
5263 (operator_lt::fold_range): Same.
5264 (operator_le::fold_range): Same.
5265 (operator_gt::fold_range): Same.
5266 (operator_ge::fold_range): Same.
5267 (operator_plus::wi_fold): Same.
5268 (operator_plus::op1_range): Change call to fold_range.
5269 (operator_plus::op2_range): Change call to fold_range.
5270 (operator_minus::wi_fold): Return result via reference parameter.
5271 (operator_minus::op1_range): Change call to fold_range.
5272 (operator_minus::op2_range): Change call to fold_range.
5273 (operator_min::wi_fold): Return result via reference parameter.
5274 (operator_max::wi_fold): Same.
5275 (cross_product_operator::wi_cross_product): Same.
5276 (operator_mult::wi_fold): Same.
5277 (operator_div::wi_fold): Same.
5278 (operator_div op_floor_div): Fix whitespace.
5279 (operator_exact_divide::op1_range): Change call to fold_range.
5280 (operator_lshift::fold_range): Return result via reference parameter.
5281 (operator_lshift::wi_fold): Same.
5282 (operator_rshift::fold_range): Same.
5283 (operator_rshift::wi_fold): Same.
5284 (operator_cast::fold_range): Same.
5285 (operator_cast::op1_range): Change calls to fold_range.
5286 (operator_logical_and::fold_range): Return result via reference.
5287 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5288 (operator_bitwise_and::wi_fold): Return result via reference.
5289 (operator_logical_or::fold_range): Same.
5290 (operator_bitwise_or::wi_fold): Same.
5291 (operator_bitwise_xor::wi_fold): Same.
5292 (operator_trunc_mod::wi_fold): Same.
5293 (operator_logical_not::fold_range): Same.
5294 (operator_bitwise_not::fold_range): Same.
5295 (operator_bitwise_not::op1_range): Change call to fold_range.
5296 (operator_cst::fold_range): Return result via reference.
5297 (operator_identity::fold_range): Same.
5298 (operator_abs::wi_fold): Same.
5299 (operator_absu::wi_fold): Same.
5300 (operator_negate::fold_range): Same.
5301 (operator_negate::op1_range): Change call to fold_range.
5302 (operator_addr_expr::fold_range): Return result via reference.
5303 (operator_addr_expr::op1_range): Change call to fold_range.
5304 (operator_pointer_plus::wi_fold): Return result via reference.
5305 (operator_pointer_min_max::wi_fold): Same.
5306 (operator_pointer_and::wi_fold): Same.
5307 (operator_pointer_or::wi_fold): Same.
5308 (range_op_handler): Change call to fold_range.
5309 (range_cast): Same.
5310 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5311 fold_range.
5312 (range_fold_unary_symbolics_p): Same.
5313 (range_fold_binary_expr): Same.
5314 (range_fold_unary_expr): Same.
5315
5316 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5317
5318 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5319 vector type as an argument rather than reading it from the
5320 stmt_vec_info.
5321 (vect_create_epilog_for_reduction): Update accordingly.
5322 (vectorizable_reduction): Likewise.
5323 (vect_transform_cycle_phi): Likewise.
5324
5325 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5326
5327 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5328 the comparison codes that make sense for the mode used, and only the
5329 codes that can be done with a single branch instruction.
5330
5331 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5332
5333 PR tree-optimization/92351
5334 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5335 peeling the main loop for alignment, make sure to set the misalignment
5336 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5337
5338 2019-11-08 Richard Biener <rguenther@suse.de>
5339
5340 * dbgcnt.def (ivopts_loop): Add.
5341 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5342 ivopts_loop before optimizing a loop.
5343
5344 2019-11-08 Richard Biener <rguenther@suse.de>
5345
5346 PR ipa/92409
5347 * tree-inline.c (declare_return_variable): Properly handle
5348 type mismatches for the return slot.
5349
5350 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5351
5352 PR target/92095
5353 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5354 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5355 change.
5356 (got_helper_needed): New static variable.
5357 (output_load_pcrel_sym): New function.
5358 (get_pc_thunk_name): Remove after inlining...
5359 (load_got_register): ...here. Rework the initialization of the GOT
5360 register and of the GOT helper.
5361 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5362 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5363 helper must be emitted. Use output_asm_insn instead of fprintf.
5364 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5365 if optimization is enabled.
5366 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5367 by calling output_load_pcrel_sym.
5368
5369 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5370
5371 * tree-sra.c (create_access): Delay disqualifying the base
5372 for poly_int values until we know we have a base.
5373
5374 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5375
5376 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5377 for loops with SIMDUID set. Enable epilogue vectorization for loops
5378 with SIMDLEN set after finding a main loop with a VF that matches it.
5379
5380 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5381
5382 PR target/92038
5383 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5384 value only, return non-NULL if there is a single non-clobber
5385 constituent store even if there are constituent clobbers and return
5386 one of clobber constituent stores if all constituent stores are
5387 clobbers.
5388 (split_group): Handle clobbers.
5389 (imm_store_chain_info::output_merged_store): When computing
5390 bzero_first, look after all clobbers at the start. Don't count
5391 clobber stmts in orig_num_stmts, except if the first orig store is
5392 a clobber covering the whole area and split_stores cover the whole
5393 area, consider equal number of stmts ok. Punt if split_stores
5394 contains only ->orig stores and their number plus number of original
5395 clobbers is equal to original number of stmts. For ->orig, look past
5396 clobbers in the constituent stores.
5397 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5398 stmts.
5399 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5400 rhs.
5401 (store_valid_for_store_merging_p): Allow clobber stmts.
5402 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5403
5404 PR c++/92384
5405 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5406 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5407 slot.
5408 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5409 force creation of a unique data.stack_parm slot.
5410
5411 2019-11-08 Richard Biener <rguenther@suse.de>
5412
5413 * genmatch.c (expr::gen_transform): Use the resimplify
5414 member function instead of hard-coding the gimple_resimplifyN variant.
5415 (dt_simplify::gen_1): Likewise.
5416
5417 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5418
5419 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5420 POLY_INT_CST.
5421
5422 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5423
5424 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5425 instead of INTEGER_CST.
5426
5427 2019-11-08 Richard Biener <rguenther@suse.de>
5428
5429 PR tree-optimization/92324
5430 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5431 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5432 sign-conversions as necessary.
5433 (vectorizable_reduction): Reject conversions in the chain
5434 that are not sign-conversions, base analysis on a non-converting
5435 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5436 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5437 for debug stmts.
5438 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5439 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5440
5441 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5442
5443 PR target/92055
5444 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5445 Fix a missing '-' when displaying these options in the
5446 help screen.
5447
5448 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5449
5450 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5451
5452 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5453
5454 * config/aarch64/aarch64-builtins.c
5455 (aarch64_builtin_vectorized_function): Remove bswap handling.
5456
5457 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5458
5459 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5460 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5461 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5462 Treat the vector types as indivisible.
5463
5464 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5465
5466 * optabs.def (gather_load_optab, mask_gather_load_optab)
5467 (scatter_store_optab, mask_scatter_store_optab): Turn into
5468 conversion optabs, with the offset mode given explicitly.
5469 * doc/md.texi: Update accordingly.
5470 * config/aarch64/aarch64-sve-builtins-base.cc
5471 (svld1_gather_impl::expand): Likewise.
5472 (svst1_scatter_impl::expand): Likewise.
5473 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5474 (expand_scatter_store_optab_fn): Likewise.
5475 (direct_gather_load_optab_supported_p): Likewise.
5476 (direct_scatter_store_optab_supported_p): Likewise.
5477 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5478 to be argument 4.
5479 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5480 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5481 argument with the offset vector type. Require the two vector
5482 types to have the same number of elements but allow their element
5483 sizes to be different. Treat the optabs as conversion optabs.
5484 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5485 prototype accordingly.
5486 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5487 (supports_vec_convert_optab_p): ...this new function.
5488 (supports_vec_gather_load_p): Update accordingly.
5489 (supports_vec_scatter_store_p): Likewise.
5490 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5491 Replace the offset sign and bits parameters with a scalar type tree.
5492 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5493 Pass back the offset vector type instead of the scalar element type.
5494 Allow the offset to be wider than the memory elements. Search for
5495 an offset type that the target supports, stopping once we've
5496 reached the maximum of the element size and pointer size.
5497 Update call to internal_gather_scatter_fn_supported_p.
5498 (vect_check_gather_scatter): Update calls accordingly.
5499 When testing a new scale before knowing the final offset type,
5500 check whether the scale is supported for any signed or unsigned
5501 offset type. Check whether the target supports the source and
5502 target types of a conversion before deciding whether to look
5503 through the conversion. Record the chosen offset_vectype.
5504 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5505 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5506 directly from the gs_info's offset_vectype instead. Pass a zero
5507 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5508 * tree-vect-stmts.c (check_load_store_masking): Update call to
5509 internal_gather_scatter_fn_supported_p, passing the offset vector
5510 type recorded in the gs_info.
5511 (vect_truncate_gather_scatter_offset): Update call to
5512 vect_check_gather_scatter, leaving it to search for a valid
5513 offset vector type.
5514 (vect_use_strided_gather_scatters_p): Convert the offset to the
5515 element type of the gs_info's offset_vectype.
5516 (vect_get_gather_scatter_ops): Get the offset vector type directly
5517 from the gs_info.
5518 (vect_get_strided_load_store_ops): Likewise.
5519 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5520 and IFN_MASK_GATHER_LOAD.
5521 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5522 (gather_load<mode><v_int_equiv>): ...this.
5523 (mask_gather_load<mode>): Rename to...
5524 (mask_gather_load<mode><v_int_equiv>): ...this.
5525 (scatter_store<mode>): Rename to...
5526 (scatter_store<mode><v_int_equiv>): ...this.
5527 (mask_scatter_store<mode>): Rename to...
5528 (mask_scatter_store<mode><v_int_equiv>): ...this.
5529
5530 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5531
5532 PR target/92132
5533 * config/rs6000/predicates.md
5534 (signed_or_equality_comparison_operator): New predicate.
5535 (unsigned_or_equality_comparison_operator): Likewise.
5536 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5537 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5538 * config/rs6000/vector.md
5539 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5540 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5541 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5542 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5543 vector modes and same-size integer vector modes.
5544 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5545 (vector_lt<mode> for VEC_F): New expand.
5546 (vector_le<mode> for VEC_F): Likewise.
5547 (vector_ne<mode> for VEC_F): Likewise.
5548 (vector_unge<mode> for VEC_F): Likewise.
5549 (vector_ungt<mode> for VEC_F): Likewise.
5550 (vector_unle<mode> for VEC_F): Likewise.
5551 (vector_unlt<mode> for VEC_F): Likewise.
5552 (vector_uneq<mode>): Expose name.
5553 (vector_ltgt<mode>): Likewise.
5554 (vector_unordered<mode>): Likewise.
5555 (vector_ordered<mode>): Likewise.
5556
5557 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5558
5559 PR target/92295
5560 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5561 Enhance ix86_expand_vector_init_concat.
5562
5563 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5564
5565 * doc/invoke.texi (-Wold-style-definition): Document () not being
5566 considered an old-style definition for C2x.
5567
5568 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5569
5570 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5571 Enhance comment.
5572 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5573 insn patterns using ldcw instruction.
5574 (memory_barrier): Remove insn pattern using sync instruction.
5575 * config/pa/pa.opt (coherent-ldcw): New option.
5576 (ordered): New option.
5577
5578 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5579
5580 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5581 valid conditions.
5582
5583 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5584
5585 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5586 typo - mistmatch -> mismatch.
5587 * ipa-profile.c (ipa_profile): Likewise.
5588 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5589 - mistmatch -> mismatch.
5590
5591 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5592
5593 * simplify-rtx.c (comparison_to_mask): New function.
5594 (mask_to_comparison): New function.
5595 (simplify_logical_relational_operation): New function.
5596 (simplify_binary_operation_1): Call
5597 simplify_logical_relational_operation.
5598
5599 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5600
5601 PR other/92090
5602 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5603 modes for integer constants.
5604
5605 2019-11-07 Jan Hubicka <jh@suse.cz>
5606
5607 PR ipa/92406
5608 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5609 summary.
5610
5611 2019-11-07 Jan Hubicka <jh@suse.cz>
5612
5613 * optc-save-gen.awk: Generate cl_target_option_free
5614 and cl_optimization_option_free.
5615 * opth-en.awk: Declare cl_target_option_free
5616 and cl_optimization_option_free.
5617 * tree.c (free_node): Use it.
5618
5619 2019-11-06 Jan Hubicka <jh@suse.cz>
5620
5621 * lto-streamer-in.c: Include alloc-pool.h.
5622 (freeing_string_slot_hasher): Remove.
5623 (string_slot_allocator): New object allocator.
5624 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5625 (file_name_obstack): New obstack.
5626 (canon_file_name): Allocate in obstack and allocator.
5627 (lto_reader_init): Initialize obstack and allocator.
5628 (lto_free_file_name_hash): New function.
5629 * lto-streamer.h (lto_free_file_name_hash): New.
5630
5631 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5632
5633 PR tree-optimization/89134
5634 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5635 * params.def: Add min-loop-cond-split-prob.
5636 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5637 outside checks on loop into the function.
5638 (split_info): New class.
5639 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5640 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5641 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5642 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5643 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5644 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5645 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5646 (split_loop_on_cond): Likewise.
5647 (tree_ssa_split_loops): Add loop split on conditional statement.
5648
5649 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5650
5651 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5652 pattern.
5653
5654 2019-11-07 Richard Biener <rguenther@suse.de>
5655
5656 PR tree-optimization/92405
5657 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5658 restrict lane-reducing ops to single stmt chains.
5659
5660 2019-11-07 Martin Jambor <mjambor@suse.cz>
5661
5662 PR lto/70929
5663 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5664 * cgraph.h (gimple_check_call_matching_types): Remove
5665 * cgraph.c (gimple_check_call_args): Likewise.
5666 (gimple_check_call_matching_types): Likewise.
5667 (symbol_table::create_edge): Do not call
5668 gimple_check_call_matching_types.
5669 (cgraph_edge::make_direct): Likewise.
5670 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5671 * value-prof.h (check_ic_target): Remove.
5672 * value-prof.c (check_ic_target): Remove.
5673 (gimple_ic_transform): Do nat call check_ic_target.
5674 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5675 (afdo_indirect_call): Likewise.
5676 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5677 gimple_check_call_matching_types.
5678 * ipa-inline.c (early_inliner): Likewise.
5679
5680 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5681
5682 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5683 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5684 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5685 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5686 * config/arm/iterators.md (USSAT16): New int_iterator.
5687 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5688 (sup): Likewise.
5689 * config/arm/predicates.md (ssat16_imm): New predicate.
5690 (usat16_imm): Likewise.
5691 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5692
5693 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5694
5695 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5696 New define_insns.
5697 (arm_<simd32_op>): New define_expands.
5698 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5699 __smuad, __smuadx): Define.
5700 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5701 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5702 (SIMD32_BINOP_Q): Likewise.
5703 (simd32_op): Handle the above.
5704 * config/arm/unspecs.md: Define unspecs for the above.
5705
5706 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5707
5708 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5709 * config/arm/arm.md (APSRGE_REGNUM): Define.
5710 (arm_<simd32_op>): New define_insn.
5711 (arm_sel): Likewise.
5712 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5713 (CALL_USED_REGISTERS): Likewise.
5714 (REG_ALLOC_ORDER): Likewise.
5715 (FIRST_PSEUDO_REGISTER): Update value.
5716 (ARM_GE_BITS_READ): Define.
5717 * config/arm/arm.c (arm_conditional_register_usage): Clear
5718 APSRGE_REGNUM from operand_reg_set.
5719 (arm_ge_bits_access): Define.
5720 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5721 ARM_BUIILTIN_sel.
5722 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5723 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5724 FAIL if ARM_GE_BITS_READ.
5725 (*arm_add<mode>3): New define_insn.
5726 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5727 (*arm_sub<mode>3): New define_insn.
5728 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5729 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5730 __usub16): Define.
5731 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5732 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5733 (simd32_op): Handle the above.
5734 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5735 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5736 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5737 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5738
5739 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5740
5741 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5742 (arm_smlabb): New define_expand.
5743 (*maddhisi4tb): Rename to...
5744 (maddhisi4tb): ... This.
5745 (*maddhisi4tt): Rename to...
5746 (maddhisi4tt): ... This.
5747 (arm_smlatb_setq): New define_insn.
5748 (arm_smlatb): New define_expand.
5749 (arm_smlatt_setq): New define_insn.
5750 (arm_smlatt): New define_expand.
5751 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5752 (arm_<smlaw_op>): New define_expand.
5753 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5754 __smlawb, __smlawt): Define.
5755 * config/arm_acle_builtins.def: Define builtins for the above.
5756 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5757 (slaw_op): New int_attribute.
5758 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5759
5760 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5761
5762 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5763 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5764 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5765 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5766 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5767 (ss_op): New code_attr.
5768
5769 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5770
5771 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5772 * config/arm/arm.md (APSRQ_REGNUM): Define.
5773 (add_setq): New define_subst.
5774 (add_clobber_q_name): New define_subst_attr.
5775 (add_clobber_q_pred): Likewise.
5776 (maddhisi4): Change to define_expand. Split into mult and add if
5777 ARM_Q_BIT_READ.
5778 (arm_maddhisi4): New define_insn.
5779 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5780 (*maddhisi4tt): Likewise.
5781 (arm_ssat): New define_expand.
5782 (arm_usat): Likewise.
5783 (arm_get_apsr): New define_insn.
5784 (arm_set_apsr): Likewise.
5785 (arm_saturation_occurred): New define_expand.
5786 (arm_set_saturation): Likewise.
5787 (*satsi_<SAT:code>): Rename to...
5788 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5789 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5790 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5791 (CALL_USED_REGISTERS): Mark apsrq.
5792 (FIRST_PSEUDO_REGISTER): Update value.
5793 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5794 (machine_function): Add q_bit_access.
5795 (ARM_Q_BIT_READ): Define.
5796 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5797 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5798 operand_reg_set.
5799 (arm_q_bit_access): Define.
5800 * config/arm/arm-builtins.c: Include stringpool.h.
5801 (arm_sat_binop_imm_qualifiers,
5802 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5803 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5804 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5805 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5806 SET_SAT_QUALIFIERS): Likewise.
5807 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5808 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5809 Handle 0 argument expander.
5810 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5811 (arm_check_builtin_call): Define.
5812 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5813 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5814 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5815 (arm_q_bit_access): Likewise.
5816 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5817 __saturation_occurred, __set_saturation_occurred): Define.
5818 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5819 saturation_occurred, set_saturation_occurred.
5820 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5821 (UNSPEC_APSR_READ): Likewise.
5822 (VUNSPEC_APSR_WRITE): Likewise.
5823 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5824 (*arm_ssadd<mode>3): New define_insn.
5825 (sssub<mode>3): Convert to define_expand.
5826 (*arm_sssub<mode>3): New define_insn.
5827 (ssmulsa3): Convert to define_expand.
5828 (*arm_ssmulsa3): New define_insn.
5829 (usmulusa3): Convert to define_expand.
5830 (*arm_usmulusa3): New define_insn.
5831 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5832 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5833 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5834
5835 2019-11-07 Martin Liska <mliska@suse.cz>
5836
5837 PR c++/92354
5838 * cgraph.c (delete_function_version): Clear global
5839 variable version_info_node if equal to deleted
5840 function.
5841
5842 2019-11-07 Martin Liska <mliska@suse.cz>
5843
5844 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5845 of CONSTRUCTOR_NO_CLEARING.
5846 (operand_compare::hash_operand): Likewise.
5847
5848 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5849
5850 Support 64-bit double and 64-bit long double configurations.
5851
5852 PR target/92055
5853 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5854 --with-long-double=.
5855 * config/avr/t-multilib: Remove.
5856 * config/avr/t-avr: Output of genmultilib.awk is now fully
5857 dynamically generated and no more part of the repo.
5858 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5859 Pass them down to...
5860 * config/avr/genmultilib.awk: ...here and handle them.
5861 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5862 (-mlong-double=, avr_long_double). New option and var.
5863 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5864 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5865 Set default as requested by --with-double=
5866 (TARGET_HANDLE_OPTION): Define to this...
5867 (avr_handle_option): ...new hook worker.
5868 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5869 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5870 (avr_double_lib): New proto for spec function.
5871 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5872 (DRIVER_SELF_SPECS): Call %:double-lib.
5873 * config/avr/avr.c (avr_option_override): Assert
5874 sizeof(long double) >= sizeof(double) for the target.
5875 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5876 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5877 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5878 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5879 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5880 New built-in define depending on --with-double=, --with-long-double=.
5881 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5882 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5883 * doc/install.texi (Cross-Compiler-Specific Options)
5884 <--with-double=, --with-long-double=>: Doc.
5885
5886 2019-11-07 Richard Biener <rguenther@suse.de>
5887
5888 * dbgcnt.def (gimple_unroll): New.
5889 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5890 gimple_unroll debug counter before applying transform.
5891 (try_peel_loop): Likewise.
5892
5893 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5894
5895 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5896 frame pointer in multiple registers.
5897 (ira_setup_eliminable_regset): Setup eliminable_regset,
5898 ira_no_alloc_regs and regs_ever_live for frame pointer in
5899 multiple registers.
5900
5901 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5902
5903 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5904 V2DI modes.
5905
5906 2019-11-06 Jan Hubicka <jh@suse.cz>
5907
5908 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5909 allocations.
5910 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5911 Do not silently ignore summary corruptions.
5912
5913 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5914
5915 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5916 the epilogue if there are peeled iterations for it to handle.
5917
5918 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5919
5920 * config/arc/arc.c (arc_split_ior): Add asserts.
5921 (arc_split_mov_const): Likewise.
5922 (arc_check_ior_const): Do not match known short immediate values.
5923 * config/arc/arc.md (movsi): Don't split predicated instructions
5924 (iorsi): Likewise.
5925
5926 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5927
5928 * config/arc/arc.opt (mea): Update help string.
5929 * doc/invoke.texi(ARC): Update mea option info.
5930
5931 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5932
5933 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5934 (zero_extendqisi2_ac): Likewise.
5935 (zero_extendhisi2_i): Likewise.
5936 (extendqihi2_i): Likewise.
5937 (extendqisi2_ac): Likewise.
5938 (extendhisi2_i): Likewise.
5939
5940 2019-11-06 Richard Biener <rguenther@suse.de>
5941
5942 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5943 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5944 Simplify single_defuse_cycle condition.
5945
5946 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5947
5948 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5949 epilogue loop, make sure that the VF is small enough or that
5950 the epilogue loop can be fully-masked.
5951
5952 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5953
5954 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5955 loop when we've finished, rather than returning directly from
5956 the loop. Use a local variable to track whether we're still
5957 searching for the preferred simdlen. Make vect_epilogues
5958 record whether the next iteration should try to treat the
5959 loop as an epilogue.
5960
5961 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5962
5963 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5964 __arc_hard_float__, __ARC_HARD_FLOAT__,
5965 __arc_soft_float__, __ARC_SOFT_FLOAT__
5966
5967 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5968
5969 PR tree-optimization/92317
5970 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5971 update phi's with constant phi arguments.
5972
5973 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5974 Alexandre Oliva <oliva@adacore.com>
5975
5976 * common.opt (-fcallgraph-info[=]): New option.
5977 * doc/invoke.texi (Developer options): Document it.
5978 * opts.c (common_handle_option): Handle it.
5979 * builtins.c (expand_builtin_alloca): Record allocation if
5980 -fcallgraph-info=da.
5981 * calls.c (expand_call): If -fcallgraph-info, record the call.
5982 (emit_library_call_value_1): Likewise.
5983 * flag-types.h (enum callgraph_info_type): New type.
5984 * explow.c: Include stringpool.h.
5985 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5986 * function.c (allocate_stack_usage_info): New.
5987 (allocate_struct_function): Call it for -fcallgraph-info.
5988 (prepare_function_start): Call it otherwise.
5989 (record_final_call, record_dynamic_alloc): New.
5990 * function.h (struct callinfo_callee): New.
5991 (CALLEE_FROM_CGRAPH_P): New.
5992 (struct callinfo_dalloc): New.
5993 (struct stack_usage): Add callees and dallocs.
5994 (record_final_call, record_dynamic_alloc): Declare.
5995 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5996 object if -fcallgraph-info=da.
5997 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5998 * print-tree.h (print_decl_identifier): Declare.
5999 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
6000 * print-tree.c: Include print-tree.h.
6001 (print_decl_identifier): New function.
6002 * toplev.c: Include print-tree.h.
6003 (callgraph_info_file): New global variable.
6004 (callgraph_info_external_printed): Likewise.
6005 (output_stack_usage): Rename to...
6006 (output_stack_usage_1): ... this. Make it static, add cf
6007 parameter. If -fcallgraph-info=su, print stack usage to cf.
6008 If -fstack-usage, use print_decl_identifier for
6009 pretty-printing.
6010 (INDIRECT_CALL_NAME): New.
6011 (dump_final_node_vcg_start): New.
6012 (dump_final_callee_vcg, dump_final_node_vcg): New.
6013 (output_stack_usage): New.
6014 (lang_dependent_init): Open and start file if
6015 -fcallgraph-info. Allocated callgraph_info_external_printed.
6016 (finalize): If callgraph_info_file is not null, finish it,
6017 close it, and release callgraph_info_external_printed.
6018
6019 2019-11-06 Gergö Barany <gergo@codesourcery.com>
6020 Frederik Harwath <frederik@codesourcery.com>
6021 Thomas Schwinge <thomas@codesourcery.com>
6022
6023 * omp-low.c (struct omp_context): New fields
6024 local_reduction_clauses, outer_reduction_clauses.
6025 (new_omp_context): Initialize these.
6026 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
6027 (scan_omp_for): Check reduction clauses for incorrect nesting.
6028
6029 2019-11-06 Jakub Jelinek <jakub@redhat.com>
6030
6031 PR inline-asm/92352
6032 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
6033 operands with non-memory constraints.
6034
6035 2019-11-05 Martin Sebor <msebor@redhat.com>
6036
6037 PR tree-optimization/92373
6038 * tree.c (component_ref_size): Only consider initializers of objects
6039 of matching struct types.
6040 Return null for instances of interior zero-length arrays.
6041
6042 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
6043
6044 * doc/md.texi (Insn Splitting): Fix combiner documentation.
6045
6046 2019-11-05 Jason Merrill <jason@redhat.com>
6047
6048 PR tree-optimization/91825
6049 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
6050
6051 2019-11-05 Jim Wilson <jimw@sifive.com>
6052
6053 PR middle-end/92263
6054 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
6055 optimize_insn_for_speed_p is true.
6056
6057 2019-11-05 Martin Sebor <msebor@redhat.com>
6058
6059 PR middle-end/92333
6060 PR middle-end/82608
6061 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
6062 size.
6063 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
6064 name and location for a temporary variable.
6065
6066 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6067
6068 * tree-vrp.c (value_range::value_range): Fix whitespace.
6069 (defined_ranges_p): Same.
6070 (range_fold_binary_symbolics_p): Same.
6071 (value_range::intersect_helper): Same.
6072 (value_range::union_helper): Same.
6073 * tree-vrp.h (range_fold_binary_expr): Same.
6074
6075 2019-11-04 Martin Sebor <msebor@redhat.com>
6076
6077 PR middle-end/92341
6078 PR middle-end/82612
6079 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
6080 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
6081 of message printed in a warning for empty arrays.
6082 (vrp_prop::check_mem_ref): Also handle function parameters and
6083 empty arrays.
6084
6085 2019-11-05 Richard Biener <rguenther@suse.de>
6086
6087 PR tree-optimization/92371
6088 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
6089 on the original stmt of live stmts in the chain.
6090 (vectorizable_live_operation): Look at the original stmt when
6091 checking STMT_VINFO_REDUC_DEF.
6092
6093 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6094
6095 * gimple-fold.c, gimple-loop-versioning.cc,
6096 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
6097 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
6098 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
6099 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
6100 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
6101 value_range_equiv, and value_range_base to value_range.
6102
6103 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6104
6105 * expr.c (build_personality_function): Fix generated type to
6106 match actual personality functions.
6107
6108 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
6109
6110 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
6111 enough bytes for the NULL character.
6112
6113 2019-11-05 Richard Biener <rguenther@suse.de>
6114
6115 PR tree-optimization/92280
6116 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
6117 had a single use do not create a new CTOR.
6118 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
6119 BIT_FIELD_REF of a CTOR via GENERIC.
6120
6121 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
6122
6123 * config/s390/s390.c (s390_vector_alignment): Check if the value
6124 fits into uhwi before using it.
6125
6126 2019-11-05 Martin Liska <mliska@suse.cz>
6127
6128 * symbol-summary.h: Use ggc_delete.
6129
6130 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6131
6132 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6133 Change vec_perm field to 10.
6134
6135 2019-11-05 Arnaud Charlet <charlet@adacore.com>
6136
6137 * doc/install.texi: Further fix syntax for html generation.
6138
6139 2019-11-05 Martin Liska <mliska@suse.cz>
6140
6141 * symbol-summary.h: Rename allocator to m_allocator and
6142 add comment.
6143
6144 2019-11-05 Richard Biener <rguenther@suse.de>
6145
6146 PR tree-optimization/92324
6147 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6148 all signed or unsigned operations.
6149
6150 2019-11-05 Jan Hubicka <jh@suse.cz>
6151
6152 * hsa-brig.c: Include alloc-pool.h
6153 * hsa-dump.c: Likewise.
6154 * hsa-gen.c: Likewise.
6155 * hse-regalloc.c: Likewise.
6156 * ipa-hsa.c: Likewise.
6157 * ipa-predicate.c: Likewise.
6158 * ipa-reference.c: Likewise.
6159 * ipa-sra.c: Likewise.
6160 * omp-expand.c: Likewise.
6161 * omp-general.c: Likewise.
6162 * omp-low.c: Likewise.
6163 * sumbol-summary.h (function_summary_base): Add allocator.
6164 (function_summary<T *>::function_summary): Update construction.
6165 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6166 (call_summary_base): Add allcator.
6167 (call_summary<T *>::call_summary): Update construction.
6168 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6169
6170 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6171
6172 PR tree-optimization/91945
6173 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6174 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6175 Formatting fix.
6176
6177 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6178
6179 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6180 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6181 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6182 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6183 (vrp_set_zero_nonzero_bits): Move to...
6184 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6185 (vr_values::simplify_bit_ops_using_ranges): Rename
6186 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6187
6188 2019-11-05 Martin Liska <mliska@suse.cz>
6189
6190 PR c++/92339
6191 * fold-const.c (operand_compare::hash_operand): Remove
6192 FIELD_DECL handling.
6193
6194 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6195
6196 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6197 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6198 static.
6199
6200 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6201
6202 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6203 properly handle symbolics.
6204 (range_compatible_p): Remove.
6205
6206 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6207
6208 * common.opt (-fabi-version): Document =14.
6209 * doc/invoke.texi (C++ Dialect Options): Likewise.
6210
6211 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6212
6213 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6214
6215 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6216
6217 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6218 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6219 gcn_omp_device_kind_arch_isa.
6220 * config/gcn/t-omp-device: New file.
6221 * configure.ac: Support gcn for omp_device_property.
6222 * configure: Regenerate.
6223
6224 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6225
6226 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6227 (vrp_val_max): Same.
6228 (vrp_val_is_min): Same.
6229 (vrp_val_is_max): Same.
6230 (value_range_base::nonzero_p): Remove last argument to
6231 vrp_val_is_max.
6232 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6233 (vrp_val_max): Same.
6234 (vrp_val_is_min): Same.
6235 (vrp_val_is_max): Same.
6236 (value_range_base::set_varying): Remove last argument to vrp_val*.
6237 (value_range_base::dump): Same.
6238 (value_range_base::set): Same.
6239 (value_range_base::normalize_symbolics): Same.
6240 (value_range_base::num_pairs): Same.
6241 (value_range_base::lower_bound): Same.
6242 (value_range_base::upper_bound): Same.
6243 (ranges_from_anti_range): Remove handle_pointers argument.
6244 (value_range_base::singleton_p): Remove last argument to
6245 ranges_from_anti_range.
6246
6247 2019-11-04 Jan Hubicka <jh@suse.cz>
6248
6249 * ipa-reference.c (init_function_info): Initialize
6250 info->global.statics_read.
6251
6252 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6253
6254 * tree-vrp.c (value_range_base::invert): Use constructors to build
6255 range.
6256
6257 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6258
6259 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6260 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6261
6262 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6263
6264 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6265 VR_UNDEFINED.
6266
6267 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6268
6269 * tree-vrp.c (dump_assert_info): New.
6270 (dump_asserts_info): New.
6271
6272 2019-11-04 Jan Hubicka <jh@suse.cz>
6273
6274 * ipa-inline-transform.c: Include ipa-utils.h
6275 (inline_call): Set thunk_expansion flag.
6276 * ipa-utils.h (thunk_expansion): Declare.
6277 * ipa-devirt.c (thunk_expansion): New global var.
6278 (devirt_node_removal_hook): Do not invalidate cache while
6279 doing thunk expansion.
6280
6281 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6282
6283 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6284
6285 2019-11-04 Martin Sebor <msebor@redhat.com>
6286
6287 PR tree-optimization/92349
6288 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6289 memebers have constant sizes.
6290
6291 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6292
6293 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6294 parameter.
6295 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6296 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6297 vect_analyze_loop.
6298
6299 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6300
6301 * expr.c (store_constructor): Modify to handle single element vectors.
6302 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6303 constructors.
6304 (vect_slp_check_for_constructors): New function.
6305 (vect_slp_analyze_bb_1): Call new function to check for vector
6306 constructors.
6307 (vectorize_slp_instance_root_stmt): New function.
6308 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6309 constructors.
6310 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6311
6312 2019-11-04 Richard Biener <rguenther@suse.de>
6313
6314 PR tree-optimization/92345
6315 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6316 we produced a reduction chain.
6317 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6318 LOOP_VINFO_REDUCTIONS.
6319
6320 2019-11-04 Jan Hubicka <jh@suse.cz>
6321
6322 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6323 duplicate summaries.
6324 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6325 first.
6326 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6327 access call summaries.
6328 (dump_ipa_call_summary): Be ready for missing edge summaries.
6329 (analyze_function_body): Use get instead of get_create to access
6330 edge summary.
6331 (estimate_calls_size_and_time): Do not access summaries of
6332 inlined edges; sanity check they are missing.
6333 (ipa_call_context::estimate_size_and_time): Use get instead
6334 of get_create to access node summary.
6335 (inline_update_callee_summaries): Do not update depth of
6336 inlined edge.
6337 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6338 growth caches.
6339 (ipa_merge_fn_summary_after_inlining): Use get instead
6340 of get_create.
6341 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6342 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6343 fast summary.
6344 (initialize_growth_caches): Update.
6345 (do_estimate_edge_time): Remove redundant copy of context.
6346 (ipa_remove_from_growth_caches): New function.
6347 * ipa-inline.c (flatten_function): Update overall summary
6348 only when optimizing.
6349 (inline_to_all_callers): Update overall summary of function
6350 inlined to.
6351 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6352 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6353 to false.
6354
6355 2019-11-04 Richard Biener <rguenther@suse.de>
6356
6357 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6358 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6359
6360 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6361
6362 * ggc-common.c: Include system.h before malloc.h.
6363
6364 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6365
6366 * configure.ac: Pass --enable-obsolete=* and
6367 --enable-option-checking=* down to build configure, and fail
6368 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6369 * configure: Rebuild.
6370 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6371 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6372
6373 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6374
6375 * config.in: Regenerate.
6376 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6377 -mtiny-printf is used without GCC being configured with
6378 --enable-newlib-nano-formatted-io.
6379 * config/msp430/msp430.h (LINK_SPEC): Pass
6380 "--wrap puts --wrap printf" when -mtiny-printf is used.
6381 * config/msp430/msp430.opt: Document -mtiny-printf.
6382 * configure: Regenerate.
6383 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6384 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6385 --enable-newlib-nano-formatted-io is passed.
6386 * doc/invoke.texi: Document -mtiny-printf.
6387
6388 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6389
6390 * configure: Regenerate.
6391
6392 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6393
6394 * config/msp430/driver-msp430.c
6395 (msp430_get_linker_devices_include_path): New spec function.
6396 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6397 (extract_devices_dir_from_exec_prefix): New function.
6398 (extract_devices_dir_from_collect_gcc): New function.
6399 (msp430_check_env_var_for_devices): New function.
6400 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6401 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6402 devices.csv was not found using other methods.
6403 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6404 New prototype.
6405 (msp430_dirname): Likewise.
6406 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6407 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6408 msp430_get_linker_devices_include_path.
6409 (TARGET_EXTRA_PRE_INCLUDES): Define.
6410 * doc/invoke.texi: Document new ways of searching for support files.
6411
6412 2019-11-04 Richard Biener <rguenther@suse.de>
6413
6414 PR tree-optimization/92301
6415 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6416 as required by epilogue generation
6417
6418 2019-11-04 Martin Liska <mliska@suse.cz>
6419
6420 PR ipa/92304
6421 * fold-const.c (operand_compare::hash_operand): Fix field
6422 hashing of CONSTRUCTOR.
6423
6424 2019-11-04 Martin Liska <mliska@suse.cz>
6425
6426 * ggc.h (ggc_delete): New function.
6427 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6428 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6429 (ipa_free_all_node_params): Likewise.
6430 * ipa-sra.c (ipa_sra_analysis): Likewise.
6431
6432 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6433
6434 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6435 set_switch_stmt_execution_predicate, compute_bb_predicates,
6436 will_be_nonconstant_expr_predicate,
6437 phi_result_unknown_predicate,
6438 analyze_function_body): Pass arround params summary.
6439 (ipa_call_context::duplicate_from): New comment;
6440 only duplicate useful values.
6441 (ipa_call_context::equal_to): Only compare useful values.
6442 (remap_edge_summaries): Pass params_summary.
6443 (remap_hint_predicate): Likewise.
6444 (ipa_merge_fn_summary_after_inlining): Likewise.
6445 (inline_read_section): Initialize params summary used flags.
6446 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6447 around param_summary.
6448 (add_condition): Initialized used params summary flags.
6449 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6450 (inline_param_summary::useless_p): New predicate.
6451 (remap_after_inlining, add_condition): Update prototype
6452 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6453 move_cost.
6454 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6455 summaries.
6456 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6457 (ipa_analyze_virtual_call_uses): Likewise.
6458 (update_indirect_edges_after_inlining): Update param summaries.
6459 (ipa_print_node_params): Print used flags.
6460 (ipa_read_indirect_edge_info): Update param summareis.
6461 * ipa-prop.h (ipa_param_descriptor): Add
6462 used_by_ipa_predicates, used_by_indirect_call
6463 and used_by_polymorphic_call.
6464 (ipa_set_param_used_by_ipa_predicates,
6465 ipa_set_param_used_by_indirect_call,
6466 ipa_set_param_used_by_polymorphic_call,
6467 ipa_is_param_used_by_ipa_predicates,
6468 ipa_is_param_used_by_indirect_call,
6469 ipa_is_param_used_by_polymorphic_call): New inline functions.
6470
6471 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6472
6473 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6474 member function.
6475 (ipa_call_context::release): Add ALL parameter.
6476 (ipa_call_context::equal_to): New member function.
6477 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6478 duplicate_form, release, equal_to and exists_p member functoins.
6479 * ipa-inline-analysis.c (node_context_cache_entry): New
6480 class.
6481 (node_context_summary): Likewise.
6482 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6483 node_context_clear): New static vars.
6484 (initialize_growth_caches): New function.
6485 (free_growth_caches): Also delete node_context_cache; output stats.
6486 (do_estimate_edge_time): Cache contexts.
6487 (reset_node_cache): New function.
6488 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6489 (inline_small_functions): Initialize growth caches.
6490 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6491 Declare.
6492 * ipa-predicate.h (inline_param_summary::equal_to): New.
6493 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6494 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6495 (ipa_agg_jump_function): Implement equal_to member function.
6496
6497 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6498
6499 * ipa-fnsummary.c (inline_read_section): Set vector size
6500 ahead of time.
6501
6502 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6503
6504 * ipa-fnsummary.c (ipa_call_context): New constructor.
6505 (estimate_node_size_and_time): Turn to ...
6506 (ipa_call_context::estimate_size_and_time): ... this one.
6507 (ipa_call_context::release): New.
6508 * ipa-fnsummary.h (ipa_call_context): New class.
6509 (estimate_node_size_and_time): Remove.
6510 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6511 do_estimate_edge_hints): Update.
6512
6513 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6514
6515 * config.in: Regenerate.
6516 * configure: Regenerate.
6517 * configure.ac: Check for mallinfo.
6518 * ggc-common.c: Include malloc.h if available;
6519 include options.h
6520 (report_heap_memory_use): New functoin.
6521 * ggc-page.c (ggc_grow): Do not print "start".
6522 * ggc.h (report_heap_memory_use): Declare.
6523 * pases.c (execute_one_pass): Report memory after IPA passes.
6524 (ipa_read_summaries_1): Likewise.
6525 (ipa_read_optimization_summaries_1): Likewise.
6526
6527 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6528
6529 * gimplify.h (omp_construct_selector_matches): Change return
6530 type to int, add a new SCORES argument.
6531 * gimplify.c (omp_construct_selector_matches): Likewise. If
6532 SCORES is non-NULL, compute scores of each construct.
6533 * omp-general.h (omp_get_context_selector): Declare.
6534 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6535 Adjust omp_construct_selector_matches callers.
6536 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6537 (omp_context_compute_score): New function.
6538 (omp_resolve_declare_variant): Compute scores and decide based on
6539 that.
6540
6541 PR bootstrap/92314
6542 * configure.ac: Don't look for omp-device-properties files from
6543 installed offloading compilers. Instead add tmake_file snippets
6544 for configured offloading targets and use files they generate.
6545 * Makefile.in (install): Don't depend on
6546 install-omp-device-properties.
6547 (install-omp-device-properties): Remove goal.
6548 * config/i386/t-omp-device: New file.
6549 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6550 * config/nvptx/t-omp-device: New file.
6551 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6552 * configure: Regenerated.
6553
6554 * omp-general.h (omp_context_selector_set_compare): Declare.
6555 * omp-general.c (omp_construct_simd_compare,
6556 omp_context_selector_props_compare, omp_context_selector_set_compare,
6557 omp_context_selector_compare): New functions.
6558 (omp_resolve_declare_variant): Prune variants that are strict subset
6559 of another variant.
6560
6561 2019-11-01 Martin Sebor <msebor@redhat.com>
6562
6563 PR middle-end/91679
6564 PR middle-end/91647
6565 PR middle-end/91463
6566 PR middle-end/92312
6567 * doc/invoke.texi (-Wzero-length-bounds): Document.
6568 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6569 instead of a hand-rolled loop to avoid PR 92323.
6570 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6571 with initializers.
6572 (vrp_prop::check_mem_ref): Handle declared struct objects.
6573 * tree.c (last_field): New function.
6574 (array_at_struct_end_p): Handle MEM_REF.
6575 (get_initializer_for): New helper.
6576 (component_ref_size): Add argument. Rename locals. Call
6577 get_initializer_for instead of fold_ctor_reference. Correct handling
6578 of flexible array members.
6579 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6580
6581 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6582
6583 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6584 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6585 UNSPEC_VSX_CVSPUXDS): Remove.
6586 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6587 (vsx_xvcvspdp_be): ... this. New. And...
6588 (vsx_xvcvspdp_le): ... this. New.
6589 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6590 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6591 (vsx_xvcv<su>xwdp_le): ... this. New.
6592 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6593 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6594 (vsx_xvcvsp<su>xds_le): ... this. New.
6595
6596 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6597
6598 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6599 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6600 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6601 UNSPEC_VSX_XVCVSPSXWS): Remove.
6602 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6603 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6604
6605 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6606
6607 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6608 (UNSPEC_VSX_XVCDPSP): Remove.
6609 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6610 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6611
6612 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6613
6614 * hooks.c (hook_tree_tree_bool_null): New.
6615 * hooks.h (hook_tree_tree_bool_null): Declare.
6616 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6617 (LANG_HOOKS_DECLS): Add it.
6618 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6619 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6620 (lower_omp_target): Handle Fortran array with descriptor in
6621 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6622
6623 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6624
6625 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6626 Assert that the type we store in abi_vector_types is its own
6627 main variant.
6628 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6629
6630 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6631
6632 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6633 from a CONST_INT address when TARGET_THUMB2.
6634
6635 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6636
6637 * config/arm/arm.md (add_not_cin): New insn.
6638 (add_not_shift_cin): Likewise.
6639
6640 2019-10-31 Martin Liska <mliska@suse.cz>
6641
6642 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6643 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6644 and compare_memory_operand.
6645
6646 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6647
6648 * configure.ac: Compute and substitute omp_device_properties and
6649 omp_device_property_deps.
6650 * Makefile.in (generated_files): Add omp-device-properties.h.
6651 (omp-general.o): Depend on omp-device-properties.h.
6652 (omp_device_properties): New make variable.
6653 (omp-device-properties.h, s-omp-device-properties-h,
6654 install-omp-device-properties): New goals.
6655 (install): Depend on install-omp-device-properties for accelerators.
6656 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6657 * target.h (enum omp_device_kind_arch_isa): New enum.
6658 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6659 documentation.
6660 * omp-general.c: Include omp-device-properties.h.
6661 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6662 colon instead of comma.
6663 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6664 functions.
6665 (omp_context_selector_matches): Implement device set arch/isa
6666 selectors, improve device set kind selector handling.
6667 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6668 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6669 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6670 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6671 ix86_omp_device_kind_arch_isa.
6672 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6673 definition from ix86_target_string to file scope.
6674 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6675 to file scope.
6676 (ix86_omp_device_kind_arch_isa): New function.
6677 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6678 isa_opts definitions to file scope.
6679 * config/i386/t-intelmic (omp-device-properties): New goal.
6680 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6681 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6682 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6683 nvptx_omp_device_kind_arch_isa.
6684 * configure: Regenerate.
6685 * doc/tm.texi: Regenerate.
6686
6687 PR middle-end/92231
6688 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6689 DECL_BUILT_IN in comment. Remove redundant ()s around return
6690 argument.
6691 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6692 before calling fndecl_built_in_p.
6693 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6694 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6695 fndecl_built_in_p on it.
6696
6697 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6698
6699 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6700
6701 2019-10-31 Martin Liska <mliska@suse.cz>
6702
6703 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6704 of cgraph_local_info and use local_info_node instead.
6705 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6706 (bfin_function_ok_for_sibcall): Likewise.
6707 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6708 (must_reload_pic_reg_p): Likewise.
6709
6710 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6711
6712 PR c++/90947
6713 * tree.h (type_initializer_zero_p): Remove.
6714 * tree.c (type_initializer_zero_p): Remove.
6715
6716 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6717
6718 * doc/invoke.texi (-Wshadow, -Wshadow=global
6719 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6720
6721 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6722
6723 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6724 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6725 and 'target exit data'.
6726
6727 2019-10-30 Martin Jambor <mjambor@suse.cz>
6728
6729 ipa/92278
6730 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6731 availability comparison.
6732
6733 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6734
6735 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6736 calls to __mspabi_mpy* functions.
6737 * config/msp430/msp430.md (mulhisi3): New define_expand.
6738 (umulhisi3): New define_expand.
6739 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6740 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6741
6742 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6743
6744 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6745 (msp430_check_plus_not_high_mem): New.
6746 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6747 might be in low memory.
6748 Indicate that a 16-bit absolute address is in lower memory.
6749
6750 2019-10-30 Martin Jambor <mjambor@suse.cz>
6751
6752 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6753 ultimate_alias_target.
6754
6755 2019-10-30 Richard Biener <rguenther@suse.de>
6756
6757 PR tree-optimization/92275
6758 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6759 Copy all loop-closed PHIs.
6760
6761 2019-10-30 Martin Liska <mliska@suse.cz>
6762
6763 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6764 const_tree as function argument.
6765 (func_checker::compare_decl): Likewise.
6766 (func_checker::operand_equal_p): Likewise.
6767 (func_checker::compare_variable_decl): Likewise.
6768 (func_checker::parse_labels): Likewise.
6769 * ipa-icf-gimple.h: Likewise.
6770
6771 2019-10-30 Martin Liska <mliska@suse.cz>
6772
6773 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6774 Do not compare alias sets. It's handled by operand_equal_p.
6775
6776 2019-10-30 Martin Liska <mliska@suse.cz>
6777
6778 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6779 initialize m_compare_polymorphic.
6780 (func_checker::compare_decl): Do not compare polymorphic types.
6781 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6782 * ipa-icf.c (sem_function::equals_private): Do not call
6783 compare_polymorphic_p.
6784
6785 2019-10-30 Martin Liska <mliska@suse.cz>
6786
6787 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6788 compare_operand.
6789 (func_checker::compare_memory_operand): Remove.
6790 (func_checker::compare_cst_or_decl): Remove.
6791 (func_checker::operand_equal_valueize): Do not handle
6792 FIELD_DECL.
6793 (func_checker::compare_gimple_call): Call compare_operand.
6794 (func_checker::compare_gimple_assign): Likewise.
6795 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6796 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6797 * ipa-icf.h (icf_handled_component_p): Remove.
6798
6799 2019-10-30 Martin Liska <mliska@suse.cz>
6800
6801 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6802 (func_checker::compare_cst_or_decl): Remove handling
6803 of FIELD_DECL.
6804 (func_checker::compare_operand): Transform to ...
6805 (func_checker::operand_equal_p): ... this.
6806 * ipa-icf-gimple.h (class func_checker): Add
6807 operand_equal_p and hash_operand.
6808 * ipa-icf.c (sem_function::equals_private): Fix
6809 pushing and popping of cfun.
6810
6811 2019-10-30 Martin Liska <mliska@suse.cz>
6812
6813 * fold-const.c (operand_equal_p): Move to ...
6814 (operand_compare::operand_equal_p): ... here.
6815 (operand_compare::verify_hash_value): New.
6816 (add_expr): Move to ...
6817 (operand_compare::hash_operand): ... here.
6818 * fold-const.h (operand_equal_p): Move to the class.
6819 (class operand_compare): New.
6820 * tree.c (add_expr): Remove.
6821
6822 2019-10-30 Martin Liska <mliska@suse.cz>
6823
6824 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6825 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6826
6827 2019-10-30 Martin Liska <mliska@suse.cz>
6828
6829 PR lto/91393
6830 PR lto/88220
6831 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6832 from a first_clone in order to get proper LTO section
6833 in LTO stream.
6834 (cgraph_node::get_untransformed_body):
6835 Use lto_get_section_data where symtab_node::order
6836 must be provided.
6837 * cgraphclones.c (cgraph_node::find_replacement):
6838 Update also symbol order.
6839 * ipa-fnsummary.c (ipa_fn_summary_read):
6840 Use new function lto_get_summary_section_data.
6841 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6842 * ipa-icf.c (sem_item_optimizer::read_summary):
6843 Likewise.
6844 * ipa-prop.c (ipa_prop_read_jump_functions):
6845 Likewise.
6846 (ipcp_read_transformation_summaries): Likewise.
6847 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6848 * lto-cgraph.c (input_node): Add also order_base.
6849 (input_varpool_node): Likewise.
6850 (input_cgraph_1): Assign the order_base.
6851 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6852 * lto-opts.c (lto_write_options): Pass new argument.
6853 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6854 (lto_get_summary_section_data): New.
6855 (lto_get_raw_section_data): Add order argument.
6856 (lto_create_simple_input_block): Likewise.
6857 * lto-section-out.c (lto_destroy_simple_output_block):
6858 Likewise.
6859 * lto-streamer-in.c (lto_input_toplevel_asms):
6860 Use lto_get_summary_section_data.
6861 (lto_input_mode_table): Likewise.
6862 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6863 (lto_output_toplevel_asms): Pass new argument.
6864 (copy_function_or_variable): Likewise.
6865 (produce_lto_section):Likewise.
6866 (produce_symtab): Likewise.
6867 (lto_write_mode_table): Likewise.
6868 (produce_asm_for_decls): Likewise.
6869 * lto-streamer.c (lto_get_section_name): Concat symbol name
6870 and symbol order.
6871 * lto-streamer.h (lto_get_section_data): Add order argument.
6872 (lto_get_summary_section_data): New.
6873 (lto_get_raw_section_data): Add order argument.
6874 (lto_get_section_name): Likewise.
6875 * varpool.c (varpool_node::get_constructor): Pass order argument.
6876
6877 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6878
6879 PR tree-optimization/92262
6880 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6881 ubase or cbase here.
6882 (remove_unused_ivs): Unshare comp before using it.
6883
6884 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6885
6886 * ipa-prop.c (update_jump_functions_after_inlining):
6887 Watch for missing summaries.
6888
6889 2019-10-30 Richard Biener <rguenther@suse.de>
6890
6891 PR tree-optimization/65930
6892 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6893 chains also allow a leading and trailing conversion.
6894 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6895 intermediate reduction chains.
6896 (vect_analyze_slp_instance): Likewise. Build a SLP
6897 node for a trailing conversion manually.
6898
6899 2019-10-30 Martin Liska <mliska@suse.cz>
6900
6901 * cgraph.c (cgraph_node::local_info): Transform to ...
6902 (cgraph_node::local_info_node): ... this.
6903 (cgraph_node::dump): Remove cgraph_local_info and
6904 put its fields directly into cgraph_node.
6905 (cgraph_node::get_availability): Likewise.
6906 (cgraph_node::make_local): Likewise.
6907 (cgraph_node::verify_node): Likewise.
6908 * cgraph.h (struct GTY): Likewise.
6909 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6910 (duplicate_thunk_for_node): Likewise.
6911 (cgraph_node::create_clone): Likewise.
6912 (cgraph_node::create_virtual_clone): Likewise.
6913 (cgraph_node::create_version_clone): Likewise.
6914 * cgraphunit.c (cgraph_node::reset): Likewise.
6915 (cgraph_node::finalize_function): Likewise.
6916 (cgraph_node::add_new_function): Likewise.
6917 (analyze_functions): Likewise.
6918 * combine.c (setup_incoming_promotions): Likewise.
6919 * config/i386/i386.c (ix86_function_regparm): Likewise.
6920 (ix86_function_sseregparm): Likewise.
6921 (init_cumulative_args): Likewise.
6922 * ipa-cp.c (determine_versionability): Likewise.
6923 (count_callers): Likewise.
6924 (set_single_call_flag): Likewise.
6925 (initialize_node_lattices): Likewise.
6926 (estimate_local_effects): Likewise.
6927 (create_specialized_node): Likewise.
6928 (identify_dead_nodes): Likewise.
6929 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6930 (ipa_fn_summary_generate): Likewise.
6931 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6932 (process_hsa_functions): Likewise.
6933 * ipa-icf.c (set_local): Likewise.
6934 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6935 * ipa-inline.c (speculation_useful_p): Likewise.
6936 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6937 (ipa_profile): Likewise.
6938 * ipa-split.c (split_function): Likewise.
6939 (execute_split_functions): Likewise.
6940 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6941 (ipa_sra_ipa_function_checks): Likewise.
6942 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6943 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6944 * lto-cgraph.c (lto_output_node): Likewise.
6945 (input_overwrite_node): Likewise.
6946 * multiple_target.c (expand_target_clones): Likewise.
6947 * omp-simd-clone.c (simd_clone_create): Likewise.
6948 * trans-mem.c (expand_call_tm): Likewise.
6949 (ipa_tm_mayenterirr_function): Likewise.
6950 (ipa_tm_diagnose_tm_safe): Likewise.
6951 (ipa_tm_diagnose_transaction): Likewise.
6952 (ipa_tm_create_version): Likewise.
6953 (ipa_tm_transform_calls_redirect): Likewise.
6954 (ipa_tm_execute): Likewise.
6955 * tree-inline.c (expand_call_inline): Likewise.
6956
6957 2019-10-29 Martin Liska <mliska@suse.cz>
6958
6959 * symbol-summary.h (function_summary): Pass memory location
6960 to underlaying hash_map (or vec).
6961 (V>::fast_function_summary): Likewise.
6962
6963 2019-10-29 Martin Liska <mliska@suse.cz>
6964
6965 * ggc.h (ggc_alloc_no_dtor): New function.
6966 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6967 destructor and ggc_free.
6968 (ipa_free_size_summary): Call delete instead
6969 of release.
6970 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6971 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6972 (ipa_free_all_edge_args): Call destructor and ggc_free.
6973 (ipa_free_all_node_params): Likewise.
6974 (ipcp_free_transformation_sum): Likewise.
6975 * ipa-prop.h (ipa_check_create_node_params):
6976 Call new ggc_alloc_no_dtor.
6977 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6978 (ipa_sra_analysis): Call destructor and ggc_free.
6979 Replace release with delete operator.
6980 * symbol-summary.h (release): Remove ..
6981 (V>::~fast_function_summary): and move logic here.
6982 Likewise for other classes.
6983
6984 2019-10-29 Richard Biener <rguenther@suse.de>
6985
6986 PR tree-optimization/92260
6987 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6988 lane-reducing ops.
6989
6990 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6991
6992 PR tree-optimization/88915
6993 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6994 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6995 and make the valueize function pointer also take a void pointer.
6996 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6997 around vn_valueize, to call it without a context.
6998 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6999 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
7000 (~_loop_vec_info): Release epilogue_vinfos.
7001 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
7002 number of iterations of epilogue.
7003 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
7004 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
7005 versioning threshold needed for main loop.
7006 (vect_analyze_loop): Likewise.
7007 (find_in_mapping): New helper function.
7008 (update_epilogue_loop_vinfo): New function.
7009 (vect_transform_loop): When vectorizing epilogues re-use analysis done
7010 on main loop and call update_epilogue_loop_vinfo to update it.
7011 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
7012 stmts on loop preheader edge.
7013 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
7014 we decided to vectorize epilogues. Update epilogues NITERS and
7015 construct ADVANCE to update epilogues data references where needed.
7016 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
7017 (vect_do_peeling, vect_update_inits_of_drs,
7018 determine_peel_for_niter, vect_analyze_loop): Add or update
7019 declarations.
7020 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
7021 created loop_vec_info's for epilogues when available. Otherwise analyse
7022 epilogue separately.
7023
7024 2019-10-29 Richard Biener <rguenther@suse.de>
7025
7026 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
7027 example.
7028
7029 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7030
7031 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
7032 index for the COND_EXPR from stmt_info rather than reduc_info.
7033
7034 2019-10-29 Richard Biener <rguenther@suse.de>
7035
7036 PR tree-optimization/65930
7037 * tree-vect-loop.c (check_reduction_path): Relax single-use
7038 check allowing out-of-loop uses.
7039 (vect_is_simple_reduction): SLP reduction chains cannot have
7040 intermediate stmts used outside of the loop.
7041 (vect_create_epilog_for_reduction): The adjustment might need
7042 to be converted.
7043 (vectorizable_reduction): Annotate live stmts of the reduction
7044 chain with STMT_VINFO_REDUC_DEF.
7045 * tree-vect-stms.c (process_use): Remove no longer true asserts.
7046
7047 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7048
7049 * calls.c (pass_by_reference): Leave the target to decide whether
7050 POLY_INT_CST-sized arguments should be passed by value or reference,
7051 rather than forcing them to be passed by reference.
7052 (must_pass_in_stack_var_size): Likewise.
7053 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
7054 V31_REGNUM to P15_REGNUM.
7055 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
7056 Take an extra "silent_p" parameter, defaulting to false.
7057 (aarch64_sve::svbool_type_p): Declare.
7058 (aarch64_sve::nvectors_if_data_type): Likewise.
7059 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
7060 (aarch64_frame::reg_offset): Turn into poly_int64s.
7061 (aarch64_frame::save_regs_size): Likewise.
7062 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
7063 (aarch64_frame::sve_callee_adjust): Likewise.
7064 (aarch64_frame::spare_reg_reg): Likewise.
7065 (ARM_PCS_SVE): New arm_pcs value.
7066 (CUMULATIVE_ARGS::aapcs_nprn): New field.
7067 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
7068 (CUMULATIVE_ARGS::silent_p): Likewise.
7069 (BITS_PER_SVE_PRED): New macro.
7070 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
7071 function. Reject aarch64_vector_pcs attributes on SVE functions.
7072 (aarch64_attribute_table): Use the above handler.
7073 (aarch64_sve_abi): New function.
7074 (aarch64_sve_argument_p): Likewise.
7075 (aarch64_returns_value_in_sve_regs_p): Likewise.
7076 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
7077 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
7078 descriptor for them.
7079 (aarch64_simd_decl_p): Delete.
7080 (aarch64_emit_cfi_for_reg_p): New function.
7081 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
7082 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
7083 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
7084 as partly clobbered for the SVE PCS.
7085 (aarch64_function_ok_for_sibcall): Check whether the two functions
7086 use the same ABI, rather than checking specifically for whether
7087 they're aarch64_vector_pcs functions.
7088 (aarch64_pass_by_reference): Raise an error for attempts to pass
7089 SVE arguments when SVE is disabled. Pass SVE arguments by reference
7090 if there are not enough free registers left, or if the argument is
7091 variadic.
7092 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
7093 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
7094 tuples in memory.
7095 (aarch64_layout_arg): Take a function_arg_info rather than
7096 individual properties. Handle SVE predicates, vectors and tuples.
7097 Raise an error if they are passed to unprototyped functions.
7098 (aarch64_function_arg): If the silent_p flag is set, suppress the
7099 usual error about using float registers without TARGET_FLOAT.
7100 (aarch64_init_cumulative_args): Take a silent_p parameter and store
7101 it in the cumulative_args structure. Initialize aapcs_nprn and
7102 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
7103 error about using float registers without TARGET_FLOAT.
7104 If the silent_p flag is not set, also raise an error about
7105 using SVE functions when SVE is disabled.
7106 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
7107 and call it for SVE functions too. Update aapcs_nprn similarly
7108 to the other register counts.
7109 (aarch64_layout_frame): If a big-endian function needs to save
7110 and restore Z8-Z15, search for a spare predicate that it can use.
7111 Store SVE predicates at the bottom of the register save area,
7112 followed by SVE vectors, then followed by the normal slots.
7113 Keep pointing the hard frame pointer at the base of the normal slots,
7114 above the SVE vectors. Update the various frame creation and
7115 tear-down strategies for the new layout, initializing the new
7116 sve_callee_adjust field. Add an additional layout for frames
7117 whose saved registers are all SVE registers.
7118 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
7119 (aarch64_return_address_signing_enabled): Likewise.
7120 (aarch64_push_regs, aarch64_pop_regs): Update calls to
7121 aarch64_reg_save_mode.
7122 (aarch64_adjust_sve_callee_save_base): New function.
7123 (aarch64_add_cfa_expression): Move earlier in file. Take the
7124 saved register as an rtx rather than a register number and use
7125 its mode for the MEM slot.
7126 (aarch64_save_callee_saves): Remove the mode argument and instead
7127 use aarch64_reg_save_mode to get the mode of each save slot.
7128 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
7129 offsets. Allow GP offsets to be saved at a VL-based offset from
7130 the stack, handling this case using the frame pointer if available
7131 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
7132 big-endian SVE functions; use normal moves for other SVE saves.
7133 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7134 returns true. Add explicit CFA notes when not storing via the
7135 stack pointer. Do not try to pair SVE saves.
7136 (aarch64_restore_callee_saves): Cope with poly_int64 register
7137 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7138 use normal moves for other SVE restores. Only add CFA restore notes
7139 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
7140 SVE restores.
7141 (aarch64_get_separate_components): Always keep the first SVE save
7142 in the prologue if we need to use it as a stack probe. Don't allow
7143 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7144 Likewise the spare predicate register that they need. Update the
7145 offset calculation to account for the SVE save area. Use the
7146 appropriate range check for SVE LDR and STR instructions.
7147 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7148 (aarch64_process_components): Likewise. Update the offset
7149 calculation to account for the SVE save area. Only mark the
7150 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7151 Do not try to pair SVE saves.
7152 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7153 reg_offsets. When handling the final allocation, expect the
7154 first SVE register save to be part of the initial allocation
7155 and for it to act as a probe at SP. Account for the SVE callee
7156 save area in the dump information.
7157 (aarch64_expand_prologue): Update the frame diagram. Fold the
7158 SVE callee allocation into the initial allocation if stack clash
7159 protection is enabled. Use new variables to track the offset
7160 of the frame chain (and hard frame pointer) from the current
7161 stack pointer, and likewise the offset of the bottom of the
7162 register save area. Update calls to aarch64_save_callee_saves
7163 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7164 saving the FP&SIMD registers. Save the predicate registers.
7165 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7166 into account when setting the stack pointer from the frame pointer,
7167 and when deciding whether we can inherit the initial adjustment
7168 amount from the prologue. Restore the predicate registers after
7169 the vector registers, then apply sve_callee_adjust, then restore
7170 the general registers.
7171 (aarch64_secondary_reload): Don't use secondary SVE reloads
7172 for VNx16BImode.
7173 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7174 (aarch64_short_vector_p): Return false for SVE types.
7175 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7176 at the start of the function. Return false for SVE types.
7177 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7178 functions too.
7179 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7180 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7181 to big-endian targets for bytewise moves.
7182 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7183
7184 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7185 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7186 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7187
7188 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7189 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7190 aarch64-sve-builtins-base.o to extra_objs. Add
7191 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7192 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7193 (aarch64-sve-builtins-shapes.o): Likewise.
7194 (aarch64-sve-builtins-base.o): New rules.
7195 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7196 (aarch64_resolve_overloaded_builtin): Likewise.
7197 (aarch64_check_builtin_call): Likewise.
7198 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7199 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7200 pragma.
7201 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7202 (aarch64_svprfop): New enum.
7203 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7204 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7205 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7206 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7207 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7208 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7209 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7210 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7211 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7212 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7213 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7214 (aarch64_sve::mangle_builtin_type): Likewise.
7215 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7216 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7217 (aarch64_sve::expand_builtin): Likewise.
7218 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7219 (aarch64_sve_int_mode): Likewise.
7220 (aarch64_ptrue_all_mode): New function.
7221 (aarch64_convert_sve_data_to_pred): Make public.
7222 (svprfop_token): New function.
7223 (aarch64_output_sve_prefetch): Likewise.
7224 (aarch64_fold_sve_cnt_pat): Likewise.
7225 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7226 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7227 instead of gen_while_ult.
7228 (aarch64_replace_reg_mode): Make public.
7229 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7230 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7231 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7232 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7233 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7234 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7235 (aarch64_sve_ptrue_svpattern_p): Likewise.
7236 (aarch64_sve_pred_valid_immediate): Check
7237 aarch64_sve_ptrue_svpattern_p.
7238 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7239 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7240 functions.
7241 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7242 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7243 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7244 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7245 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7246 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7247 New unspecs.
7248 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7249 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7250 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7251 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7252 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7253 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7254 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7255 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7256 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7257 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7258 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7259 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7260 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7261 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7262 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7263 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7264 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7265 (Vesize): Handle partial vector modes.
7266 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7267 mode attributes.
7268 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7269 iterators.
7270 (s, paired_extend, inc_dec): New code attributes.
7271 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7272 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7273 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7274 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7275 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7276 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7277 UNSPEC_COND_FMULX.
7278 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7279 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7280 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7281 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7282 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7283 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7284 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7285 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7286 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7287 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7288 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7289 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7290 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7291 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7292 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7293 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7294 UNSPEC_COND_FSCALE.
7295 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7296 (binqops_op, binqops_op_rev, last_op): New int attributes.
7297 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7298 (fn, ab): New int attributes.
7299 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7300 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7301 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7302 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7303 UNSPEC_RBIT.
7304 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7305 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7306 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7307 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7308 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7309 UNSPEC_COND_FMULX.
7310 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7311 (brk_reg_con, brk_reg_opno): New int attributes.
7312 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7313 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7314 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7315 UNSPEC_COND_FMIN.
7316 (max_elem_bits): New int attribute.
7317 (min_elem_bits): Handle UNSPEC_RBIT.
7318 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7319 TRUNCATE as well as SUBREG.
7320 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7321 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7322 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7323 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7324 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7325 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7326 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7327 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7328 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7329 (aarch64_gather_scale_operand_h): New predicates.
7330 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7331 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7332 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7333 (*aarch64_sve_reinterpret<mode>): Allow any source register
7334 instead of requiring an exact match.
7335 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7336 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7337 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7338 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7339 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7340 (aarch64_update_ffrt): New patterns.
7341 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7342 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7343 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7344 (@aarch64_ld<fn>f1<mode>): New patterns.
7345 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7346 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7347 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7348 (@aarch64_ldnt1<mode>): New patterns.
7349 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7350 the scalar part of the address.
7351 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7352 scalar part of the addresse and add an alternative for handling
7353 nonzero offsets.
7354 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7355 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7356 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7357 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7358 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7359 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7360 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7361 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7362 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7363 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7364 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7365 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7366 (@aarch64_sve_prefetch<mode>): New patterns.
7367 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7368 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7369 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7370 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7371 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7372 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7373 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7374 (@aarch64_stnt1<mode>): New patterns.
7375 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7376 the scalar part of the address.
7377 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7378 the scalar part of the addresse and add an alternative for handling
7379 nonzero offsets.
7380 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7381 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7382 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7383 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7384 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7385 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7386 New patterns.
7387 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7388 (extract_last_<mode>): Generalize to...
7389 (@extract_<LAST:last_op>_<mode>): ...this.
7390 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7391 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7392 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7393 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7394 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7395 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7396 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7397 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7398 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7399 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7400 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7401 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7402 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7403 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7404 (*aarch64_adr_uxtw_unspec): Likewise.
7405 (*aarch64_adr_uxtw): Rename to...
7406 (*aarch64_adr_uxtw_and): ...this.
7407 (@aarch64_adr<mode>_shift): New expander.
7408 (*aarch64_adr_shift_sxtw): New pattern.
7409 (aarch64_<su>abd<mode>_3): Rename to...
7410 (@aarch64_pred_<su>abd<mode>): ...this.
7411 (<su>abd<mode>_3): Update accordingly.
7412 (@aarch64_cond_<su>abd<mode>): New expander.
7413 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7414 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7415 (*<su>mul<mode>3_highpart): Rename to...
7416 (@aarch64_pred_<optab><mode>): ...this.
7417 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7418 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7419 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7420 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7421 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7422 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7423 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7424 (*v<ASHIFT:optab><mode>3): Rename to...
7425 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7426 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7427 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7428 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7429 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7430 (@cond_asrd<mode>): New expander.
7431 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7432 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7433 (*sdiv_pow2<mode>3): Delete.
7434 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7435 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7436 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7437 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7438 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7439 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7440 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7441 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7442 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7443 (*add<SVE_F:mode>3): Rename to...
7444 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7445 for SVE_STRICT_GP.
7446 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7447 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7448 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7449 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7450 (*sub<SVE_F:mode>3): Rename to...
7451 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7452 for SVE_STRICT_GP.
7453 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7454 (*fabd<SVE_F:mode>3): Rename to...
7455 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7456 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7457 (*mul<SVE_F:mode>3): Rename to...
7458 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7459 for SVE_STRICT_GP.
7460 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7461 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7462 to...
7463 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7464 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7465 (*<nlogical><PRED_ALL:mode>3): Rename to...
7466 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7467 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7468 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7469 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7470 (aarch64_pred_<logical_nn><mode>_z): ...this.
7471 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7472 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7473 (*fma<SVE_I:mode>4): Rename to...
7474 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7475 (*fnma<SVE_I:mode>4): Rename to...
7476 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7477 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7478 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7479 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7480 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7481 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7482 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7483 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7484 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7485 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7486 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7487 (@aarch64_sve_tmad<mode>): Likewise.
7488 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7489 (*aarch64_sel_dup<mode>): Rename to...
7490 (@aarch64_sel_dup<mode>): ...this.
7491 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7492 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7493 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7494 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7495 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7496 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7497 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7498 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7499 (*fcm<cmp_op><mode>): Rename to...
7500 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7501 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7502 (*fcmuo<mode>): Rename to...
7503 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7504 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7505 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7506 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7507 (fold_extract_last_<mode>): Generalize to...
7508 (@fold_extract_<last_op>_<mode>): ...this.
7509 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7510 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7511 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7512 DImode result explicit.
7513 (reduc_plus_scal_<mode>): Update accordingly.
7514 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7515 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7516 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7517 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7518 (*aarch64_sve_tbl<mode>): Rename to...
7519 (@aarch64_sve_tbl<mode>): ...this.
7520 (@aarch64_sve_compact<mode>): New pattern.
7521 (*aarch64_sve_dup_lane<mode>): Rename to...
7522 (@aarch64_sve_dup_lane<mode>): ...this.
7523 (@aarch64_sve_dupq_lane<mode>): New pattern.
7524 (@aarch64_sve_splice<mode>): Likewise.
7525 (aarch64_sve_<perm_insn><mode>): Rename to...
7526 (@aarch64_sve_<perm_insn><mode>): ...this.
7527 (*aarch64_sve_ext<mode>): Rename to...
7528 (@aarch64_sve_ext<mode>): ...this.
7529 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7530 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7531 to...
7532 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7533 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7534 Rename to...
7535 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7536 ...this.
7537 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7538 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7539 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7540 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7541 to...
7542 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7543 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7544 a "@" marker.
7545 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7546 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7547 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7548 pattern.
7549 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7550 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7551 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7552 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7553 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7554 "@" marker.
7555 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7556 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7557 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7558 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7559 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7560 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7561 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7562 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7563 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7564 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7565 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7566 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7567 (aarch64_sve_cnt_pat): Likewise.
7568 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7569 (*aarch64_sve_incsi_pat): Likewise.
7570 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7571 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7572 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7573 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7574 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7575 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7576 (*aarch64_sve_decsi_pat): Likewise.
7577 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7578 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7579 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7580 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7581 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7582 (@aarch64_pred_cntp<mode>): Likewise.
7583 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7584 New expander.
7585 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7586 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7587 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7588 New expander.
7589 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7590 New pattern.
7591 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7592 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7593 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7594 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7595 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7596 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7597 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7598 New expander.
7599 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7600 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7601 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7602 New expander.
7603 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7604 New pattern.
7605 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7606 expander.
7607 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7608 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7609 expander.
7610 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7611 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7612 expander.
7613 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7614 * config/aarch64/arm_sve.h: New file.
7615 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7616 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7617 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7618 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7619 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7620 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7621 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7622 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7623 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7624
7625 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7626
7627 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7628 New pattern.
7629 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7630 SVE modes.
7631
7632 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7633
7634 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7635 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7636 FFRT_REGNUM + 1.
7637 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7638 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7639 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7640 (aarch64_hard_regno_nregs): Handle the new register classes.
7641 (aarch64_hard_regno_mode_ok): Likewise.
7642 (aarch64_regno_regclass): Likewise.
7643 (aarch64_class_max_nregs): Likewise.
7644 (aarch64_register_move_cost): Likewise.
7645 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7646 as general register_operands.
7647
7648 2019-10-29 Martin Liska <mliska@suse.cz>
7649
7650 * ggc-common.c: One can't subtract unsigned types
7651 in compare function.
7652
7653 2019-10-29 Martin Liska <mliska@suse.cz>
7654
7655 * cgraphunit.c (symbol_table::compile): Pass
7656 title as dump_memory_report argument.
7657 * toplev.c (dump_memory_report): New argument.
7658 (finalize): Pass new argument.
7659 * toplev.h (dump_memory_report): Add argument.
7660
7661 2019-10-29 Martin Liska <mliska@suse.cz>
7662
7663 * ggc-common.c: Move Leak to the first column.
7664
7665 2019-10-29 Martin Liska <mliska@suse.cz>
7666
7667 * cgraphunit.c (symbol_table::compile): Remove argument
7668 for dump_memory_report.
7669 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7670 (compare_final): Remove in order to make report
7671 better readable.
7672 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7673 * mem-stats.h (mem_alloc_description::get_list):
7674 Do not pass cmp.
7675 (mem_alloc_description::dump): Likewise here.
7676 * toplev.c (dump_memory_report): Remove final
7677 argument.
7678 (finalize): Likewise.
7679 * toplev.h (dump_memory_report): Remove argument.
7680
7681 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7682
7683 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7684 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7685 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7686 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7687 accept "const".
7688
7689 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7690
7691 * coretypes.h (string_int_pair): New typedef.
7692 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7693 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7694 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7695
7696 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7697
7698 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7699 (simulate_builtin_function_decl): Declare.
7700 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7701 (LANG_HOOKS_INITIALIZER): Include it.
7702 * langhooks.c (add_builtin_function_common): Rename to...
7703 (build_builtin_function): ...this. Add a location parameter and use
7704 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7705 the decl instead.
7706 (add_builtin_function): Update accordingly, passing the returned
7707 decl to the lang hook.
7708 (add_builtin_function_ext_scope): Likewise
7709 (simulate_builtin_function_decl): New function.
7710
7711 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7712
7713 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7714 example, use actual names of supported offload targets.
7715
7716 PR target/92258
7717 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7718
7719 2019-10-28 Martin Sebor <msebor@redhat.com>
7720
7721 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7722 (handle_store): Pass argument to get_addr_stridx.
7723
7724 2019-10-28 Martin Sebor <msebor@redhat.com>
7725
7726 PR tree-optimization/92226
7727 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7728 the offset is in the open range outlined by SI's length.
7729
7730 2019-10-28 Martin Sebor <msebor@redhat.com>
7731
7732 PR c/66970
7733 * doc/cpp.texi (__has_builtin): Document.
7734 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7735
7736 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7737
7738 PR target/82981
7739 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7740 doubleword and low doubleword result of multiplication on
7741 MIPS64R6.
7742
7743 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7744 pure qualifier to the built-in.
7745 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7746 built-ins.
7747 (struct mips_builtin_description): Add is_pure flag.
7748 (mips_init_builtins): Mark built-in as pure if the flag in the
7749 corresponding mips_builtin_description struct is set.
7750
7751 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7752 alternative which covers the floating-point input value. Also
7753 forbid the split of insert.d pattern for floating-point values.
7754
7755 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7758 * config/riscv/riscv-sr.c: New file.
7759 * config/riscv/riscv.c (riscv_reorg): New function.
7760 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7761 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7762 (riscv_remove_unneeded_save_restore_calls): Declare.
7763 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7764
7765 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7766
7767 PR tree-optimization/92163
7768 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7769 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7770 before calling bitmap_set_bit.
7771 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7772 delete_dead_or_redundant_assignment.
7773 (dse_dom_walker::dse_optimize_stmt): Likewise.
7774 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7775
7776 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7777
7778 PR middle-end/91272
7779 * tree-vect-stmts.c (vectorizable_condition): Support
7780 EXTRACT_LAST_REDUCTION with fully-masked loops.
7781
7782 2019-10-28 Richard Biener <rguenther@suse.de>
7783
7784 PR tree-optimization/92252
7785 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7786 STMT_VINFO_REDUC_IDX when swapping operands.
7787
7788 2019-10-28 Richard Biener <rguenther@suse.de>
7789
7790 PR tree-optimization/92241
7791 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7792 we failed to update the reduction index do not use the pattern
7793 stmts for the reduction chain.
7794 (vectorizable_reduction): When the reduction chain is corrupt,
7795 fail.
7796 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7797 fail to update the reduction chain.
7798
7799 2019-10-28 Richard Biener <rguenther@suse.de>
7800
7801 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7802 STMT_VINFO_REDUC_IDX from the actual stmt.
7803 (vect_transform_reduction): Likewise.
7804 (vectorizable_reduction): Compute the reduction chain length,
7805 do not recompute the reduction operand index. Remove no longer
7806 necessary restriction for condition reduction chains.
7807
7808 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7809
7810 PR target/92225
7811 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7812 condition for V2DImode.
7813
7814 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7815
7816 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7817 Remove %k operand modifier.
7818 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7819
7820 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7821
7822 PR rtl-optimization/92007
7823 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7824 call it after reload if hot/cold partitioning has been done.
7825 (class pass_postreload_jump): Rename to
7826 pass_jump_after_combine.
7827 (make_pass_postreload_jump): Rename to
7828 make_pass_jump_after_combine.
7829 * passes.def(pass_postreload_jump): Move before reload, rename
7830 to pass_jump_after_combine.
7831 * tree-pass.h (make_pass_postreload_jump): Rename to
7832 make_pass_jump_after_combine.
7833
7834 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7835
7836 PR ipa/92242
7837 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7838 for missing EDGE_REF
7839 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7840
7841 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7842
7843 PR tree-optimization/88760
7844 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7845 Enable -funroll-loops for -O2 and above.
7846 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7847 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7848 do not turn on web and rngreg implicitly, if the unroller is not
7849 explicitly enabled.
7850
7851 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7852
7853 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7854 jump functions.
7855
7856 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7857
7858 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7859 * cgraph.h (cgraph_node::rtl_info): Likewise.
7860
7861 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7862
7863 * ipa-cp.c (propagate_constants_across_call): If args are not available
7864 just drop everything to varying.
7865 (find_aggregate_values_for_callers_subset): Watch for missing
7866 edge summary.
7867 (find_more_scalar_values_for_callers_subs): Likewise.
7868 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7869 update_jump_functions_after_inlining, propagate_controlled_uses):
7870 Watch for missing summaries.
7871 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7872 is finished.
7873 (ipa_write_node_info): Watch for missing summaries.
7874 (ipa_read_edge_info): Create new ref.
7875 (ipa_edge_args_sum_t): Add remove.
7876 (IPA_EDGE_REF_GET_CREATE): New macro.
7877 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7878 edge summary.
7879 (remap_edge_change_prob): Likewise.
7880
7881 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7882
7883 * ipa-inline-transform.c (inline_call): update function summaries
7884 after expanidng thunk.
7885
7886 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7887
7888 * ipa-icf.c (sem_function::merge): Update function summaries.
7889 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7890
7891 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7892
7893 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7894 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7895 operand already has scalar mode.
7896 (iptr): Remove SF/DF.
7897
7898 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7899
7900 PR target/91289
7901 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7902 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7903 this.
7904
7905 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7906
7907 * config/i386/sse.md
7908 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7909 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7910 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7911 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7912 <sse>_vmmaskcmp<mode>3):
7913 Change predicates from vector_operand to nonimmediate_operand,
7914 constraints xBm to xm, since scalar operations don't need
7915 memory address alignment.
7916 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7917 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7918 round_saeonly_nimm_predicate with
7919 round_saeonly_nimm_scalar_predicate.
7920 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7921 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7922 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7923 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7924 avx512f_vmfmadd_<mode>_mask3<round_name>,
7925 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7926 *avx512f_vmfmsub_<mode>_mask<round_name>,
7927 avx512f_vmfmsub_<mode>_mask3<round_name>,
7928 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7929 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7930 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7931 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7932 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7933 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7934 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7935 cvtusi2<ssescalarmodesuffix>32<round_name>,
7936 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7937 round_nimm_predicate with round_nimm_scalr_predicate.
7938 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7939 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7940 avx512er_vmrcp28<mode><round_saeonly_name>,
7941 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7942 ): Replace round_saeonly_nimm_predicate with
7943 round_saeonly_nimm_scalar_predicate.
7944 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7945 vector_operand with nonimmediate_operand.
7946 * config/i386/subst.md (round_scalar_nimm_predicate,
7947 round_saeonly_scalar_nimm_predicate): Replace
7948 vector_operand with nonimmediate_operand.
7949
7950 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7951
7952 PR target/89071
7953 * config/i386/i386.md (*rcpsf2_sse): Add
7954 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7955 (*rsqrtsf2_sse): Ditto.
7956 (*sqrt<mode>2_sse): Ditto.
7957 (sse4_1_round<mode>2): separate constraint vm, add
7958 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7959 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7960 by pass rpad.
7961 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7962 Ditto.
7963 (*sse_vmrsqrtv4sf2): Ditto.
7964 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7965 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7966 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7967 <iptr> pointer size modifier since vround support memory operand.
7968
7969 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7970
7971 PR target/85969
7972 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7973 static function.
7974
7975 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7976 Tobias Burnus <tobias@codesourcery.com>
7977
7978 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7979 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7980 common block decls.
7981
7982 2019-10-25 Richard Biener <rguenther@suse.de>
7983
7984 PR tree-optimization/92222
7985 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7986 (_slp_oprnd_info::second_pattern): Likewise.
7987 (_slp_oprnd_info::any_pattern): New.
7988 (vect_create_oprnd_info): Adjust.
7989 (vect_get_and_check_slp_defs): Compute whether any stmt is
7990 in a pattern.
7991 (vect_build_slp_tree_2): Avoid building up a node from scalars
7992 if any of the operand defs, not just the first, is in a pattern.
7993
7994 2019-10-25 Richard Biener <rguenther@suse.de>
7995
7996 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7997 swapping if we actually have to modify the IL on a shared stmt.
7998 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7999 because we no longer modify the IL.
8000
8001 2019-10-25 Martin Liska <mliska@suse.cz>
8002
8003 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
8004
8005 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
8006
8007 * tree-vect-loop.c (vectorizable_reduction): Restrict the
8008 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
8009 handled by vect_transform_reduction. Allow fully-masked loops
8010 to be used with reduction chains.
8011 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
8012 operations in fully-masked loops.
8013 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
8014 operations in fully-masked loops.
8015
8016 2019-10-25 Richard Biener <rguenther@suse.de>
8017
8018 * tree-vect-loop.c (vectorizable_reduction): Verify
8019 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
8020 correctly.
8021 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
8022 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
8023 stmts.
8024
8025 2019-10-24 Jakub Jelinek <jakub@redhat.com>
8026
8027 * gimplify.h (omp_construct_selector_matches): Declare.
8028 * gimplify.c (struct gimplify_omp_ctx): Add code member.
8029 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
8030 called function if needed for flag_openmp.
8031 (gimplify_scan_omp_clauses): Set ctx->code.
8032 (omp_construct_selector_matches): New function.
8033 * omp-general.h (omp_constructor_traits_to_codes,
8034 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
8035 * omp-general.c (omp_constructor_traits_to_codes,
8036 omp_context_selector_matches, omp_resolve_declare_variant): New
8037 functions.
8038
8039 * config/arc/arc.c (hwloop_optimize): Add missing space in string
8040 literal.
8041 * config/rx/rx.c (rx_print_operand): Likewise.
8042 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8043 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8044 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
8045 Likewise.
8046 * genemit.c (emit_c_code): Likewise.
8047 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
8048
8049 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8050
8051 * symbols-summary.h (fast_function_summary<T *, V>::release,
8052 fast_call_summary<T *, V>::release): Free m_vector.
8053
8054 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8055
8056 * cgraphunit.c (symbol_table::process_new_functions): Call
8057 ipa_free_size_summary.
8058 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
8059 (devirtualization_time_bonus): Update.
8060 (ipcp_propagate_stage): Update.
8061 * ipa-fnsummary.c (ipa_size_summaries): New.
8062 (ipa_fn_summary_alloc): Alloc size summary.
8063 (dump_ipa_call_summary): Update.
8064 (ipa_dump_fn_summary): Update.
8065 (analyze_function_body): Update.
8066 (compute_fn_summary): Likewise.
8067 (ipa_get_stack_frame_offset): New function.
8068 (inline_update_callee_summaries): Do not update frame offsets.
8069 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
8070 remove call and function summary.
8071 (ipa_update_overall_fn_summary): Update.
8072 (inline_read_section): Update.
8073 (ipa_fn_summary_write): Update.
8074 (ipa_free_fn_summary): Do not remove summaries.
8075 (ipa_free_size_summary): New.
8076 (release summary pass): Also run at WPA.
8077 * ipa-fnsummary.h (ipa_size_summary): Declare.
8078 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
8079 estimated_self_stack_size.
8080 (ipa_size_summary_t): New type.
8081 (ipa_size_summaries): Declare.
8082 (ipa_free_size_summary): Declare.
8083 (ipa_get_stack_frame_offset): Declare.
8084 * ipa-icf.c (sem_function::merge): Update.
8085 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
8086 (estimate_growth): Update.
8087 (growth_likely_positive): Update.
8088 (clone_inlined_nodes): Update.
8089 (inline_call): Update.
8090 * ipa-inline.c (caller_growth_limits): Update.
8091 (edge_badness): Update.
8092 (recursive_inlining): Update.
8093 (inline_small_functions): Update.
8094 (inline_to_all_callers_1): Update.
8095 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
8096
8097 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
8098
8099 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
8100 (uavg<mode>3_ceil): ... This.
8101 (altivec_vavgs<VI_char>): Rename to...
8102 (avg<mode>3_ceil): ... This.
8103 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
8104 VAVGUW, VAVGSW): Adjust.
8105
8106 2019-10-24 Nathan Sidwell <nathan@acm.org>
8107
8108 * dumpfile.c (dump_begin): Reorder decls to use RAII.
8109
8110 2019-10-24 Martin Liska <mliska@suse.cz>
8111
8112 * symbol-summary.h (gt_pch_nx): Mark all functions
8113 with gcc_unreachable as we do not expect to be called.
8114
8115 2019-10-24 Richard Biener <rguenther@suse.de>
8116
8117 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
8118 chains try harder with operand swapping and instead of
8119 putting a shifted chain into the reduction operands put
8120 a repetition of the final reduction op there as if we'd
8121 reassociate the expression.
8122
8123 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
8124
8125 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
8126 statics_not_read and statics_not_written to statics_read and
8127 statics_written respectively.
8128 (no_module_statics): New static var.
8129 (ipa_reference_get_not_read_global): Rename to ...
8130 (ipa_reference_get_read_global): ... this.
8131 (ipa_reference_get_not_written_global): Rename to ...
8132 (ipa_reference_get_written_global): ... this.
8133 (dump_static_vars_set_to_file): Dump no_module_statics.
8134 (copy_static_var_set): Add for propagation parameter.
8135 (ipa_init): Initialize no_module_statics.
8136 (ipa_ref_opt_summary_t::duplicate): Update.
8137 (ipa_ref_opt_summary_t::remove): Update.
8138 (propagate): Update.
8139 (write_node_summary_p): Look correctly for bitmap differences.
8140 (ipa_reference_write_optimization_summary): Update.
8141 (ipa_reference_read_optimization_summary): Update.
8142 * ipa-reference.h
8143 (ipa_reference_get_not_read_global): Rename to ...
8144 (ipa_reference_get_read_global): ... this.
8145 (ipa_reference_get_not_written_global): Rename to ...
8146 (ipa_reference_get_written_global): ... this.
8147 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8148 (call_may_clobber_ref_p_1): Update.
8149
8150 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8151
8152 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8153 and add comment.
8154 (msp430_hard_regno_nregs_with_padding): Remove.
8155
8156 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8157
8158 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8159 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8160 shift amount is between 1 and 4.
8161 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8162 is between 1 and 4.
8163
8164 2019-10-24 Richard Biener <rguenther@suse.de>
8165
8166 PR tree-optimization/92205
8167 * tree-vect-loop.c (vectorizable_reduction): Restrict
8168 search for alternate vectype_in to lane-reducing patterns
8169 we support.
8170
8171 2019-10-24 Richard Biener <rguenther@suse.de>
8172
8173 PR tree-optimization/92203
8174 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8175 Skip eliminating conversion stmts inserted by insertion.
8176
8177 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8178
8179 * config/s390/s390.c (s390_get_thread_pointer): Use
8180 gen_get_thread_pointer.
8181 (s390_expand_split_stack_prologue): Likewise.
8182 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8183 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8184 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8185 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8186 parameterized name.
8187
8188 2019-10-24 Richard Biener <rguenther@suse.de>
8189
8190 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8191 SLP discovery fails try to handle the reduction as part
8192 of SLP reduction discovery.
8193
8194 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8195
8196 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8197 declaration.
8198 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8199 attribute if it exists, rather than the insn size. If we use the
8200 insn size, adjust the size to remove the extra size that prefixed
8201 instructions take.
8202 (rs6000_adjust_insn_length): New function.
8203 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8204 update the instruction sized if prefixed instructions are used.
8205 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8206 (non_prefixed_length attribute): Delete.
8207 (num_insns attribute): New insn attribute to return the number of
8208 instructions.
8209 (max_prefixed_insns attribute): New insn attribute to return the
8210 maximum number of prefixed instructions in an insn.
8211 (length attribute): Do not adjust for prefix instructions here,
8212 punt to ADJUST_INSN_LENGTH.
8213 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8214 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8215 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8216 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8217 max_prefixed_insns and num_insns.
8218
8219 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8220 (movtd_64bit_nodm): Reformat.
8221 (mov<mode>_32bit): Reformat.
8222 (mov<mode>_softfloat): Reformat.
8223 (FMOVE128_GPR splitter): Reformat.
8224 (DIFD splitter): Reformat.
8225 (TI2 splitter): Reformat.
8226 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8227 bits of the offset for the memory address are non-zero, use PLWA
8228 if prefixed instructions are available.
8229
8230 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8231
8232 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8233
8234 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8235
8236 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8237 previous patch.
8238
8239 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8240
8241 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8242 (cmp_symbol_files): New.
8243 (lto_output): Copy sections in file order.
8244 * lto-streamer.h (lto_file_decl_data): Add field order.
8245
8246 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8247
8248 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8249 * ipa-reference.c (reference_vars_map_t): new type.
8250 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8251 (ipa_reference_var_uid): Implement.
8252 (varpool_node_hooks): New static var.
8253 (varpool_removal_hook): New function.
8254 (is_improper): Do not check bitmap for id==-1
8255 (get_static_name): Update.
8256 (ipa_init): Initialize new datastructures.
8257 (analyze_function): Do not recompute ids.
8258 (propagate): Free reference_vars_to_consider.
8259 (stream_out_bitmap): Update.
8260 (ipa_reference_read_optimization_summary): Update.
8261
8262 2019-10-23 qing zhao <qing.zhao@oracle.com>
8263
8264 PR gcov-profile/91971
8265 * coverage.c (coverage_init): Mangle the full path of filename when
8266 filename is a absolute path.
8267
8268 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8269
8270 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8271 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8272 (msp430_has_hwmult): New.
8273 (msp430_output_labelref):
8274 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8275 * config/msp430/msp430.md (mulhisi3): Likewise.
8276 (umulhisi3): Likewise.
8277 (mulsidi3): Likewise.
8278 (umulsidi3): Likewise.
8279
8280 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8281
8282 PR ipa/92074
8283 * params.def (inline-heuristics-hint-percent): Set to 600.
8284
8285 2019-10-23 Richard Biener <rguenther@suse.de>
8286
8287 PR tree-optimization/65930
8288 * tree-vect-loop.c (check_reduction_path): Allow conversions
8289 that only change the sign.
8290 (vectorizable_reduction): Relax latch def stmts we handle further.
8291
8292 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8293
8294 PR debug/90231
8295 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8296 (remove_unused_ivs): Use it instead of get_computation_at. When
8297 choosing best candidate, only consider candidates where
8298 get_debug_computation_at actually returns non-NULL.
8299
8300 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8301
8302 PR tree-optimization/92131
8303 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8304 range would be symbolic, drop to varying for any explicit overflow
8305 in the constant part or if neither range is a singleton.
8306
8307 2019-10-23 Martin Liska <mliska@suse.cz>
8308
8309 PR middle-end/81669
8310 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8311 Initialize m_data.
8312
8313 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8314
8315 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8316 int_mode_for_mode rather than mode_for_int_vector for scalars.
8317
8318 2019-10-23 Richard Biener <rguenther@suse.de>
8319
8320 PR tree-optimization/92179
8321 * tree-vect-stmts.c (vectorizable_shift): For shift args
8322 that are all the same remove type restriction in the SLP case.
8323 Adjust SLP code to handle converting of the shift arg to
8324 only apply in case the modes are different.
8325
8326 2019-10-23 Martin Liska <mliska@suse.cz>
8327
8328 PR ipa/91969
8329 * ipa-inline.c (recursive_inlining): Do not print
8330 when curr->count is not initialized.
8331
8332 2019-10-23 Richard Biener <rguenther@suse.de>
8333
8334 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8335 op from scalars in case there's a constant operand in its
8336 definition.
8337
8338 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8339
8340 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8341 against out of range max skip or log values.
8342
8343 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8344
8345 * cgraph.c (dump_graphviz): Change name to dump_name
8346
8347 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8348
8349 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8350 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8351 subtraction from a carry operation.
8352
8353 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8354
8355 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8356
8357 2019-10-22 Richard Biener <rguenther@suse.de>
8358
8359 PR tree-optimization/92173
8360 * tree-vect-loop.c (vectorizable_reduction): If
8361 vect_transform_reduction cannot handle code-generation try without
8362 the single-def-use-cycle optimization. Pass optab_vector to
8363 optab_for_tree_code to get vector shifts as that's what we'd
8364 generate.
8365
8366 2019-10-22 Michael Matz <matz@suse.de>
8367
8368 PR middle-end/90796
8369 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8370 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8371 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8372
8373 2019-10-22 Richard Biener <rguenther@suse.de>
8374
8375 PR tree-optimization/92173
8376 * tree-vect-loop.c (vectorizable_reduction): If
8377 vect_transform_reduction cannot handle code-generation try without
8378 the single-def-use-cycle optimization. Pass optab_vector to
8379 optab_for_tree_code to get vector shifts as that's what we'd
8380 generate.
8381
8382 2019-10-22 Martin Liska <mliska@suse.cz>
8383
8384 * diagnostic-format-json.cc (json_from_expanded_location):
8385 Use json::integer_number.
8386 * gcov.c (output_intermediate_json_line): Use new
8387 json::integer_number.
8388 (output_json_intermediate_file): Likewise.
8389 * json.cc (number::print): Move to ...
8390 (float_number::print): ... this.
8391 (integer_number::print): New.
8392 (test_writing_numbers): Move to ...
8393 (test_writing_float_numbers): ... this.
8394 (test_writing_integer_numbers): New.
8395 (json_cc_tests): Register test_writing_integer_numbers.
8396 * json.h (class value): Add forward declaration
8397 for float_number and integer_number.
8398 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8399 (class number): Move to ...
8400 (class float_number): ... this.
8401 (class integer_number): New.
8402 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8403 Use json::integer_number.
8404 (optrecord_json_writer::location_to_json): Likewise.
8405 (optrecord_json_writer::profile_count_to_json): Likewise.
8406 (optrecord_json_writer::pass_to_json): Likewise.
8407
8408 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8409
8410 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8411 autodetected_vector_size rather than vector_size is zero.
8412 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8413 Set autodetected_vector_size immediately after calling
8414 vect_analyze_loop_2. Check for a fatal error before advancing
8415 next_size.
8416
8417 2019-10-21 Jason Merrill <jason@redhat.com>
8418
8419 * lock-and-run.sh: Check for process existence rather than timeout.
8420
8421 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8422
8423 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8424 widening multiplication.
8425
8426 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8427
8428 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8429 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8430 type attribute.
8431 (subsi3_carryin_shift): Separate into register and constant controlled
8432 alternatives. Use shift_amount_operand for operand 4. Set shift
8433 attribute and simplify type attribute.
8434 (subsi3_carryin_shift_alt): Likewise.
8435 (rsbsi3_carryin_shift): Likewise.
8436 (rsbsi3_carryin_shift_alt): Likewise.
8437 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8438 and register controlled shifts into distinct alternatives.
8439 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8440 (andsi_not_shiftsi_si_scc): Likewise.
8441 (arm_cmpsi_negshiftsi_si): Likewise.
8442 (not_shiftsi): Remove redundant M constraint from alternative 1.
8443 (not_shiftsi_compare0): Likewise.
8444 (arm_cmpsi_insn): Remove redundant alternative 2.
8445 (cmpsi_shift_swp): Likewise.
8446 (sub_shiftsi): Likewise.
8447 (sub_shiftsi_compare0_scratch): Likewise.
8448 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8449 (thumb2_cmpsi_neg_shiftsi): Likewise.
8450
8451 2019-10-21 Richard Biener <rguenther@suse.de>
8452
8453 PR tree-optimization/92162
8454 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8455 STMT_VINFO_REDUC_IDX in reduc_info.
8456 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8457
8458 2019-10-21 Richard Biener <rguenther@suse.de>
8459
8460 * tree-vectorizer.h (_slp_tree::ops): New member.
8461 (SLP_TREE_SCALAR_OPS): New.
8462 (vect_get_slp_defs): Adjust prototype.
8463 * tree-vect-slp.c (vect_free_slp_tree): Release
8464 SLP_TREE_SCALAR_OPS.
8465 (vect_create_new_slp_node): Initialize it. New overload for
8466 initializing by an operands array.
8467 (_slp_oprnd_info::ops): New member.
8468 (vect_create_oprnd_info): Initialize it.
8469 (vect_free_oprnd_info): Release it.
8470 (vect_get_and_check_slp_defs): Populate the operands array.
8471 Do not swap operands in the IL when not necessary.
8472 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8473 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8474 swap operands in the operands array. Do not swap operands in
8475 the IL.
8476 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8477 (vect_gather_slp_loads): Fix.
8478 (vect_detect_hybrid_slp_stmts): Likewise.
8479 (vect_slp_analyze_node_operations_1): Search for a internal
8480 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8481 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8482 the def-type push/pop dance.
8483 (vect_get_constant_vectors): Compute number_of_vectors here.
8484 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8485 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8486 (vect_get_slp_defs): Simplify greatly.
8487 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8488 (vect_transform_reduction): Likewise.
8489 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8490 (vectorizable_call): Likewise.
8491 (vectorizable_operation): Likewise.
8492 (vectorizable_load): Likewise.
8493 (vectorizable_condition): Likewise.
8494 (vectorizable_comparison): Likewise.
8495
8496 2019-10-21 Richard Biener <rguenther@suse.de>
8497
8498 PR tree-optimization/92161
8499 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8500 for reductions.
8501
8502 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8503
8504 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8505 (aarch64_rndr): New define_insn.
8506 (aarch64_rndrrs): Likewise.
8507 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8508 (TARGET_RNG): Likewise.
8509 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8510 argument.
8511 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8512 Add fourth argument in prototype.
8513 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8514 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8515 (aarch64_init_rng_builtins): Define.
8516 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8517 (aarch64_expand_rng_builtin): Define.
8518 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8519 RNG builtins.
8520 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8521 __ARM_FEATURE_RNG when TARGET_RNG.
8522 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8523
8524 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8525
8526 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8527 alignment is more restrictive.
8528
8529 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8530
8531 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8532 (vect_update_max_nunits): Update comment.
8533 (current_vector_size): Delete.
8534 * tree-vect-stmts.c (current_vector_size): Likewise.
8535 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8536 of current_vector_size.
8537 (get_mask_type_for_scalar_type): Likewise.
8538 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8539 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8540 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8541 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8542 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8543 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8544
8545 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8546
8547 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8548 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8549 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8550 accordingly.
8551
8552 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8553
8554 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8555 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8556 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8557 call accordingly.
8558 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8559
8560 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8561
8562 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8563 a loop_vec_info.
8564 (vect_set_loop_condition_masked): Update call accordingly.
8565
8566 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8567
8568 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8569 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8570 (simple_integer_narrowing): Update call accordingly.
8571 (vectorizable_conversion): Likewise.
8572
8573 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8574
8575 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8576 (vectorizable_call): Update call accordingly.
8577
8578 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8579
8580 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8581 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8582 (duplicate_and_interleave): Update call accordingly.
8583 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8584
8585 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8586
8587 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8588 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8589 (vect_get_constant_vectors): Update call accordingly.
8590 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8591
8592 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8593
8594 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8595 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8596 (vect_prologue_cost_for_slp_op): Update call accordingly.
8597 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8598 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8599 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8600 (get_mask_type_for_scalar_type): Likewise.
8601 (vect_get_vector_types_for_stmt): Likewise.
8602 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8603 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8604 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8605 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8606 (vect_split_statement, vect_convert_input): Likewise.
8607 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8608 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8609 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8610 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8611 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8612 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8613 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8614 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8615 (vect_recog_mask_conversion_pattern): Likewise.
8616 (vect_add_conversion_to_pattern): Likewise.
8617 (vect_recog_gather_scatter_pattern): Likewise.
8618 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8619 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8620
8621 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8622
8623 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8624 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8625 (vect_check_load_store_mask): Update call accordingly.
8626 (vect_get_mask_type_for_stmt): Likewise.
8627 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8628 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8629 (vect_convert_mask_for_vectype): Likewise.
8630
8631 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8632
8633 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8634 a vec_info.
8635 (vect_recog_dot_prod_pattern): Update call accordingly.
8636 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8637 (vect_recog_widen_sum_pattern): Likewise.
8638
8639 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8640
8641 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8642 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8643 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8644 accordingly.
8645
8646 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8647
8648 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8649 get_vectype_for_scalar_type_and_size instead of
8650 get_vectype_for_scalar_type.
8651
8652 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8653
8654 * common.opt (-fcommon): Fix description.
8655
8656 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8657
8658 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8659 * config/i386/i386.c (ix86_pre_reload_split): New function.
8660 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8661 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8662 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8663 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8664 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8665 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8666 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8667 *<shift_insn><dwi>3_doubleword_mask,
8668 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8669 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8670 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8671 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8672 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8673 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8674 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8675 *avx2_<code>v8qiv8si2<mask_name>_2,
8676 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8677 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8678 *avx512f_<code>v8qiv8di2<mask_name>_2,
8679 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8680 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8681 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8682 sse4_2_pcmpistr): Likewise.
8683
8684 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8685
8686 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8687 now defaults to https.
8688
8689 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8690
8691 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8692 skip non-zero array accesses.
8693
8694 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8695
8696 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8697 and return a boolean success value. Move the allocation and
8698 initialization of the bb_vec_info to...
8699 (vect_slp_bb_region): ...here. Update call accordingly.
8700 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8701 than in vect_slp_analyze_bb_1.
8702
8703 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8704
8705 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8706 when processing the given datarefs for the first time and
8707 check_datarefs subsequently.
8708 (vect_slp_bb_region): New function, split out of...
8709 (vect_slp_bb): ...here. Don't recompute the region bounds and
8710 dataref sets when retrying with a different vector size.
8711
8712 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8713 Uroš Bizjak <ubizjak@gmail.com>
8714
8715 PR target/92140
8716 * config/i386/predicates.md (int_nonimmediate_operand): New special
8717 predicate.
8718 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8719 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8720 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8721 define_insn_and_split patterns.
8722
8723 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8724
8725 * config/rs6000/rs6000.md: Delete out--of-date comment about
8726 special-casing integer loads.
8727
8728 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8729
8730 * escaped_string.h (escaped_string): New header.
8731 * tree.c (escaped_string): Remove escaped_string class.
8732
8733 2019-10-18 Martin Sebor <msebor@redhat.com>
8734
8735 PR tree-optimization/92157
8736 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8737 compute_string_length to return a negative result.
8738
8739 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8740
8741 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8742 (negvsi3, negvdi3): Delete.
8743 (negdi2_compare): Delete.
8744
8745 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8746
8747 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8748 operations.
8749 (subdi3_compare1): Delete pattern.
8750 (subvsi3_borrow): New insn pattern.
8751 (subvsi3_borrow_imm): Likewise.
8752
8753 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8754
8755 * config/arm/arm.md (subv<mode>4): Delete.
8756 (subvdi4): New expander pattern.
8757 (subvsi4): Likewise. Handle some immediate values.
8758 (subvsi3_intmin): New insn pattern.
8759 (subvsi3): Likewise.
8760 (subvsi3_imm1): Likewise.
8761 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8762 idioms.
8763
8764 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8765
8766 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8767 incoming operands. Early split the calculation into SImode
8768 operations.
8769 (usubvsi3_borrow): New insn pattern.
8770 (usubvsi3_borrow_imm): Likewise.
8771
8772 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8773
8774 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8775 (usubvsi4): New pattern. Allow some immediate values for inputs.
8776 (usubvdi4): New pattern.
8777
8778 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8779
8780 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8781 or second operand of the PLUS inside a DImode equality test to be
8782 sign-extend when selecting CC_Vmode.
8783 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8784 instructions.
8785 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8786 expand patterns.
8787 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8788 (addsi3_cin_vout_0): Likewise.
8789 (adddi3_compareV): Delete.
8790
8791 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8792
8793 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8794 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8795 to transform this back into the summation version when that leads
8796 to smaller code.
8797
8798 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8799
8800 * config/arm/arm.md (addv<mode>4): Delete.
8801 (addvsi4): New pattern. Handle immediate values that the architecture
8802 supports.
8803 (addvdi4): New pattern.
8804 (addsi3_compareV): Rename to ...
8805 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8806 and use COMPARE rather than NE.
8807 (addsi3_compareV_imm): New pattern.
8808 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8809 a signed-overflow check.
8810
8811 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8812
8813 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8814 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8815 CC_ADCmode.
8816 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8817 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8818 with overflow.
8819 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8820 expand patterns.
8821 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8822 (addsi3_cin_cout_imm_insn): Likewise.
8823 (adddi3_compareC): Delete insn.
8824 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8825
8826 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8827
8828 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8829 * (uaddv<mode>4): Delete expansion pattern.
8830 (uaddvsi4): New pattern.
8831 (uaddvdi4): Likewise.
8832 (addsi3_compareC): Delete pattern, change callers to use
8833 addsi3_compare_op1.
8834 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8835 reduce the number of alternatives and re-work type attribute handling.
8836 (addsi3_compare_op2): Clean up constraints to reduce the number of
8837 alternatives and re-work type attribute handling.
8838 (compare_addsi2_op0): Likewise.
8839 (compare_addsi2_op1): Likewise.
8840
8841 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8842
8843 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8844 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8845 for DImode operands.
8846 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8847 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8848 CC_NCVmode.
8849 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8850 (arm_cmpdi_unsigned): Delete.
8851
8852 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8853
8854 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8855 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8856 unchanged only if that will be cheaper.
8857 (arm_select_cc_mode): Recognize a swapped comparison that will
8858 be regenerated using RSBS or RSCS. Relax restriction on selecting
8859 CC_RSBmode.
8860 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8861 a constant.
8862 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8863 is CC_RSBmode.
8864 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8865 as CCmode.
8866 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8867 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8868
8869 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8870
8871 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8872 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8873 need these modes.
8874 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8875 of EQ, NE, LT, GE, LTU and GEU.
8876 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8877 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8878 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8879 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8880 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8881
8882 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8883
8884 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8885 operand 2.
8886 (cstoredi4): Similarly, but for operand 3.
8887 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8888 canonicalization of unsigned compares with a constant on Arm.
8889 Prefer using const+1 and adjusting the comparison over swapping the
8890 operands whenever the original constant was not valid.
8891 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8892 register here.
8893 (arm_validize_comparison): Do not force invalid DImode operands to
8894 registers here.
8895
8896 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8897
8898 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8899 return CC_Zmode if comparing against a constant where one word is
8900 zero.
8901 (arm_gen_compare_reg): Split DImode handling to ...
8902 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8903 against simple constants.
8904 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8905
8906 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8907
8908 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8909 (rsbsi3_carryin_shift_alt): Likewise.
8910
8911 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8912
8913 * config/arm/arm.md (negscc_borrow): New pattern.
8914 (mov_negscc): Don't split if the insn would match negscc_borrow.
8915 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8916 (thumb2_mov_negscc_strict_it): Likewise.
8917
8918 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8919
8920 * config/arm/arm.c (arm_insn_cost): New function.
8921 (TARGET_INSN_COST): Override default definition.
8922
8923 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8924
8925 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8926 borrow operations.
8927
8928 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8929
8930 * config/arm/arm.c (strip_carry_operation): New function.
8931 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8932 for SImode.
8933
8934 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8935
8936 * config/arm/predicates.md (arm_carry_operation): New special
8937 predicate.
8938 * config/arm/iterators.md (LTUGEU): Delete iterator.
8939 (cnb): Delete code attribute.
8940 (optab): Delete ltu and geu elements.
8941 * config/arm/arm.md (addsi3_carryin): Renamed from
8942 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8943 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8944 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8945 (addsi3_carryin_clobercc): Similarly.
8946 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8947 Thumb2 state.
8948
8949 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8950
8951 * config/arm/arm.md (arm_subdi3): Delete insn.
8952 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8953
8954 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8955
8956 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8957 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8958 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8959 return CC_RSBmode.
8960 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8961 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8962 expand.
8963 (subdi3): Rewrite to early-expand the sub-operations.
8964 (rsb_im_compare): New pattern.
8965 (negdi2): Delete.
8966 (negdi2_insn): Delete.
8967 (arm_negsi2): Correct type attribute to alu_imm.
8968 (negsi2_0compare): New insn pattern.
8969 (negsi2_carryin): New insn pattern.
8970
8971 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8972
8973 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8974 operand 2.
8975
8976 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8977
8978 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8979 to match canonical form.
8980
8981 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8982
8983 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8984 (extend<mode>di2): Likewise.
8985
8986 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8987
8988 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8989 * config/arm/arm.c (arm_decompose_di_binop): New function.
8990 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8991 If not generating Thumb-1 code, decompose the operation into 32-bit
8992 pieces.
8993 * add0si_carryin_<optab>: New pattern.
8994
8995 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8996
8997 * arm.md (adddi3): Only accept register operands.
8998 (arm_adddi3): Convert to simple insn with no split. Do not accept
8999 constants.
9000 (adddi_sesidi_di): Delete patern.
9001 (adddi_zesidi_di): Likewise.
9002 (uaddv<mode>4): Use LTU as condition for branch.
9003 (adddi3_compareV): Convert to simple insn with no split.
9004 (addsi3_compareV_upper): Delete pattern.
9005 (adddi3_compareC): Convert to simple insn with no split. Correct
9006 flags setting expression.
9007 (addsi3_compareC_upper): Delete pattern.
9008 (addsi3_compareC): Correct flags setting expression.
9009 (subdi3_compare1): Convert to simple insn with no split.
9010 (subsi3_carryin_compare): Delete pattern.
9011 (arm_subdi3): Convert to simple insn with no split.
9012 (subdi_zesidi): Delete pattern.
9013 (subdi_di_sesidi): Delete pattern.
9014 (subdi_zesidi_di): Delete pattern.
9015 (subdi_sesidi_di): Delete pattern.
9016 (subdi_zesidi_zesidi): Delete pattern.
9017 (negvdi3): Use s_register_operand.
9018 (negdi2_compare): Convert to simple insn with no split.
9019 (negdi2_insn): Likewise.
9020 (negsi2_carryin_compare): Delete pattern.
9021 (negdi_zero_extendsidi): Delete pattern.
9022 (arm_cmpdi_insn): Convert to simple insn with no split.
9023 (negdi2): Don't call gen_negdi2_neon.
9024 * config/arm/neon.md (adddi3_neon): Delete pattern.
9025 (subdi3_neon): Delete pattern.
9026 (negdi2_neon): Delete pattern.
9027 (splits for negdi2_neon): Delete splits.
9028
9029 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9030
9031 PR middle-end/92153
9032 * ggc-page.c (release_pages): Read g->alloc_size before free rather
9033 than after it.
9034
9035 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
9036
9037 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
9038 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
9039 new multilib variants and new mappings.
9040
9041 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
9042
9043 PR target/86040
9044 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
9045
9046 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9047 Richard Sandiford <richard.sandiford@arm.com>
9048
9049 PR target/86753
9050 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
9051 and define hashmap traits for it.
9052 (loop_vec_info::scalar_cond_masked_set): New member.
9053 (vect_record_loop_mask): Adjust prototype.
9054 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
9055 Implement method.
9056 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
9057 vect_record_loop_mask.
9058 (vectorizable_live_operation): Likewise.
9059 (vect_record_loop_mask): New param scalar_mask. Add entry
9060 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
9061 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
9062 Pass it as last arg to vect_record_loop_mask.
9063 (vectorizable_call): Pass scalar_mask as last arg to
9064 vect_record_loop_mask.
9065 (vectorizable_store): Likewise.
9066 (vectorizable_load): Likewise.
9067 (vectorizable_condition): Check if another part of vectorized code
9068 applies loop_mask to condition or to it's inverse, and if yes,
9069 apply loop_mask to result of vector comparison.
9070
9071 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
9072
9073 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
9074
9075 2019-10-18 Jakub Jelinek <jakub@redhat.com>
9076
9077 PR tree-optimization/92056
9078 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
9079 before calling compute_builtin_object_size.
9080
9081 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
9082
9083 PR target/65342
9084 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
9085 (movdi_low_st): Delete.
9086 * config/rs6000/rs6000.c
9087 (darwin_rs6000_legitimate_lo_sum_const_p): New.
9088 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
9089 * config/rs6000/rs6000.md (movsi_low): Delete.
9090
9091 2019-10-17 Jason Merrill <jason@redhat.com>
9092
9093 * gimplify.h (get_initialized_tmp_var): Add default argument to
9094 post_p.
9095 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
9096 NULL post_p argument.
9097 * targhooks (std_gimplify_va_arg_expr): Likewise.
9098
9099 2019-10-17 Richard Biener <rguenther@suse.de>
9100
9101 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
9102 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
9103 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
9104 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
9105 * tree-vect-loop.c (vect_is_simple_reduction): Set
9106 STMT_VINFO_REDUC_CODE.
9107 (vectorizable_reduction): Remove dead and redundant code, use
9108 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
9109
9110 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
9111
9112 Fix breakage introduced by r276985.
9113
9114 * config/avr/avr.c (avr_option_override): Remove set of
9115 PARAM_ALLOW_STORE_DATA_RACES.
9116 * common/config/avr/avr-common.c (avr_option_optimization_table)
9117 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
9118
9119 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
9120
9121 * config/i386/i386.h (processor_costs): Add clear_ratio.
9122 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
9123 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
9124 of 6 and move_ratio in all cost models.
9125
9126 2019-10-17 Richard Biener <rguenther@suse.de>
9127
9128 * tree-vect-loop.c (check_reduction_path): Compute reduction
9129 operation here.
9130 (vect_is_simple_reduction): Remove special-case of single-stmt
9131 reduction path detection.
9132
9133 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
9134
9135 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9136
9137 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
9138
9139 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9140 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9141 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9142 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9143 New combine patterns.
9144 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9145 above.
9146 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9147
9148 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
9149
9150 * tree-vrp.c (value_range_base::dump): Display +INF for both
9151 pointers and integers when appropriate.
9152
9153 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9154
9155 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9156 when to use versioning threshold.
9157
9158 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9159
9160 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9161 outlined code from ...
9162 (vect_analyze_loop_2): ... here.
9163
9164 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9165
9166 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9167 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9168 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9169
9170 2019-10-17 Richard Biener <rguenther@suse.de>
9171
9172 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9173 (vect_is_simple_reduction): Move all validity checks ...
9174 (vectorizable_reduction): ... here. Compute whether we
9175 need a fold-left reduction here.
9176 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9177 both overloads, check needs_fold_left_reduction_p directly.
9178 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9179
9180 2019-10-17 Richard Biener <rguenther@suse.de>
9181
9182 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9183 TARGET_MEM_REF creation.
9184
9185 2019-10-17 Richard Biener <rguenther@suse.de>
9186
9187 PR tree-optimization/92129
9188 * tree-vect-loop.c (vectorizable_reduction): Also fail
9189 on GIMPLE_SINGLE_RHS.
9190
9191 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9192
9193 PR tree-optimization/92056
9194 * tree-object-size.c (cond_expr_object_size): Return early if then_
9195 processing resulted in unknown size.
9196
9197 PR tree-optimization/92115
9198 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9199 temporary if it could trap.
9200
9201 2019-10-17 Richard Biener <rguenther@suse.de>
9202
9203 PR debug/91887
9204 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9205 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9206
9207 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9208
9209 * tree-ssa-strlen.c (maybe_invalidate): Use
9210 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9211
9212 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9213 Jim Wilson <jimw@sifive.com>
9214
9215 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9216 regs to SIBCALL_REGS.
9217 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9218 passing regs to SIBCALL_REGS.
9219
9220 2019-10-16 Martin Sebor <msebor@redhat.com>
9221
9222 PR tree-optimization/83821
9223 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9224 the length of a string when available.
9225 (handle_builtin_memset) Add argument.
9226 (handle_store, strlen_check_and_optimize_call): Same.
9227 (check_and_optimize_stmt): Same. Pass it to callees.
9228
9229 2019-10-16 Martin Sebor <msebor@redhat.com>
9230
9231 PR tree-optimization/91996
9232 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9233 information.
9234 (compare_nonzero_chars): Add an overload.
9235 (count_nonzero_bytes): Add an argument. Call overload above.
9236 Handle non-constant lengths in some range.
9237 (handle_store): Add an argument.
9238 (check_and_optimize_stmt): Pass an argument to handle_store.
9239
9240 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9241
9242 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9243
9244 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9245
9246 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9247 operands which correspond to the same input-output register to
9248 have the same pseudo assigned to them.
9249
9250 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9251
9252 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9253
9254 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9255
9256 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9257 Apply reasonable limit to symbol offsets.
9258
9259 2019-10-16 Richard Biener <rguenther@suse.de>
9260
9261 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9262 (vect_is_simple_reduction): Delay checking to
9263 vectorizable_reduction and relax the checking.
9264 (vectorizable_reduction): Check we have a simple use. Check
9265 for bogus condition reductions.
9266 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9267 are looking at the last stmt in a pattern sequence when
9268 filling in backedge PHI values.
9269
9270 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9271 Jiufu Guo <guojiufu@linux.ibm.com>
9272
9273 PR target/70010
9274 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9275 the callee explicitly disables some isa_flags the caller is using.
9276
9277 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9278
9279 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9280
9281 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9282
9283 * genmodes.c (mode_data::order): New field.
9284 (blank_mode): Update accordingly.
9285 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9286 (make_vector_modes): Likewise.
9287 (VECTOR_MODES): Update use accordingly.
9288 (cmp_modes): Sort by the new order field ahead of sorting by size.
9289 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9290 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9291 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9292 (aarch64_classify_vector_mode): Handle the new partial modes.
9293 (aarch64_vl_bytes): New function.
9294 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9295 when counting the number of registers in an SVE mode.
9296 (aarch64_class_max_nregs): Likewise.
9297 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9298 in registers yet.
9299 (aarch64_classify_address): Treat partial vectors analogously
9300 to full vectors.
9301 (aarch64_print_address_internal): Consolidate the printing of
9302 MUL VL addresses, using aarch64_vl_bytes as the number of
9303 bytes represented by "VL".
9304 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9305
9306 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9307
9308 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9309 rather than known_lt when choosing frame layouts.
9310
9311 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9312
9313 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9314 that all the adjustments add up to the full frame size.
9315 Use crtl->outgoing_args_size directly as the final adjustment
9316 where appropriate.
9317
9318 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9319
9320 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9321 "frame" reference instead of always referring directly to
9322 "cfun->machine->frame".
9323
9324 2019-10-16 Richard Biener <rguenther@suse.de>
9325
9326 PR tree-optimization/92119
9327 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9328 against missing bswap lhs.
9329
9330 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9331
9332 PR middle-end/92033
9333 * poly-int.h (constant_lower_bound_with_limit): New function.
9334 (constant_upper_bound_with_limit): Likewise.
9335 * doc/poly-int.texi: Document them.
9336 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9337 into the worst-case INTEGER_CST bounds.
9338
9339 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9340
9341 PR ipa/91088
9342 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9343 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9344 * ipa-predicat.h (struct expr_eval_op): New struct.
9345 (expr_eval_ops): New typedef.
9346 (struct condition): Add type and param_ops fields, remove size field.
9347 (add_condition): Replace size parameter with type parameter, add
9348 param_ops parameter.
9349 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9350 (predicate::add_clause): Add comparisons on type and param_ops.
9351 (dump_condition): Add debug dump for param_ops.
9352 (remap_after_inlining): Adjust call arguments to add_condition.
9353 (add_condition): Replace size parameter with type parameter, add
9354 param_ops parameter. Unshare constant value used in conditions.
9355 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9356 parameter expressions using param_ops.
9357 (decompose_param_expr): New function.
9358 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9359 to replace call to unmodified_parm_or_parm_agg_item.
9360 (set_switch_stmt_execution_predicate): Likewise.
9361 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9362 with type.
9363 (inline_read_section): Read param_ops from summary stream.
9364 (ipa_fn_summary_write): Write param_ops to summary stream.
9365
9366 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9367
9368 PR rtl-optimization/92107
9369 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9370 expression written.
9371
9372 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9373
9374 * config/darwin.c: Update description of fix and continue.
9375
9376 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9377
9378 * config/darwin.c (darwin_binds_local_p): Update to call
9379 default_binds_local_p_3 () directly. amend comments.
9380
9381 2019-10-15 Richard Biener <rguenther@suse.de>
9382
9383 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9384 (tree_is_indexable): Use it.
9385 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9386 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9387 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9388
9389 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9390
9391 * config/msp430/msp430.md (zero_extendqipsi2): New.
9392 (zero_extendqisi2): Optimize case where src register and base dst
9393 register are the same.
9394 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9395 (zero_extendpsisi2): Optimize r->m case.
9396 Add unnamed insn patterns to catch insns combine searches for when
9397 optimizing pointer manipulation.
9398
9399 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9400
9401 * config/msp430/msp430.md: Group zero_extend* insns together.
9402
9403 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9404
9405 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9406 constraint.
9407 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9408 POST_INC.
9409 (msp430_subreg): Likewise.
9410 (msp430_split_addsi): Likewise.
9411 (msp430_print_operand_addr): Likewise.
9412 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9413 (USE_STORE_POST_INCREMENT): Define.
9414 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9415 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9416 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9417 (msp430_general_dst_operand): New.
9418 (msp430_general_dst_nonv_operand): New.
9419 (msp430_nonsubreg_operand): Remove.
9420 (msp430_nonsubreg_dst_operand): New.
9421 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9422 of defunct msp430_nonsubreg_operand.
9423 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9424
9425 2019-10-15 Richard Biener <rguenther@suse.de>
9426
9427 PR tree-optimization/91929
9428 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9429 (get_or_alloc_expr_for_name): Initialize it.
9430 (get_or_alloc_expr_for_constant): Likewise.
9431 (phi_translate_1): Copy it.
9432 (create_expression_by_pieces): Use the original location
9433 of the expression for the inserted stmt.
9434 (compute_avail): Record the location of the stmt for the
9435 expressions created.
9436
9437 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9438
9439 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9440 before using tree_to_uhwi.
9441
9442 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9443
9444 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9445
9446 2019-10-15 Richard Biener <rguenther@suse.de>
9447
9448 PR tree-optimization/92094
9449 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9450 do not adjust the reduction definition def type.
9451 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9452 defines the latch argument of the PHI.
9453
9454 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9455
9456 PR target/92035
9457 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9458 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9459 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9460 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9461 _mm_maskz_roundscale_round_sd): New intrinsics.
9462 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9463 __builtin_ia32_rndscales?_mask_round builtins instead of
9464 __builtin_ia32_rndscales?_round.
9465 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9466 __builtin_ia32_rndscalesd_round): Remove.
9467 (__builtin_ia32_rndscaless_mask_round,
9468 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9469 * config/i386/sse.md
9470 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9471 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9472 ... this, adjust and add subst atrributes to make it maskable.
9473
9474 2019-10-15 Richard Biener <rguenther@suse.de>
9475
9476 PR middle-end/92046
9477 * common.opt (fallow-store-data-races): New.
9478 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9479 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9480 * doc/invoke.texi (fallow-store-data-races): Document.
9481 (--param allow-store-data-races): Remove docs.
9482 * opts.c (default_options_table): Enable -fallow-store-data-races
9483 at -Ofast.
9484 (default_options_optimization): Do not enable --param
9485 allow-store-data-races at -Ofast.
9486 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9487 instead of PARAM_ALLOW_STORE_DATA_RACES.
9488 * tree-ssa-loop-im.c (execute_sm): Likewise.
9489
9490 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9491
9492 PR tree-optimization/92085
9493 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9494 instead of calling it unconditionally after
9495 delete_dead_or_redundant_assignment and fix indentation.
9496
9497 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9498
9499 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9500 TARGET_VFP_DOUBLE.
9501 (*fmsub<SDF:mode>4): Likewise.
9502 *fnmsub<SDF:mode>4): Likewise.
9503 (*fnmadd<SDF:mode>4): Likewise.
9504
9505 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9506
9507 * doc/tree-ssa.texi: Update renamed macro name.
9508
9509 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9510
9511 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9512 vector constants.
9513
9514 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9515
9516 * config/darwin.c: Use unsigned ints for the picbase label
9517 counters, initialise the vars explicitly.
9518 (update_pic_label_number_if_needed): Move a variable declaration
9519 to where it's needed.
9520 (machopic_output_function_base_name): Use a more strict checking
9521 assert, and and unsigned int for the picbase label counter.
9522 (machopic_get_function_picbase): Likewise.
9523
9524 2019-10-14 Richard Biener <rguenther@suse.de>
9525
9526 PR middle-end/92046
9527 * dse.c (scan_insn): Use param max_active_local_stores.
9528 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9529 based on optimization level.
9530 * loop-invariant.c (move_loop_invariants): Adjust
9531 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9532 * opts.c (default_options_optimization): Do not adjust
9533 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9534 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9535
9536 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9537
9538 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9539
9540 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9541
9542 * config/arm/arm.c (arm_option_override): Don't override sched
9543 pressure algorithm.
9544
9545 2019-10-14 Richard Biener <rguenther@suse.de>
9546
9547 PR tree-optimization/92069
9548 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9549 cycles do not set vect_nested_cycle on the latch definition.
9550
9551 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9552
9553 * function-abi.h (expr_callee_abi): Declare.
9554 * function-abi.cc (expr_callee_abi): New function.
9555
9556 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9557
9558 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9559 into [1,MAX].
9560 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9561 non-zero being represented as [1,MAX].
9562
9563 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9564
9565 * tree-sra.c (dump_access): Add missing braces.
9566
9567 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9568
9569 * config/darwin.c (machopic_indirection_name): Rework the
9570 function to emit linker-visible symbols only for indirections
9571 in the data section. Clean up the code and update comments.
9572
9573 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9574
9575 * config/darwin.c (machopic_indirect_data_reference): Remove
9576 redundant code.
9577
9578 2019-10-13 Nathan Sidwell <nathan@acm.org>
9579
9580 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9581
9582 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9583
9584 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9585 c99_runtime.
9586
9587 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9588
9589 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9590 so non-virutal are before virutals.
9591 (output_function): Avoid body modifications.
9592
9593 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9594
9595 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9596 %r22. Load function address before global pointer.
9597 (pa_attr_length_indirect_call): Adjust length of inline versions of
9598 $$dyncall.
9599 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9600 before normal cases. Update inline $$dyncall sequences to preserve
9601 function descriptor address in register %r22.
9602 (TRAMPOLINE_CODE_SIZE): Adjust.
9603 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9604 register %r22 contains trampoline address.
9605 (pa_trampoline_init): Adjust offsets.
9606 (pa_trampoline_adjust_address): Likewise.
9607 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9608
9609 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9610
9611 PR target/67183
9612 * config/darwin.c (machopic_indirection): New field to flag
9613 non-lazy-symbol-pointers in the data section.
9614 (machopic_indirection_name): Compute if an indirection should
9615 appear in the data section.
9616 (machopic_output_data_section_indirection): New callback split
9617 from machopic_output_indirection.
9618 (machopic_output_stub_indirection): Likewise.
9619 (machopic_output_indirection): Retain the code for non-lazy
9620 symbol pointers in their regular section.
9621 (machopic_finish): Use the new callbacks to order the indirection
9622 output.
9623
9624 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9625
9626 * config/darwin-protos.h (machopic_finish): Delete.
9627 * config/darwin.c (machopic_finish): Make static.
9628
9629 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9630
9631 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9632 sections when building kernel extension code.
9633
9634 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9635
9636 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9637 later standard."
9638
9639 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9640
9641 * config/pa/pa.c (pa_option_override): Remove trailing comma
9642 from warning.
9643
9644 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9645
9646 PR middle-end/92063
9647 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9648 <case VEC_COND_EXPR>: Return false with *handled = false.
9649 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9650 recursing on the first operand.
9651 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9652 instead of tree_could_trap_p.
9653 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9654
9655 2019-10-11 Jim Wilson <jimw@sifive.com>
9656
9657 PR rtl-optimization/91860
9658 * combine.c (subst): If new_rtx is a constant, also check for
9659 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9660
9661 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9662
9663 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9664 INTVAL when calling store_bit_field.
9665
9666 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9667
9668 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9669 size.
9670
9671 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9672
9673 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9674 vectorizable_live_operation.
9675 (vectorizable_live_operation): Adjust parameters.
9676 * tree-vect-stmts.c (vect_init_vector,
9677 vect_gen_widened_results_half): Fix typo in function comment.
9678 (can_vectorize_live_stmts): Adjust function comment.
9679 Adjust parameters. Adjust call to vectorizable_live_operation.
9680 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9681 (vect_transform_stmt): Adjust function comment. Adjust call to
9682 can_vectorize_live_stmts.
9683 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9684
9685 2019-10-11 Richard Biener <rguenther@suse.de>
9686
9687 PR tree-optimization/90883
9688 PR tree-optimization/91091
9689 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9690 alias-sets both for recording VN table entries and continuing
9691 walking after translating through copies. Handle same-sized
9692 reads from SSA names by returning the plain SSA name.
9693 (eliminate_dom_walker::eliminate_stmt): Properly handle
9694 non-size precision stores in redundant store elimination.
9695
9696 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9697
9698 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9699 (ggc_collect): Dump later to not interfere with release_page dump.
9700 (ggc_trim): New function.
9701 * ggc-none.c (ggc_trim): New.
9702 * ggc.h (ggc_trim): Declare.
9703
9704 2019-10-11 Richard Biener <rguenther@suse.de>
9705
9706 PR tree-optimization/92066
9707 PR tree-optimization/92046
9708 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9709 Fix bogus cost model check.
9710
9711 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9712
9713 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9714 (LANG_HOOKS_DECLS): Add it.
9715 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9716 update comment for omp_is_optional_argument.
9717 * omp-general.c (omp_is_allocatable_or_ptr): New.
9718 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9719 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9720 Fortran's optional arguments and allocatable/pointer scalars
9721 with use_device_addr.
9722
9723 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9724
9725 PR target/77918
9726 * config/s390/2827.md: Add new opcodes.
9727 * config/s390/2964.md: Likewise.
9728 * config/s390/3906.md: Likewise.
9729 * config/s390/8561.md: Likewise.
9730 * config/s390/s390-builtins.def (s390_vfchesb): Use
9731 the new vec_cmpgev4sf_quiet_nocc.
9732 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9733 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9734 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9735 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9736 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9737 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9738 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9739 * config/s390/s390-modes.def (CCSFPS): New mode.
9740 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9741 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9742 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9743 (s390_expand_vec_compare): Use non-signaling patterns where
9744 necessary.
9745 (s390_reverse_condition): Support CCSFPS.
9746 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9747 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9748 (asm_fcmp_op): Likewise.
9749 (*smaxv2df3_vx): Use pattern for quiet comparison.
9750 (*sminv2df3_vx): Likewise.
9751 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9752 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9753 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9754 (vec_cmplt<mode>_quiet_nocc): New expander.
9755 (vec_cmpge<mode>_quiet_nocc): New pattern.
9756 (vec_cmple<mode>_quiet_nocc): New expander.
9757 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9758 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9759 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9760 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9761 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9762 (vec_cmpungt<mode>): New expander.
9763 (vec_cmpunge<mode>): Likewise.
9764 (vec_cmpuneq<mode>): Use quiet patterns.
9765 (vec_cmpltgt<mode>): Allow only on z14+.
9766 (vec_cmpordered<mode>): Use quiet patterns.
9767 (vec_cmpunordered<mode>): Likewise.
9768 (VEC_CMP_EXPAND): Add ungt and unge.
9769
9770 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9771
9772 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9773 parameter.
9774 * lto-streamer-out.c: Include tree-dfa.h.
9775 (output_cfg): Do not use cfun.
9776 (lto_prepare_function_for_streaming): New.
9777 (output_function): Do not push cfun; do not initialize loop optimizer.
9778 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9779 * passes.c (ipa_write_summaries): Use it.
9780 (ipa_write_optimization_summaries): Do not modify bodies.
9781 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9782 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9783 * tree-ssa-dse.c (pass_dse::execute): Update use of
9784 renumber_gimple_stmt_uids.
9785 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9786
9787 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9788
9789 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9790 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9791
9792 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9793
9794 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9795 macros.
9796 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9797 Also define DFP macros for these conditions.
9798 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9799 DEC128_SUBNORMAL_MIN): Do not define.
9800 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9801 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9802
9803 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9804 Sandra Loosemore <sandra@codesourcery.com>
9805
9806 PR middle-end/26241
9807 * doc/lto.texi (IPA): Reference to the IPA passes.
9808 * doc/passes.texi (Pass manager): Add node IPA passes and
9809 description for each IPA pass.
9810
9811 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9812
9813 * ipa-reference.c: Do not include splay-tree.h
9814 (reference_vars_to_consider): Turn to hash map.
9815 (get_static_name, ipa_init, analyze_function, propagate,
9816 stream_out_bitmap, ipa_reference_write_optimization_summary,
9817 ipa_reference_write_optimization_summary): Update.
9818
9819 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9820
9821 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9822
9823 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9824
9825 * config/darwin.c: Lookup Objective C metadata and force indirection
9826 for IVAR refs.
9827
9828 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9829
9830 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9831 addresses.
9832 (mem_operand_gpr): Add check for prefixed addresses.
9833 (mem_operand_ds_form): Add check for prefixed addresses.
9834 (rs6000_legitimate_offset_address_p): If we support prefixed
9835 addresses, check for a 34-bit offset instead of 16-bit.
9836 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9837 Do not allow load/store with update if the address is prefixed.
9838 (rs6000_mode_dependent_address): If we support prefixed
9839 addresses, check for a 34-bit offset instead of 16-bit.
9840
9841 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9842
9843 PR target/77918
9844 * config/s390/vector.md (vcond_comparison_operator): New
9845 predicate.
9846 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9847
9848 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9849
9850 PR 87488
9851 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9852 -D.
9853 * configure.ac (--with-documentation-root-url): New option.
9854 * configure: Regenerate.
9855 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9856 option URL, add it as a new string field of the diagnostic option.
9857 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9858 (print_option_information): If get_option_url is non-NULL, call
9859 it, and if the result is non-NULL, potentially emit an escape
9860 sequence to markup the option text with the resulting URL.
9861 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9862 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9863 example of JSON output.
9864 * opts-diagnostic.h (get_option_url): New decl.
9865 * opts.c (get_option_url): New function.
9866 * toplev.c (general_init): Initialize the get_option_url callback.
9867
9868 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9869
9870 PR 87488
9871 * common.opt (fdiagnostics-urls=): New option.
9872 (diagnostic-url.h): Add SourceInclude.
9873 (diagnostic_url_rule): New enum.
9874 * diagnostic-color.c: Include "diagnostic-url.h".
9875 (diagnostic_urls_enabled_p): New function.
9876 * diagnostic-url.h: New file.
9877 * diagnostic.c: Include "diagnostic-url.h".
9878 (diagnostic_urls_init): New function.
9879 * diagnostic.h (diagnostic_urls_init): New decl.
9880 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9881 -fdiagnostics-urls to the list.
9882 (-fdiagnostics-urls): New option.
9883 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9884 (driver::global_initializations): Call diagnostic_urls_init.
9885 * opts-global.c (init_options_once): Likewise.
9886 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9887 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9888 show_urls.
9889 (pp_begin_url): New function.
9890 (pp_end_url): New function.
9891 (selftest::test_urls): New selftest.
9892 (selftest::pretty_print_c_tests): Call it.
9893 * pretty-print.h (pretty_printer::show_urls): New field.
9894 (pp_begin_url): New decl.
9895 (pp_end_url): New decl.
9896
9897 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9898
9899 PR target/92022
9900 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9901
9902 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9903
9904 PR target/88630
9905 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9906 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9907 also for TARGET_FPU_SH4_300.
9908 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9909 TARGET_SH4_300.
9910 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9911 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9912 (*negsf2_i): Split into ...
9913 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9914 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9915 (**abssf2_i): Split into ...
9916 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9917 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9918 (*negdf2_i): Split into ...
9919 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9920 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9921 (**abssf2_i): Split into ...
9922 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9923
9924 2019-10-10 Richard Biener <rguenther@suse.de>
9925
9926 PR middle-end/92046
9927 * opts.c (finish_options): Do not influence global --params
9928 from options that are adjustable per function.
9929 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9930 Apply --param adjustment based on active cost-model.
9931 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9932 further store-sinking when vectorization or if-conversion
9933 are not enabled.
9934
9935 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9936
9937 PR middle-end/92037
9938 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9939 rather than ggc_alloc_cleared to alloc symbol table.
9940 * toplev.c (general_init): Likewise.
9941 * cgraph.h (symbol_table): Explicitly construct every field.
9942
9943 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9944
9945 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9946 (PF_Z15): ... this.
9947 * config.gcc: Add z15 as option for --with-arch and --with-tune
9948 configure switches.
9949 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9950 error reporting for unsupported builtins.
9951 * config/s390/s390-opts.h (enum processor_type): Rename
9952 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9953 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9954 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9955 Likewise.
9956 * config/s390/s390-builtins.def: Likewise.
9957 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9958 (s390_expand_builtin): Add missing check for unsupported builtins.
9959 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9960 (s390_rtx_costs): Likewise.
9961 (s390_get_sched_attrmask): Rename arch13 to z15.
9962 (s390_get_unit_mask): Likewise.
9963 (s390_is_fpd): Likewise.
9964 (s390_is_fxd): Likewise.
9965 * config/s390/s390.h (enum processor_flags): Likewise.
9966 * config/s390/s390.md: Likewise.
9967 * config/s390/vector.md: Likewise.
9968 * config/s390/vx-builtins.md: Likewise.
9969 * config/s390/s390.opt: Add z15 to processor_type value.
9970
9971 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9972
9973 PR target/91035
9974 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9975 prototype.
9976 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9977 ("split_stack_data", "split_stack_call")
9978 ("split_stack_call_<mode>", "split_stack_cond_call")
9979 ("split_stack_cond_call_<mode>"): Remove.
9980 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9981 insn definition.
9982 * config/s390/s390.c (s390_output_split_stack_data): New function.
9983 (s390_expand_split_stack_prologue): Use the merged expander.
9984
9985 2019-10-09 Martin Sebor <msebor@redhat.com>
9986
9987 PR tree-optimization/90879
9988 * builtins.c (check_access): Avoid using maxbound when null.
9989 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9990 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9991 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9992 conditional.
9993 (get_range_strlen): Overwrite initial maxbound when non-null.
9994 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9995 changes.
9996 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9997 (used_only_for_zero_equality): New function.
9998 (handle_builtin_memcmp): Call it.
9999 (determine_min_objsize): Return an integer instead of tree.
10000 (get_len_or_size, strxcmp_eqz_result): New functions.
10001 (maybe_warn_pointless_strcmp): New function.
10002 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
10003 between a longer string and a smaller array.
10004 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
10005
10006 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10007
10008 * config/darwin.c (darwin_override_options): Make the check for
10009 Objective-C ABI version more specific for 64bit code.
10010
10011 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
10012
10013 * config/darwin.c (machopic_indirect_data_reference): Set flag to
10014 indicate that the new symbol is an indirection.
10015 (machopic_indirect_call_target): Likewise.
10016 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
10017 (MACHO_SYMBOL_INDIRECTION_P): New.
10018 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
10019
10020 2019-10-08 Jason Merrill <jason@redhat.com>
10021
10022 * doc/invoke.texi: Document -fconcepts-ts.
10023
10024 2019-10-09 Richard Biener <rguenther@suse.de>
10025
10026 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
10027 allow stmts other than GIMPLE_ASSIGN in nested cycles.
10028
10029 2019-10-08 Richard Biener <rguenther@suse.de>
10030
10031 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
10032 (_stmt_vec_info::force_single_cycle): Likewise.
10033 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
10034 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
10035 * tree-vect-loop.c (vectorizable_reduction): Set
10036 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
10037 (vect_transform_reduction): Use them to remove redundant code.
10038 (vect_transform_cycle_phi): Likewise.
10039
10040 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
10041
10042 PR tree-optimization/90836
10043 * match.pd (popcount): New pattern.
10044
10045 2019-10-08 Martin Sebor <msebor@redhat.com>
10046
10047 PR middle-end/92026
10048 PR middle-end/92014
10049 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
10050 again once nbytes has been set. Set the access size when not yet set.
10051
10052 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10053
10054 * config/darwin.c (machopic_select_section): Remove dead code for
10055 old Objective-C section selection method, replace with unreachable.
10056
10057 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
10058
10059 * config/darwin.c (machopic_indirect_data_reference): Check for
10060 required indirections before making direct access to defined
10061 values.
10062 (machopic_output_indirection): Place the indirected pointes for
10063 required indirections into the non-lazy symbol pointers section.
10064 (darwin_encode_section_info):
10065 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
10066 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
10067
10068 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
10069
10070 PR target/91994
10071 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
10072 instead of ALL_SSE_REG to check if function call preserves some
10073 256-bit SSE registers.
10074
10075 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10076
10077 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
10078 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
10079 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
10080
10081 2019-10-08 Richard Biener <rguenther@suse.de>
10082
10083 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
10084 (_stmt_vec_info::is_reduc_info): Add.
10085 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
10086 (vectorizable_condition): Remove.
10087 (vectorizable_shift): Likewise.
10088 (vectorizable_reduction): Adjust.
10089 (info_for_reduction): New.
10090 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
10091 (vect_analyze_scalar_cycles_1): ... here.
10092 (vect_analyze_loop_operations): Adjust.
10093 (needs_fold_left_reduction_p): Simplify for single caller.
10094 (vect_is_simple_reduction): Likewise. Remove stmt restriction
10095 for nested cycles not part of double reductions.
10096 (vect_model_reduction_cost): Pass in the reduction type.
10097 (info_for_reduction): New function.
10098 (vect_create_epilog_for_reduction): Use it, access reduction
10099 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
10100 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10101 (vectorize_fold_left_reduction): Remove pointless assert.
10102 (vectorizable_reduction): Analyze the full reduction when
10103 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
10104 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
10105 stmt code-generation to vectorizable_* in most cases. Verify
10106 code-generation only for cases handled by
10107 vect_transform_reductuon.
10108 (vect_transform_reduction): Use info_for_reduction to get at
10109 reduction meta. Simplify.
10110 (vect_transform_cycle_phi): Likewise.
10111 (vectorizable_live_operation): Likewise.
10112 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
10113 at the PHI node for STMT_VINFO_REDUC_TYPE.
10114 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
10115 longer necessary code.
10116 * tree-vect-stmts.c (vectorizable_shift): Make static again.
10117 (vectorizable_condition): Likewise. Get at reduction related
10118 info via info_for_reduction.
10119 (vect_analyze_stmt): Adjust.
10120 (vect_transform_stmt): Likewise.
10121 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10122 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
10123
10124 2019-10-08 Joseph Myers <joseph@codesourcery.com>
10125
10126 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
10127 -fno-fp-int-builtin-inexact default for C2X.
10128
10129 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10130 Richard Biener <rguenther@suse.de>
10131
10132 PR tree-optimization/91532
10133 * tree-if-conv.c: Include tree-ssa-dse.h.
10134 (ifcvt_local_dce): Change param from bb to loop,
10135 and call dse_classify_store.
10136 (tree_if_conversion): Pass loop instead of loop->header as arg
10137 to ifcvt_local_dce.
10138 * tree-ssa-dse.c: Include tree-ssa-dse.h.
10139 (delete_dead_or_redundant_assignment): Remove static qualifier from
10140 declaration, and add prototype in tree-ssa-dse.h.
10141 (dse_store_status): Move to tree-ssa-dse.h.
10142 (dse_classify_store): Remove static qualifier and add new tree param
10143 stop_at_vuse, and add prototype in tree-ssa-dse.h.
10144 * tree-ssa-dse.h: New header.
10145
10146 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10147
10148 * config/darwin.c (machopic_output_indirection): Don't put
10149 hidden symbol indirections into the .data section, use the
10150 non-lazy symbol pointers section as normal.
10151 (darwin_encode_section_info): Record if a symbol is hidden.
10152 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10153 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10154
10155 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10156
10157 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10158 predicates instead of accessing bits directly.
10159 (machopic_indirect_call_target): Likewise.
10160 (machopic_output_indirection): Likewise.
10161 (darwin_encode_section_info): Improve description. Use renamed
10162 symbol flags. Use predicate macros for variables and functions.
10163 * config/darwin.h:
10164 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10165 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10166 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10167 (MACHO_SYMBOL_VARIABLE_P): New.
10168 (MACHO_SYMBOL_DEFINED_P):New.
10169 (MACHO_SYMBOL_STATIC_P): New.
10170 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10171 (SYMBOL_FLAG_SUBT_DEP): New.
10172 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10173
10174 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10175
10176 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10177 (msp430_expand_epilogue): Likewise.
10178 * config/msp430/predicates.md: Likewise.
10179 * config/msp430/msp430.md: Likewise.
10180 Replace blocks of 8 spaces with tabs.
10181
10182 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10183
10184 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10185 * config/msp430/msp430.c (msp430_split_addsi): New.
10186 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10187 a block of C code for splitting addsi.
10188
10189 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10190
10191 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10192 ix86_expand_rounddf_32): Reorder functions.
10193 * config/i386/i386-protos.h: Update.
10194
10195 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10196
10197 * config.in: Regenerate.
10198 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10199 Add new "Yx" constraint.
10200 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10201 function.
10202 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10203 prototype.
10204 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10205 code/data region to be selected in the small memory model.
10206 (msp430_section_attr): Don't warn if the "section" and "lower"
10207 attributes are used together.
10208 (msp430_handle_generic_attribute): Likewise.
10209 (msp430_var_in_low_mem): New function.
10210 (TARGET_ENCODE_SECTION_INFO): Define.
10211 (msp430_encode_section_info): New function.
10212 (gen_prefix): Return early in the small memory model.
10213 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10214 ".lower" prefix if -m{code,data}-region=lower have been passed.
10215 (msp430_output_aligned_decl_common): Emit common symbols when
10216 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10217 set.
10218 (TARGET_ASM_FILE_END): Define.
10219 (msp430_file_end): New function.
10220 (msp430_do_not_relax_short_jumps): Allow relaxation when
10221 function will be in the lower region.
10222 (msp430_op_not_in_high_mem): New function.
10223 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10224 the 'X' operand selector.
10225 Clarify comment for 'x' operand selector.
10226 * config/msp430/msp430.h (LINK_SPEC): Propagate
10227 -m{code,data}-region to the linker via spec function
10228 msp430_propagate_region_opt.
10229 (msp430_propagate_region_opt): New prototype.
10230 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10231 (SYMBOL_FLAG_LOW_MEM): Define.
10232 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10233 selector.
10234 (zero_extendqihi2): Fix operand number used by "%X" selector.
10235 (zero_extendqisi2): Likewise.
10236 (zero_extendhisi2): Likewise.
10237 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10238 (movhi): Likewise.
10239 (addqi3): Likewise.
10240 (addhi3): Likewise.
10241 (addsi3): Likewise.
10242 (addhi3_cy): Likewise.
10243 (addchi4_cy): Likewise.
10244 (subqi3): Likewise.
10245 (subhi3): Likewise.
10246 (subsi3): Likewise.
10247 (bic<mode>3): Likewise.
10248 (and<mode>3): Likewise.
10249 (ior<mode>3): Likewise.
10250 (xor<mode>3): Likewise.
10251 (slli_1): Add missing "%X" operand selector.
10252 (slll_1): Likewise.
10253 (slll_2): Likewise.
10254 (srai_1): Likewise.
10255 (sral_1): Likewise.
10256 (sral_2): Likewise.
10257 (srli_1): Likewise.
10258 (srll_1): Likewise.
10259 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10260 selector.
10261 (cbranchhi4_real): Likewise.
10262 (cbranchqi4_reversed): Likewise.
10263 (cbranchhi4_reversed): Likewise.
10264 (*bitbranch<mode>4): Likewise.
10265 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10266 * config/msp430/msp430.opt (mcode-region=): Set default to
10267 MSP430_REGION_LOWER. Improve docstring.
10268 (mdata-region=): Likewise.
10269 (muse-lower-region-prefix): New option.
10270 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10271 mdata-region=none multilib.
10272 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10273 mdata-region=none multilib.
10274 MULTILIB_EXCEPTIONS: Remove.
10275 MULTILIB_REQUIRED: Define.
10276 * configure: Regenerate.
10277 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10278 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10279 * doc/extend.texi: Clarify comment for {upper,lower,either}
10280 function attributes.
10281 Add separate description for "lower" variable attribute.
10282
10283 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10284
10285 PR target/77918
10286 * optabs-tree.c (vcond_icode_p): New function.
10287 (vcond_eq_icode_p): Likewise.
10288 (expand_vec_cond_expr_p): Use vcond_icode_p and
10289 vcond_eq_icode_p.
10290 * optabs.c (can_vcond_compare_p): New function.
10291 * optabs.h (can_vcond_compare_p): Likewise.
10292
10293 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10294
10295 PR target/77918
10296 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10297 caller passes a non-trapping condition.
10298 (is_gimple_condexpr): Allow trapping conditions.
10299 (is_gimple_condexpr_1): New helper function.
10300 (is_gimple_condexpr_for_cond): New function, acts like old
10301 is_gimple_condexpr.
10302 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10303 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10304 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10305 * gimplify.c (gimplify_cond_expr): Use
10306 is_gimple_condexpr_for_cond.
10307 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10308 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10309 VEC_COND_EXPR.
10310 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10311 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10312 is_gimple_condexpr_for_cond, remove pointless tmp check
10313 (forward_propagate_into_cond): Remove pointless tmp check.
10314
10315 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10316
10317 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10318 match that of other gsi_next_* functions. Adjust the comment.
10319 (gsi_start_nonvirtual_phis): New function.
10320 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10321 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10322
10323 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10324
10325 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10326 setjmp situation here. Fix a verb's ending: "the exact variables or
10327 elements for which there are warnings depends" -> "... depend".
10328
10329 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10330
10331 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10332
10333 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10334
10335 * ipa-prop.c (ipa_vr::nonzero_p): New.
10336 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10337 non-zero range.
10338 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10339 * tree-vrp.c (range_has_numeric_bounds_p): New.
10340 (range_int_cst_p): Use range_has_numeric_bounds_p.
10341 (get_range_op_handler): New.
10342 (supported_types_p): New.
10343 (defined_ranges_p): New.
10344 (drop_undefines_to_varying): New.
10345 (range_fold_binary_symbolics_p): New.
10346 (range_fold_unary_symbolics_p): New.
10347 (range_fold_unary_expr): Extract out into above functions.
10348 (range_fold_binary_expr): Same.
10349 (value_range_base::normalize_addresses): New.
10350 (value_range_base::normalize_symbolics): Normalize addresses.
10351 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10352
10353 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10354
10355 * tree-vrp.c (value_range_base::singleton_p): Use
10356 value_range_base::num_pairs instead of vrp_val_is* to check
10357 if a range has one sub-range.
10358
10359 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10360
10361 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10362 DEF is not a true earlyclobber but is tied to a specific input
10363 operand, and so is effectively earlyclobber wrt inputs that have
10364 different values.
10365 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10366
10367 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10368
10369 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10370 (pod_mode): Mark operators likewise.
10371 (scalar_int_mode): Mark non-default constructors and
10372 operators with CONSTEXPR.
10373 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10374 (fixed_size_mode): Likewise.
10375
10376 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10377
10378 PR target/91994
10379 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10380 and wrap the unspec_volatile in a parallel.
10381 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10382 the unspec_volatile.
10383 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10384 unspec_volatile to be wrapped in a parallel.
10385 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10386 (ix86_add_reg_usage_to_vzerouppers): New functions.
10387 (rest_of_handle_insert_vzeroupper): Use them to add register
10388 usage information to the vzeroupper instructions.
10389
10390 2019-10-07 Richard Biener <rguenther@suse.de>
10391
10392 PR tree-optimization/91975
10393 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10394 handle invariants.
10395
10396 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10397
10398 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10399 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10400
10401 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10402
10403 * config/darwin.c (darwin_override_options): Adjust objective-c
10404 ABI version error messages to avoid punctuation and contracted
10405 negations.
10406
10407 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10408
10409 * ipa-inline.c: Fix type; compute size rather than self_size
10410 for size of caller function.
10411
10412 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10413
10414 PR target/59888
10415 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10416 choose const_data section for constants with relocations.
10417 (machopic_select_section): Pass relocation flag to
10418 darwin_rodata_section ().
10419
10420 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10421
10422 PR tree-optimization/91734
10423 * generic-match-head.c: Include fold-const-call.h.
10424 * match.pd (sqrt(x) cmp c): Check the boundary value and
10425 in case inexact computation of c*c affects comparison of the boundary,
10426 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10427 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10428 for -frounding-math. For c2, try the next smaller or larger floating
10429 point constant depending on comparison code and if it has the same
10430 sqrt as c2, use it instead of c2.
10431
10432 2019-10-04 Martin Sebor <msebor@redhat.com>
10433
10434 PR middle-end/91977
10435 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10436 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10437 uninitialized objects.
10438
10439 2019-10-04 Martin Sebor <msebor@redhat.com>
10440
10441 * builtins.c (compute_objsize): Add an argument.
10442 * tree-object-size.c (addr_object_size): Same.
10443 (compute_builtin_object_size): Same.
10444 * tree-object-size.h (compute_builtin_object): Same.
10445
10446 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10447
10448 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10449
10450 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10451
10452 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10453
10454 2019-10-04 Martin Jambor <mjambor@suse.cz>
10455
10456 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10457 fntype when switching to calling memcpy instead of memset.
10458
10459 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10460
10461 * hash-table.h (hash_table::empty_slow): Don't assign
10462 size_t values to int variables.
10463
10464 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10465
10466 * expr.c (convert_mode_scalar): Remove shadowing local var.
10467 (emit_block_move): Rename local vars.
10468 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10469 (emit_push_insn): Rename local vars.
10470 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10471 shadowing local vars.
10472 (store_constructor): Remove shadowing local vars. Rename local var.
10473 (store_field, expand_cond_expr_using_cmove,
10474 expand_expr_real_2): Remove shadowing local vars.
10475 (expand_expr_real_1,
10476 do_store_flag): Remove shadowing local vars. Rename local vars.
10477
10478 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10479
10480 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10481
10482 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10483
10484 * genmatch.c (commutate): Rename local var.
10485 (lower_cond): Reuse local var.
10486 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10487 dt_operand::gen, dt_operand::gen_gimple_expr,
10488 dt_simplify::gen): Add a param. Rename generated vars.
10489 (decision_tree::insert_operand,
10490 (capture_info::walk_match, capture_info::walk_result,
10491 capture_info::walk_c_expr): Rename local vars.
10492 (expr::gen_transform): Rename generated vars.
10493 Use snprintf. Rename local vars.
10494 (capture::gen_transform, dt_operand::get_name,
10495 dt_operand::gen_opname): Rename generated vars.
10496 (write_predicate): Adjust call to gen_kids.
10497 (parser::get_internal_capture_id): Rename generated vars.
10498 (parser::parse_expr): Rename local vars.
10499 (parser::parse_if): Remove local var.
10500 (parser::parse_pattern, add_operator): Rename local vars.
10501
10502 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10503
10504 * builtins.def (DEF_C2X_BUILTIN): New macro.
10505 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10506 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10507 (strndup): Use DEF_C2X_BUILTIN.
10508 * coretypes.h (enum function_class): Add function_c2x_misc.
10509
10510 2019-10-04 Maya Rashish <coypu@sdf.org>
10511
10512 * ira-color.c (update_costs_from_allocno): Call
10513 ira_init_register_move_cost_if_necessary.
10514
10515 2019-10-04 Jeff Law <law@redhat.com>
10516
10517 * config/h8300/h8300.md (cpymemsi): Disable.
10518 (movmd, movmd_internal_<mode>, movstr, movsd):
10519 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10520 (movmd splitter, movsd splitter): Likewise.
10521
10522 * range-op.cc (range_tests): Avoid two tests when ints and
10523 shorts are the same size.
10524
10525 2019-10-04 Richard Biener <rguenther@suse.de>
10526
10527 PR lto/91968
10528 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10529 BLOCK_VARS.
10530
10531 2019-10-04 Richard Biener <rguenther@suse.de>
10532
10533 PR tree-optimization/91982
10534 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10535 against EXTRACT_LAST_REDUCTION.
10536 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10537
10538 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10539
10540 * range-op.o (value_range_from_overflowed_bounds): Rename from
10541 adjust_overflow_bound.
10542 (value_range_with_overflow): Rename from
10543 create_range_with_overflow.
10544 (create_possibly_reversed_range): Adjusted for above renames.
10545 (operator_*::wi_fold): Same.
10546 (cross_product_operator::wi_cross_productor): Same.
10547
10548 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10549
10550 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10551 -Wshadow=compatible-local): Fix description.
10552 Add an example where -Wshadow=compatible-local does not
10553 warn.
10554
10555 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10556
10557 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10558
10559 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10560 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10561
10562 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10563
10564 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10565 can_move_by_pieces issue.
10566
10567 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10568
10569 PR target/87243
10570 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10571 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10572 is available and the user has not set one on the command line.
10573
10574 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10575
10576 PR target/91769
10577 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10578 instead of REGNO equality check on addr.reg.
10579
10580 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10581
10582 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10583 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10584 * doc/invoke.texi (inline-heuristics-hint-percent,
10585 inline-heuristics-hint-percent-O2): Document.
10586 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10587 hint attribute.
10588 (can_inline_edge_by_limits_p): Use it.
10589
10590 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10591
10592 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10593 to print CONST_DOUBLEs.
10594
10595 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10596
10597 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10598 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10599 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10600
10601 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10602
10603 * Makefile.in (OBJS): Add range.o and range-op.o.
10604 Remove wide-int-range.o.
10605 * function-tests.c (test_ranges): New.
10606 (function_tests_c_tests): Call test_ranges.
10607 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10608 range_fold_unary_expr instead of extract_range_from_unary_expr.
10609 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10610 * range-op.cc: New file.
10611 * range-op.h: New file.
10612 * range.cc: New file.
10613 * range.h: New file.
10614 * selftest.h (range_tests): New prototype.
10615 * ssa.h: Include range.h.
10616 * tree-vrp.c (value_range_base::value_range_base): New
10617 constructors.
10618 (value_range_base::singleton_p): Do not call
10619 ranges_from_anti_range until sure we will need to.
10620 (value_range_base::type): Rename gcc_assert to
10621 gcc_checking_assert.
10622 (vrp_val_is_max): New argument.
10623 (vrp_val_is_min): Same.
10624 (wide_int_range_set_zero_nonzero_bits): Move from
10625 wide-int-range.cc.
10626 (extract_range_into_wide_ints): Remove.
10627 (extract_range_from_multiplicative_op): Remove.
10628 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10629 from extract_range_from_binary_expr.
10630 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10631 from extract_range_from_binary_expr.
10632 (extract_range_from_binary_expr): Remove.
10633 (normalize_for_range_ops): New.
10634 (range_fold_binary_expr): New.
10635 (range_fold_unary_expr): New.
10636 (value_range_base::num_pairs): New.
10637 (value_range_base::lower_bound): New.
10638 (value_range_base::upper_bound): New.
10639 (value_range_base::upper_bound): New.
10640 (value_range_base::contains_p): New.
10641 (value_range_base::invert): New.
10642 (value_range_base::union_): New.
10643 (value_range_base::intersect): New.
10644 (range_compatible_p): New.
10645 (value_range_base::operator==): New.
10646 (determine_value_range_1): Call range_fold_*expr instead of
10647 extract_range_from_*expr.
10648 * tree-vrp.h (class value_range_base): Add new constructors.
10649 Add methods for union_, intersect, operator==, contains_p,
10650 num_pairs, lower_bound, upper_bound, invert.
10651 (vrp_val_is_min): Add handle_pointers argument.
10652 (vrp_val_is_max): Same.
10653 (extract_range_from_unary_expr): Remove.
10654 (extract_range_from_binary_expr): Remove.
10655 (range_fold_unary_expr): New.
10656 (range_fold_binary_expr): New.
10657 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10658 range_fold_binary_expr instead of extract_range_from_binary_expr.
10659 (vr_values::extract_range_basic): Same.
10660 (vr_values::extract_range_from_unary_expr): Call
10661 range_fold_unary_expr instead of extract_range_from_unary_expr.
10662 * wide-int-range.cc: Remove.
10663 * wide-int-range.h: Remove.
10664
10665 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10666
10667 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10668 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10669 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10670 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10671 macro.
10672
10673 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10674
10675 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10676 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10677 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10678 * glimits.h: Likewise.
10679
10680 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10681
10682 PR rtl-optimization/91976
10683 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10684 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10685 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10686
10687 2019-10-02 Martin Sebor <msebor@redhat.com>
10688
10689 PR tree-optimization/80936
10690 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10691
10692 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10693
10694 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10695 instead of reg_class_contents[ALL_REGS].
10696
10697 2019-09-30 Jason Merrill <jason@redhat.com>
10698
10699 Add some hash_map_safe_* functions like vec_safe_*.
10700 * hash-map.h (default_hash_map_size): New variable.
10701 (create_ggc): Use it as default argument.
10702 (hash_map_maybe_create, hash_map_safe_get)
10703 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10704
10705 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10706
10707 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10708 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10709 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10710 (can_inline_edge_by_limits_p): Use it.
10711 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10712 (want_inline_small_function_p): Use O2 bounds.
10713 (edge_badness): LIkewise.
10714 * opts.c (default_options): Add OPT_finline_functions.
10715 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10716 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10717 New parameters.
10718 * doc/invoke.texi (-finline-functions): Update documentation.
10719 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10720 inline-min-speedup-O2): Document.
10721 (early-inlining-insns-O2): Simplify docs.
10722
10723 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10724
10725 PR rtl-optimization/87047
10726 * ifcvt.c (average_cost): New static function. Use it...
10727 (noce_process_if_block): ... here.
10728
10729 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10730
10731 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10732 * config/rs6000/rs6000-string.c (expand_block_move): Add
10733 might_overlap parm.
10734 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10735 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10736
10737 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10738
10739 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10740 (expand_builtin_memcpy): Use might_overlap parm.
10741 (expand_builtin_mempcpy_args): Use might_overlap parm.
10742 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10743 (expand_builtin_memory_copy_args): Add might_overlap parm.
10744 * expr.c (emit_block_move_via_cpymem): Rename to
10745 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10746 or movmem optab as appropriate.
10747 (emit_block_move_hints): Add might_overlap parm, do the right
10748 thing for might_overlap==true.
10749 * expr.h (emit_block_move_hints): Update prototype.
10750
10751 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10752
10753 * tree-eh.h (unsplit_eh_edges): Declare.
10754 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10755 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10756 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10757 (struct store_immediate_info): Add lp_nr field.
10758 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10759 initialize lp_nr with it.
10760 (struct merged_store_group): Add lp_nr and only_constants fields.
10761 (merged_store_group::merged_store_group): Initialize them.
10762 (merged_store_group::can_be_merged_into): Deal with them.
10763 (pass_store_merging): Rename terminate_and_release_chain into
10764 terminate_and_process_chain.
10765 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10766 renaming and remove useless assertions.
10767 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10768 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10769 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10770 instead of always recomputing it and compare lp_nr.
10771 (imm_store_chain_info::output_merged_store): If the group is in an
10772 active EH region, register new stores if they can throw. Moreover,
10773 if the insertion has created new basic blocks, adjust the PHI nodes
10774 of the post landing pad.
10775 (imm_store_chain_info::output_merged_stores): If the original stores
10776 are in an active EH region, deregister them.
10777 (lhs_valid_for_store_merging_p): Prettify.
10778 (adjust_bit_pos): New function extracted from...
10779 (mem_valid_for_store_merging): ...here. Use it for the base address
10780 and also for the offset if it is the addition of a constant.
10781 (lp_nr_for_store): New function.
10782 (pass_store_merging::process_store): Change return type to bool.
10783 Call lp_nr_for_store to initialize the store info. Propagate the
10784 return status of various called functions to the return value.
10785 (store_valid_for_store_merging_p): New predicate.
10786 (enum basic_block_status): New enumeration.
10787 (get_status_for_store_merging): New function.
10788 (pass_store_merging::execute): If the function can throw and catch
10789 non-call exceptions, unsplit the EH edges on entry and clean up the
10790 CFG on exit if something changed. Call get_status_for_store_merging
10791 for every basic block and keep the chains open across basic blocks
10792 when possible. Terminate and process open chains at the end, if any.
10793
10794 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10795
10796 * reginfo.c (globalize_reg): Fix shadowed variable in
10797 function_abis walk.
10798
10799 2019-10-02 Martin Jambor <mjambor@suse.cz>
10800
10801 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10802 do not compute some stuff when set.
10803 (cgraph_node::create_edge): Likewise.
10804 (cgraph_node::create_indirect_edge): Renamed last parameter to
10805 coning_p and flipped its meaning, don't even calculate
10806 inline_failed when set.
10807 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10808 (symbol_table::::create_edge): Likewise.
10809 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10810 the default value.
10811 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10812 call graph edge creating functions.
10813
10814 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10815
10816 PR c++/91222
10817 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10818 namespace types.
10819
10820 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10821
10822 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10823
10824 2019-10-02 Richard Biener <rguenther@suse.de>
10825
10826 * tree-vectorizer.h (vect_transform_reduction): Declare.
10827 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10828 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10829 stmt transform to ...
10830 (vect_transform_reduction): ... this.
10831
10832 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10833
10834 * omp-low.c (lower_omp_target): Dereference optional argument
10835 to work with the right pointer.
10836
10837 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10838
10839 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10840 false.
10841 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10842 * langhooks.h (omp_is_optional_argument): New hook.
10843 * omp-general.c (omp_is_optional_argument): New.
10844 * omp-general.h (omp_is_optional_argument): New declaration.
10845 * omp-low.c (lower_omp_target): Create temporary for received value
10846 and take the address for new_var if the original variable was a
10847 DECL_BY_REFERENCE. Use size of referenced object when a
10848 pass-by-reference optional argument used as argument to firstprivate.
10849
10850 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10851
10852 PR tree-optimization/91940
10853 * tree-vect-patterns.c: Include tree-vector-builder.h and
10854 vec-perm-indices.h.
10855 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10856 unpromoting the argument back to uint16_t, or by converting into a
10857 rotate, or into shifts plus ior.
10858
10859 2019-10-02 Richard Biener <rguenther@suse.de>
10860
10861 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10862 New.
10863 (vect_transform_cycle_phi): Declare.
10864 * tree-vect-stmts.c (vect_transform_stmt): Call
10865 vect_transform_cycle_phi.
10866 * tree-vect-loop.c (vectorizable_reduction): Split out
10867 PHI transformation stage to ...
10868 (vect_transform_cycle_phi): ... here.
10869
10870 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10871
10872 PR middle-end/91957
10873 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10874 eliminable registers.
10875 (make_hard_regno_live): Likewise, and don't make them live.
10876
10877 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10878
10879 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10880 Call pp_emit_prefix.
10881 (layout::print_source_line): Likewise.
10882 (layout::start_annotation_line): Likewise.
10883 (diagnostic_show_locus): Remove call to temporarily clear the
10884 prefix.
10885 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10886 interaction of pp_set_prefix with rulers and fix-it hints.
10887 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10888 prefix when calling diagnostic_show_locus, rather than destroying
10889 it afterwards.
10890 (print_parseable_fixits): Temporarily clear prefix.
10891 * pretty-print.c (pp_format): Save and restore line_length, rather
10892 than assuming it is zero.
10893 (pp_output_formatted_text): Remove assertion that line_length is
10894 zero.
10895
10896 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10897
10898 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10899 Rename to ...
10900 (nonoverlapping_refs_since_match_p): ... this; handle also
10901 ARRAY_REFs.
10902 (alias_stats): Update stats.
10903 (dump_alias_stats): Likewise.
10904 (cheap_array_ref_low_bound): New function.
10905 (aliasing_matching_component_refs_p): Add partial_overlap
10906 argument;
10907 pass it to nonoverlapping_refs_since_match_p.
10908 (aliasing_component_refs_walk): Update call of
10909 aliasing_matching_component_refs_p
10910 (nonoverlapping_array_refs_p): New function.
10911 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10912 indirect_refs_may_alias_p): Update calls of
10913 nonoverlapping_refs_since_match_p.
10914
10915 2019-10-01 Maya Rashish <coypu@sdf.org>
10916
10917 PR target/85401
10918 * ira-color.c (allocno_copy_cost_saving): Call
10919 ira_init_register_move_cost_if_necessary.
10920
10921 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10922
10923 * Makefile.in (gnat_install_lib): New variable.
10924 * configure.ac: Substitute it.
10925 * configure: Regenerate.
10926
10927 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10928
10929 PR lto/91222
10930 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10931 is matched with non-C++ type
10932
10933 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10934
10935 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10936 after local CSE.
10937
10938 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10939
10940 * doc/invoke.texi (early-inlining-insns-O2): Document.
10941 (early-inlining-insns): Update.
10942 * params.def (early-inlining-insns-O2): New bound.
10943 (early-inlining-insns): Update docs.
10944 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10945
10946 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10947
10948 PR target/88562
10949 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10950 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10951 a memory access insn.
10952
10953 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10954
10955 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10956 vpmsumd.
10957
10958 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10959
10960 PR target/77918
10961 * config/s390/s390.c (s390_expand_vec_compare): Use
10962 gen_vec_cmpordered and gen_vec_cmpunordered.
10963 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10964 vec_unordered): Delete.
10965 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10966 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10967 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10968 (vec_cmp<code>): Generic dispatcher.
10969
10970 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10971
10972 PR target/77918
10973 * config/s390/vector.md (V_HW): Add V1TI in order to make
10974 vcond$a$b generate vcondv1tiv1tf.
10975
10976 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10977
10978 PR rtl-optimization/91948
10979 * ira-build.c (ira_create_allocno): Initialize
10980 ALLOCNO_CROSSED_CALLS_ABIS.
10981 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10982 than regno to ira_need_caller_save_p.
10983
10984 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10985
10986 * config/i386/i386-options.c
10987 (ix86_recompute_optlev_based_flags): New, moved out of...
10988 (ix86_option_override_internal): ... this. Call it.
10989 (ix86_override_options_after_change): Call it here too.
10990
10991 PR debug/91507
10992 * dwarf2out.c (override_type_for_decl_p): New.
10993 (gen_variable_die): Use it.
10994
10995 2019-10-01 Richard Biener <rguenther@suse.de>
10996
10997 * tree-vect-loop.c (vectorizable_reduction): Move variables
10998 to where they are used.
10999
11000 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11001
11002 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
11003 (build_def_use): Use PC instead of CC0 in a comment.
11004
11005 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11006
11007 * rtl.def (CLOBBER_HIGH): Delete.
11008 * doc/rtl.texi (clobber_high): Remove documentation.
11009 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
11010 (reg_is_clobbered_by_clobber_high): Delete.
11011 (gen_hard_reg_clobber_high): Likewise.
11012 * alias.c (record_set): Remove CLOBBER_HIGH handling.
11013 * cfgexpand.c (expand_gimple_stmt): Likewise.
11014 * combine-stack-adj.c (single_set_for_csa): Likewise.
11015 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
11016 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
11017 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
11018 * cse.c (invalidate_reg): Remove clobber_high parameter.
11019 (invalidate): Update call accordingly.
11020 (canonicalize_insn): Remove CLOBBER_HIGH handling.
11021 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
11022 (count_reg_usage, insn_live_p): Likewise.
11023 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
11024 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
11025 (cselib_invalidate_rtx_note_stores): Update call accordingly.
11026 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
11027 (cselib_invalidate_regno, cselib_process_insn): Likewise.
11028 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
11029 (mark_nonreg_stores_2): Likewise.
11030 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
11031 (df_get_call_refs): Likewise.
11032 * dwarf2out.c (mem_loc_descriptor): Likewise.
11033 * emit-rtl.c (verify_rtx_sharing): Likewise.
11034 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
11035 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
11036 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
11037 * genemit.c (gen_exp, gen_insn): Likewise.
11038 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
11039 * haifa-sched.c (haifa_classify_rtx): Likewise.
11040 * ira-build.c (create_insn_allocnos): Likewise.
11041 * ira-costs.c (scan_one_insn): Likewise.
11042 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
11043 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
11044 * jump.c (mark_jump_label_1): Likewise.
11045 * lra-int.h (lra_insn_reg::clobber_high): Delete.
11046 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
11047 handling.
11048 (mark_not_eliminable): Likewise.
11049 * lra-lives.c (process_bb_lives): Likewise.
11050 * lra.c (new_insn_reg): Remove clobber_high parameter.
11051 (collect_non_operand_hard_regs): Likewise. Update call to new
11052 insn_reg. Remove CLOBBER_HIGH handling.
11053 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
11054 to collect_non_operand_hard_regs.
11055 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
11056 Update call to new_insn_reg.
11057 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
11058 * postreload.c (reload_cse_simplify, reload_combine_note_use)
11059 (move2add_note_store): Likewise.
11060 * print-rtl.c (print_pattern): Likewise.
11061 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
11062 (if_test_bypass_p): Likewise.
11063 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
11064 * reginfo.c (reg_scan_mark_refs): Likewise.
11065 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
11066 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
11067 (forget_old_reloads_1): Likewise.
11068 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
11069 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
11070 (dbr_schedule): Likewise.
11071 * resource.c (update_live_status, mark_referenced_resources)
11072 (mark_set_resources): Likewise.
11073 * rtl.c (copy_rtx): Likewise.
11074 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
11075 (note_pattern_stores): Likewise.
11076 (reg_is_clobbered_by_clobber_high): Delete.
11077 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
11078 CLOBBER_HIGH handling.
11079
11080 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11081
11082 PR target/91452
11083 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
11084 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
11085 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11086 Handle ARM_PCS_TLSDESC.
11087 (aarch64_tlsdesc_abi_id): New function.
11088 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
11089 rtx instead of a list of clobbers and clobber_highs.
11090 (tlsdesc_small_<mode>): Update accordingly.
11091
11092 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11093
11094 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
11095 extra callee_abi argument.
11096 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
11097 Insert a CALLEE_ABI unspec into the call pattern as the second
11098 element in the PARALLEL.
11099 (aarch64_simd_call_p): Delete.
11100 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
11101 the new CALLEE_ABI element of the PARALLEL.
11102 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
11103 from the function type, if given.
11104 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
11105 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
11106 when passed the function_arg_info end marker.
11107 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
11108 final argument of gen_sibcall.
11109 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
11110 (call): Make operand 2 a const_int_operand and pass it to expand_call.
11111 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
11112 pattern.
11113 (call_value): Likewise operand 3.
11114 (sibcall): Likewise operand 2. Place the unspec before rather than
11115 after the return.
11116 (sibcall_value): Likewise operand 3.
11117 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
11118 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
11119 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
11120 constraint strings.
11121 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
11122
11123 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
11124
11125 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
11126 choose_hard_reg_mode.
11127 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11128
11129 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11130
11131 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
11132 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11133 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11134
11135 2019-09-30 David Malcolm <dmalcolm@redhat.com>
11136
11137 * diagnostic-show-locus.c (line_label::line_label): Initialize
11138 m_has_vbar.
11139 (line_label::comparator): Reverse the sort order by m_state_idx,
11140 so that when the list is walked backwards the labels appear in
11141 order of insertion into the rich_location.
11142 (line_label::m_has_vbar): New field.
11143 (layout::print_any_labels): When dealing with multiple labels at
11144 the same line and column, only print vertical bars for the one
11145 with the highest label_line.
11146 (selftest::test_one_liner_labels): Update test for multiple labels
11147 to expect the labels to be in the order of insertion into the
11148 rich_location. Add a test for many such labels, where the column
11149 numbers are out-of-order relative to the insertion order.
11150
11151 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11152
11153 * config/i386/i386.h (ix86_frame::expensive_p): New field.
11154 (ix86_frame::expensive_count): Likewise.
11155 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11156 of use_fast_prologue_epilogue robust against incidental changes
11157 in function size.
11158
11159 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11160
11161 PR target/77918
11162 * config/s390/vector.md (vec_unordered<mode>): Call
11163 gen_vec_ordered<mode>.
11164
11165 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11166
11167 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11168 New pattern for ASRD.
11169 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11170 * internal-fn.def (IFN_DIV_POW2): New internal function.
11171 * optabs.def (sdiv_pow2_optab): New optab.
11172 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11173 Modify pattern to support new operation.
11174 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11175 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11176 Document new target selector.
11177
11178 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11179
11180 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11181 to test whether we're compiling a vector PCS function and to test
11182 whether the function needs to save a particular register.
11183 Remove the vector PCS handling of df_set_regs_ever_live.
11184 (aarch64_components_for_bb): Use crtl->abi to test whether
11185 the function needs to save a particular register.
11186 (aarch64_process_components): Use crtl->abi to test whether
11187 we're compiling a vector PCS function.
11188 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11189 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11190
11191 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11192
11193 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11194 Delete.
11195 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11196 whether the block calls a function that clobbers more registers
11197 than the current function is allowed to.
11198 (aarch64_use_simple_return_insn_p): Delete.
11199 * config/aarch64/aarch64.md (simple_return): Remove condition.
11200
11201 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11202
11203 * function-abi.h (function_abi_aggregator): New class.
11204 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11205 function.
11206 * ira.c (update_equiv_regs_prescan): New function. Call
11207 set_paradoxical_subreg here rather than...
11208 (update_equiv_regs): ...here.
11209 (ira): Call update_equiv_regs_prescan.
11210
11211 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11212
11213 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11214 IN_TARGET_CODE.
11215 (call_used_or_fixed_regs): Likewise.
11216 (call_used_or_fixed_reg_p): Likewise.
11217 * reginfo.c (regs_invalidated_by_call): New macro.
11218
11219 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11220
11221 * shrink-wrap.c: Include function-abi.h.
11222 (requires_stack_frame_p): Use crtl->abi to test whether the
11223 current function can use a register without saving it first.
11224
11225 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11226
11227 * sel-sched-ir.h (_def::crosses_call): Replace with...
11228 (_def::crossed_call_abis): ..this new field.
11229 (def_list_add): Take a mask of ABIs instead of a crosses_call
11230 boolean.
11231 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11232 of _def accordingly.
11233 * sel-sched.c: Include function-abi.h.
11234 (hard_regs_data::regs_for_call_clobbered): Delete.
11235 (reg_rename::crosses_call): Replace with...
11236 (reg_rename::crossed_call_abis): ...this new field.
11237 (fur_static_params::crosses_call): Replace with...
11238 (fur_static_params::crossed_call_abis): ...this new field.
11239 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11240 (init_hard_regs_data): Use crtl->abi to test which registers the
11241 current function would need to save before it uses them.
11242 (mark_unavailable_hard_regs): Update handling of call-clobbered
11243 registers, using call_clobbers_in_region to find out which registers
11244 might be call-clobbered (but without taking -fipa-ra into account
11245 for now). Remove separate handling of partially call-clobbered
11246 registers.
11247 (verify_target_availability): Use crossed_call_abis instead of
11248 crosses_call.
11249 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11250 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11251
11252 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11253
11254 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11255 function to test whether a register is fully or partly clobbered.
11256
11257 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11258
11259 * rtlanal.c: Include function-abi.h.
11260 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11261 function and clobbers_reg_p to test whether the register
11262 is call-clobbered.
11263 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11264 to get the ABI of the called function and full_reg_clobbers to
11265 get the set of fully call-clobbered registers. Warn about the
11266 pitfalls of using this mode.
11267
11268 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11269
11270 * reload.c: Include function-abi.h.
11271 (find_equiv_reg): Use clobbers_reg_p to test whether either
11272 of the equivalent registers is clobbered by a call.
11273 * reload1.c: Include function-abi.h.
11274 (reg_reloaded_call_part_clobbered): Delete.
11275 (reload): Use crtl->abi to test which registers would need
11276 saving in the prologue before use.
11277 (find_reg): Likewise.
11278 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11279 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11280 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11281
11282 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11283
11284 * regrename.h (du_head::call_clobber_mask): New field.
11285 (du_head::need_caller_save_reg): Replace with...
11286 (du_head::call_abis): ...this new field.
11287 * regrename.c: Include function-abi.h.
11288 (call_clobbered_in_chain_p): New function.
11289 (check_new_reg_p): Use crtl->abi when deciding whether a register
11290 is free for use after RA. Use call_clobbered_in_chain_p to test
11291 whether a candidate register would be clobbered by a call.
11292 (find_rename_reg): Don't add call-clobber conflicts here.
11293 (rename_chains): Check call_abis instead of need_caller_save_reg.
11294 (merge_chains): Update for changes to du_head.
11295 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11296 target. Record the ABI identifier in call_abis and the set of
11297 fully or partially clobbered registers in call_clobber_mask.
11298 Add fully-clobbered registers to hard_conflicts here rather
11299 than in find_rename_reg.
11300 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11301 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11302 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11303 function-abi.h.
11304 * config/c6x/c6x.c: Likewise.
11305
11306 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11307
11308 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11309 mode of the register when deciding whether it is no longer
11310 available after a call.
11311
11312 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11313
11314 * recog.c: Include function-abi.h.
11315 (peep2_find_free_register): Use crtl->abi when deciding whether
11316 a register is free for use after RA.
11317
11318 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11319
11320 * postreload-gcse.c: Include regs.h and function-abi.h.
11321 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11322 call insn target. Conservatively assume that partially-clobbered
11323 registers are altered.
11324
11325 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11326
11327 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11328 when deciding whether a register is free for use after RA.
11329 (reload_combine): Remove unnecessary use of fixed_reg_set.
11330 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11331 call insn target. Use reg_mode when testing whether a register
11332 is no longer available.
11333
11334 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11335
11336 * target.def (return_call_with_max_clobbers): Delete.
11337 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11338 * doc/tm.texi: Regenerate.
11339 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11340 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11341 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11342 (lra_reg::call_insn): Delete.
11343 * lra.c: Include function-abi.h.
11344 (initialize_lra_reg_info_element): Don't initialize the fields above.
11345 (lra): Use crtl->abi to test whether the current function needs to
11346 save a register in the prologue. Remove special pre-inheritance
11347 lra_create_live_ranges pass for flag_ipa_ra.
11348 * lra-assigns.c: Include function-abi.h
11349 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11350 function needs to save a register in the prologue.
11351 (lra_assign): Assert that registers aren't allocated to a
11352 conflicting register, rather than checking only for overlaps
11353 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11354 and for registers that are not live across a call.
11355 * lra-constraints.c (last_call_for_abi): New variable.
11356 (full_and_partial_call_clobbers): Likewise.
11357 (setup_next_usage_insn): Remove the register from
11358 full_and_partial_call_clobbers.
11359 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11360 whether the register needs a caller save.
11361 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11362 of call_used_or_fixed_regs.
11363 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11364 full_and_partial_call_clobbers.
11365 * lra-lives.c (check_pseudos_live_through_calls): Replace
11366 last_call_used_reg_set and call_insn arguments with an abi argument.
11367 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11368 as the set of conflicting registers.
11369 (calls_have_same_clobbers_p): Delete.
11370 (process_bb_lives): Track the ABI of the last call instead of an
11371 insn/HARD_REG_SET pair. Update calls to
11372 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11373 the set of registers that could be clobbered by an EH edge.
11374 Include partially-clobbered as well as fully-clobbered registers.
11375 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11376 * lra-remat.c: Include function-abi.h.
11377 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11378 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11379 registers and bitmap_view to combine them into dead_regs.
11380 (call_used_input_regno_present_p): Take a function_abi argument
11381 and use it to test whether a register is call-clobbered.
11382 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11383 call insn target. Update tje call to call_used_input_regno_present_p.
11384 (do_remat): Likewise.
11385 (lra_remat): Remove the initialization of call_used_regs_arr_len
11386 and call_used_regs_arr.
11387
11388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11389
11390 * loop-iv.c: Include regs.h and function-abi.h.
11391 (simplify_using_initial_values): Use insn_callee_abi to get the
11392 ABI of the call insn target. Conservatively assume that
11393 partially-clobbered registers are altered.
11394
11395 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11396
11397 * function-abi.h (call_clobbers_in_region): Declare.
11398 (call_clobbered_in_region_p): New function.
11399 * function-abi.cc (call_clobbers_in_region): Likewise.
11400 * ira-int.h: Include function-abi.h.
11401 (ira_allocno::crossed_calls_abis): New field.
11402 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11403 (ira_need_caller_save_regs): New function.
11404 (ira_need_caller_save_p): Likewise.
11405 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11406 of call_used_or_fixed_regs.
11407 (do_reload): Use crtl->abi to test whether the current function
11408 needs to save a register in the prologue. Count registers that
11409 need to be saved rather than registers that don't.
11410 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11411 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11412 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11413 (propagate_some_info_from_allocno): Likewise.
11414 (copy_info_to_removed_store_destinations): Likewise.
11415 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11416 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11417 (ira_build): Use ira_need_caller_save_regs instead of
11418 call_used_or_fixed_regs.
11419 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11420 whether the current function would need to save a register
11421 before using it.
11422 (calculate_spill_cost): Likewise.
11423 (allocno_reload_assign): Use ira_need_caller_save_regs and
11424 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11425 * ira-conflicts.c (ira_build_conflicts): Use
11426 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11427 as the set of call-clobbered registers. Remove the
11428 call_used_or_fixed_regs mask from the calculation of
11429 temp_hard_reg_set and mask its use instead. Remove special
11430 handling of partially-clobbered registers.
11431 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11432 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11433 calculate the set of conflicting registers for calls that
11434 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11435 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11436 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11437 Use eh_edge_abi to calculate the set of registers that could
11438 be clobbered by an EH edge. Include partially-clobbered as
11439 well as fully-clobbered registers.
11440
11441 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11442
11443 * haifa-sched.c: Include function-abi.h.
11444 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11445 the function would need to save a register before using it.
11446
11447 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11448
11449 * gcse.c: Include function-abi.h.
11450 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11451 the call insn target. Invalidate partially call-clobbered
11452 registers as well as fully call-clobbered ones.
11453
11454 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11455
11456 * function.c (aggregate_value_p): Work out which ABI the
11457 function is using before testing which registers are at least
11458 partly preserved by a call.
11459
11460 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11461
11462 * early-remat.c: Include regs.h and function-abi.h.
11463 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11464 registers here.
11465 (early_remat::restrict_remat_for_unavail_regs): New function.
11466 (early_remat::restrict_remat_for_call): Likewise.
11467 (early_remat::process_block): Before calling emit_remat_insns
11468 for a previous call in the block, invalidate any candidates
11469 that would clobber call-preserved registers.
11470 (early_remat::emit_remat_insns_for_block): Likewise for the
11471 final call in a block. Do the same thing for live-in registers
11472 when calling emit_remat_insns at the head of a block.
11473
11474 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11475
11476 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11477 whether the current function needs to save at least part of a
11478 register before using it.
11479 (df_get_exit_block_use_set): Likewise for epilogue restores.
11480
11481 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11482
11483 * df-problems.c: Include regs.h and function-abi.h.
11484 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11485 sparse_invalidated_by_eh and dense_invalidated_by_call to
11486 dense_invalidated_by_eh.
11487 (df_print_bb_index): Update accordingly.
11488 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11489 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11490 that are clobbered by an EH edge. Clobber partially-clobbered
11491 registers as well as fully-clobbered ones.
11492 (df_md_confluence_n): Likewise.
11493 (df_rd_local_compute): Likewise. Update for changes to
11494 df_rd_problem_data.
11495 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11496 of registers that are clobbered by an EH edge. Includde partially-
11497 clobbered registers as well as fully-clobbered ones.
11498
11499 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11500
11501 * cselib.c (cselib_process_insn): If we know what mode a
11502 register was set in, check whether it is clobbered in that
11503 mode by a call. Only fall back to reg_raw_mode if that fails.
11504
11505 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11506
11507 * cse.c: Include regs.h and function-abi.h.
11508 (invalidate_for_call): Take the call insn as an argument.
11509 Use insn_callee_abi to get the ABI of the call and invalidate
11510 partially clobbered registers as well as fully clobbered ones.
11511 (cse_insn): Update call accordingly.
11512
11513 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11514
11515 * combine.c: Include function-abi.h.
11516 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11517 of the target of call insns. Invalidate partially-clobbered
11518 registers as well as fully-clobbered ones.
11519
11520 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11521
11522 * cfgloopanal.c: Include regs.h and function-abi.h.
11523 (init_set_costs): Use default_function_abi to test whether
11524 a general register is call-clobbered.
11525
11526 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11527
11528 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11529 instead of the call-clobbered sets.
11530
11531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11532
11533 * caller-save.c (setup_save_areas): Remove redundant |s of
11534 fixed_reg_set.
11535 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11536 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11537 value is useful.
11538
11539 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11540
11541 * rtl.h (predefined_function_abi): Declare.
11542 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11543 instead of a boolean call_save flag.
11544 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11545 accordingly.
11546 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11547 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11548 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11549 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11550 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11551 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11552 * reginfo.c (init_reg_modes_target): Likewise.
11553 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11554 instead of a boolean call_save flag.
11555 * targhooks.c: Include function-abi.h.
11556 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11557 using eh_edge_abi to choose the mode.
11558
11559 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11560
11561 * target.def (hard_regno_call_part_clobbered): Take an ABI
11562 identifier instead of an rtx_insn.
11563 * doc/tm.texi: Regenerate.
11564 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11565 (hook_bool_uint_uint_mode_false): New function.
11566 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11567 (hook_bool_uint_uint_mode_false): New function.
11568 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11569 Take an ABI identifier instead of an rtx_insn.
11570 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11571 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11572 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11573 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11574 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11575 Likewise.
11576 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11577 * cselib.c: Include function-abi.h.
11578 (cselib_process_insn): Update call to
11579 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11580 to get the appropriate ABI identifier.
11581 * function-abi.cc (predefined_function_abi::initialize): Update call
11582 to targetm.hard_regno_call_part_clobbered.
11583 * ira-conflicts.c (ira_build_conflicts): Likewise.
11584 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11585 * lra-constraints.c: Include function-abi.h.
11586 (need_for_call_save_p): Update call to
11587 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11588 to get the appropriate ABI identifier.
11589 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11590 * regcprop.c (copyprop_hardreg_forward_1): Update call
11591 to targetm.hard_regno_call_part_clobbered.
11592 * reginfo.c (choose_hard_reg_mode): Likewise.
11593 * regrename.c (check_new_reg_p): Likewise.
11594 * reload.c (find_equiv_reg): Likewise.
11595 * reload1.c (emit_reload_insns): Likewise.
11596 * sched-deps.c: Include function-abi.h.
11597 (deps_analyze_insn): Update call to
11598 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11599 to get the appropriate ABI identifier.
11600 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11601 call to targetm.hard_regno_call_part_clobbered.
11602 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11603
11604 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11605
11606 * config/i386/i386.c: Include function-abi.h.
11607 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11608 if they preserve some 256-bit or 512-bit SSE registers.
11609
11610 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11611
11612 * target.def (insn_callee_abi): New hook.
11613 (remove_extra_call_preserved_regs): Delete.
11614 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11615 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11616 * doc/tm.texi: Regenerate.
11617 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11618 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11619 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11620 insn argument.
11621 (aarch64_remove_extra_call_preserved_regs): Delete.
11622 (aarch64_insn_callee_abi): New function.
11623 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11624 (TARGET_INSN_CALLEE_ABI): New macro.
11625 * rtl.h (get_call_fndecl): Declare.
11626 (cgraph_rtl_info): Fix formatting. Tweak comment for
11627 function_used_regs. Remove function_used_regs_valid.
11628 * rtlanal.c (get_call_fndecl): Moved from final.c
11629 * function-abi.h (insn_callee_abi): Declare.
11630 (target_function_abi_info): Mention insn_callee_abi.
11631 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11632 way to get_call_reg_set_usage did.
11633 (insn_callee_abi): New function.
11634 * regs.h (get_call_reg_set_usage): Delete.
11635 * final.c: Include function-abi.h.
11636 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11637 function_used_regs before the main loop rather than afterwards.
11638 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11639 if function_used_regs ends up not being useful.
11640 (get_call_fndecl): Move to rtlanal.c
11641 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11642 * caller-save.c: Include function-abi.h.
11643 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11644 instead of get_call_reg_set_usage.
11645 * cfgcleanup.c: Include function-abi.h.
11646 (old_insns_match_p): Use insn_callee_abi instead of
11647 get_call_reg_set_usage.
11648 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11649 a tree.
11650 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11651 function_used_regs.
11652 * df-scan.c: Include function-abi.h.
11653 (df_get_call_refs): Use insn_callee_abi instead of
11654 get_call_reg_set_usage.
11655 * ira-lives.c: Include function-abi.h.
11656 (process_bb_node_lives): Use insn_callee_abi instead of
11657 get_call_reg_set_usage.
11658 * lra-lives.c: Include function-abi.h.
11659 (process_bb_lives): Use insn_callee_abi instead of
11660 get_call_reg_set_usage.
11661 * postreload.c: Include function-abi.h.
11662 (reload_combine): Use insn_callee_abi instead of
11663 get_call_reg_set_usage.
11664 * regcprop.c: Include function-abi.h.
11665 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11666 get_call_reg_set_usage.
11667 * resource.c: Include function-abi.h.
11668 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11669 instead of get_call_reg_set_usage.
11670 * var-tracking.c: Include function-abi.h.
11671 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11672 get_call_reg_set_usage.
11673
11674 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11675
11676 * target.def (fntype_abi): New target hook.
11677 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11678 * doc/tm.texi: Regenerate.
11679 * target.h (predefined_function_abi): Declare.
11680 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11681 if defined.
11682 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11683 * config/aarch64/aarch64.c: Include function-abi.h.
11684 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11685 (TARGET_FNTYPE_ABI): Define.
11686
11687 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11688
11689 * Makefile.in (OBJS): Add function-abi.o.
11690 (GTFILES): Add function-abi.h.
11691 * function-abi.cc: New file.
11692 * function-abi.h: Likewise.
11693 * emit-rtl.h (rtl_data::abi): New field.
11694 * function.c: Include function-abi.h.
11695 (prepare_function_start): Initialize crtl->abi.
11696 * read-rtl-function.c: Include regs.h and function-abi.h.
11697 (read_rtl_function_body): Initialize crtl->abi.
11698 (read_rtl_function_body_from_file_range): Likewise.
11699 * reginfo.c: Include function-abi.h.
11700 (init_reg_sets_1): Initialize default_function_abi.
11701 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11702 when making a register global.
11703 * target-globals.h (this_target_function_abi_info): Declare.
11704 (target_globals::function_abi_info): New field.
11705 (restore_target_globals): Copy it.
11706 * target-globals.c: Include function-abi.h.
11707 (default_target_globals): Initialize the function_abi_info field.
11708 (target_globals): Allocate it.
11709 (save_target_globals): Free it.
11710
11711 2019-09-30 Nick Clifton <nickc@redhat.com>
11712
11713 PR target/85978
11714 * config/frv/frv.c (frv_register_move_cost): Add break statements
11715 to avoid falling through to the wrong cases. Tidy code.
11716
11717 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11718
11719 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11720 For multi-registers modes, test how big each register part is.
11721
11722 2019-09-30 Nick Clifton <nickc@redhat.com>
11723
11724 PR target/59205
11725 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11726 (TARGET_ASM_SELECT_SECTION): Remove definition.
11727 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11728
11729 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11730
11731 * emit-rtl.c (init_raw_REG): New function.
11732 (gen_raw_REG): Use init_raw_REG.
11733 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11734 macros.
11735 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11736 * rtl.h (rtx_init): New function.
11737 (rtx_alloca): New function.
11738 (init_raw_REG): New function.
11739 (alloca_raw_REG): New macro.
11740
11741 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11742
11743 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11744 (pcrel_local_address): Replace pcrel_address predicate, use the
11745 new function address_to_insn_form.
11746 (pcrel_external_address): Replace with new implementation using
11747 address_to_insn_form..
11748 (prefixed_mem_operand): Delete predicate which is now unused.
11749 (pcrel_external_mem_operand): Delete predicate which is now
11750 unused.
11751 * config/rs6000/rs6000-protos.h (enum insn_form): New
11752 enumeration.
11753 (enum non_prefixed_form): New enumeration.
11754 (address_to_insn_form): New declaration.
11755 (prefixed_load_p): New declaration.
11756 (prefixed_store_p): New declaration.
11757 (prefixed_paddi_p): New declaration.
11758 (rs6000_asm_output_opcode): New declaration.
11759 (rs6000_final_prescan_insn): Move declaration and update calling
11760 signature.
11761 (address_is_prefixed): New helper inline function.
11762 * config/rs6000/rs6000.c(print_operand_address): Check for either
11763 PC-relative local symbols or PC-relative external symbols.
11764 (rs6000_emit_move): Support loading PC-relative addresses.
11765 (mode_supports_prefixed_address_p): Delete, no longer used.
11766 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11767 (address_to_insn_form): New function to decode an address format.
11768 (reg_to_non_prefixed): New function to identify what the
11769 non-prefixed memory instruction format is for a register.
11770 (prefixed_load_p): New function to identify prefixed loads.
11771 (prefixed_store_p): New function to identify prefixed stores.
11772 (prefixed_paddi_p): New function to identify prefixed load
11773 immediates.
11774 (next_insn_prefixed_p): New static state variable.
11775 (rs6000_final_prescan_insn): New function to determine if an insn
11776 uses a prefixed instruction.
11777 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11778 prefixed instruction.
11779 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11780 (ASM_OUTPUT_OPCODE): New target hook.
11781 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11782 prefixed instructions.
11783 (prefixed_length): New insn attribute for the size of prefixed
11784 instructions.
11785 (non_prefixed_length): New insn attribute for the size of
11786 non-prefixed instructions.
11787 (pcrel_local_addr): New insn to load up a local PC-relative
11788 address.
11789 (pcrel_extern_addr): New insn to load up an external PC-relative
11790 address.
11791 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11792 GPR and loading a 128-bit floating point type to a GPR.
11793
11794 2019-09-30 Richard Biener <rguenther@suse.de>
11795
11796 * gimple.c (gimple_get_lhs): For PHIs return the result.
11797 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11798 SLP instance as argument.
11799 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11800 double-reduction PHIs with vectorizable_lc_phi.
11801 (vect_analyze_loop_operations): Adjust.
11802 (vect_create_epilog_for_reduction): Remove all code not dealing
11803 with reduction LC PHI or epilogue generation.
11804 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11805 for live stmts of reductions.
11806 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11807 do not handle defs that are not vect_internal_def.
11808 (can_vectorize_live_stmts): Adjust.
11809 (vect_analyze_stmt): When the vectorized stmt defined a value
11810 used on backedges adjust the backedge uses of vectorized PHIs.
11811
11812 2019-09-30 Martin Jambor <mjambor@suse.cz>
11813
11814 PR ipa/91853
11815 * tree-inline.c (force_value_to_type): New function.
11816 (setup_one_parameter): Use force_value_to_type to convert type.
11817 * tree-inline.c (force_value_to_type): Declare.
11818 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11819 with register type mismatches.
11820
11821 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11822
11823 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11824 32-bit PowerPC.
11825 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11826 * config/rs6000/t-freebsd64: Make use of the above define and build
11827 the 32-bit libraries with secure-plt.
11828
11829 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11830
11831 PR target/91931
11832 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11833 gen_int_mode instead of GEN_INT.
11834
11835 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11836
11837 * config/darwin.c (gen_macho_low): Amend to include the mode
11838 argument.
11839 (machopic_indirect_data_reference): Amend gen_macho_low call
11840 to include mode argument
11841 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11842 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11843 the macho_high expander and two define_insn entries.
11844
11845 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11846
11847 PR bootstrap/90543
11848 * optc-save-gen.awk: Fix up printing string option differences.
11849
11850 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11851
11852 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11853 vec_perm cost to 1 for non-Power7 VSX architectures.
11854
11855 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11856
11857 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11858 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11859 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11860
11861 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11862
11863 * config/darwin.c (gen_macho_high): Amend to include the mode
11864 argument.
11865 (machopic_indirect_data_reference): Amend gen_macho_high call
11866 to include mode argument.
11867 (machopic_legitimize_pic_address): Likewise.
11868 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11869 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11870 the macho_high expander and two define_insn entries.
11871
11872 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11873
11874 PR target/86805
11875 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11876
11877 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11878
11879 PR target/80672
11880 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11881 std::string::compare instead of std::string::find.
11882
11883 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11884
11885 * configure: Regenerate.
11886
11887 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11888
11889 PR middle-end/91920
11890 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11891 variables as shared.
11892
11893 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11894
11895 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11896 replaces the expander and two define_insn entries.
11897 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11898 call.
11899 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11900
11901 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11902
11903 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11904 (fibonacci_heap::nodes): Likewise.
11905 (fibonacci_heap::min_key): Likewise.
11906 (fibonacci_heap::min): Likewise.
11907
11908 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11909
11910 * cgraph.c (cgraph_node::get_fun): Make const.
11911 * cgraph.h (cgraph_node::get_fun): Likewise.
11912
11913 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11914
11915 PR target/91919
11916 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11917 of SImode MULT.
11918
11919 2019-09-27 Richard Biener <rguenther@suse.de>
11920
11921 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11922 (STMT_VINFO_REDUC_FN): Likewise.
11923 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11924 STMT_VINFO_REDUC_FN.
11925 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11926 for condition reductions.
11927 (vect_create_epilog_for_reduction): Compute all required state
11928 from the stmt to be vectorized.
11929 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11930 invocation and remove then dead code. For single def-use chains
11931 record only a single vector stmt.
11932
11933 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11934
11935 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11936 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11937 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11938 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11939 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11940 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11941 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11942 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11943 (aarch64_general_builtin_rsqrt): Declare.
11944 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11945 New function.
11946 (aarch64_mangle_builtin_type): Rename to...
11947 (aarch64_general_mangle_builtin_type): ...this.
11948 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11949 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11950 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11951 aarch64_general_add_builtin instead of add_builtin_function.
11952 (aarch64_init_builtins): Rename to...
11953 (aarch64_general_init_builtins): ...this. Use
11954 aarch64_general_add_builtin instead of add_builtin_function.
11955 (aarch64_builtin_decl): Rename to...
11956 (aarch64_general_builtin_decl): ...this and remove the unused
11957 arguments.
11958 (aarch64_expand_builtin): Rename to...
11959 (aarch64_general_expand_builtin): ...this and remove the unused
11960 arguments.
11961 (aarch64_builtin_rsqrt): Rename to...
11962 (aarch64_general_builtin_rsqrt): ...this.
11963 (aarch64_fold_builtin): Rename to...
11964 (aarch64_general_fold_builtin): ...this. Take the function subcode
11965 and return type as arguments. Remove the "ignored" argument.
11966 (aarch64_gimple_fold_builtin): Rename to...
11967 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11968 subcode and gcall as arguments, and return the new function call.
11969 * config/aarch64/aarch64.c (aarch64_init_builtins)
11970 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11971 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11972 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11973 instead of aarch64_builtin_rsqrt.
11974 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11975 instead of aarch64_mangle_builtin_type.
11976
11977 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11978
11979 * target.def (check_builtin_call): New target hook.
11980 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11981 * doc/tm.texi: Regenerate.
11982
11983 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11984
11985 PR tree-optimization/91909
11986 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11987 reduc_index parameter. When handling COND_REDUCTION, make sure
11988 that the reduction phi operand is in the correct arm of the
11989 VEC_COND_EXPR.
11990 (vectorizable_reduction): Pass reduc_index to the above.
11991
11992 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11993
11994 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11995 New combine pattern.
11996
11997 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11998
11999 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
12000 loop instruction into new basic block before the loop when basic
12001 block that precedes the loop is empty.
12002
12003 2019-09-26 Jakub Jelinek <jakub@redhat.com>
12004
12005 * function.c (gimplify_parameters): Use build_clobber function.
12006 * tree-ssa.c (execute_update_addresses_taken): Likewise.
12007 * tree-inline.c (expand_call_inline): Likewise.
12008 * tree-sra.c (clobber_subtree): Likewise.
12009 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
12010 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
12011 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
12012 lower_omp_target): Likewise.
12013 * omp-expand.c (expand_omp_for_generic): Likewise.
12014 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
12015
12016 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
12017
12018 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
12019 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
12020 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
12021 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
12022 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
12023 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
12024 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
12025 LD_ELEMREV_V16QI): Use the PURE attribute.
12026
12027 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
12028
12029 * config/rs6000/darwin.md: Replace the expanders for
12030 load_macho_picbase and reload_macho_picbase with use of '@'
12031 and <mode> in their respective define_insns.
12032 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
12033 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
12034 Pmode to gen_load_macho_picbase.
12035 * config/rs6000/rs6000.md: Likewise.
12036
12037 2019-09-25 Richard Biener <rguenther@suse.de>
12038
12039 PR tree-optimization/91896
12040 * tree-vect-loop.c (vectorizable_reduction): The single
12041 def-use cycle optimization cannot apply when there's more
12042 than one pattern stmt involved.
12043
12044 2019-09-26 Richard Biener <rguenther@suse.de>
12045
12046 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
12047 loop-closed PHIs that are vect_internal_def.
12048 (vect_create_epilog_for_reduction): Exit early for nested cycles.
12049 Simplify.
12050 (vectorizable_lc_phi): New.
12051 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
12052 (vect_transform_stmt): Likewise.
12053 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
12054 (vectorizable_lc_phi): Declare.
12055
12056 2019-09-26 Richard Biener <rguenther@suse.de>
12057
12058 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
12059 vectorizable_reduction for vect_double_reduction_def.
12060 (vect_transform_loop): Likewise.
12061 (vect_create_epilog_for_reduction): Move double-reduction
12062 PHI creation and preheader argument setting of PHIs ...
12063 (vectorizable_reduction): ... here. Also process
12064 vect_double_reduction_def PHIs, creating the vectorized
12065 PHI nodes, remembering the scalar adjustment computed for
12066 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
12067 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
12068 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
12069 Initialize STMT_VINFO_REDUC_CODE.
12070 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
12071 (_stmt_vec_info::reduc_code): Likewise.
12072 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
12073 (STMT_VINFO_REDUC_CODE): Likewise.
12074
12075 2019-09-26 Matt Turner <mattst88@gmail.com>
12076
12077 PR driver/69471
12078 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
12079 (mtune=): Add Negative(mtune=).
12080 (mcpu=): Add Negative(mcpu=).
12081 * config/arm/arm.opt: Likewise.
12082
12083 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12084
12085 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12086 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
12087 Define.
12088 * config/arm/arm_acle.h: Define builtins for the above.
12089 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
12090 (simd32_op): Handle the above.
12091 * config/arm/unspecs.md: Define unspecs for the above.
12092
12093 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12094
12095 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
12096 (arm_<sup>xtb16): Likewise.
12097 (arm_usada8): Likewise.
12098 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
12099 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
12100 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
12101 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
12102 __sxtb16, __uxtab16, __uxtb16): Define.
12103 * config/arm/arm_acle_builtins.def: Define builtins for the above.
12104 * config/arm/unspecs.md: Define unspecs for the above.
12105 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
12106 (USXTB16): Likewise.
12107 (simd32_op): New int_attribute.
12108 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
12109 * doc/sourcebuild.exp (arm_simd32_ok): Document.
12110
12111 2019-09-26 Martin Jambor <mjambor@suse.cz>
12112
12113 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
12114 internal_error.
12115
12116 2019-09-26 Martin Jambor <mjambor@suse.cz>
12117
12118 * ipa-sra.c (process_scan_results): Fix continue condition.
12119
12120 2019-09-26 Martin Liska <mliska@suse.cz>
12121
12122 PR tree-optimization/91885
12123 * tree-vectorizer.c (try_vectorize_loop_1): Add
12124 TODO_update_ssa_only_virtuals similarly to what slp pass does.
12125
12126 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
12127
12128 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
12129 aarch64_plus_immediate rather than aarch64_uimm12_shift
12130 to test for valid PLUS immediates.
12131
12132 2019-09-25 Martin Jambor <mjambor@suse.cz>
12133
12134 * tree-sra.c (no_accesses_p): Remove.
12135 (no_accesses_representant): Likewise.
12136
12137 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12138
12139 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12140 consistenly.
12141 (vaba_s16): Likewise.
12142 (vaba_s32): Likewise.
12143 (vaba_u8): Likewise.
12144 (vaba_u16): Likewise.
12145 (vaba_u32): Likewise.
12146 (vabal_high_s8): Likewise.
12147 (vabal_high_s16): Likewise.
12148 (vabal_high_s32): Likewise.
12149 (vabal_high_u8): Likewise.
12150 (vabal_high_u16): Likewise.
12151 (vabal_high_u32): Likewise.
12152 (vabal_s8): Likewise.
12153 (vabal_s16): Likewise.
12154 (vabal_s32): Likewise.
12155 (vabal_u8): Likewise.
12156 (vabal_u16): Likewise.
12157 (vabal_u32): Likewise.
12158 (vabaq_s8): Likewise.
12159 (vabaq_s16): Likewise.
12160 (vabaq_s32): Likewise.
12161 (vabaq_u8): Likewise.
12162 (vabaq_u16): Likewise.
12163 (vabaq_u32): Likewise.
12164 (vabd_s8): Likewise.
12165 (vabd_s16): Likewise.
12166 (vabd_s32): Likewise.
12167 (vabd_u8): Likewise.
12168 (vabd_u16): Likewise.
12169 (vabd_u32): Likewise.
12170 (vabdl_high_s8): Likewise.
12171 (vabdl_high_s16): Likewise.
12172 (vabdl_high_s32): Likewise.
12173 (vabdl_high_u8): Likewise.
12174 (vabdl_high_u16): Likewise.
12175 (vabdl_high_u32): Likewise.
12176 (vabdl_s8): Likewise.
12177 (vabdl_s16): Likewise.
12178 (vabdl_s32): Likewise.
12179 (vabdl_u8): Likewise.
12180 (vabdl_u16): Likewise.
12181 (vabdl_u32): Likewise.
12182 (vabdq_s8): Likewise.
12183 (vabdq_s16): Likewise.
12184 (vabdq_s32): Likewise.
12185 (vabdq_u8): Likewise.
12186 (vabdq_u16): Likewise.
12187 (vabdq_u32): Likewise.
12188 (vaddlv_s8): Likewise.
12189 (vaddlv_s16): Likewise.
12190 (vaddlv_u8): Likewise.
12191 (vaddlv_u16): Likewise.
12192 (vaddlvq_s8): Likewise.
12193 (vaddlvq_s16): Likewise.
12194 (vaddlvq_s32): Likewise.
12195 (vaddlvq_u8): Likewise.
12196 (vaddlvq_u16): Likewise.
12197 (vaddlvq_u32): Likewise.
12198 (vcvtx_f32_f64): Likewise.
12199 (vcvtx_high_f32_f64): Likewise.
12200 (vcvtxd_f32_f64): Likewise.
12201 (vmla_n_f32): Likewise.
12202 (vmla_n_s16): Likewise.
12203 (vmla_n_s32): Likewise.
12204 (vmla_n_u16): Likewise.
12205 (vmla_n_u32): Likewise.
12206 (vmla_s8): Likewise.
12207 (vmla_s16): Likewise.
12208 (vmla_s32): Likewise.
12209 (vmla_u8): Likewise.
12210 (vmla_u16): Likewise.
12211 (vmla_u32): Likewise.
12212 (vmlal_high_n_s16): Likewise.
12213 (vmlal_high_n_s32): Likewise.
12214 (vmlal_high_n_u16): Likewise.
12215 (vmlal_high_n_u32): Likewise.
12216 (vmlal_high_s8): Likewise.
12217 (vmlal_high_s16): Likewise.
12218 (vmlal_high_s32): Likewise.
12219 (vmlal_high_u8): Likewise.
12220 (vmlal_high_u16): Likewise.
12221 (vmlal_high_u32): Likewise.
12222 (vmlal_n_s16): Likewise.
12223 (vmlal_n_s32): Likewise.
12224 (vmlal_n_u16): Likewise.
12225 (vmlal_n_u32): Likewise.
12226 (vmlal_s8): Likewise.
12227 (vmlal_s16): Likewise.
12228 (vmlal_s32): Likewise.
12229 (vmlal_u8): Likewise.
12230 (vmlal_u16): Likewise.
12231 (vmlal_u32): Likewise.
12232 (vmlaq_n_f32): Likewise.
12233 (vmlaq_n_s16): Likewise.
12234 (vmlaq_n_s32): Likewise.
12235 (vmlaq_n_u16): Likewise.
12236 (vmlaq_n_u32): Likewise.
12237 (vmlaq_s8): Likewise.
12238 (vmlaq_s16): Likewise.
12239 (vmlaq_s32): Likewise.
12240 (vmlaq_u8): Likewise.
12241 (vmlaq_u16): Likewise.
12242 (vmlaq_u32): Likewise.
12243 (vmls_n_f32): Likewise.
12244 (vmls_n_s16): Likewise.
12245 (vmls_n_s32): Likewise.
12246 (vmls_n_u16): Likewise.
12247 (vmls_n_u32): Likewise.
12248 (vmls_s8): Likewise.
12249 (vmls_s16): Likewise.
12250 (vmls_s32): Likewise.
12251 (vmls_u8): Likewise.
12252 (vmls_u16): Likewise.
12253 (vmls_u32): Likewise.
12254 (vmlsl_high_n_s16): Likewise.
12255 (vmlsl_high_n_s32): Likewise.
12256 (vmlsl_high_n_u16): Likewise.
12257 (vmlsl_high_n_u32): Likewise.
12258 (vmlsl_high_s8): Likewise.
12259 (vmlsl_high_s16): Likewise.
12260 (vmlsl_high_s32): Likewise.
12261 (vmlsl_high_u8): Likewise.
12262 (vmlsl_high_u16): Likewise.
12263 (vmlsl_high_u32): Likewise.
12264 (vmlsl_n_s16): Likewise.
12265 (vmlsl_n_s32): Likewise.
12266 (vmlsl_n_u16): Likewise.
12267 (vmlsl_n_u32): Likewise.
12268 (vmlsl_s8): Likewise.
12269 (vmlsl_s16): Likewise.
12270 (vmlsl_s32): Likewise.
12271 (vmlsl_u8): Likewise.
12272 (vmlsl_u16): Likewise.
12273 (vmlsl_u32): Likewise.
12274 (vmlsq_n_f32): Likewise.
12275 (vmlsq_n_s16): Likewise.
12276 (vmlsq_n_s32): Likewise.
12277 (vmlsq_n_u16): Likewise.
12278 (vmlsq_n_u32): Likewise.
12279 (vmlsq_s8): Likewise.
12280 (vmlsq_s16): Likewise.
12281 (vmlsq_s32): Likewise.
12282 (vmlsq_u8): Likewise.
12283 (vmlsq_u16): Likewise.
12284 (vmlsq_u32): Likewise.
12285 (vmovl_high_s8): Likewise.
12286 (vmovl_high_s16): Likewise.
12287 (vmovl_high_s32): Likewise.
12288 (vmovl_high_u8): Likewise.
12289 (vmovl_high_u16): Likewise.
12290 (vmovl_high_u32): Likewise.
12291 (vmovl_s8): Likewise.
12292 (vmovl_s16): Likewise.
12293 (vmovl_s32): Likewise.
12294 (vmovl_u8): Likewise.
12295 (vmovl_u16): Likewise.
12296 (vmovl_u32): Likewise.
12297 (vmovn_high_s16): Likewise.
12298 (vmovn_high_s32): Likewise.
12299 (vmovn_high_s64): Likewise.
12300 (vmovn_high_u16): Likewise.
12301 (vmovn_high_u32): Likewise.
12302 (vmovn_high_u64): Likewise.
12303 (vmovn_s16): Likewise.
12304 (vmovn_s32): Likewise.
12305 (vmovn_s64): Likewise.
12306 (vmovn_u16): Likewise.
12307 (vmovn_u32): Likewise.
12308 (vmovn_u64): Likewise.
12309 (vmull_high_n_s16): Likewise.
12310 (vmull_high_n_s32): Likewise.
12311 (vmull_high_n_u16): Likewise.
12312 (vmull_high_n_u32): Likewise.
12313 (vmull_high_p8): Likewise.
12314 (vmull_high_s8): Likewise.
12315 (vmull_high_s16): Likewise.
12316 (vmull_high_s32): Likewise.
12317 (vmull_high_u8): Likewise.
12318 (vmull_high_u16): Likewise.
12319 (vmull_high_u32): Likewise.
12320 (vmull_n_s16): Likewise.
12321 (vmull_n_s32): Likewise.
12322 (vmull_n_u16): Likewise.
12323 (vmull_n_u32): Likewise.
12324 (vmull_p8): Likewise.
12325 (vmull_s8): Likewise.
12326 (vmull_s16): Likewise.
12327 (vmull_s32): Likewise.
12328 (vmull_u8): Likewise.
12329 (vmull_u16): Likewise.
12330 (vmull_u32): Likewise.
12331 (vpadal_s8): Likewise.
12332 (vpadal_s16): Likewise.
12333 (vpadal_s32): Likewise.
12334 (vpadal_u8): Likewise.
12335 (vpadal_u16): Likewise.
12336 (vpadal_u32): Likewise.
12337 (vpadalq_s8): Likewise.
12338 (vpadalq_s16): Likewise.
12339 (vpadalq_s32): Likewise.
12340 (vpadalq_u8): Likewise.
12341 (vpadalq_u16): Likewise.
12342 (vpadalq_u32): Likewise.
12343 (vpaddl_s8): Likewise.
12344 (vpaddl_s16): Likewise.
12345 (vpaddl_s32): Likewise.
12346 (vpaddl_u8): Likewise.
12347 (vpaddl_u16): Likewise.
12348 (vpaddl_u32): Likewise.
12349 (vpaddlq_s8): Likewise.
12350 (vpaddlq_s16): Likewise.
12351 (vpaddlq_s32): Likewise.
12352 (vpaddlq_u8): Likewise.
12353 (vpaddlq_u16): Likewise.
12354 (vpaddlq_u32): Likewise.
12355 (vpaddq_s8): Likewise.
12356 (vpaddq_s16): Likewise.
12357 (vpaddq_s32): Likewise.
12358 (vpaddq_s64): Likewise.
12359 (vpaddq_u8): Likewise.
12360 (vpaddq_u16): Likewise.
12361 (vpaddq_u32): Likewise.
12362 (vpaddq_u64): Likewise.
12363 (vqdmulh_n_s16): Likewise.
12364 (vqdmulh_n_s32): Likewise.
12365 (vqdmulhq_n_s16): Likewise.
12366 (vqdmulhq_n_s32): Likewise.
12367 (vqmovn_high_s16): Likewise.
12368 (vqmovn_high_s32): Likewise.
12369 (vqmovn_high_s64): Likewise.
12370 (vqmovn_high_u16): Likewise.
12371 (vqmovn_high_u32): Likewise.
12372 (vqmovn_high_u64): Likewise.
12373 (vqmovun_high_s16): Likewise.
12374 (vqmovun_high_s32): Likewise.
12375 (vqmovun_high_s64): Likewise.
12376 (vqrdmulh_n_s16): Likewise.
12377 (vqrdmulh_n_s32): Likewise.
12378 (vqrdmulhq_n_s16): Likewise.
12379 (vqrdmulhq_n_s32): Likewise.
12380 (vrsqrte_u32): Likewise.
12381 (vrsqrteq_u32): Likewise.
12382 (vtst_p8): Likewise.
12383 (vtst_p16): Likewise.
12384 (vtst_p64): Likewise.
12385 (vtstq_p8): Likewise.
12386 (vtstq_p16): Likewise.
12387 (vtstq_p64): Likewise.
12388 (vaddlv_s32): Likewise.
12389 (vaddlv_u32): Likewise.
12390 (vqtbl1_p8): Likewise.
12391 (vqtbl1_s8): Likewise.
12392 (vqtbl1_u8): Likewise.
12393 (vqtbl1q_p8): Likewise.
12394 (vqtbl1q_s8): Likewise.
12395 (vqtbl1q_u8): Likewise.
12396 (vqtbx1_s8): Likewise.
12397 (vqtbx1_u8): Likewise.
12398 (vqtbx1_p8): Likewise.
12399 (vqtbx1q_s8): Likewise.
12400 (vqtbx1q_u8): Likewise.
12401 (vqtbx1q_p8): Likewise.
12402 (vtbl1_s8): Likewise.
12403 (vtbl1_u8): Likewise.
12404 (vtbl1_p8): Likewise.
12405 (vtbl2_s8): Likewise.
12406 (vtbl2_u8): Likewise.
12407 (vtbl2_p8): Likewise.
12408 (vtbl3_s8): Likewise.
12409 (vtbl3_u8): Likewise.
12410 (vtbl3_p8): Likewise.
12411 (vtbl4_s8): Likewise.
12412 (vtbl4_u8): Likewise.
12413 (vtbl4_p8): Likewise.
12414 (vtbx2_s8): Likewise.
12415 (vtbx2_u8): Likewise.
12416 (vtbx2_p8): Likewise.
12417 (vld1_f32): Likewise.
12418 (vld1_f64): Likewise.
12419 (vld1_p8): Likewise.
12420 (vld1_p16): Likewise.
12421 (vld1_p64): Likewise.
12422 (vld1_s8): Likewise.
12423 (vld1_s16): Likewise.
12424 (vld1_s32): Likewise.
12425 (vld1_s64): Likewise.
12426 (vld1_u8): Likewise.
12427 (vld1_u16): Likewise.
12428 (vld1_u32): Likewise.
12429 (vld1_u64): Likewise.
12430 (vld1q_f32): Likewise.
12431 (vld1q_f64): Likewise.
12432 (vld1q_p8): Likewise.
12433 (vld1q_p16): Likewise.
12434 (vld1q_p64): Likewise.
12435 (vld1q_s8): Likewise.
12436 (vld1q_s16): Likewise.
12437 (vld1q_s32): Likewise.
12438 (vld1q_s64): Likewise.
12439 (vld1q_u8): Likewise.
12440 (vld1q_u16): Likewise.
12441 (vld1q_u32): Likewise.
12442 (vld1q_u64): Likewise.
12443 (vpmax_s8): Likewise.
12444 (vpmax_s16): Likewise.
12445 (vpmax_s32): Likewise.
12446 (vpmax_u8): Likewise.
12447 (vpmax_u16): Likewise.
12448 (vpmax_u32): Likewise.
12449 (vpmaxq_s8): Likewise.
12450 (vpmaxq_s16): Likewise.
12451 (vpmaxq_s32): Likewise.
12452 (vpmaxq_u8): Likewise.
12453 (vpmaxq_u16): Likewise.
12454 (vpmaxq_u32): Likewise.
12455 (vpmax_f32): Likewise.
12456 (vpmaxq_f32): Likewise.
12457 (vpmaxq_f64): Likewise.
12458 (vpmaxqd_f64): Likewise.
12459 (vpmaxs_f32): Likewise.
12460 (vpmaxnm_f32): Likewise.
12461 (vpmaxnmq_f32): Likewise.
12462 (vpmaxnmq_f64): Likewise.
12463 (vpmaxnmqd_f64): Likewise.
12464 (vpmaxnms_f32): Likewise.
12465 (vpmin_s8): Likewise.
12466 (vpmin_s16): Likewise.
12467 (vpmin_s32): Likewise.
12468 (vpmin_u8): Likewise.
12469 (vpmin_u16): Likewise.
12470 (vpmin_u32): Likewise.
12471 (vpminq_s8): Likewise.
12472 (vpminq_s16): Likewise.
12473 (vpminq_s32): Likewise.
12474 (vpminq_u8): Likewise.
12475 (vpminq_u16): Likewise.
12476 (vpminq_u32): Likewise.
12477 (vpmin_f32): Likewise.
12478 (vpminq_f32): Likewise.
12479 (vpminq_f64): Likewise.
12480 (vpminqd_f64): Likewise.
12481 (vpmins_f32): Likewise.
12482 (vpminnm_f32): Likewise.
12483 (vpminnmq_f32): Likewise.
12484 (vpminnmq_f64): Likewise.
12485 (vpminnmqd_f64): Likewise.
12486 (vpminnms_f32): Likewise.
12487 (vmla_f32): Likewise.
12488 (vmlaq_f32): Likewise.
12489 (vmlaq_f64): Likewise.
12490 (vmls_f32): Likewise.
12491 (vmlsq_f32): Likewise.
12492 (vmlsq_f64): Likewise.
12493 (vqtbl2_s8): Likewise.
12494 (vqtbl2_u8): Likewise.
12495 (vqtbl2_p8): Likewise.
12496 (vqtbl2q_s8): Likewise.
12497 (vqtbl2q_u8): Likewise.
12498 (vqtbl2q_p8): Likewise.
12499 (vqtbl3_s8): Likewise.
12500 (vqtbl3_u8): Likewise.
12501 (vqtbl3_p8): Likewise.
12502 (vqtbl3q_s8): Likewise.
12503 (vqtbl3q_u8): Likewise.
12504 (vqtbl3q_p8): Likewise.
12505 (vqtbl4_s8): Likewise.
12506 (vqtbl4_u8): Likewise.
12507 (vqtbl4_p8): Likewise.
12508 (vqtbl4q_s8): Likewise.
12509 (vqtbl4q_u8): Likewise.
12510 (vqtbl4q_p8): Likewise.
12511 (vqtbx2_s8): Likewise.
12512 (vqtbx2_u8): Likewise.
12513 (vqtbx2_p8): Likewise.
12514 (vqtbx2q_s8): Likewise.
12515 (vqtbx2q_u8): Likewise.
12516 (vqtbx2q_p8): Likewise.
12517 (vqtbx3_s8): Likewise.
12518 (vqtbx3_u8): Likewise.
12519 (vqtbx3_p8): Likewise.
12520 (vqtbx3q_s8): Likewise.
12521 (vqtbx3q_u8): Likewise.
12522 (vqtbx3q_p8): Likewise.
12523 (vqtbx4_s8): Likewise.
12524 (vqtbx4_u8): Likewise.
12525 (vqtbx4_p8): Likewise.
12526 (vqtbx4q_s8): Likewise.
12527 (vqtbx4q_u8): Likewise.
12528 (vqtbx4q_p8): Likewise.
12529 (vrev16_p8): Likewise.
12530 (vrev16_s8): Likewise.
12531 (vrev16_u8): Likewise.
12532 (vrev16q_p8): Likewise.
12533 (vrev16q_s8): Likewise.
12534 (vrev16q_u8): Likewise.
12535 (vrev32_p8): Likewise.
12536 (vrev32_p16): Likewise.
12537 (vrev32_s8): Likewise.
12538 (vrev32_s16): Likewise.
12539 (vrev32_u8): Likewise.
12540 (vrev32_u16): Likewise.
12541 (vrev32q_p8): Likewise.
12542 (vrev32q_p16): Likewise.
12543 (vrev32q_s8): Likewise.
12544 (vrev32q_s16): Likewise.
12545 (vrev32q_u8): Likewise.
12546 (vrev32q_u16): Likewise.
12547 (vrev64_f32): Likewise.
12548 (vrev64_p8): Likewise.
12549 (vrev64_p16): Likewise.
12550 (vrev64_s8): Likewise.
12551 (vrev64_s16): Likewise.
12552 (vrev64_s32): Likewise.
12553 (vrev64_u8): Likewise.
12554 (vrev64_u16): Likewise.
12555 (vrev64_u32): Likewise.
12556 (vrev64q_f32): Likewise.
12557 (vrev64q_p8): Likewise.
12558 (vrev64q_p16): Likewise.
12559 (vrev64q_s8): Likewise.
12560 (vrev64q_s16): Likewise.
12561 (vrev64q_s32): Likewise.
12562 (vrev64q_u8): Likewise.
12563 (vrev64q_u16): Likewise.
12564 (vrev64q_u32): Likewise.
12565 (vsha1cq_u32): Likewise.
12566 (vsha1mq_u32): Likewise.
12567 (vsha1pq_u32): Likewise.
12568 (vsha1h_u32): Likewise.
12569 (vsha1su0q_u32): Likewise.
12570 (vsha1su1q_u32): Likewise.
12571 (vsha256hq_u32): Likewise.
12572 (vsha256h2q_u32): Likewise.
12573 (vsha256su0q_u32): Likewise.
12574 (vsha256su1q_u32): Likewise.
12575 (vmull_p64): Likewise.
12576 (vmull_high_p64): Likewise.
12577 (vsqrt_f32): Likewise.
12578 (vsqrtq_f32): Likewise.
12579 (vsqrt_f64): Likewise.
12580 (vsqrtq_f64): Likewise.
12581 (vst1_f32): Likewise.
12582 (vst1_f64): Likewise.
12583 (vst1_p8): Likewise.
12584 (vst1_p16): Likewise.
12585 (vst1_p64): Likewise.
12586 (vst1_s8): Likewise.
12587 (vst1_s16): Likewise.
12588 (vst1_s32): Likewise.
12589 (vst1_s64): Likewise.
12590 (vst1_u8): Likewise.
12591 (vst1_u16): Likewise.
12592 (vst1_u32): Likewise.
12593 (vst1_u64): Likewise.
12594 (vst1q_f32): Likewise.
12595 (vst1q_f64): Likewise.
12596 (vst1q_p8): Likewise.
12597 (vst1q_p16): Likewise.
12598 (vst1q_p64): Likewise.
12599 (vst1q_s8): Likewise.
12600 (vst1q_s16): Likewise.
12601 (vst1q_s32): Likewise.
12602 (vst1q_s64): Likewise.
12603 (vst1q_u8): Likewise.
12604 (vst1q_u16): Likewise.
12605 (vst1q_u32): Likewise.
12606 (vst1q_u64): Likewise.
12607 (vst1_s64_x2): Likewise.
12608 (vst1_u64_x2): Likewise.
12609 (vst1_f64_x2): Likewise.
12610 (vst1_s8_x2): Likewise.
12611 (vst1_p8_x2): Likewise.
12612 (vst1_s16_x2): Likewise.
12613 (vst1_p16_x2): Likewise.
12614 (vst1_s32_x2): Likewise.
12615 (vst1_u8_x2): Likewise.
12616 (vst1_u16_x2): Likewise.
12617 (vst1_u32_x2): Likewise.
12618 (vst1_f16_x2): Likewise.
12619 (vst1_f32_x2): Likewise.
12620 (vst1_p64_x2): Likewise.
12621 (vst1q_s8_x2): Likewise.
12622 (vst1q_p8_x2): Likewise.
12623 (vst1q_s16_x2): Likewise.
12624 (vst1q_p16_x2): Likewise.
12625 (vst1q_s32_x2): Likewise.
12626 (vst1q_s64_x2): Likewise.
12627 (vst1q_u8_x2): Likewise.
12628 (vst1q_u16_x2): Likewise.
12629 (vst1q_u32_x2): Likewise.
12630 (vst1q_u64_x2): Likewise.
12631 (vst1q_f16_x2): Likewise.
12632 (vst1q_f32_x2): Likewise.
12633 (vst1q_f64_x2): Likewise.
12634 (vst1q_p64_x2): Likewise.
12635 (vst1_s64_x3): Likewise.
12636 (vst1_u64_x3): Likewise.
12637 (vst1_f64_x3): Likewise.
12638 (vst1_s8_x3): Likewise.
12639 (vst1_p8_x3): Likewise.
12640 (vst1_s16_x3): Likewise.
12641 (vst1_p16_x3): Likewise.
12642 (vst1_s32_x3): Likewise.
12643 (vst1_u8_x3): Likewise.
12644 (vst1_u16_x3): Likewise.
12645 (vst1_u32_x3): Likewise.
12646 (vst1_f16_x3): Likewise.
12647 (vst1_f32_x3): Likewise.
12648 (vst1_p64_x3): Likewise.
12649 (vst1q_s8_x3): Likewise.
12650 (vst1q_p8_x3): Likewise.
12651 (vst1q_s16_x3): Likewise.
12652 (vst1q_p16_x3): Likewise.
12653 (vst1q_s32_x3): Likewise.
12654 (vst1q_s64_x3): Likewise.
12655 (vst1q_u8_x3): Likewise.
12656 (vst1q_u16_x3): Likewise.
12657 (vst1q_u32_x3): Likewise.
12658 (vst1q_u64_x3): Likewise.
12659 (vst1q_f16_x3): Likewise.
12660 (vst1q_f32_x3): Likewise.
12661 (vst1q_f64_x3): Likewise.
12662 (vst1q_p64_x3): Likewise.
12663 (vst2_s64): Likewise.
12664 (vst2_u64): Likewise.
12665 (vst2_f64): Likewise.
12666 (vst2_s8): Likewise.
12667 (vst2_p8): Likewise.
12668 (vst2_s16): Likewise.
12669 (vst2_p16): Likewise.
12670 (vst2_s32): Likewise.
12671 (vst2_u8): Likewise.
12672 (vst2_u16): Likewise.
12673 (vst2_u32): Likewise.
12674 (vst2_f16): Likewise.
12675 (vst2_f32): Likewise.
12676 (vst2_p64): Likewise.
12677 (vst2q_s8): Likewise.
12678 (vst2q_p8): Likewise.
12679 (vst2q_s16): Likewise.
12680 (vst2q_p16): Likewise.
12681 (vst2q_s32): Likewise.
12682 (vst2q_s64): Likewise.
12683 (vst2q_u8): Likewise.
12684 (vst2q_u16): Likewise.
12685 (vst2q_u32): Likewise.
12686 (vst2q_u64): Likewise.
12687 (vst2q_f16): Likewise.
12688 (vst2q_f32): Likewise.
12689 (vst2q_f64): Likewise.
12690 (vst2q_p64): Likewise.
12691 (vst3_s64): Likewise.
12692 (vst3_u64): Likewise.
12693 (vst3_f64): Likewise.
12694 (vst3_s8): Likewise.
12695 (vst3_p8): Likewise.
12696 (vst3_s16): Likewise.
12697 (vst3_p16): Likewise.
12698 (vst3_s32): Likewise.
12699 (vst3_u8): Likewise.
12700 (vst3_u16): Likewise.
12701 (vst3_u32): Likewise.
12702 (vst3_f16): Likewise.
12703 (vst3_f32): Likewise.
12704 (vst3_p64): Likewise.
12705 (vst3q_s8): Likewise.
12706 (vst3q_p8): Likewise.
12707 (vst3q_s16): Likewise.
12708 (vst3q_p16): Likewise.
12709 (vst3q_s32): Likewise.
12710 (vst3q_s64): Likewise.
12711 (vst3q_u8): Likewise.
12712 (vst3q_u16): Likewise.
12713 (vst3q_u32): Likewise.
12714 (vst3q_u64): Likewise.
12715 (vst3q_f16): Likewise.
12716 (vst3q_f32): Likewise.
12717 (vst3q_f64): Likewise.
12718 (vst3q_p64): Likewise.
12719 (vst4_s64): Likewise.
12720 (vst4_u64): Likewise.
12721 (vst4_f64): Likewise.
12722 (vst4_s8): Likewise.
12723 (vst4_p8): Likewise.
12724 (vst4_s16): Likewise.
12725 (vst4_p16): Likewise.
12726 (vst4_s32): Likewise.
12727 (vst4_u8): Likewise.
12728 (vst4_u16): Likewise.
12729 (vst4_u32): Likewise.
12730 (vst4_f16): Likewise.
12731 (vst4_f32): Likewise.
12732 (vst4_p64): Likewise.
12733 (vst4q_s8): Likewise.
12734 (vst4q_p8): Likewise.
12735 (vst4q_s16): Likewise.
12736 (vst4q_p16): Likewise.
12737 (vst4q_s32): Likewise.
12738 (vst4q_s64): Likewise.
12739 (vst4q_u8): Likewise.
12740 (vst4q_u16): Likewise.
12741 (vst4q_u32): Likewise.
12742 (vst4q_u64): Likewise.
12743 (vst4q_f16): Likewise.
12744 (vst4q_f32): Likewise.
12745 (vst4q_f64): Likewise.
12746 (vst4q_p64): Likewise.
12747 (vtbx4_s8): Likewise.
12748 (vtbx4_u8): Likewise.
12749 (vtbx4_p8): Likewise.
12750 (vtrn_f32): Likewise.
12751 (vtrn_p8): Likewise.
12752 (vtrn_p16): Likewise.
12753 (vtrn_s8): Likewise.
12754 (vtrn_s16): Likewise.
12755 (vtrn_s32): Likewise.
12756 (vtrn_u8): Likewise.
12757 (vtrn_u16): Likewise.
12758 (vtrn_u32): Likewise.
12759 (vtrnq_f32): Likewise.
12760 (vtrnq_p8): Likewise.
12761 (vtrnq_p16): Likewise.
12762 (vtrnq_s8): Likewise.
12763 (vtrnq_s16): Likewise.
12764 (vtrnq_s32): Likewise.
12765 (vtrnq_u8): Likewise.
12766 (vtrnq_u16): Likewise.
12767 (vtrnq_u32): Likewise.
12768 (vrsqrte_f16): Likewise.
12769 (vrsqrteq_f16): Likewise.
12770 (vsqrt_f16): Likewise.
12771 (vsqrtq_f16): Likewise.
12772 (vabd_f16): Likewise.
12773 (vabdq_f16): Likewise.
12774 (vpadd_f16): Likewise.
12775 (vpaddq_f16): Likewise.
12776 (vpmax_f16): Likewise.
12777 (vpmaxq_f16): Likewise.
12778 (vpmaxnm_f16): Likewise.
12779 (vpmaxnmq_f16): Likewise.
12780 (vpmin_f16): Likewise.
12781 (vpminq_f16): Likewise.
12782 (vpminnm_f16): Likewise.
12783 (vpminnmq_f16): Likewise.
12784 (vrsqrts_f16): Likewise.
12785 (vrsqrtsq_f16): Likewise.
12786
12787 2019-09-25 Richard Biener <rguenther@suse.de>
12788
12789 PR tree-optimization/91896
12790 * tree-vect-loop.c (vectorizable_reduction): The single
12791 def-use cycle optimization cannot apply when there's more
12792 than one pattern stmt involved.
12793
12794 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12795
12796 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12797 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12798 (reload_macho_picbase_<mode>): Likewise.
12799
12800 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12801
12802 * config/rs6000/rs6000.md: Move darwin.md include until
12803 after the definition of the mode iterators.
12804
12805 2019-09-23 Martin Sebor <msebor@redhat.com>
12806
12807 PR tree-optimization/91570
12808 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12809 non-constant minlen, maxlen and maxbound.
12810
12811 2019-09-24 Richard Biener <rguenther@suse.de>
12812
12813 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12814 Rename to...
12815 (_stmt_vec_info::cond_reduc_code): ... this.
12816 (_stmt_vec_info::induc_cond_initial_val): Add.
12817 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12818 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12819 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12820 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12821 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12822 the reduction code.
12823 (vect_create_epilog_for_reduction): Drop special
12824 induction condition reduction params, pass in reduction code
12825 and simplify.
12826 (vectorizable_reduction): Perform condition reduction kind
12827 selection only at analysis time. Adjust passing on state.
12828
12829 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12830
12831 * config/aarch64/aarch64.md (mov<mode>): Don't call
12832 aarch64_split_dimode_const_store on volatile MEM.
12833
12834 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12835
12836 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12837 Update hwcap string for fp16fml.
12838
12839 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12840
12841 PR middle-end/91866
12842 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12843 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12844
12845 2019-09-24 Martin Liska <mliska@suse.cz>
12846
12847 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12848 instead of if-elseif-elseif-...
12849 * gimple-expr.c (extract_ops_from_tree): Likewise.
12850 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12851 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12852
12853 2019-09-24 Martin Jambor <mjambor@suse.cz>
12854
12855 PR ipa/91831
12856 * ipa-param-manipulation.c (carry_over_param): Make a method of
12857 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12858 in case of a context mismatch.
12859 (ipa_param_body_adjustments::common_initialization): Adjust call to
12860 carry_over_param.
12861 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12862 private method carry_over_param.
12863
12864 2019-09-24 Martin Jambor <mjambor@suse.cz>
12865
12866 PR ipa/91832
12867 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12868
12869 2019-09-24 Richard Biener <rguenther@suse.de>
12870
12871 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12872 base.
12873
12874 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12875
12876 * config/arm/t-arm (arm-builtins.o): Add dependency on
12877 arm_acle_builtins.def.
12878
12879 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12880
12881 PR target/91823
12882 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12883 canonical CONST_INTs. Use gen_rtvec.
12884
12885 2019-09-23 Richard Biener <rguenther@suse.de>
12886
12887 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12888 avoid adjusting by + 0 or * 1.
12889 (vect_create_epilog_for_reduction): Get reduction code only
12890 when necessary. Deal with adjustment_def only when necessary.
12891
12892 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12893
12894 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12895 memmodel index.
12896
12897 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12898
12899 PR ipa/91835
12900 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12901 "ipa-sra".
12902
12903 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12904
12905 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12906 code. Merge code blocks with common conditionals. Use declared
12907 macro instead of a magic number for PIC level.
12908
12909 2019-09-21 Martin Sebor <msebor@redhat.com>
12910
12911 PR middle-end/91830
12912 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12913 Simplify computation of the offset of the referenced subobject.
12914
12915 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12916
12917 * config/darwin.c (machopic_legitimize_pic_address): Check
12918 for lra not reload.
12919
12920 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12921
12922 * ira-conflicts.c (can_use_same_reg_p): New function.
12923 (process_reg_shuffles): Take an insn parameter. Ignore cases
12924 in which input operand op_num could seemingly never be allocated
12925 to the same register as the destination.
12926 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12927
12928 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12929
12930 * simplify-rtx.c (neg_const_int): Replace with...
12931 (neg_poly_int_rtx): ...this new function.
12932 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12933 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12934 (simplify_plus_minus): Likewise for constant terms here.
12935
12936 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12937
12938 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12939 HOST_WIDE_PRINT_UNSIGNED.
12940
12941 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12942
12943 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12944 character.
12945
12946 2019-09-20 Maya Rashish <coypu@sdf.org>
12947
12948 PR target/86811
12949 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12950 Define to speculation_safe_value_not_needed.
12951
12952 2019-09-20 Richard Biener <rguenther@suse.de>
12953 Uros Bizjak <ubizjak@gmail.com>
12954
12955 PR target/91814
12956 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12957 previous change.
12958 (general_scalar_chain::convert_op): Force not suitable memory
12959 operands to a register.
12960
12961 2019-09-20 Richard Biener <rguenther@suse.de>
12962
12963 PR tree-optimization/91821
12964 * tree-vect-loop.c (check_reduction_path): Check we can compute
12965 reduc_idx.
12966 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12967 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12968 operands in canonical order.
12969 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12970 STMT_VINFO_REDUC_IDX.
12971 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12972 (STMT_VINFO_REDUC_IDX): Likewise.
12973
12974 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12975
12976 PR target/91269
12977 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12978
12979 2019-09-20 Richard Biener <rguenther@suse.de>
12980
12981 PR tree-optimization/91822
12982 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12983 parameter.
12984 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12985 for reduc_index in nested cycles, adjust vectorizable_condition
12986 calls.
12987 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12988 parameter.
12989 (vect_analyze_stmt): Adjust.
12990 (vect_transform_stmt): Likewise.
12991
12992 2019-09-20 Richard Biener <rguenther@suse.de>
12993
12994 PR target/91767
12995 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12996 Ensure there's a sequence point between allocating the new register
12997 and passing a reference to a reg via regno_reg_rtx.
12998
12999 2019-09-20 Martin Jambor <mjambor@suse.cz>
13000
13001 * coretypes.h (cgraph_edge): Declare.
13002 * ipa-param-manipulation.c: Rewrite.
13003 * ipa-param-manipulation.h: Likewise.
13004 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
13005 (OBJS): Added ipa-sra.o.
13006 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
13007 and ref_p, added fields param_adjustments and performed_splits.
13008 (struct cgraph_clone_info): Remove ags_to_skip and
13009 combined_args_to_skip, new field param_adjustments.
13010 (cgraph_node::create_clone): Changed parameters to use
13011 ipa_param_adjustments.
13012 (cgraph_node::create_virtual_clone): Likewise.
13013 (cgraph_node::create_virtual_clone_with_body): Likewise.
13014 (tree_function_versioning): Likewise.
13015 (cgraph_build_function_type_skip_args): Removed.
13016 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
13017 using ipa_param_adjustments.
13018 (clone_of_p): Likewise.
13019 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
13020 (build_function_decl_skip_args): Likewise.
13021 (duplicate_thunk_for_node): Adjust parameters using
13022 ipa_param_body_adjustments, copy param_adjustments instead of
13023 args_to_skip.
13024 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
13025 (cgraph_node::create_virtual_clone): Likewise.
13026 (cgraph_node::create_version_clone_with_body): Likewise.
13027 (cgraph_materialize_clone): Likewise.
13028 (symbol_table::materialize_all_clones): Likewise.
13029 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
13030 ipa_replace_map check.
13031 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
13032 (initialize_node_lattices): Make aware that some parameters might have
13033 already been removed.
13034 (want_remove_some_param_p): New function.
13035 (create_specialized_node): Convert to using ipa_param_adjustments and
13036 deal with possibly pre-existing adjustments.
13037 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
13038 (output_node_opt_summary): Do not stream removed fields. Stream
13039 parameter adjustments instead of argumetns to skip.
13040 (input_node_opt_summary): Likewise.
13041 (input_node_opt_summary): Likewise.
13042 * lto-section-in.c (lto_section_name): Added ipa-sra section.
13043 * lto-streamer.h (lto_section_type): Likewise.
13044 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
13045 param_body_adjs.
13046 (copy_decl_to_var): Declare.
13047 * tree-inline.c (update_clone_info): Do not remap old_tree.
13048 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
13049 statements, walk all extra generated statements and remap their
13050 operands.
13051 (redirect_all_calls): Add killed SSA names to a hash set.
13052 (remap_ssa_name): Do not remap killed SSA names.
13053 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
13054 half of functionality moved to ipa_param_body_adjustments.
13055 (copy_decl_to_var): Make exported.
13056 (copy_body): Destroy killed_new_ssa_names hash set.
13057 (expand_call_inline): Remap performed splits.
13058 (update_clone_info): Likewise.
13059 (tree_function_versioning): Simplify tree_map processing. Updated to
13060 accept ipa_param_adjustments and use ipa_param_body_adjustments.
13061 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
13062 for the new interface.
13063 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
13064 (simd_clone_compute_base_data_type): Likewise.
13065 (simd_clone_init_simd_arrays): Adjust for the new interface.
13066 (simd_clone_adjust_argument_types): Likewise.
13067 (struct modify_stmt_info): Likewise.
13068 (ipa_simd_modify_stmt_ops): Likewise.
13069 (ipa_simd_modify_function_body): Likewise.
13070 (simd_clone_adjust): Likewise.
13071 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
13072 (type_internals_preclude_sra_p): Make public.
13073 * tree-sra.h: New file.
13074 * ipa-inline-transform.c (save_inline_function_body): Update to
13075 refelct new tree_function_versioning signature.
13076 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
13077 ipa_param_adjustments to get current parameter indices.
13078 (ipcp_modif_dom_walker::before_dom_children): Likewise.
13079 (ipcp_update_bits): Likewise.
13080 (ipcp_update_vr): Likewise.
13081 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
13082 * ipa-sra.c: New file.
13083 * multiple_target.c (create_target_clone): Update to reflet new type
13084 of create_version_clone_with_body.
13085 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
13086 tree_function_versioning.
13087 (modify_function): Update to reflect new type of
13088 tree_function_versioning.
13089 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
13090 * passes.def: Remove old IPA-SRA and add new one.
13091 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
13092 (make_pass_ipa_sra): Declare.
13093 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
13094 ipa_sra_retvalues.
13095 * doc/invoke.texi (ipa-sra-max-replacements): New.
13096
13097 2019-09-19 Martin Sebor <msebor@redhat.com>
13098
13099 PR middle-end/91631
13100 * builtins.c (component_size): Correct trailing array computation,
13101 rename to component_ref_size and move...
13102 (compute_objsize): Adjust.
13103 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
13104 (builtin_access::strict): Do not consider memmove.
13105 (builtin_access::write_off): New function.
13106 (builtin_memref::builtin_memref): Initialize refsize.
13107 (builtin_memref::set_base_and_offset): Adjust refoff and compute
13108 refsize.
13109 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
13110 Handle refsize.
13111 (builtin_access::builtin_access): Initialize dstoff to destination
13112 refeence offset here instead of in maybe_diag_overlap. Adjust
13113 referencess even to unrelated objects. Adjust sizrange of bounded
13114 string functions to reflect bound. For strcat, adjust destination
13115 sizrange by that of source.
13116 (builtin_access::strcat_overlap): Adjust offsets and sizes
13117 to reflect the increase in destination sizrange above.
13118 (builtin_access::overlap): Do not set dstoff here but instead
13119 in builtin_access::builtin_access.
13120 (check_bounds_or_overlap): Use builtin_access::write_off.
13121 (maybe_diag_access_bounds): Add argument. Add informational notes.
13122 (dump_builtin_memref, dump_builtin_access): New functions.
13123 * tree.c (component_ref_size): ...to here.
13124 * tree.h (component_ref_size): Declare.
13125 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
13126 nul in the size of the source string.
13127
13128 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
13129
13130 PR c/67224
13131 * doc/cpp.texi: Document support for extended characters in
13132 identifiers.
13133 * doc/cppopts.texi: Likewise.
13134
13135 2019-09-19 Richard Biener <rguenther@suse.de>
13136
13137 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13138 (check_reduction_path): New overload having the path as result.
13139 (vect_is_simple_reduction): From the detected reduction
13140 path build a SLP reduction chain if possible.
13141
13142 2019-09-19 Richard Biener <rguenther@suse.de>
13143
13144 PR target/91814
13145 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13146 Force operand to a register if it isn't nonimmediate_operand.
13147
13148 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13149
13150 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13151 * config/arm/iterators.md (optab): Add and, ior, xor entries.
13152 (logical_op): Remove code attribute.
13153 (logical_OP): Likewise.
13154
13155 2019-09-19 Martin Liska <mliska@suse.cz>
13156
13157 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13158 Use proper casting.
13159
13160 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13161
13162 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13163 registers with %R.
13164
13165 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13166 for NE comparison of TImode values.
13167 (aarch64_emit_load_exclusive): Add support for TImode.
13168 (aarch64_emit_store_exclusive): Likewise.
13169 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13170 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13171 Change iterator from ALLI to ALLI_TI.
13172 (@atomic_compare_and_swap<JUST_TI>): New.
13173 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13174 (aarch64_load_exclusive_pair): New.
13175 (aarch64_store_exclusive_pair): New.
13176 * config/aarch64/iterators.md (JUST_TI): New.
13177
13178 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13179 strong_zero_p for aarch64_track_speculation; unify some code paths;
13180 use aarch64_gen_compare_reg instead of open-coding.
13181
13182 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13183 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13184 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13185 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13186 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13187 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13188 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13189 (atomic_<atomic_op><ALLI>): Likewise.
13190 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13191 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13192 * doc/invoke.texi: Document -moutline-atomics.
13193
13194 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13195
13196 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13197 trivial predicate for condition branch.
13198 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13199 for switch case.
13200 (compute_bb_predicates): Update predicate based on post-dominating
13201 relationship.
13202 (analyze_function_body): Calculate post-dominating information.
13203
13204 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13205
13206 * tree-vectorizer.h (vectorizable_condition): Take an int
13207 reduction index instead of a boolean flag.
13208 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13209 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13210 reductions if the reduction accumulator is the "then" rather
13211 than the "else" value.
13212 (vect_analyze_stmt): Update call accordingly.
13213 (vect_transform_stmt): Likewise.
13214 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13215 asserting that the index is > 0.
13216
13217 2019-09-19 Martin Liska <mliska@suse.cz>
13218
13219 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13220 (sort_congruence_classes_by_decl_uid): Likewise.
13221 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13222 easier sorting.
13223 (sem_item_optimizer::merge_classes): Likewise.
13224
13225 2019-09-19 Richard Biener <rguenther@suse.de>
13226
13227 PR tree-optimization/91812
13228 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13229 volatile loads.
13230
13231 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13232
13233 * defaults.h (TARGET_UNIT): New macro.
13234 (target_unit): New type.
13235 * rtl.h (native_encode_rtx, native_decode_rtx)
13236 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13237 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13238 * rtlanal.c (subreg_lsb_1): Delete.
13239 (subreg_size_lsb): New function.
13240 * simplify-rtx.c: Include rtx-vector-builder.h
13241 (simplify_immed_subreg): Delete.
13242 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13243 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13244 functions.
13245 (simplify_subreg): Use them.
13246 (test_vector_subregs_modes, test_vector_subregs_repeating)
13247 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13248 (test_vector_subregs): New functions.
13249 (test_vector_ops): Call test_vector_subregs for integer vector
13250 modes with at least 2 elements.
13251
13252 2019-09-19 Richard Biener <rguenther@suse.de>
13253
13254 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13255 LOOP_VINFO_OPERANDS_SWAPPED.
13256 (parloops_is_simple_reduction): Likewise.
13257 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13258 initialize operands_swapped.
13259 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13260 (vect_is_slp_reduction): Do not swap operands.
13261 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13262 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13263
13264 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13265
13266 PR target/87007
13267 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13268 Add avx_partial_xmm_update.
13269
13270 2019-09-18 Jim Wilson <jimw@sifive.com>
13271
13272 PR target/91683
13273 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13274 (riscv_move_integer): Likewise.
13275 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13276 riscv_move_integer arg.
13277 (riscv_legitimize_move): Likewise.
13278 (riscv_force_temporary): New parameter in_splitter. Don't call
13279 force_reg if true.
13280 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13281 arg.
13282 (riscv_add_offset): Likewise.
13283 (riscv_split_symbol): New parameter in_splitter. Pass to
13284 riscv_force_temporary.
13285 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13286 arg.
13287 (riscv_move_integer): New parameter in_splitter. New local
13288 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13289 in_splitter TRUE.
13290 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13291 riscv_split_symbol, and riscv_force_temporary args.
13292 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13293 riscv_move_integer arg.
13294 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13295
13296 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13297
13298 PR target/90878
13299 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13300 hard register store cost to 6.
13301
13302 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13303
13304 PR target/91446
13305 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13306 pseudo register store cost from 3 to 6 to make it the same as
13307 QImode and HImode.
13308
13309 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13310
13311 PR target/91738
13312 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13313 (one_cmpldi2): Likewise.
13314 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13315 of the constant parts is simple.
13316 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13317 (logical_op): Add new code attribute.
13318 (logical_OP): Likewise.
13319 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13320 (arm_iordi_operand): Add predicate.
13321 (arm_xordi_operand): Add predicate.
13322
13323 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13324
13325 * config/arm/arm.md (maddsidi4): Remove expander.
13326 (mulsidi3adddi): Remove pattern.
13327 (mulsidi3adddi_v6): Likewise.
13328 (mulsidi3_nov6): Likewise.
13329 (mulsidi3_v6): Likewise.
13330 (umulsidi3): Remove expander.
13331 (umulsidi3_nov6): Remove pattern.
13332 (umulsidi3_v6): Likewise.
13333 (umulsidi3adddi): Likewise.
13334 (umulsidi3adddi_v6): Likewise.
13335 (<Us>mulsidi3): Add combined expander.
13336 (<Us>maddsidi4): Likewise.
13337 (<US>mull): Add combined umull and smull pattern.
13338 (<US>mlal): Likewise.
13339 * config/arm/iterators.md (Us): Add new iterator.
13340
13341 2019-09-18 Richard Biener <rguenther@suse.de>
13342
13343 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13344 swapping.
13345 (vectorize_fold_left_reduction): Remove assert.
13346 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13347 operand in position 2. Remove assert.
13348
13349 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13350
13351 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13352 (smulsi3_highpart_nov6): Remove pattern.
13353 (smulsi3_highpart_v6): Likewise.
13354 (umulsi3_highpart): Likewise.
13355 (umulsi3_highpart_nov6): Likewise.
13356 (umulsi3_highpart_v6): Likewise.
13357 (<US>mull_high): Add new combined multiply pattern.
13358
13359 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13360
13361 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13362 (arm_mulsi3_v6): Likewise.
13363 (mulsi3addsi_v6): Likewise.
13364 (mulsi3subsi): Likewise.
13365 (mul): Add new multiply pattern.
13366 (mla): Likewise.
13367 (mls): Likewise.
13368
13369 2019-09-18 Richard Biener <rguenther@suse.de>
13370
13371 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13372 (parloops_valid_reduction_input_p): Copy from
13373 valid_reduction_input_p.
13374 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13375 (parloops_needs_fold_left_reduction_p): Copy from
13376 needs_fold_left_reduction_p.
13377 (parloops_is_simple_reduction): Copy from
13378 vect_is_simple_reduction.
13379 (parloops_force_simple_reduction): Copy from
13380 vect_force_simple_reduction.
13381 (gather_scalar_reductions): Adjust.
13382 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13383 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13384
13385 2019-09-18 Richard Biener <rguenther@suse.de>
13386
13387 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13388 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13389 static.
13390 (vect_create_epilog_for_reduction): Remove dead code.
13391
13392 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13393
13394 * varasm.c (assemble_real): Generate canonical const_ints.
13395
13396 2019-09-18 Richard Biener <rguenther@suse.de>
13397
13398 PR lto/91763
13399 * lto-streamer-in.c (input_eh_regions): Move EH init to
13400 lto_materialize_function.
13401 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13402 Likewise.
13403
13404 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13405
13406 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13407 are INTEGER_CSTs.
13408
13409 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13410
13411 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13412 of checking specifically for INTEGER_CST.
13413
13414 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13415
13416 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13417 sizes instead of uhwi sizes.
13418
13419 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13420
13421 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13422 (add_const_value_attribute): Handle CONST_POLY_INT.
13423
13424 2019-09-18 Martin Liska <mliska@suse.cz>
13425
13426 * dbgcnt.def (store_merging): New counter.
13427 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13428 Use it in store merging.
13429
13430 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13431
13432 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13433 function.
13434 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13435 * config/arm/arm.c (arm_sched_variable_issue): New function.
13436 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13437
13438 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13439
13440 * config/arm/types.md (no_reservation): New reservation.
13441 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13442 no_insn here.
13443 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13444 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13445 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13446 * config/arm/arm1020e.md (1020alu_op): Likewise.
13447 * config/arm/arm1026ejs.md (alu_op): Likewise.
13448 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13449 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13450 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13451 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13452 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13453 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13454 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13455 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13456 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13457 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13458 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13459 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13460 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13461 * config/arm/fa526.md (526_alu_op): Likewise.
13462 * config/arm/fa606te.md (606te_alu_op): Likewise.
13463 * config/arm/fa626te.md (626te_alu_op): Likewise.
13464 * config/arm/fa726te.md (726te_alu_op): Likewise.
13465 * config/arm/xgene1.md (xgene1_nop): Likewise.
13466
13467 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13468
13469 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13470 "no_insn" to "branch".
13471
13472 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13473
13474 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13475
13476 2019-09-17 Richard Biener <rguenther@suse.de>
13477
13478 PR debug/91772
13479 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13480 was missing generate locations only once.
13481
13482 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13483
13484 PR ipa/91089
13485 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13486 option.
13487 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13488 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13489 for switch default case using range analysis information.
13490
13491 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13492
13493 PR target/91749
13494 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13495 mode attributed is supported by FDPIC.
13496
13497 2019-09-17 Richard Biener <rguenther@suse.de>
13498
13499 PR tree-optimization/91790
13500 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13501 use the correct DR for setting up realignment.
13502
13503 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13504
13505 PR target/91719
13506 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13507 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13508 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13509 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13510
13511 2019-09-16 Jason Merrill <jason@redhat.com>
13512
13513 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13514
13515 2019-09-16 Martin Liska <mliska@suse.cz>
13516
13517 * gimple-fold.c (or_comparisons_1): Remove rules moved
13518 to ...
13519 * match.pd: ... here.
13520
13521 2019-09-16 Martin Liska <mliska@suse.cz>
13522
13523 * gimple-fold.c (or_comparisons_1): Remove rules
13524 moved to ...
13525 * match.pd: ... here.
13526
13527 2019-09-16 Martin Liska <mliska@suse.cz>
13528
13529 * genmatch.c (dt_node::append_simplify): Do not print
13530 warning when we have duplicate patterns belonging
13531 to a same simplify rule.
13532 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13533 (maybe_fold_comparisons_from_match_pd): Handle
13534 tcc_comparison as a results.
13535 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13536
13537 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13538 Qi Feng <ffengqi@linux.ibm.com>
13539
13540 PR middle-end/88784
13541 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13542 (x > y && x == XXX_MIN): Optimize into 'false'.
13543 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13544 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13545 (x < y && x == XXX_MAX): Optimize into 'false'.
13546 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13547 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13548 (x <= y || x != XXX_MIN): Optimize into 'true'.
13549 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13550 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13551 (x >= y || x != XXX_MAX): Optimize into 'true'.
13552 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13553
13554 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13555 Martin Liska <mliska@suse.cz>
13556
13557 * gimple-fold.c (and_comparisons_1): Add type as first
13558 argument.
13559 (and_var_with_comparison): Likewise.
13560 (and_var_with_comparison_1): Likewise.
13561 (or_comparisons_1): Likewise.
13562 (or_var_with_comparison): Likewise.
13563 (or_var_with_comparison_1): Likewise.
13564 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13565 (maybe_fold_or_comparisons): Likewise.
13566 (maybe_fold_comparisons_from_match_pd): New.
13567 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13568 (maybe_fold_or_comparisons): Likewise.
13569 * gimple.c (gimple_size): Make it public and add num_ops argument.
13570 (gimple_init): New function.
13571 (gimple_alloc): Call gimple_init.
13572 * gimple.h (gimple_size): New.
13573 (gimple_init): Likewise.
13574 * tree-if-conv.c (fold_or_predicates): Pass type.
13575 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13576 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13577 (optimize_vec_cond_expr): Likewise.
13578 (ovce_extract_ops): Return type of conditional expression.
13579 * tree-ssanames.c (init_ssa_name_imm_use): New.
13580 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13581 * tree-ssanames.h (init_ssa_name_imm_use): New.
13582
13583 2019-09-16 Richard Biener <rguenther@suse.de>
13584
13585 PR tree-optimization/91756
13586 PR tree-optimization/87132
13587 * tree-ssa-alias.h (enum translate_flags): New.
13588 (get_continuation_for_phi): Use it instead of simple bool flag.
13589 (walk_non_aliased_vuses): Likewise.
13590 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13591 (get_continuation_for_phi): When looking across backedges only
13592 disallow valueization.
13593 (walk_non_aliased_vuses): Adjust.
13594 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13595 if requested.
13596
13597 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13598
13599 PR middle-end/80791
13600 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13601 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13602 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13603 * target.def (have_count_reg_decr_p): New hook.
13604 (doloop_cost_for_generic): Likewise.
13605 (doloop_cost_for_address): Likewise.
13606 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13607 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13608 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13609 * doc/tm.texi: Regenerate.
13610 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13611 addend.
13612 (record_group): Init doloop_p.
13613 (add_candidate_1): Add optional argument doloop, change the handlings
13614 accordingly.
13615 (add_candidate): Likewise.
13616 (generic_predict_doloop_p): Update attribute.
13617 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13618 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13619 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13620 MIN_EXPR.
13621 (get_computation_cost): Update for doloop IV cand extra cost.
13622 (determine_group_iv_cost_cond): Update for doloop IV cand.
13623 (determine_iv_cost): Likewise.
13624 (ivopts_estimate_reg_pressure): Likewise.
13625 (may_eliminate_iv): Update handlings for doloop IV cand.
13626 (add_iv_candidate_for_doloop): New function.
13627 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13628 (iv_ca_set_no_cp): Update for doloop IV cand.
13629 (iv_ca_set_cp): Likewise.
13630 (iv_ca_dump): Dump register cost.
13631 (find_doloop_use): New function.
13632 (analyze_and_mark_doloop_use): Likewise.
13633 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13634
13635 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13636
13637 PR middle-end/91708
13638 * cse.c (cse_insn): Do not replace anything with a
13639 MEM.
13640
13641 2019-09-13 Ian Lance Taylor <iant@golang.org>
13642
13643 * doc/invoke.texi (Optimize Options): Fix typo.
13644
13645 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13646
13647 PR tree-optimization/89386
13648 * config/i386/sse.md (smulhrs<mode>3): New expander.
13649 (smulhrsv4hi3): Ditto.
13650
13651 2019-09-12 Richard Biener <rguenther@suse.de>
13652
13653 PR tree-optimization/91750
13654 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13655 in the type of the evolution.
13656
13657 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13658
13659 PR tree-optimization/89386
13660 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13661 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13662 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13663 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13664 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13665 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13666 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13667 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13668 (su, r): Handle the unspecs above.
13669 (bt): New int attribute.
13670 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13671 * internal-fn.c (first_commutative_argument): Commutativity info for
13672 above.
13673 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13674 (umulhrs_optab): New optabs.
13675 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13676 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13677 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13678 function.
13679 (vect_vect_recog_func_ptrs): Add it.
13680
13681 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13682
13683 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13684 code.
13685
13686 2019-09-11 Nathan Sidwell <nathan@acm.org>
13687
13688 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13689 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13690
13691 2019-09-11 Richard Biener <rguenther@suse.de>
13692
13693 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13694 * lto-wrapper.c (merge_and_complain): Pick up -g.
13695 (append_compiler_options): Likewise.
13696 (run_gcc): Re-instantiate handling -g0 at link-time.
13697 * doc/invoke.texi (flto): Document debug info generation.
13698
13699 2019-09-11 Richard Biener <rguenther@suse.de>
13700
13701 PR tree-optimization/90387
13702 * vr-values.c (vr_values::extract_range_basic): After inlining
13703 simplify non-constant __builtin_constant_p to false.
13704
13705 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13706
13707 PR rtl-optimization/89795
13708 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13709 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13710
13711 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13712
13713 PR tree-optimization/91723
13714 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13715 instead of pointer equality when checking if argument vectypes are
13716 the same.
13717
13718 PR middle-end/91725
13719 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13720 of get_nonzero_bits, only call it for integral types.
13721
13722 2019-09-11 Richard Biener <rguenther@suse.de>
13723
13724 Revert
13725 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13726
13727 * match.pd: Add flag_unsafe_math_optimizations check
13728 before deciding on the widest type in a binary math operation.
13729
13730 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13731
13732 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13733 and CALL_REALLY_USED_REGISTERS must be defined, and that
13734 CALL_REALLY_USED_REGISTERS is preferred.
13735 * doc/tm.texi: Regenerate.
13736 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13737 (call_really_used_regs): Likewise.
13738 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13739 CALL_REALLY_USED_REGISTERS are defined.
13740 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13741 initial value if defined.
13742 (initial_call_really_used_regs): Delete.
13743 (saved_call_really_used_regs): Likewise.
13744 (CALL_REALLY_USED_REGNO_P): Likewise.
13745 (init_reg_sets): Remove handling of call_really_used_regs.
13746 (save_register_info, restore_register_info, globalize_reg): Likewise.
13747 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13748 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13749 outside operand_reg_set.
13750 (fix_register): Don't change call_used_regs if
13751 CALL_REALLY_USED_REGISTERS is defined.
13752 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13753 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13754 instead of call_really_used_regs.
13755 (csky_conditional_register_usage): Remove the old handling of
13756 call_used_regs and change the handling of call_really_used_regs
13757 to use call_used_regs instead.
13758 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13759 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13760 making a register fixed.
13761 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13762 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13763 instead of call_really_used_regs.
13764 (m32r_conditional_register_usage): Don't set call_used_regs when
13765 making a register fixed.
13766 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13767 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13768 instead of call_really_used_regs.
13769 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13770 (mips_cfun_call_saved_reg_p): Likewise.
13771 (mips_swap_registers): Remove the old handling of call_used_regs
13772 and change the handling of call_really_used_regs to use call_used_regs
13773 instead.
13774 (mips_conditional_register_usage): Likewise.
13775 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13776 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13777 instead of call_really_used_regs.
13778 (mn10300_get_live_callee_saved_regs): Likewise.
13779 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13780 (mn10300_conditional_register_usage): Don't set call_used_regs when
13781 making a register fixed.
13782 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13783 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13784 Remove the old handling of call_used_regs and change the handling
13785 of call_really_used_regs to use call_used_regs instead.
13786 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13787 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13788 instead of call_really_used_regs.
13789 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13790 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13791 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13792 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13793 (s390_conditional_register_usage): Remove the old handling of
13794 call_used_regs and change the handling of call_really_used_regs
13795 to use call_used_regs instead.
13796 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13797 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13798 (sh_fix_range, reg_unused_after): Likewise.
13799 (sh_conditional_register_usage): Remove the old handling of
13800 call_used_regs and change the handling of call_really_used_regs
13801 to use call_used_regs instead.
13802 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13803 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13804 call_used_regs when making a register fixed.
13805 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13806 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13807 call_used_regs when making a register fixed.
13808 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13809 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13810 set call_used_regs when making a register fixed.
13811 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13812 * config/visium/visium.c (visium_conditional_register_usage): Remove
13813 the old handling of call_used_regs and change the handling of
13814 call_really_used_regs to use call_used_regs instead.
13815
13816 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13817
13818 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13819 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13820 * reginfo.c (call_used_regs): New macro.
13821
13822 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13823
13824 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13825 fixed_regs test.
13826 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13827 (bpf_expand_epilogue): Likewise.
13828 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13829 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13830 (ft32_expand_epilogue): Likewise.
13831 * config/i386/i386.c (ix86_save_reg): Likewise.
13832 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13833 (moxie_expand_epilogue): Likewise.
13834 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13835 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13836 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13837
13838 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13839
13840 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13841 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13842 instead of testing call_used_regs directly.
13843 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13844 (aarch64_components_for_bb): Likewise.
13845 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13846 * config/arc/arc.c (arc_must_save_register): Likewise.
13847 (arc_epilogue_uses): Likewise.
13848 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13849 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13850 (arm_compute_save_reg0_reg12_mask): Likewise.
13851 (arm_compute_save_core_reg_mask): Likewise.
13852 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13853 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13854 (cmse_nonsecure_entry_clear_before_return): Likewise.
13855 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13856 (arm_expand_epilogue): Likewise.
13857 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13858 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13859 (_reg_unused_after): Likewise.
13860 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13861 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13862 (add_to_reg, hwloop_optimize): Likewise.
13863 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13864 (bpf_expand_epilogue): Likewise.
13865 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13866 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13867 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13868 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13869 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13870 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13871 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13872 * config/frv/frv.c (frv_stack_info): Likewise.
13873 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13874 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13875 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13876 (move_callee_saved_registers): Likewise.
13877 * config/h8300/h8300.c (byte_reg): Likewise.
13878 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13879 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13880 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13881 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13882 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13883 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13884 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13885 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13886 * config/m32c/m32c.c (need_to_save): Likewise.
13887 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13888 * config/mcore/mcore.c (calc_live_regs): Likewise.
13889 * config/microblaze/microblaze.c (microblaze_must_save_register):
13890 Likewise.
13891 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13892 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13893 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13894 (mmix_expand_epilogue): Likewise.
13895 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13896 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13897 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13898 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13899 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13900 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13901 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13902 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13903 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13904 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13905 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13906 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13907 * config/rl78/rl78.c (need_to_save): Likewise.
13908 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13909 (rs6000_stack_info, generate_set_vrsave): Likewise.
13910 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13911 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13912 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13913 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13914 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13915 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13916 (save_local_or_in_reg_p): Likewise.
13917 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13918 (xstormy16_epilogue_uses): Likewise.
13919 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13920 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13921 * config/v850/v850.c (compute_register_save_size): Likewise.
13922 * config/vax/vax.c (vax_expand_prologue): Likewise.
13923 * config/visium/visium.c (visium_save_reg_p): Likewise.
13924 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13925 * cselib.c (cselib_process_insn): Likewise.
13926 * df-scan.c (df_get_entry_block_def_set): Likewise.
13927 * function.c (aggregate_value_p): Likewise.
13928 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13929 * ira-lives.c (process_bb_node_lives): Likewise.
13930 * ira.c (do_reload): Likewise.
13931 * lra-lives.c (process_bb_lives): Likewise.
13932 * lra-remat.c (lra_remat): Likewise.
13933 * lra.c (lra): Likewise.
13934 * postreload.c (reload_combine_recognize_pattern): Likewise.
13935 (reload_cse_move2add): Likewise.
13936 * recog.c (peep2_find_free_register): Likewise.
13937 * regrename.c (check_new_reg_p): Likewise.
13938 * reload.c (find_equiv_reg): Likewise.
13939 * reload1.c (reload, find_reg): Likewise.
13940 * sel-sched.c (init_hard_regs_data): Likewise.
13941
13942 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13943
13944 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13945 regs_invalidated_by_call & ~fixed_reg_set instead of
13946 call_used_or_fixed_regs & ~fixed_reg_set.
13947 * config/sh/sh.c (output_stack_adjust): Likewise.
13948
13949 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13950
13951 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13952 (call_used_reg_set): Delete.
13953 (call_used_or_fixed_regs): New macro.
13954 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13955 of call_used_reg_set.
13956 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13957 instead of call_used_regs.
13958 (save_call_clobbered_regs): Likewise.
13959 * cfgcleanup.c (old_insns_match_p): Likewise.
13960 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13961 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13962 Likewise.
13963 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13964 * config/sh/sh.c (output_stack_adjust): Likewise.
13965 * final.c (collect_fn_hard_reg_usage): Likewise.
13966 * ira-build.c (ira_build): Likewise.
13967 * ira-color.c (calculate_saved_nregs): Likewise.
13968 (allocno_reload_assign, calculate_spill_cost): Likewise.
13969 * ira-conflicts.c (ira_build_conflicts): Likewise.
13970 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13971 * ira-lives.c (process_bb_node_lives): Likewise.
13972 * ira.c (setup_reg_renumber): Likewise.
13973 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13974 * lra-constraints.c (need_for_call_save_p): Likewise.
13975 (need_for_split_p, inherit_in_ebb): Likewise.
13976 * lra-lives.c (process_bb_lives): Likewise.
13977 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13978 * postreload.c (reload_combine): Likewise.
13979 * regrename.c (find_rename_reg): Likewise.
13980 * reload1.c (reload_as_needed): Likewise.
13981 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13982 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13983 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13984
13985 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13986
13987 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13988 (no_caller_save_reg_set): Delete.
13989 * caller-save.c (init_caller_save): Don't initialize it.
13990 * ira-conflicts.c (ira_build_conflicts): Calculate
13991 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13992
13993 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13994
13995 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13996 (target_hard_regs::x_savable_regs): New field.
13997 (call_fixed_reg_set): Delete.
13998 (savable_regs): New macro,
13999 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
14000 (init_reg_sets_1): Likewise. Initialize savable_regs.
14001 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
14002 for all registers. Set savable_regs instead of call_fixed_reg_set.
14003 (setup_save_areas, save_call_clobbered_regs): Replace uses of
14004 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
14005 * config/sh/sh.c (output_stack_adjust): Likewise.
14006
14007 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14008
14009 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
14010 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
14011 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
14012
14013 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
14014
14015 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
14016 * rtlanal.c (get_call_rtx_from): Likewise.
14017 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
14018 than the pattern to get_call_rtx_from.
14019 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
14020 an rtx_insn * instead of an rtx.
14021 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
14022
14023 2019-09-10 Martin Liska <mliska@suse.cz>
14024
14025 * common.opt: Use newly added WarnRemoved.
14026 * config/aarch64/aarch64.opt: Likewise.
14027 * config/arm/arm.opt: Likewise.
14028 * config/i386/i386.opt: Likewise.
14029 * config/ia64/ia64.opt: Likewise.
14030 * config/rs6000/rs6000.opt: Likewise.
14031 * doc/options.texi: Document WarnRemoved properly.
14032 * dwarf2out.c (gen_producer_string): Handle renamed
14033 OPT_SPECIAL_warn_removed.
14034 * lto-opts.c (lto_write_options): Likewise.
14035 * lto-wrapper.c (merge_and_complain): Likewise.
14036 * opts-common.c (decode_cmdline_option): Likewise.
14037 (prune_options): Likewise.
14038 (read_cmdline_option): Likewise.
14039 (control_warning_option): Likewise.
14040 * opts.c (print_filtered_help): Likewise.
14041 * optc-gen.awk: Parse for WarnRemoved and make usage
14042 of Deprecated an error.
14043 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
14044
14045 2019-09-10 Arnaud Charlet <charlet@adacore.com>
14046
14047 * doc/install.texi: Fix syntax for html generation.
14048
14049 2019-09-10 Jakub Jelinek <jakub@redhat.com>
14050
14051 PR middle-end/91680
14052 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
14053 the shift type to type.
14054
14055 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14056
14057 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
14058 FDPIC mode.
14059 (stack_protect_combined_test_insn): Likewise.
14060
14061 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14062 Mickaël Guêné <mickael.guene@st.com>
14063
14064 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
14065 * config/arm/arm.md (FDPIC_REGNUM): New constant.
14066 (load_tp_soft_fdpic): New pattern.
14067 (load_tp_soft): Disable in FDPIC mode.
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 (tls_reloc): Add TLS_GD32_FDPIC,
14073 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
14074 (arm_call_tls_get_addr): Add FDPIC support.
14075 (legitimize_tls_address): Likewise.
14076 (arm_emit_tls_decoration): Likewise.
14077
14078 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14079 Mickaël Guêné <mickael.guene@st.com>
14080
14081 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
14082 support.
14083 (arm_trampoline_init): Likewise.
14084 (arm_trampoline_adjust_address): Likewise.
14085 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
14086
14087 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14088 Mickaël Guêné <mickael.guene@st.com>
14089
14090 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
14091 (legitimize_pic_address): Enforce binding rules on function
14092 pointers in FDPIC mode.
14093 (arm_assemble_integer): Likewise.
14094
14095 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14096 Mickaël Guêné <mickael.guene@st.com>
14097
14098 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
14099 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
14100 FDPIC.
14101
14102 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14103 Mickaël Guêné <mickael.guene@st.com>
14104
14105 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
14106 field.
14107
14108 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14109 Mickaël Guêné <mickael.guene@st.com>
14110
14111 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
14112 in FDPIC mode.
14113 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
14114 new function.
14115 * config/arm/arm.c (arm_option_override): Define pic register to
14116 FDPIC_REGNUM.
14117 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
14118 have no decl or go through PLT.
14119 (calculate_pic_address_constant): New function.
14120 (legitimize_pic_address): Call calculate_pic_address_constant.
14121 (arm_load_pic_register): Handle TARGET_FDPIC.
14122 (arm_is_segment_info_known): New function.
14123 (arm_pic_static_addr): Add support for FDPIC.
14124 (arm_load_function_descriptor): New function.
14125 (arm_emit_call_insn): Add support for FDPIC.
14126 (arm_assemble_integer): Add support for FDPIC.
14127 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
14128 Define. (FDPIC_REGNUM): New define.
14129 * config/arm/arm.md (call): Add support for FDPIC.
14130 (call_value): Likewise.
14131 (restore_pic_register_after_call): New pattern.
14132 (untyped_call): Disable if FDPIC.
14133 (untyped_return): Likewise.
14134 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14135
14136 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14137 Mickaël Guêné <mickael.guene@st.com>
14138
14139 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14140 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14141 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14142 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14143 (CC1_SPEC): Use FDPIC_CC1_SPEC.
14144 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14145 * config/arm/uclinuxfdpiceabi.h: New file.
14146
14147 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14148
14149 * config.gcc: Handle *-*-uclinuxfdpiceabi.
14150
14151 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14152 Mickaël Guêné <mickael.guene@st.com>
14153
14154 * config/arm/arm.opt: Add -mfdpic option.
14155 * doc/invoke.texi: Add documentation for -mfdpic.
14156
14157 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
14158
14159 * expmed.c (extract_bit_field): Update function comment
14160 regarding alt_rtl.
14161 * expr.c (expand_expr_real): Update function comment
14162 regarding alt_rtl.
14163 (expand_misaligned_mem_ref): New helper function.
14164 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14165 Remove duplicate assignment to "base" at case MEM_REF.
14166 Remove a shadowed variable "unsignedp" at case VCE.
14167
14168 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14169
14170 * regset.h (regs_invalidated_by_call_regset): Delete.
14171 (fixed_reg_set_regset): Likewise.
14172 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14173 (fixed_reg_set_regset, persistent_obstack): Likewise.
14174 (init_reg_sets_1, globalize_reg): Update accordingly.
14175 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14176 instead of a bitmap.
14177 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14178 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14179 instead of regs_invalidated_by_call_regset.
14180 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14181 * df-scan.c (df_scan_start_dump): Likewise.
14182 * dse.c (copy_fixed_regs): Likewise.
14183 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14184
14185 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14186
14187 * array-traits.h: New file.
14188 * coretypes.h (array_traits, bitmap_view): New types.
14189 * bitmap.h: Include "array-traits.h"
14190 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14191 (base_bitmap_view, bitmap_view): New classes.
14192 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14193 * hard-reg-set.h: Include array-traits.h.
14194 (array_traits<HARD_REG_SET>): New struct.
14195 * regset.h (IOR_REG_SET_HRS): New macro.
14196 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14197 rather than iterating over each hard register.
14198 * sched-deps.c (sched_analyze_insn): Likewise.
14199 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14200
14201 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14202
14203 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14204 instead of a HARD_REG_SET *.
14205 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14206 (ira_build): Update call accordingly.
14207 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14208
14209 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14210
14211 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14212 (HARD_REG_SET::operator!=): Likewise.
14213 (hard_reg_set_equal_p): Delete.
14214 * cfgcleanup.c (old_insns_match_p): Use == instead of
14215 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14216 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14217 (add_allocno_hard_regs_to_forest): Likewise.
14218 (setup_allocno_available_regs_num): Likewise.
14219 * ira.c (setup_pressure_classes): Likewise.
14220 (setup_allocno_and_important_classes): Likewise.
14221 (setup_reg_class_relations): Likewise.
14222 * lra-lives.c (process_bb_lives): Likewise.
14223 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14224
14225 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14226
14227 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14228 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14229 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14230 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14231 Likewise.
14232 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14233 * ira.c (setup_reg_renumber): Likewise.
14234 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14235 * regrename.c (regrename_find_superclass): Likewise.
14236 * reload1.c (find_reg): Likewise.
14237
14238 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14239
14240 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14241 * caller-save.c (setup_save_areas): Use "&~" instead of
14242 AND_COMPL_HARD_REG_SET.
14243 (save_call_clobbered_regs): Likewise.
14244 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14245 Likewise.
14246 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14247 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14248 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14249 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14250 (mips_conditional_register_usage): Likewise.
14251 * config/sh/sh.c (output_stack_adjust): Likewise.
14252 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14253 (setup_profitable_hard_regs): Likewise.
14254 (get_conflict_and_start_profitable_regs): Likewise.
14255 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14256 (ira_build_conflicts): Likewise.
14257 * ira-costs.c (restrict_cost_classes): Likewise.
14258 (setup_regno_cost_classes_by_aclass): Likewise.
14259 * ira-lives.c (process_bb_node_lives): Likewise.
14260 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14261 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14262 (setup_allocno_and_important_classes, setup_class_translate_array)
14263 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14264 Likewise.
14265 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14266 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14267 (process_alt_operands, inherit_in_ebb): Likewise.
14268 * lra-eliminations.c (update_reg_eliminate): Likewise.
14269 * lra-lives.c (process_bb_lives): Likewise.
14270 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14271 * resource.c (find_dead_or_set_registers): Likewise.
14272 (mark_target_live_regs): Likewise.
14273 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14274 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14275 (implicit_clobber_conflict_p): Likewise.
14276 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14277 (try_shrink_wrapping): Likewise.
14278
14279 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14280
14281 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14282 (HARD_REG_SET::operator|=): Likewise.
14283 (IOR_HARD_REG_SET): Delete.
14284 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14285 IOR_HARD_REG_SET.
14286 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14287 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14288 * final.c (collect_fn_hard_reg_usage): Likewise.
14289 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14290 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14291 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14292 (propagate_some_info_from_allocno): Likewise.
14293 (copy_info_to_removed_store_destinations): Likewise.
14294 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14295 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14296 (fast_allocation): Likewise.
14297 * ira-conflicts.c (ira_build_conflicts): Likewise.
14298 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14299 (process_bb_node_lives): Likewise.
14300 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14301 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14302 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14303 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14304 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14305 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14306 (process_bb_lives): Likewise.
14307 * lra-spills.c (assign_spill_hard_regs): Likewise.
14308 * postreload.c (reload_combine): Likewise.
14309 * reginfo.c (init_reg_sets_1): Likewise.
14310 * regrename.c (merge_overlapping_regs, find_rename_reg)
14311 (merge_chains): Likewise.
14312 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14313 (find_reload_regs, finish_spills, choose_reload_regs_init)
14314 (emit_reload_insns): Likewise.
14315 * reorg.c (redundant_insn): Likewise.
14316 * resource.c (find_dead_or_set_registers, mark_set_resources)
14317 (mark_target_live_regs): Likewise.
14318 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14319 * sched-deps.c (sched_analyze_insn): Likewise.
14320 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14321 (find_best_reg_for_expr): Likewise.
14322 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14323
14324 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14325
14326 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14327 (HARD_REG_SET::operator&): Likewise.
14328 (AND_HARD_REG_SET): Delete.
14329 * caller-save.c (setup_save_areas): Use "&" instead of
14330 AND_HARD_REG_SET.
14331 (save_call_clobbered_regs): Likewise.
14332 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14333 * config/m32c/m32c.c (reduce_class): Likewise.
14334 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14335 * final.c (get_call_reg_set_usage): Likewise.
14336 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14337 (setup_left_conflict_sizes_p): Likewise.
14338 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14339 (ira_build_conflicts): Likewise.
14340 * ira-costs.c (restrict_cost_classes): Likewise.
14341 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14342 (setup_reg_class_relations): Likewise.
14343 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14344 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14345 * resource.c (find_dead_or_set_registers): Likewise.
14346 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14347
14348 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14349
14350 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14351 (COMPL_HARD_REG_SET): Delete.
14352 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14353 of COMPL_HARD_REG_SET.
14354 (try_rename_operands): Likewise.
14355 * config/sh/sh.c (push_regs): Likewise.
14356 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14357 * lra-constraints.c (contains_reg_p): Likewise.
14358 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14359
14360 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14361
14362 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14363 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14364 of COPY_HARD_REG_SET.
14365 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14366 (epiphany_conditional_register_usage): Likewise.
14367 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14368 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14369 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14370 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14371 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14372 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14373 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14374 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14375 * config/sh/sh.c (output_stack_adjust): Likewise.
14376 * final.c (collect_fn_hard_reg_usage): Likewise.
14377 (get_call_reg_set_usage): Likewise.
14378 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14379 (ira_flattening): Likewise.
14380 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14381 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14382 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14383 (ira_reassign_pseudos): Likewise.
14384 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14385 (ira_build_conflicts): Likewise.
14386 * ira-costs.c (restrict_cost_classes): Likewise.
14387 (setup_regno_cost_classes_by_aclass): Likewise.
14388 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14389 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14390 (setup_stack_reg_pressure_class, setup_pressure_classes)
14391 (setup_allocno_and_important_classes, setup_class_translate_array)
14392 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14393 (ira_setup_eliminable_regset): Likewise.
14394 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14395 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14396 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14397 (process_alt_operands, inherit_in_ebb): Likewise.
14398 * lra-lives.c (process_bb_lives): Likewise.
14399 * lra-spills.c (assign_spill_hard_regs): Likewise.
14400 * lra.c (lra): Likewise.
14401 * mode-switching.c (new_seginfo): Likewise.
14402 * postreload.c (reload_combine): Likewise.
14403 * reg-stack.c (straighten_stack): Likewise.
14404 * reginfo.c (save_register_info, restore_register_info): Likewise.
14405 (init_reg_sets_1, record_subregs_of_mode): Likewise
14406 * regrename.c (create_new_chain, rename_chains): Likewise.
14407 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14408 (find_reload_regs): Likewise.
14409 * resource.c (find_dead_or_set_registers): Likewise.
14410 (mark_target_live_regs): Likewise.
14411 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14412
14413 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14414
14415 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14416 (note_pattern_stores): Declare.
14417 (note_stores): Take an rtx_insn *.
14418 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14419 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14420 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14421 (note_stores): Take an rtx_insn * as argument and process
14422 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14423 (note_pattern_stores): ...this.
14424 (find_first_parameter_load): Pass the insn rather than
14425 its pattern to note_stores.
14426 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14427 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14428 (insert_one_insn): Likewise.
14429 * combine.c (combine_instructions): Likewise.
14430 (likely_spilled_retval_p): Likewise.
14431 (try_combine): Use note_pattern_stores instead of note_stores.
14432 (record_dead_and_set_regs): Pass the insn rather than its pattern
14433 to note_stores.
14434 (reg_dead_at_p): Likewise.
14435 * config/bfin/bfin.c (workaround_speculation): Likewise.
14436 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14437 rather than an rtx.
14438 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14439 instead of note_stores.
14440 (frv_optimize_membar_local): Pass the insn rather than its pattern
14441 to note_stores.
14442 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14443 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14444 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14445 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14446 (mips_reorg_process_insns): Likewise.
14447 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14448 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14449 rather than rtxes.
14450 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14451 its pattern to note_stores.
14452 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14453 of note_stores.
14454 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14455 the insn to note_stores.
14456 (prescan_insns_for_dce): Update call accordingly.
14457 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14458 to note_stores.
14459 * df-problems.c (can_move_insns_across): Likewise.
14460 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14461 * function.c (assign_parm_setup_reg): Likewise.
14462 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14463 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14464 (single_set_gcse): Likewise.
14465 * ira.c (validate_equiv_mem): Likewise.
14466 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14467 for no_equiv.
14468 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14469 pattern to note_stores.
14470 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14471 * loop-iv.c (simplify_using_initial_values): Likewise.
14472 * mode-switching.c (optimize_mode_switching): Likewise.
14473 * optabs.c (emit_libcall_block_1): Likewise.
14474 (expand_atomic_compare_and_swap): Likewise.
14475 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14476 (record_opr_changes): Likewise. Remove explicit handling of
14477 CALL_INSN_FUNCTION_USAGE.
14478 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14479 * regcprop.c (kill_clobbered_values): Likewise.
14480 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14481 to note_stores.
14482 * regrename.c (build_def_use): Likewise.
14483 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14484 for mark_not_eliminable.
14485 (reload_as_needed): Pass the insn rather than its pattern
14486 to note_stores.
14487 (emit_output_reload_insns): Likewise.
14488 * resource.c (mark_target_live_regs): Likewise.
14489 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14490 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14491 instead of note_stores.
14492 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14493 its pattern to note_stores.
14494 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14495 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14496
14497 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14498
14499 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14500 than a #define. Use a structure rather than an array as the
14501 fallback definition. Remove special cases for low array sizes.
14502 (const_hard_reg_set): New typedef.
14503 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14504 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14505 (hard_reg_set_empty_p): Likewise.
14506 (SET_HARD_REG_BIT): Use a function rather than a macro to
14507 handle the case in which HARD_REG_SET is a structure.
14508 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14509 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14510 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14511 (IOR_COMPL_HARD_REG_SET): Likewise.
14512 (hard_reg_set_iterator::pset): Constify the pointer target.
14513 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14514 of a "const HARD_REG_SET". Update the handling of non-integer
14515 HARD_REG_SETs.
14516 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14517 * reload.h: Likewise.
14518 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14519 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14520 of a "const HARD_REG_SET".
14521 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14522 (range_in_hard_reg_set_p): Likewise.
14523 * ira-costs.c (restrict_cost_classes): Likewise.
14524 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14525 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14526 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14527 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14528 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14529 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14530 take an unsigned int and open-code the HARD_REG_SET operations.
14531
14532 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14533
14534 * Makefile.in (OBJS): Remove bt-load.o.
14535 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14536 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14537 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14538 document that the option no longer does anything.
14539 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14540 * target.def (branch_target_register_class): Delete.
14541 (branch_target_register_callee_saved): Likewise.
14542 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14543 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14544 * doc/tm.texi: Regenerate.
14545 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14546 (make_pass_branch_target_load_optimize2): Likewise.
14547 * passes.def (pass_branch_target_load_optimize1): Likewise.
14548 (pass_branch_target_load_optimize2): Likewise.
14549 * targhooks.h (default_branch_target_register_class): Likewise.
14550 * targhooks.c (default_branch_target_register_class): Likewise.
14551 * opt-suggestions.c (test_completion_valid_options): Remove
14552 -fbtr-bb-exclusive from the list of test options.
14553 * bt-load.c: Remove.
14554
14555 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14556
14557 * match.pd: Add flag_unsafe_math_optimizations check
14558 before deciding on the widest type in a binary math operation.
14559
14560 2019-09-09 Martin Liska <mliska@suse.cz>
14561
14562 * config/i386/i386.opt: Update comment of removed
14563 options that are preserved only for backward
14564 compatibility.
14565
14566 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14567
14568 PR target/87853
14569 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14570 instead of __v16qs.
14571
14572 PR target/91704
14573 * config/i386/avxintrin.h (__v32qs): New typedef.
14574 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14575 instead of __v32qi.
14576
14577 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14578
14579 * doc/invoke.texi (Option Summary): Cover eBPF.
14580 (eBPF Options): New section.
14581 * doc/extend.texi (BPF Built-in Functions): Likewise.
14582 (BPF Kernel Helpers): Likewise.
14583
14584 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14585
14586 * config.gcc: Support for bpf-*-* targets.
14587 * common/config/bpf/bpf-common.c: New file.
14588 * config/bpf/t-bpf: Likewise.
14589 * config/bpf/predicates.md: Likewise.
14590 * config/bpf/constraints.md: Likewise.
14591 * config/bpf/bpf.opt: Likewise.
14592 * config/bpf/bpf.md: Likewise.
14593 * config/bpf/bpf.h: Likewise.
14594 * config/bpf/bpf.c: Likewise.
14595 * config/bpf/bpf-protos.h: Likewise.
14596 * config/bpf/bpf-opts.h: Likewise.
14597 * config/bpf/bpf-helpers.h: Likewise.
14598 * config/bpf/bpf-helpers.def: Likewise.
14599
14600 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14601
14602 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14603 indirect_calls.
14604
14605 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14606
14607 * opt-functions.awk (integer_range_info): Make sure values are in
14608 numeric context before operating with them.
14609
14610 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14611
14612 * genemit.c (gen_split): Print the filename and line number where the
14613 splitter (or peephole2) was defined, to the dump file.
14614
14615 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14616
14617 PR tree-optimization/91665
14618 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14619 incompatible with the type of PHI result.
14620
14621 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14622
14623 PR target/91684
14624 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14625 gen_unaligned_storedi for 4-byte aligned addresses.
14626
14627 2019-09-06 Jim Wilson <jimw@sifive.com>
14628
14629 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14630 change.
14631
14632 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14633
14634 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14635
14636 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14637
14638 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14639 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14640
14641 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14642
14643 PR target/91654
14644 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14645 cost of SSE->integer and integer->SSE moves from 2 to 6.
14646 (core_cost): Ditto.
14647
14648 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14649
14650 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14651 before testing TYPE_TRANSPARENT_AGGR.
14652 * calls.c (initialize_argument_information, load_register_parameters):
14653 Likewise.
14654
14655 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14656
14657 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14658 high regs.
14659 (cmp_ior): Likewise.
14660
14661 2019-09-06 Martin Liska <mliska@suse.cz>
14662
14663 * doc/match-and-simplify.texi: Separate tuples with ;.
14664
14665 2019-09-06 Martin Liska <mliska@suse.cz>
14666
14667 PR c++/91125
14668 * Makefile.in: Remove tlink.o.
14669 * collect2.c (do_link): New function isolated
14670 from do_tlink.
14671 (main): Use.
14672 * collect2.h (do_tlink): Remove declaration of do_tlink.
14673 * doc/extend.texi: Remove documentation of -frepo.
14674 * doc/invoke.texi: Likewise.
14675 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14676 * tlink.c: Remove.
14677
14678 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14679 Jim Wilson <jimw@sifive.com>
14680
14681 PR target/91635
14682 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14683 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14684 paradoxical_subreg_p (operands[0]).
14685 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14686 use as intermediate value.
14687
14688 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14689
14690 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14691 (sync_compare_and_swap<mode>_insn): Likewise.
14692
14693 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14694
14695 PR middle-end/91615
14696 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14697 without movmisalign optab.
14698
14699 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14700
14701 PR middle-end/91001
14702 PR middle-end/91105
14703 PR middle-end/91106
14704 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14705 types, use type of their first field instead of type of
14706 args[i].tree_value.
14707
14708 2019-09-05 Richard Biener <rguenther@suse.de>
14709
14710 PR rtl-optimization/91656
14711 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14712 of early out.
14713
14714 2019-09-05 Richard Biener <rguenther@suse.de>
14715
14716 PR middle-end/90501
14717 * tree-inline.c (declare_return_variable): Mark the return
14718 slot as addressable after building an address of it.
14719
14720 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14721
14722 * doc/install.texi: Update and clarify requirements to build GNAT.
14723
14724 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14725
14726 PR middle-end/91577
14727 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14728 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14729 call to be in memory.
14730 (pass_expand::execute): Call discover_nonconstant_array_refs before
14731 setting currently_expanding_to_rtl.
14732
14733 2019-09-04 Caroline Tice <cmtice@google.com>
14734
14735 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14736 specified together.
14737
14738 2019-09-04 Marek Polacek <polacek@redhat.com>
14739
14740 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14741
14742 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14743
14744 PR target/32413
14745 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14746 for QI and HImode moves between SSE and general registers.
14747
14748 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14749
14750 PR c/78736
14751 * doc/invoke.texi: Document -Wenum-conversion.
14752
14753 2019-09-04 Richard Biener <rguenther@suse.de>
14754
14755 PR rtl-optimization/36262
14756 * postreload-gcse.c: Include intl.h and gcse.h.
14757 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14758 to avoid linear list walk.
14759 (record_last_mem_set_info): Gate off if not computing transparentness.
14760 (get_bb_avail_insn): If transparentness isn't computed give up
14761 early.
14762 (gcse_after_reload_main): Skip compute_transp and extended PRE
14763 if gcse_or_cprop_is_too_expensive says so.
14764
14765 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14766
14767 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14768 noinit section.
14769 (msp430_select_section): Handle decls with the "noinit" attribute with
14770 default_elf_select_section.
14771 Handle SECCAT_RODATA_MERGE_* section types with
14772 default_elf_select_section.
14773 Add comments about handling of unsupported section types.
14774 (msp430_section_type_flags): Remove handling of the noinit section.
14775
14776 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14777
14778 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14779 conflicting msp430-specific attributes.
14780 (msp430_section_attr): Likewise.
14781 Add warnings about conflicts with generic "noinit" and "section"
14782 attributes.
14783 Fix grammar in -mlarge error message.
14784 (msp430_data_attr): Rename to msp430_persist_attr.
14785 Add warnings about conflicts with generic "noinit" and "section"
14786 attributes.
14787 Add warning for when variable is not initialized.
14788 Chain conditionals which prevent the attribute being added.
14789 (ATTR_EXCL): New helper.
14790 (attr_reent_exclusions): New exclusion table.
14791 (attr_naked_exclusions): Likewise.
14792 (attr_crit_exclusions): Likewise.
14793 (attr_lower_exclusions): Likewise.
14794 (attr_upper_exclusions): Likewise.
14795 (attr_either_exclusions): Likewise.
14796 (attr_persist_exclusions): Likewise.
14797 (msp430_attribute_table): Update with exclusion rules.
14798 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14799 has a section.
14800
14801 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14802
14803 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14804 (msp430_handle_generic_attribute): New function.
14805 * doc/tm.texi: Regenerate.
14806 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14807 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14808 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14809 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14810
14811 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14812
14813 PR tree-optimization/91504
14814 * match.pd: Add ((~a & b) ^a) --> (a | b).
14815
14816 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14817
14818 PR target/91604
14819 * config/i386/i386-expand.c (split_double_mode): If there is more than
14820 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14821 already split matching MEM operand instead of calling adjust_address
14822 again.
14823
14824 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14825
14826 * config.gcc: Obsolete spu target. Remove references to spu.
14827 * configure.ac: Remove references to spu.
14828 * configure: Regenerate.
14829 * config/spu/: Remove directory.
14830 * common/config/spu/: Remove directory.
14831
14832 * doc/extend.texi: Remove references to spu.
14833 * doc/invoke.texi: Likewise.
14834 * doc/md.texi: Likewise.
14835 * doc/sourcebuild.texi: Likewise.
14836
14837 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14838
14839 PR middle-end/91603
14840 PR middle-end/91612
14841 PR middle-end/91613
14842 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14843 and SSA_NAME referring to CONSTANT_P correctly.
14844
14845 2019-09-03 Richard Biener <rguenther@suse.de>
14846
14847 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14848 (vn_nary_op_insert): Likewise.
14849 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14850 (vn_nary_op_lookup): Likewise.
14851 (vn_nary_op_insert): Likewise.
14852
14853 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14854
14855 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14856 (*op0, 1) instead of XEXP (*op1, 0).
14857
14858 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14859
14860 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14861 (aarch64_fjcvtzs): New define_insn.
14862 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14863 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14864 Add AARCH64_JSCVT.
14865 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14866 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14867 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14868 __ARM_FEATURE_JCVT where appropriate.
14869 * config/aarch64/arm_acle.h (__jcvt): Define.
14870
14871 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14872
14873 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14874 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14875 (aarch64_<frintnzs_op><mode>): New define_insn.
14876 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14877 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14878 __ARM_FEATURE_FRINT when appropriate.
14879 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14880 frint32x, frint64z, frint64x.
14881 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14882 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14883 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14884 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14885 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14886 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14887 * config/aarch64/iterators.md (VSFDF): Define.
14888 (FRINTNZX): Likewise.
14889 (frintnzs_op): Likewise.
14890
14891 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14892
14893 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14894 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14895 Cortex-A34.
14896 * config/aarch64/aarch64-tune.md: Regenerated.
14897 * doc/invoke.texi: Document the new processors.
14898
14899 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14900
14901 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14902 string.
14903 (ssbs): Likewise.
14904 (sve2): Likewise.
14905 (sve2-sm4): Likewise.
14906 (sveaes): Likewise.
14907 (svesha3): Likewise.
14908 (svebitperm): Likewise.
14909
14910 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14911 Richard Biener <rguenther@suse.de>
14912
14913 PR tree-optimization/91597
14914 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14915 BIT_AND_EXPR optimization for pointers, even if both operand
14916 ranges don't include NULL, the result can be NULL.
14917
14918 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14919
14920 PR middle-end/91605
14921 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14922 (non_mem_decl_p): ...this.
14923 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14924 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14925 unconditionally as before.
14926
14927 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14928
14929 PR target/91323
14930 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14931 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14932 * tree.def (LTGT_EXPR): Likewise.
14933 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14934
14935 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14936
14937 PR go/91617
14938 * fold-const.c (range_check_type): For enumeral and boolean
14939 type, pass 1 to type_for_size langhook instead of
14940 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14941 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14942 (build_range_check): Don't call unsigned_type_for for pointer types.
14943 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14944 range_check_type result.
14945
14946 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14947
14948 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14949 (replace_ref): Do not replace a chain of only two candidates which are
14950 valid memory references.
14951
14952 2019-09-02 Martin Liska <mliska@suse.cz>
14953
14954 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14955 Bail out when we'll end up with the same number of clusters as
14956 at the beginning.
14957 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14958 (jump_table_cluster::can_be_handled): Remove the guard
14959 as it's already handled in ::is_enabled. Allocate output
14960 after early bail out.
14961
14962 2019-09-02 Martin Liska <mliska@suse.cz>
14963
14964 PR gcov-profile/91601
14965 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14966 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14967 also negative edges.
14968 (circuit): Handle also negative edges as they can happen
14969 in some situations.
14970
14971 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14972
14973 PR target/91472
14974 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14975 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14976 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14977
14978 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14979
14980 PR middle-end/91623
14981 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14982 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14983 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14984 zero vector.
14985
14986 PR lto/91572
14987 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14988 GIMPLE_ASM TREE_LIST operands.
14989
14990 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14991
14992 * doc/generic.texi (Unary and Binary Expressions): Mark up
14993 an instance of TYPE_MIN.
14994
14995 2019-08-31 Stafford Horne <shorne@gmail.com>
14996
14997 * config/or1k/constraints.md (t): New constraint.
14998 * config/or1k/or1k.h (GOT_REGS): New register class.
14999 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
15000
15001 2019-08-30 Jim Wilson <jimw@sifive.com>
15002
15003 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
15004 and -fpic and -mplt then disable -msave-restore and warn.
15005
15006 2019-08-30 Martin Sebor <msebor@redhat.com>
15007
15008 PR middle-end/91599
15009 * tree-ssa-strlen.c (handle_store): Use a fallback location if
15010 the statement doesn't have one.
15011 * gimple-pretty-print.c (percent_G_format): Same.
15012
15013 PR middle-end/91584
15014 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
15015 before using them to validate MEM_REF offset.
15016
15017 2019-08-30 Marek Polacek <polacek@redhat.com>
15018
15019 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
15020
15021 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
15022
15023 * config/arm/arm.md (unaligned_loaddi,
15024 unaligned_storedi): New unspec insn patterns.
15025 * config/arm/neon.md (unaligned_storev8qi): Likewise.
15026 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
15027 and unaligned_storedi for 4-byte aligned memory.
15028 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
15029 4-byte aligned memory.
15030
15031 2019-08-30 Martin Jambor <mjambor@suse.cz>
15032
15033 tree-optimization/91579
15034 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
15035 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
15036 appropriate.
15037 (arg_needs_copy_p): Removed.
15038 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
15039 arg_needs_copy_p.
15040 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
15041
15042 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15043
15044 * config/i386/i386-features.c
15045 (general_scalar_chain::compute_convert_gain):
15046 Correct cost for double-word shifts.
15047 (general_scalar_to_vector_candidate_p): Reject count operands
15048 greater or equal to mode bitsize.
15049
15050 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
15051
15052 * config/i386/i386.c (inline_secondary_memory_needed): Return true
15053 for moves between SSE and non-general registers and between
15054 mask and non-general registers.
15055 (ix86_register_move_cost): Remove stalled comment.
15056
15057 2019-08-29 Richard Biener <rguenther@suse.de>
15058
15059 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15060 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
15061
15062 2019-08-29 Richard Biener <rguenther@suse.de>
15063
15064 PR bootstrap/91580
15065 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
15066 Do not emit scalar copies for debug-insns, instead replace
15067 their uses with the reg copy used in the chain or reset them
15068 if there is a reaching definition outside of the chain as well.
15069
15070 2019-08-29 Jakub Jelinek <jakub@redhat.com>
15071
15072 PR target/91560
15073 * config/i386/i386-expand.c (expand_vec_perm_movs,
15074 expand_vec_perm_blend, expand_vec_perm_vpermil,
15075 expand_vec_perm_pshufb, expand_vec_perm_1,
15076 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
15077 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
15078 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
15079 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
15080 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
15081 comments - replace ix86_expand_vec_perm_builtin_1 with
15082 ix86_expand_vec_perm_const_1.
15083 (expand_vec_perm2_vperm2f128_vblend): New function.
15084 (ix86_expand_vec_perm_const_1): New forward declaration. Call
15085 expand_vec_perm2_vperm2f128_vblend as last resort.
15086 (canonicalize_perm): Formatting fix.
15087
15088 PR tree-optimization/91351
15089 * tree-cfg.c (generate_range_test): Use range_check_type instead of
15090 unsigned_type_for.
15091 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
15092 range_check_type returns NULL.
15093 * tree-switch-conversion.c (switch_conversion::build_one_array):
15094 Use range_check_type instead of unsigned_type_for, don't perform
15095 linear opt if it returns NULL.
15096 (bit_test_cluster::find_bit_tests): Formatting fix.
15097 (bit_test_cluster::emit): Use range_check_type instead of
15098 unsigned_type_for.
15099 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
15100 returns NULL.
15101
15102 2019-08-29 Richard Biener <rguenther@suse.de>
15103
15104 PR tree-optimization/91568
15105 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
15106 (vect_update_max_nunits): Add overload for poly_uint64.
15107 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
15108 (vect_build_slp_tree): Record max_nunits into the subtree
15109 and merge it upwards.
15110 (vect_print_slp_tree): Print max_nunits.
15111
15112 2019-08-28 Marek Polacek <polacek@redhat.com>
15113
15114 Implement P1152R4: Deprecating some uses of volatile.
15115 PR c++/91361
15116 * doc/invoke.texi: Document -Wvolatile.
15117
15118 2019-08-28 Marek Polacek <polacek@redhat.com>
15119
15120 PR c++/91360 - Implement C++20 P1143R2: constinit.
15121 * doc/invoke.texi: Document -Wc++20-compat.
15122
15123 2019-08-28 Martin Sebor <msebor@redhat.com>
15124
15125 PR tree-optimization/91457
15126 * builtins.c (component_size): New function.
15127 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
15128 * builtins.h (compute_objsize): Add argument.
15129 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
15130 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
15131 (vrp_prop::check_mem_ref): Same.
15132 (vrp_prop::search_for_addr_array): Set no-warning bit.
15133 (check_array_bounds): Same.
15134
15135 2019-08-28 Martin Sebor <msebor@redhat.com>
15136
15137 PR driver/80545
15138 * opts-common.c (option_enabled): Correct checking for language
15139 options.
15140
15141 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
15142
15143 * config/i386/i386.c (ix86_register_move_cost): Do not
15144 limit the cost of moves to/from XMM register to minimum 8.
15145
15146 2019-08-28 Martin Jambor <mjambor@suse.cz>
15147
15148 PR ipa/91468
15149 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15150 checking assert a normal assert to test it really is redundant.
15151 * ipa-prop.c (compute_complex_assign_jump_func): Removed
15152 redundant test.
15153 (update_jump_functions_after_inlining): Removed combining unary
15154 arithmetic operations with an ancestor jump function.
15155 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15156 instead of t.
15157
15158 2019-08-28 Richard Biener <rguenther@suse.de>
15159
15160 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15161 add the MD problem.
15162
15163 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15164 Richard Biener <rguenther@suse.de>
15165
15166 * expr.c (expand_assignment): Handle misaligned DECLs.
15167 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15168 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15169 too.
15170 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15171 * varasm.c (build_constant_desc): Align constants of misaligned types.
15172 * config/arm/predicates.md (aligned_operand): New predicate.
15173 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15174 aligned_operand to check restrictions on memory addresses.
15175 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15176 * config/arm/vec-common.md (mov<VALL>): Likewise.
15177
15178 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15179
15180 PR libgomp/91530
15181 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15182 V_128 iterator instead of VI_128.
15183
15184 2019-08-28 Martin Liska <mliska@suse.cz>
15185
15186 PR tree-optimization/90970
15187 * builtins.c (check_access): Remove assignment to maxread
15188 as it hasn't been used since when it was introduced in r255755.
15189
15190 2019-08-27 Martin Sebor <msebor@redhat.com>
15191
15192 PR tree-optimization/91567
15193 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15194 of unknown strings.
15195 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15196 to PTRDIFF_MAX - 2.
15197
15198 2019-08-27 Jeff Law <law@redhat.com>
15199
15200 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15201 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15202
15203 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15204
15205 PR target/91528
15206 * config/i386/i386-features.c (convert_scalars_to_vector):
15207 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15208 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15209 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15210 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15211
15212 2019-08-27 Richard Biener <rguenther@suse.de>
15213
15214 * config/i386/i386-features.h
15215 (general_scalar_chain::~general_scalar_chain): Add.
15216 (general_scalar_chain::insns_conv): New bitmap.
15217 (general_scalar_chain::n_sse_to_integer): New.
15218 (general_scalar_chain::n_integer_to_sse): Likewise.
15219 (general_scalar_chain::make_vector_copies): Adjust signature.
15220 * config/i386/i386-features.c
15221 (general_scalar_chain::general_scalar_chain): Outline,
15222 initialize new members.
15223 (general_scalar_chain::~general_scalar_chain): New.
15224 (general_scalar_chain::mark_dual_mode_def): Record insns
15225 we need to insert conversions at and count them.
15226 (general_scalar_chain::compute_convert_gain): Account
15227 for conversion instructions at chain boundary.
15228 (general_scalar_chain::make_vector_copies): Generate a single
15229 copy for a def by a specific insn.
15230 (general_scalar_chain::convert_registers): First populate
15231 defs_map, then make copies at out-of chain insns.
15232
15233 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15234
15235 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15236 comment.
15237 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15238
15239 2019-08-27 Martin Liska <mliska@suse.cz>
15240
15241 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15242 loop.
15243 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15244 Enclose in anonymous namespace.
15245 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15246 hard_register initialization in braces.
15247 * tree-vrp.h (value_range_base::supports_type_p): Return false
15248 for function with boolean return type.
15249
15250 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15251
15252 * config/i386/i386.c (emit_i387_cw_initialization)
15253 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15254
15255 2019-08-26 Martin Sebor <msebor@redhat.com>
15256
15257 PR c++/83431
15258 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15259 (sprintf_dom_walker): Remove class.
15260 (get_int_range): Make argument const.
15261 (directive::fmtfunc, directive::set_precision): Same.
15262 (format_none): Same.
15263 (build_intmax_type_nodes): Same.
15264 (adjust_range_for_overflow): Same.
15265 (format_floating): Same.
15266 (format_character): Same.
15267 (format_string): Same.
15268 (format_plain): Same.
15269 (get_int_range): Cast away constness.
15270 (format_integer): Same.
15271 (get_string_length): Call get_range_strlen_dynamic. Handle
15272 null lendata.maxbound.
15273 (should_warn_p): Adjust argument scope qualifier.
15274 (maybe_warn): Same.
15275 (format_directive): Same.
15276 (parse_directive): Same.
15277 (is_call_safe): Same.
15278 (try_substitute_return_value): Same.
15279 (sprintf_dom_walker::handle_printf_call): Rename...
15280 (handle_printf_call): ...to this. Initialize target to host charmap
15281 here instead of in pass_sprintf_length::execute.
15282 (struct call_info): Make global.
15283 (sprintf_dom_walker::compute_format_length): Make global.
15284 (sprintf_dom_walker::handle_gimple_call): Same.
15285 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15286 * print-rtl.c (print_pattern): Reduce the number of spaces to
15287 avoid -Wformat-truncation.
15288 * tree-pass.h (make_pass_warn_printf): New function.
15289 * tree-ssa-strlen.c (strlen_optimize): New variable.
15290 (get_string_length): Add comments.
15291 (get_range_strlen_dynamic): New function.
15292 (check_and_optimize_call): New function.
15293 (handle_integral_assign): New function.
15294 (strlen_check_and_optimize_stmt): Factor code out into
15295 strlen_check_and_optimize_call and handle_integral_assign.
15296 (strlen_dom_walker::evrp): New member.
15297 (strlen_dom_walker::before_dom_children): Use evrp member.
15298 (strlen_dom_walker::after_dom_children): Use evrp member.
15299 (printf_strlen_execute): New function.
15300 (pass_strlen::gate): Update to handle printf calls.
15301 (dump_strlen_info): New function.
15302 (pass_data_warn_printf): New variable.
15303 (pass_warn_printf): New class.
15304 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15305 (handle_printf_call): Same.
15306 * tree-vrp.c (value_range_base::type): Adjust assertion.
15307 * vr-values.c (vr_values::update_value_range): Use type of the first
15308 argument rather than the second.
15309
15310 2019-08-26 Richard Biener <rguenther@suse.de>
15311
15312 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15313 Remove.
15314 (convert_scalars_to_vector): Do not call it.
15315
15316 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15317 Uros Bizjak <ubizjak@gmail.com>
15318
15319 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15320 CASE_MATHFN_FLOATN for roundeven.
15321 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15322 I387_ROUNDEVEN.
15323 (ix86_mode_needed): Likewise.
15324 (ix86_mode_after): Likewise.
15325 (ix86_mode_entry): Likewise.
15326 (ix86_mode_exit): Likewise.
15327 (ix86_emit_mode_set): Likewise.
15328 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15329 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15330 (ix86_entity): Add I387_ROUNDEVEN.
15331 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15332 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15333 (define_int_iterator): Likewise.
15334 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15335 (define_constant): Define ROUND_ROUNDEVEN mode.
15336 (define_attr): Add roundeven mode for i387_cw.
15337 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15338 * internal-fn.def (ROUNDEVEN): New builtin function.
15339 * optabs.def (roundeven_optab): New optab.
15340
15341 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15342
15343 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15344 for ROUNDEVEN.
15345 * builtins.def: Added function definitions for roundeven function
15346 variants.
15347 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15348 function call. Adjust condition for floor, ceil, trunc and round.
15349 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15350 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15351 (integer_valued_real_call_p): Added case for roundeven function.
15352 * real.c (is_even): New function. Returns true if real number is even,
15353 otherwise returns false.
15354 (is_halfway_below): New function. Returns true if real number is
15355 halfway between two integers, else return false.
15356 (real_roundeven): New function. Round real number to nearest integer,
15357 rounding halfway cases towards even.
15358 * real.h (real_value): Added descriptive comments. Added function
15359 declaration for roundeven function.
15360 * doc/extend.texi (Other Builtins): List roundeven variants among
15361 functions which can be handled as builtins.
15362
15363 2019-08-26 Richard Biener <rguenther@suse.de>
15364
15365 PR target/91522
15366 PR target/91527
15367 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15368 New member.
15369 (general_scalar_chain::replace_with_subreg): Remove.
15370 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15371 (general_scalar_chain::convert_reg): Adjust signature.
15372 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15373 iterate over all defs of a reg.
15374 (general_scalar_chain::replace_with_subreg): Remove.
15375 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15376 (general_scalar_chain::make_vector_copies): Populate defs_map,
15377 place copy only after defs that are used as vectors in the chain.
15378 (general_scalar_chain::convert_reg): Emit a copy for a specific
15379 def in a specific instruction.
15380 (general_scalar_chain::convert_op): All reg uses are converted here.
15381 (general_scalar_chain::convert_insn): Emit copies for scalar
15382 uses of defs here. Replace uses with the copies we created.
15383 Replace and convert the def. Adjust REG_DEAD notes, remove
15384 REG_EQUIV/EQUAL notes.
15385 (general_scalar_chain::convert_registers): Only handle copies
15386 into the chain here.
15387
15388 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15389
15390 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15391
15392 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15393
15394 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15395 Add nop_convert case.
15396 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15397 Fold all statements if requested.
15398 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15399 Allow to fold all statements.
15400 * tree-vrp.c (class vrp_folder):
15401 Let substitute_and_fold_engine fold all statements.
15402
15403 2019-08-26 Richard Biener <rguenther@suse.de>
15404
15405 PR tree-optimization/91526
15406 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15407 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15408 TODO_update_address_taken.
15409
15410 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15411
15412 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15413 __STDC_HOSTED__.
15414
15415 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15416
15417 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15418 machine mode for unspec_volatile operand.
15419
15420 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15421
15422 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15423 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15424 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15425 (prefer_neon_for_64bits): Remove.
15426 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15427 (tune_params): Remove PREF_NEON_64_FALSE uses.
15428 (arm_option_override): Remove prefer_neon selection code.
15429 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15430 * config/arm/arm-protos.h (tune_params): Remove
15431 prefer_neon_for_64bits.
15432 (prefer_neon_for_64bits): Remove.
15433
15434 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15435
15436 PR pch/61250
15437 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15438 and issue any diagnostics needed before collecting the pre-PCH
15439 state.
15440
15441 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15442
15443 PR middle-end/91283
15444 * common.opt (fexcess-precision=): Add Optimization flag. Use
15445 flag_excess_precision variable instead of
15446 flag_excess_precision_cmdline.
15447 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15448 member.
15449 (flag_excess_precision): Don't define.
15450 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15451 flag_excess_precision_cmdline. Remove comment.
15452 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15453 and x_flag_excess_precision instead of
15454 frontend_set_flag_excess_precision_cmdline and
15455 x_flag_excess_precision_cmdline.
15456 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15457 x_flag_excess_precision_cmdline.
15458 * toplev.c (init_excess_precision): Remove.
15459 (lang_dependent_init_target): Don't call it.
15460
15461 2019-08-23 Martin Liska <mliska@suse.cz>
15462
15463 * lto-wrapper.c (run_gcc): When setting jobserver
15464 set also parallel to 1. This was done so before r273908.
15465
15466 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15467
15468 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15469 (cortex-a76ae): Likewise.
15470 (cortex-a77): Likewise
15471 * config/arm/arm-tables.opt: Regenerate.
15472 * config/arm/arm-tune.md: Likewise.
15473 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15474 cortex-a77 CPU options.
15475
15476 2019-08-23 Martin Liska <mliska@suse.cz>
15477
15478 * profile.c (instrument_values): Do not set
15479 0 as last argument.
15480 * tree-profile.c (gimple_gen_interval_profiler): Remove
15481 last argument.
15482 (gimple_gen_pow2_profiler): Likewise.
15483 (gimple_gen_topn_values_profiler): Likewise.
15484 (gimple_gen_ic_profiler): Likewise.
15485 (gimple_gen_time_profiler): Likewise.
15486 (gimple_gen_average_profiler): Likewise.
15487 (gimple_gen_ior_profiler): Likewise.
15488 * value-prof.c (dump_histogram_value): Use default
15489 in switch statement instead of HIST_TYPE_MAX.
15490 (stream_in_histogram_value): Likewise.
15491 (gimple_duplicate_stmt_histograms): Do not
15492 use NULL for implicitly set arguments.
15493 (gimple_divmod_values_to_profile): Do not use
15494 reserve+quick_push.
15495 (gimple_indirect_call_to_profile): Likewise.
15496 (gimple_find_values_to_profile): Use implicit
15497 function call arguments.
15498 * value-prof.h (gimple_alloc_histogram_value):
15499 Set default values.
15500 (gimple_gen_interval_profiler): Remove last argument.
15501 (gimple_gen_pow2_profiler): Likewise.
15502 (gimple_gen_topn_values_profiler): Likewise.
15503 (gimple_gen_ic_profiler): Likewise.
15504 (gimple_gen_time_profiler): Likewise.
15505 (gimple_gen_average_profiler): Likewise.
15506 (gimple_gen_ior_profiler): Likewise.
15507
15508 2019-08-22 Martin Sebor <msebor@redhat.com>
15509
15510 PR middle-end/91490
15511 * builtins.c (c_strlen): Rename argument and introduce new local.
15512 Set no-warning bit on original argument.
15513 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15514 Fold empty and zero constructors into empty strings.
15515 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15516 for missing initializers.
15517 * tree.c (build_string_literal): Handle optional argument.
15518 * tree.h (build_string_literal): Add defaulted argument.
15519 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15520 no-warning bit on original expression.
15521
15522 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15523
15524 PR target/91481
15525 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15526 and UNSPEC_DARN_RAW.
15527 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15528 UNSPECV_DARN_RAW.
15529 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15530 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15531 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15532
15533 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15534
15535 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15536 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15537 * config/rs6000/rs6000.md (unspec): ... here.
15538 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15539 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15540 cmpeqb, *cmpeqb_internal): Delete, move to...
15541 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15542 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15543 cmpeqb, *cmpeqb_internal): ... here.
15544
15545 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15546
15547 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15548 intrinsics if __ARM_FP.
15549 Use __ARM_FEATURE_CRC32 ifdef guard.
15550
15551 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15552
15553 * config/arm/arm.md (neon_for_64bits): Remove.
15554 (avoid_neon_for_64bits): Remove.
15555 (arm_adddi3): Always split early.
15556 (arm_subdi3): Always split early.
15557 (negdi2): Remove Neon expansion.
15558 (split zero_extend): Split before reload.
15559 (split sign_extend): Split before reload.
15560
15561 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15562
15563 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15564 (qhs_extenddi_cstr): Likewise.
15565 * config/arm/arm.md (ashldi3): Always expand early.
15566 (ashlsi3): Likewise.
15567 (ashrsi3): Likewise.
15568 (zero_extend<mode>di2): Remove Neon variants.
15569 (extend<mode>di2): Likewise.
15570 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15571 (signed_shift_di3_neon): Likewise.
15572 (unsigned_shift_di3_neon): Likewise.
15573 (ashrdi3_neon_imm_noclobber): Likewise.
15574 (lshrdi3_neon_imm_noclobber): Likewise.
15575 (<shift>di3_neon): Likewise.
15576 (split extend): Remove DI extend split patterns.
15577
15578 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15579
15580 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15581 (split not): Add DImode not splitter.
15582 (anddi3): Remove pattern.
15583 (anddi3_insn): Likewise.
15584 (anddi_zesidi_di): Likewise.
15585 (anddi_sesdi_di): Likewise.
15586 (anddi_notdi_di): Likewise.
15587 (anddi_notzesidi_di): Likewise.
15588 (anddi_notsesidi_di): Likewise.
15589 (iordi3): Likewise.
15590 (iordi3_insn): Likewise.
15591 (iordi_zesidi_di): Likewise.
15592 (iordi_sesidi_di): Likewise.
15593 (xordi3): Likewise.
15594 (xordi3_insn): Likewise.
15595 (xordi_sesidi_di): Likewise.
15596 (xordi_zesidi_di): Likewise.
15597 (one_cmpldi2): Likewise.
15598 (one_cmpldi2_insn): Likewise.
15599 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15600 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15601 alternative.
15602 (iwmmxt_xordi3): Likewise.
15603 (iwmmxt_anddi3): Likewise.
15604 * config/arm/neon.md (orndi3_neon): Remove pattern.
15605 (anddi_notdi_di): Likewise.
15606 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15607 (arm_iordi_operand_neon): Likewise.
15608 (arm_xordi_operand_neon): Likewise.
15609 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15610 (iordi_notzesidi_di): Likewise.
15611 (iordi_notdi_zesidi): Likewise.
15612 (iordi_notsesidi_di): Likewise.
15613
15614 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15615
15616 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15617 insn.
15618 (iorsi3_compare0_scratch): Likewise.
15619
15620 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15621
15622 * config/aarch64/aarch64-simd-builtins.def:
15623 (ld1x4): New.
15624 (st1x4): Likewise.
15625 * config/aarch64/aarch64-simd.md:
15626 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15627 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15628 (aarch64_ld1_x4_<mode>): Likewise.
15629 (aarch64_st1_x4_<mode>): Likewise.
15630 * config/aarch64/arm_neon.h:
15631 (vld1_s8_x4): New function.
15632 (vld1q_s8_x4): Likewise.
15633 (vld1_s16_x4): Likewise.
15634 (vld1q_s16_x4): Likewise.
15635 (vld1_s32_x4): Likewise.
15636 (vld1q_s32_x4): Likewise.
15637 (vld1_u8_x4): Likewise.
15638 (vld1q_u8_x4): Likewise.
15639 (vld1_u16_x4): Likewise.
15640 (vld1q_u16_x4): Likewise.
15641 (vld1_u32_x4): Likewise.
15642 (vld1q_u32_x4): Likewise.
15643 (vld1_f16_x4): Likewise.
15644 (vld1q_f16_x4): Likewise.
15645 (vld1_f32_x4): Likewise.
15646 (vld1q_f32_x4): Likewise.
15647 (vld1_p8_x4): Likewise.
15648 (vld1q_p8_x4): Likewise.
15649 (vld1_p16_x4): Likewise.
15650 (vld1q_p16_x4): Likewise.
15651 (vld1_s64_x4): Likewise.
15652 (vld1_u64_x4): Likewise.
15653 (vld1_p64_x4): Likewise.
15654 (vld1q_s64_x4): Likewise.
15655 (vld1q_u64_x4): Likewise.
15656 (vld1q_p64_x4): Likewise.
15657 (vld1_f64_x4): Likewise.
15658 (vld1q_f64_x4): Likewise.
15659 (vst1_s8_x4): Likewise.
15660 (vst1q_s8_x4): Likewise.
15661 (vst1_s16_x4): Likewise.
15662 (vst1q_s16_x4): Likewise.
15663 (vst1_s32_x4): Likewise.
15664 (vst1q_s32_x4): Likewise.
15665 (vst1_u8_x4): Likewise.
15666 (vst1q_u8_x4): Likewise.
15667 (vst1_u16_x4): Likewise.
15668 (vst1q_u16_x4): Likewise.
15669 (vst1_u32_x4): Likewise.
15670 (vst1q_u32_x4): Likewise.
15671 (vst1_f16_x4): Likewise.
15672 (vst1q_f16_x4): Likewise.
15673 (vst1_f32_x4): Likewise.
15674 (vst1q_f32_x4): Likewise.
15675 (vst1_p8_x4): Likewise.
15676 (vst1q_p8_x4): Likewise.
15677 (vst1_p16_x4): Likewise.
15678 (vst1q_p16_x4): Likewise.
15679 (vst1_s64_x4): Likewise.
15680 (vst1_u64_x4): Likewise.
15681 (vst1_p64_x4): Likewise.
15682 (vst1q_s64_x4): Likewise.
15683 (vst1q_u64_x4): Likewise.
15684 (vst1q_p64_x4): Likewise.
15685 (vst1_f64_x4): Likewise.
15686 (vst1q_f64_x4): Likewise.
15687
15688 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15689
15690 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15691
15692 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15693 Richard Sandiford <richard.sandiford@arm.com>
15694
15695 PR target/88839
15696 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15697 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15698
15699 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15700
15701 PR target/90724
15702 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15703 in reg if it fails aarch64_plus_operand predicate.
15704
15705 2019-08-21 Richard Biener <rguenther@suse.de>
15706
15707 PR tree-optimization/91482
15708 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15709 BUILT_IN_ASSUME_ALIGNED calls.
15710
15711 2019-08-21 Richard Biener <rguenther@suse.de>
15712
15713 PR target/91498
15714 PR target/91503
15715 * config/i386/i386-features.c
15716 (general_scalar_chain::make_vector_copies): Copy stack temporary
15717 rtx when using it multiple times.
15718 (general_scalar_chain::convert_reg): Likewise.
15719
15720 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15721
15722 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15723
15724 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15725
15726 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15727 catch more redundant zero initialization cases.
15728 (dse_dom_walker::dse_optimize_stmt): Likewise.
15729
15730 2019-08-20 Richard Biener <rguenther@suse.de>
15731
15732 PR lto/91307
15733 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15734 by collect2 when targetm.have_ctors_dtors which avoids dragging
15735 in temporary filenames from LTO input objects.
15736
15737 2019-08-20 Richard Biener <rguenther@suse.de>
15738
15739 PR tree-optimization/37242
15740 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15741 to (T)a + (T)b if we know that a + b does not overflow.
15742
15743 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15744
15745 PR rtl-optimization/91347
15746 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15747 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15748
15749 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15750
15751 * calls.h (function_arg_info): Add a pass_by_reference field,
15752 defaulting to false.
15753 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15754 when applying pass-by-reference semantics.
15755 (initialize_argument_information): Likewise.
15756 (emit_library_call_value_1): Likewise.
15757 * function.c (assign_parm_data_one): Remove passed_pointer field.
15758 (assign_parm_find_data_types): Don't set it.
15759 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15760 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15761 arg.pass_by_reference instead of passed_pointer.
15762
15763 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15764
15765 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15766 into a single function_arg_info, updating its fields when we
15767 apply pass-by-reference and promotion semantics. Use the
15768 function_arg_info to track the mode rather than keeping it in
15769 a separate local variable.
15770 (initialize_argument_information): Likewise. Base the final
15771 arg_to_skip on this new function_arg_info rather than creating
15772 a new one from scratch.
15773
15774 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15775
15776 * function.c (assign_parm_data_one): Replace passed_type,
15777 promoted_mode and named_arg with a function_arg_info field.
15778 (assign_parm_find_data_types): Remove local variables and
15779 assign directly to "data". Make data->passed_mode shadow
15780 data->arg.mode until promotion, then assign the promoted
15781 mode to data->arg.mode.
15782 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15783 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15784 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15785 (assign_parm_setup_block, assign_parm_setup_reg)
15786 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15787 arg.mode instead of promoted_mode, arg.type instead of passed_type
15788 and arg.named instead of named_arg. Use data->arg for
15789 function_arg_info structures that had the field values passed_type,
15790 promoted_mode and named_arg. Base other function_arg_infos on
15791 data->arg, changing the necessary properties.
15792
15793 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15794
15795 * calls.h (apply_pass_by_reference_rules): Declare.
15796 * calls.c (apply_pass_by_reference_rules): New function.
15797 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15798 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15799 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15800 * function.c (assign_parm_find_data_types): Likewise.
15801 * var-tracking.c (prepare_call_arguments): Likewise.
15802
15803 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15804
15805 * target.def (must_pass_in_stack): Take a function_arg_info instead
15806 of a mode and a type.
15807 * doc/tm.texi: Regenerate.
15808 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15809 instead of a mode and a type.
15810 (must_pass_in_stack_var_size_or_pad): Likewise.
15811 * calls.c (must_pass_in_stack_var_size): Likewise.
15812 (must_pass_in_stack_var_size_or_pad): Likewise.
15813 (initialize_argument_information): Update call to
15814 targetm.calls.must_pass_in_stack.
15815 (must_pass_va_arg_on_stack): Likewise.
15816 * function.c (assign_parm_find_entry_rtl): Likewise.
15817 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15818 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15819 (alpha_function_arg_advance): Likewise.
15820 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15821 (cr16_function_arg_advance): Likewise.
15822 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15823 (cris_arg_partial_bytes): Likewise.
15824 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15825 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15826 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15827 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15828 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15829 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15830 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15831 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15832 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15833 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15834 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15835 instead of a mode and a type.
15836 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15837 (fr30_num_arg_regs): Likewise.
15838 (fr30_setup_incoming_varargs): Update calls accordingly.
15839 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15840 (fr30_function_arg_advance): Likewise.
15841 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15842 instead of a mode and a type.
15843 * config/gcn/gcn.c (num_arg_regs): Likewise.
15844 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15845 num_arg_regs and targetm.calls.must_pass_in_stack.
15846 (gcn_arg_partial_bytes): Likewise.
15847 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15848 function_arg_info instead of a mode and a type.
15849 (classify_argument): Update call accordingly.
15850 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15851 function_arg_info instead of a mode and a type.
15852 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15853 Likewise.
15854 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15855 (rs6000_parm_needs_stack): Update call accordingly.
15856 (setup_incoming_varargs): Likewise.
15857
15858 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15859
15860 * target.def (callee_copies): Take a function_arg_info instead
15861 of a mode, type and named flag.
15862 * doc/tm.texi: Regenerate.
15863 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15864 instead of a mode, type and named flag.
15865 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15866 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15867 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15868 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15869 instead of a mode, type and named flag.
15870 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15871 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15872 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15873 * calls.h (reference_callee_copied): Take a function_arg_info
15874 instead of a mode, type and named flag.
15875 * calls.c (reference_callee_copied): Likewise.
15876 (initialize_argument_information): Update call accordingly.
15877 (emit_library_call_value_1): Likewise.
15878 * function.c (gimplify_parameters): Likewise.
15879 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15880 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15881 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15882 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15883 (TARGET_CALLEE_COPIES): Define to
15884 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15885 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15886 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15887 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15888 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15889 instead of a mode, type and named flag.
15890 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15891 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15892 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15893 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15894 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15895 (TARGET_CALLEE_COPIES): Define to
15896 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15897 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15898 instead of a mode, type and named flag.
15899 * config/sh/sh.c (sh_callee_copies): Likewise.
15900 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15901 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15902 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15903
15904 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15905
15906 * target.def (function_arg_advance): Take a function_arg_info instead
15907 of a mode, type and named flag.
15908 * doc/tm.texi: Regenerate.
15909 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15910 instead of a mode, type and named flag.
15911 * targhooks.c (default_function_arg_advance): Likewise.
15912 * calls.c (initialize_argument_information): Update call to
15913 targetm.calls.function_arg_advance.
15914 (emit_library_call_value_1): Likewise.
15915 * dse.c (get_call_args): Likewise.
15916 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15917 * function.c (assign_parms, gimplify_parameters): Likewise.
15918 * var-tracking.c (prepare_call_arguments): Likewise.
15919 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15920 function_arg_info instead of a mode, type and named flag.
15921 (aarch64_setup_incoming_varargs): Update call accordingly.
15922 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15923 function_arg_info instead of a mode, type and named flag.
15924 (alpha_setup_incoming_varargs): Update call accordingly.
15925 * config/arc/arc.c (arc_function_arg_advance): Take a
15926 function_arg_info instead of a mode, type and named flag.
15927 (arc_setup_incoming_varargs): Update call accordingly.
15928 * config/arm/arm.c (arm_function_arg_advance): Take a
15929 function_arg_info instead of a mode, type and named flag.
15930 (cmse_func_args_or_return_in_stack): Update call accordingly.
15931 (arm_function_ok_for_sibcall): Likewise.
15932 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15933 * config/avr/avr.c (avr_function_arg_advance): Take a
15934 function_arg_info instead of a mode, type and named flag.
15935 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15936 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15937 (c6x_call_saved_register_used): Update call accordingly.
15938 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15939 function_arg_info instead of a mode, type and named flag.
15940 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15941 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15942 (csky_setup_incoming_varargs): Update call accordingly.
15943 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15944 function_arg_info instead of a mode, type and named flag.
15945 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15946 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15947 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15948 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15949 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15950 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15951 (ix86_setup_incoming_varargs): Update call accordingly.
15952 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15953 function_arg_info instead of a mode, type and named flag.
15954 (ia64_setup_incoming_varargs): Update call accordingly.
15955 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15956 function_arg_info instead of a mode, type and named flag.
15957 (iq2000_expand_prologue): Update call accordingly.
15958 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15959 function_arg_info instead of a mode, type and named flag.
15960 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15961 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15962 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15963 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15964 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15965 Likewise.
15966 (microblaze_expand_prologue): Update call accordingly.
15967 * config/mips/mips.c (mips_function_arg_advance): Take a
15968 function_arg_info instead of a mode, type and named flag.
15969 (mips_setup_incoming_varargs): Update call accordingly.
15970 (mips_output_args_xfer): Likewise.
15971 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15972 function_arg_info instead of a mode, type and named flag.
15973 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15974 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15975 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15976 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15977 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15978 (nios2_setup_incoming_varargs): Update call accordingly.
15979 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15980 function_arg_info instead of a mode, type and named flag.
15981 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15982 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15983 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15984 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15985 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15986 (riscv_setup_incoming_varargs): Update call accordingly.
15987 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15988 function_arg_info instead of a mode, type and named flag.
15989 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15990 Likewise.
15991 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15992 (rs6000_parm_needs_stack): Update call accordingly.
15993 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15994 instead of a mode, type and named flag.
15995 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15996 (s390_call_saved_register_used): Update call accordingly.
15997 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15998 instead of a mode, type and named flag.
15999 (sh_output_mi_thunk): Update call accordingly.
16000 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
16001 function_arg_info instead of a mode, type and named flag.
16002 * config/spu/spu.c (spu_function_arg_advance): Likewise.
16003 (spu_setup_incoming_varargs): Update call accordingly.
16004 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
16005 function_arg_info instead of a mode, type and named flag.
16006 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
16007 (tilegx_setup_incoming_varargs): Update call accordingly.
16008 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
16009 function_arg_info instead of a mode, type and named flag.
16010 (tilegx_setup_incoming_varargs): Update call accordingly.
16011 * config/v850/v850.c (v850_function_arg_advance): Take a
16012 function_arg_info instead of a mode, type and named flag.
16013 * config/vax/vax.c (vax_function_arg_advance): Likewise.
16014 * config/visium/visium.c (visium_function_arg_advance): Likewise.
16015 (visium_setup_incoming_varargs): Update call accordingly.
16016 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
16017 function_arg_info instead of a mode, type and named flag.
16018
16019 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16020
16021 * target.def (function_arg, function_incoming_arg): Take a
16022 function_arg_info instead of a mode, tree and named flag.
16023 * doc/tm.texi: Regenerate.
16024 * targhooks.h (default_function_arg): Take a function_arg_info
16025 instead of a mode, tree and named flag.
16026 (default_function_incoming_arg): Likewise.
16027 * targhooks.c (default_function_arg): Likewise.
16028 (default_function_incoming_arg): Likewise.
16029 * calls.h (function_arg_info::end_marker_p): New function.
16030 (function_arg_info::end_marker): Likewise.
16031 * calls.c (prepare_call_address, initialize_argument_information)
16032 (expand_call, emit_library_call_value_1): Update calls to
16033 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
16034 * dse.c: Include calls.h.
16035 (get_call_args): Update call to targetm.calls.function_arg.
16036 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16037 * var-tracking.c (prepare_call_arguments): Likewise.
16038 * function.c (assign_parm_find_entry_rtl): Update call to
16039 targetm.calls.function_incoming_arg.
16040 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
16041 function_arg_info instead of a mode, tree and named flag.
16042 * config/alpha/alpha.c (alpha_function_arg): Likewise.
16043 * config/arc/arc.c (arc_function_arg): Likewise.
16044 * config/arm/arm.c (arm_function_arg): Likewise.
16045 (cmse_func_args_or_return_in_stack): Update call accordingly.
16046 (arm_function_ok_for_sibcall): Likewise.
16047 (cmse_nonsecure_call_clear_caller_saved): Likewise.
16048 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
16049 instead of a mode, tree and named flag.
16050 * config/bfin/bfin.c (bfin_function_arg): Likewise.
16051 * config/c6x/c6x.c (c6x_function_arg): Likewise.
16052 (c6x_call_saved_register_used): Update call accordingly.
16053 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
16054 instead of a mode, tree and named flag.
16055 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
16056 (cris_function_arg_1): Likewise.
16057 * config/csky/csky.c (csky_function_arg): Likewise.
16058 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
16059 * config/fr30/fr30.c (fr30_function_arg): Likewise.
16060 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
16061 (frv_function_arg_1): Likewise.
16062 * config/ft32/ft32.c (ft32_function_arg): Likewise.
16063 * config/gcn/gcn.c (gcn_function_arg): Likewise.
16064 * config/h8300/h8300.c (h8300_function_arg): Likewise.
16065 * config/i386/i386.c (ix86_function_arg): Likewise.
16066 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
16067 (ia64_function_arg_1): Likewise.
16068 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
16069 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
16070 accordingly.
16071 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
16072 instead of a mode, tree and named flag.
16073 * config/m32c/m32c.c (m32c_function_arg): Likewise.
16074 * config/m32r/m32r.c (m32r_function_arg): Likewise.
16075 * config/m68k/m68k.c (m68k_function_arg): Likewise.
16076 * config/mcore/mcore.c (mcore_function_arg): Likewise.
16077 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
16078 (microblaze_expand_prologue): Update call accordingly.
16079 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
16080 instead of a mode, tree and named flag.
16081 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
16082 (mmix_function_arg_1): Likewise.
16083 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
16084 * config/moxie/moxie.c (moxie_function_arg): Likewise.
16085 * config/msp430/msp430.c (msp430_function_arg): Likewise.
16086 * config/nds32/nds32.c (nds32_function_arg): Likewise.
16087 * config/nios2/nios2.c (nios2_function_arg): Likewise.
16088 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
16089 (nvptx_function_incoming_arg): Likewise.
16090 * config/or1k/or1k.c (or1k_function_arg): Likewise.
16091 * config/pa/pa.c (pa_function_arg): Likewise.
16092 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
16093 * config/pru/pru.c (pru_function_arg): Likewise.
16094 * config/riscv/riscv.c (riscv_function_arg): Likewise.
16095 * config/rl78/rl78.c (rl78_function_arg): Likewise.
16096 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
16097 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
16098 (rs6000_parm_needs_stack): Update call accordingly.
16099 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
16100 instead of a mode, tree and named flag.
16101 * config/s390/s390.c (s390_function_arg): Likewise.
16102 (s390_call_saved_register_used): Update call accordingly.
16103 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
16104 instead of a mode, tree and named flag.
16105 (sh_output_mi_thunk): Update call accordingly.
16106 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
16107 (sparc_function_incoming_arg): Take a function_arg_info instead of
16108 a mode, tree and named flag.
16109 * config/spu/spu.c (spu_function_arg): Likewise.
16110 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
16111 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
16112 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
16113 * config/v850/v850.c (v850_function_arg): Likewise.
16114 * config/vax/vax.c (vax_function_arg): Likewise.
16115 * config/visium/visium.c (visium_function_arg): Likewise.
16116 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
16117 (xtensa_function_incoming_arg): Likewise.
16118
16119 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16120
16121 * target.def (setup_incoming_varargs): Take a function_arg_info
16122 instead of a mode and tree.
16123 * doc/tm.texi: Regenerate.
16124 * targhooks.h (default_setup_incoming_varargs): Take a
16125 function_arg_info instead of a mode and tree.
16126 * targhooks.c (default_setup_incoming_varargs): Likewise.
16127 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
16128 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
16129 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
16130 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
16131 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
16132 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16133 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16134 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16135 Likewise.
16136 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16137 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16138 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16139 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16140 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16141 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16142 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16143 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16144 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16145 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16146 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16147 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16148 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16149 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16150 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16151 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16152 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16153 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16154 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16155 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16156 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16157 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16158 * function.c (assign_parms_setup_varargs): Update call to
16159 targetm.calls.setup_incoming_varargs.
16160
16161 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16162
16163 * target.def (pass_by_reference): Take a function_arg_info instead
16164 of a mode, type and named flag.
16165 * doc/tm.texi: Regenerate.
16166 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16167 accordingly.
16168 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16169 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16170 function_arg_info instead of a mode, type and named flag.
16171 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16172 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16173 mode, type and named flag.
16174 * calls.c (pass_by_reference): Likewise.
16175 (pass_va_arg_by_reference): Update call accordingly.
16176 (initialize_argument_information): Likewise.
16177 (emit_library_call_value_1): Likewise.
16178 * function.c (assign_parm_find_data_types): Likewise.
16179 * var-tracking.c (prepare_call_arguments): Likewise.
16180 * stor-layout.c: Include calls.h.
16181 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16182 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16183 function_arg_info instead of a mode, type and named flag.
16184 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16185 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16186 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16187 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16188 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16189 (c6x_call_saved_register_used): Update call to pass_by_reference.
16190 * config/cris/cris.c (cris_pass_by_reference): Take a
16191 function_arg_info instead of a mode, type and named flag.
16192 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16193 function_arg_info instead of a mode, type and named flag.
16194 (epiphany_arg_partial_bytes): Update call accordingly.
16195 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16196 function_arg_info instead of a mode, type and named flag.
16197 (ft32_arg_partial_bytes): Update call accordingly.
16198 * config/i386/i386.c (ix86_pass_by_reference): Take a
16199 function_arg_info instead of a mode, type and named flag.
16200 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16201 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16202 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16203 (m32r_return_in_memory): Update call accordingly.
16204 * config/mips/mips.c (mips_pass_by_reference): Take a
16205 function_arg_info instead of a mode, type and named flag.
16206 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16207 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16208 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16209 (moxie_arg_partial_bytes): Update call accordingly.
16210 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16211 function_arg_info instead of a mode, type and named flag.
16212 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16213 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16214 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16215 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16216 (riscv_return_in_memory): Update call accordingly.
16217 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16218 function_arg_info instead of a mode, type and named flag.
16219 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16220 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16221 * config/s390/s390.c (s390_pass_by_reference): Take a
16222 function_arg_info instead of a mode, type and named flag.
16223 (s390_call_saved_register_used): Update call accordingly.
16224 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16225 instead of a mode, type and named flag.
16226 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16227 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16228 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16229 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16230 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16231 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16232
16233 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16234
16235 * target.def (arg_partial_bytes): Take a function_arg_info instead
16236 of a mode, type and named flag.
16237 * doc/tm.texi: Regenerate.
16238 * target.h (function_arg_info): Declare.
16239 * calls.h (function_arg_info): New class.
16240 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16241 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16242 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16243 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16244 * calls.c (initialize_argument_information): Update call to
16245 targetm.calls.partial_bytes.
16246 (emit_library_call_value_1): Likewise.
16247 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16248 * function.c (assign_parm_find_entry_rtl): Likewise.
16249 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16250 function_arg_info instead of a mode, type and named flag.
16251 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16252 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16253 (cmse_func_args_or_return_in_stack): Update accordingly.
16254 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16255 function_arg_info instead of a mode, type and named flag.
16256 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16257 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16258 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16259 * config/fr30/fr30.c: Include calls.h.
16260 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16261 type and named flag.
16262 * config/frv/frv.c: Include calls.h.
16263 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16264 type and named flag.
16265 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16266 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16267 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16268 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16269 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16270 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16271 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16272 Likewise.
16273 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16274 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16275 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16276 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16277 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16278 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16279 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16280 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16281 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16282 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16283 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16284 (rs6000_parm_needs_stack): Update call accordingly.
16285 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16286 function_arg_info instead of a mode, type and named flag.
16287 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16288 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16289
16290 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16291
16292 * calls.h (must_pass_va_arg_in_stack): Declare.
16293 * calls.c (must_pass_va_arg_in_stack): New function.
16294 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16295 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16296 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16297 Likewise.
16298 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16299
16300 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16301
16302 * calls.h (pass_va_arg_by_reference): Declare.
16303 * calls.c (pass_va_arg_by_reference): New function.
16304 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16305 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16306 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16307 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16308 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16309 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16310 (mips_gimplify_va_arg_expr): Likewise.
16311 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16312 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16313 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16314 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16315 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16316 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16317 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16318 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16319 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16320 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16321 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16322
16323 2019-08-20 Richard Biener <rguenther@suse.de>
16324
16325 PR target/91498
16326 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16327 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16328 (convert_scalars_to_vector): Add timode_p parameter and use it
16329 to guard TImode-only operation.
16330 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16331 (pass_stv::execute): Pass down timode_p.
16332
16333 2019-08-20 Lili Cui <lili.cui@intel.com>
16334
16335 * common/config/i386/i386-common.c
16336 (processor_names): Add tigerlake and cooperlake.
16337 (processor_alias_table): Add tigerlake and cooperlake.
16338 * config.gcc: Add -march=tigerlake and cooperlake.
16339 * config/i386/driver-i386.c
16340 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16341 Add "has_avx" to classify processor.
16342 * config/i386/i386-builtins.c (processor_model) :
16343 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16344 (arch_names_table): Add tigerlake and cooperlake.
16345 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16346 and PROCESSOR_COOPERLAKE.
16347 * config/i386/i386-c.c
16348 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16349 * config/i386/i386-options.c
16350 (m_TIGERLAKE): Define.
16351 (m_COOPERLAKE): Ditto.
16352 (m_CORE_AVX512): Ditto.
16353 (processor_cost_table): Add cascadelake.
16354 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16355 * config/i386/i386.h
16356 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16357 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16358 (PTA_MOVDIRI): Ditto.
16359 (PTA_MOVDIR64B): Ditto.
16360 (PTA_COOPERLAKE): Ditto.
16361 (PTA_TIGERLAKE): Ditto.
16362 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16363 * doc/extend.texi: Add tigerlake and cooperlake.
16364 * doc/invoke.texi: Add tigerlake and cooperlake.
16365
16366 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16367
16368 * doc/install.texi (Specific, alpha): Remove note to use
16369 binutils 2.11.2 or later.
16370
16371 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16372
16373 PR middle-end/89544
16374 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16375 when possible.
16376
16377 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16378
16379 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16380 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16381 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16382 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16383 * config/aarch64/constraints.md (Dt): New constraint
16384 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16385
16386 2019-08-19 Richard Biener <rguenther@suse.de>
16387
16388 PR tree-optimization/91403
16389 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16390 cases we can handle with tail-recursion...
16391 (follow_ssa_edge_expr): ... here. Do so.
16392
16393 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16394
16395 PR target/91441
16396 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16397 implemented for -fsanitize=kernel-address, and merge check logic
16398 with -fsanitize=address.
16399
16400 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16401
16402 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16403 for cpu and machine. Factor 64/32b builtins.
16404
16405 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16406
16407 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16408 gone, point to sourceforge.net.
16409
16410 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16411
16412 * doc/ux.texi (User Experience Guidelines): Update reference.
16413
16414 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16415
16416 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16417 not LGPL".
16418
16419 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16420
16421 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16422 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16423
16424 2019-08-16 Martin Sebor <msebor@redhat.com>
16425
16426 * tree.def (TYPE_SIZE): Clarify.
16427 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16428
16429 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16430
16431 PR tree-optimization/91109
16432 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16433 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16434 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16435
16436 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16437
16438 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16439 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16440 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16441 (uavg<mode>3_ceil): New expander.
16442 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16443 mode iterator when creating CONST1_RTX.
16444 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16445 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16446 mode iterator for const1_operand predicate.
16447
16448 2019-08-16 Richard Biener <rguenther@suse.de>
16449
16450 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16451 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16452 follow_ssa_edge.
16453 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16454 (analyze_evolution_in_loop): Likewise.
16455 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16456 (follow_ssa_edge_expr): ... here. Refactor code.
16457
16458 2019-08-16 Richard Biener <rguenther@suse.de>
16459
16460 PR target/91469
16461 * config/i386/i386-features.c
16462 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16463
16464 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16465
16466 PR other/91255
16467 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16468 only if subst_name matches curr_attr string.
16469
16470 2019-08-16 Richard Biener <rguenther@suse.de>
16471
16472 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16473 stmt at gsi_p, instead replace it with a NOP removed later.
16474 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16475 that became dead because of that.
16476
16477 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16478
16479 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16480 for which we can't represent a range.
16481 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16482 set_varying.
16483 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16484 Set VR_UNDEFINED if type is not supported.
16485 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16486 * tree-vrp.c (value_range_base::check): Assert that a varying has
16487 min/max set.
16488 (value_range_base::equal_p): Early bail for undefines.
16489 (value_range_base::set_varying): Accept a type.
16490 (value_range::set_varying): Same.
16491 (value_range_base::type): VARYING can have a type, while UNDEFINE
16492 is typeless.
16493 (value_range_base::dump): Print type for VARYING nodes.
16494 (value_range_base::set): Add type to VARYING.
16495 (extract_range_from_multiplicative_op): Pass type to set_varying.
16496 (extract_range_from_binary_expr): Same.
16497 (value_range_base::intersect_helper): Same.
16498 (value_range_base::union_helper): Same.
16499 (value_range_base::normalize_symbolics): Same.
16500 (determine_value_range_1): Same.
16501 * tree-vrp.h (class value_range_base): Add type to set_varying.
16502 Add prototype for dump(void).
16503 Add prototype for supports_type_p.
16504 (class value_range): Add type to set_varying.
16505 Add prototype for dump(void).
16506 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16507 set_varying.
16508 (vr_values::get_lattice_entry): Set varying even if propagation
16509 finished.
16510 Pass type to set_varying.
16511 (vr_values::get_value_range): Remove vr_const_varying.
16512 Reallocate the lattice if needed.
16513 (vr_values::update_value_range): Pass type to set_varying.
16514 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16515 (vr_values::extract_range_from_binary_expr): Same.
16516 (vr_values::extract_range_from_unary_expr): Same.
16517 (vr_values::extract_range_from_cond_expr): Same.
16518 (vr_values::check_for_binary_op_overflow): Same.
16519 (vr_values::extract_range_basic): Same.
16520 (vr_values::extract_range_from_assignment): Same.
16521 (vr_values::vr_values): Increase size of num_vr_values.
16522 (vr_values::extract_range_from_phi_node): Pass type to
16523 set_varying.
16524
16525 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16526
16527 PR target/90878
16528 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16529 for costs of hard register moves.
16530 (ix86_register_move_cost): Likewise.
16531 * config/i386/i386.h (processor_costs): Move costs of hard
16532 register moves to hard_register. Add int_load, int_store,
16533 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16534 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16535 for costs of RTL expressions.
16536 * config/i386/x86-tune-costs.h: Move costs of hard register
16537 moves to hard_register. Duplicate int_load, int_store,
16538 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16539 sse_load, sse_store for costs of RTL expressions.
16540
16541 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16542
16543 * target.def (setup_incoming_vararg_bounds): Remove.
16544 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16545 * doc/tm.texi: Regenerate.
16546 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16547 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16548 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16549 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16550
16551 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16552
16553 MSP430: Fix lines over 80 characters long in
16554 config/msp430/*.{c,h} files
16555
16556 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16557 specifier in string.
16558 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16559 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16560 redundant old comment.
16561 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16562 Split line more than 80 characters long.
16563 * config/msp430/msp430.c (msp430_option_override): Likewise.
16564 (msp430_return_in_memory): Likewise.
16565 (msp430_gimplify_va_arg_expr): Likewise.
16566 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16567 (msp430_legitimate_constant): Likewise.
16568 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16569 (msp430_attr): Likewise.
16570 (msp430_data_attr): Likewise.
16571 (msp430_start_function): Likewise.
16572 (gen_prefix): Likewise.
16573 (msp430_init_sections): Likewise.
16574 (msp430_select_section): Likewise.
16575 (msp430_function_section): Likewise.
16576 (msp430_unique_section): Likewise.
16577 (msp430_output_aligned_decl_common): Likewise.
16578 (msp430_do_not_relax_short_jumps): Likewise.
16579 (msp430_init_builtins): Likewise.
16580 (msp430_expand_delay_cycles): Likewise.
16581 (msp430_expand_prologue): Likewise.
16582 (msp430_expand_epilogue): Likewise.
16583 (msp430_expand_helper): Likewise.
16584 (msp430_split_movsi): Likewise.
16585 (msp430_print_operand): Likewise.
16586 (msp430_return_addr_rtx): Likewise.
16587 (msp430x_extendhisi): Likewise.
16588 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16589 (ASM_SPEC): Likewise.
16590 Remove very obvious comments.
16591 (LIB_SPEC): Split line more than 80 characters long.
16592 (EH_RETURN_HANDLER_RTX): Likewise.
16593 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16594
16595 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16596
16597 MSP430: Fix whitespace errors and incorrect indentation in
16598 config/msp430/*.{c,h} files
16599
16600 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16601 (msp430_select_hwmult_lib): Likewise.
16602 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16603 (msp430_extract_mcu_data): Likewise.
16604 (struct t_msp430_mcu_data): Likewise.
16605 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16606 before left square bracket.
16607 (msp430_option_override): Fix indentation.
16608 (msp430_hard_regno_nregs_with_padding): Likewise.
16609 (msp430_initial_elimination_offset): Likewise.
16610 (msp430_special_register_convention_p): Remove whitespace before left
16611 square bracket and after exclamation mark.
16612 (msp430_evaluate_arg): Likewise.
16613 (msp430_callee_copies): Fix indentation.
16614 (msp430_gimplify_va_arg_expr): Likewise.
16615 (msp430_function_arg_advance): Remove whitespace before left square
16616 bracket.
16617 (reg_ok_for_addr): Likewise.
16618 (msp430_preserve_reg_p): Likewise.
16619 (msp430_compute_frame_info): Likewise.
16620 (msp430_asm_output_addr_const_extra): Add space between function name
16621 and open parenthesis.
16622 (has_section_name): Fix indentation.
16623 (msp430_attr): Remove trailing whitespace.
16624 (msp430_section_attr): Likewise.
16625 (msp430_data_attr): Likewise.
16626 (struct msp430_attribute_table): Fix comment and whitespace.
16627 (msp430_start_function): Remove whitespace before left square bracket.
16628 Add space between function name and open parenthesis.
16629 (msp430_select_section): Remove trailing whitespace.
16630 (msp430_section_type_flags): Remove trailing whitespace.
16631 (msp430_unique_section): Remove space before closing parenthesis.
16632 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16633 (msp430_builtins): Remove whitespace before left square bracket.
16634 (msp430_init_builtins): Fix indentation.
16635 (msp430_expand_prologue): Remove whitespace before left square bracket.
16636 Remove space before closing parenthesis.
16637 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16638 (msp430_split_movsi): Remove space before closing parenthesis.
16639 (helper_function_name_mappings): Fix indentation.
16640 (msp430_use_f5_series_hwmult): Fix whitespace.
16641 (use_32bit_hwmult): Likewise.
16642 (msp430_no_hwmult): Likewise.
16643 (msp430_output_labelref): Remove whitespace before left square bracket.
16644 (msp430_print_operand_raw): Likewise.
16645 (msp430_print_operand_addr): Likewise.
16646 (msp430_print_operand): Add two spaces after '.' in comment.
16647 Fix trailing whitespace.
16648 (msp430x_extendhisi): Fix indentation.
16649 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16650 tab.
16651 (PC_REGNUM): Likewise.
16652 (STACK_POINTER_REGNUM): Likewise.
16653 (CC_REGNUM): Likewise.
16654
16655 2019-08-15 Richard Biener <rguenther@suse.de>
16656
16657 PR target/91454
16658 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16659 helper.
16660 (general_scalar_chain::make_vector_copies): Use it.
16661
16662 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16663
16664 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16665
16666 2019-08-15 Martin Liska <mliska@suse.cz>
16667
16668 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16669 operators with no arguments.
16670 (eliminate_unnecessary_stmts): Likewise here.
16671
16672 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16673
16674 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16675 <case COMPARE>: Revert 2019-08-14 change.
16676 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16677 for (TARGET_64BIT || mode != DImode).
16678
16679 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16680
16681 * tree-vrp.c (value_range_base::set): Merge in code from
16682 value_range_base::set_and_canonicalize.
16683 Enforce canonicalization at set time.
16684 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16685 (value_range_base::set_undefined): Inline call to set().
16686 (value_range_base::set_varying): Same.
16687 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16688 (vrp_val_max): New argument handle_pointers.
16689 (vrp_val_min): Same.
16690 (ranges_from_anti_range): Same.
16691 (extract_range_into_wide_ints): Use tree argument instead of sign
16692 and precision.
16693 (extract_range_from_multiplicative_op): Take in tree type instead
16694 of precision and sign. Adapt function for canonicalized ranges.
16695 (extract_range_from_binary_expr): Pass type to
16696 extract_range_from_multiplicative_op.
16697 Adapt for canonicalized ranges.
16698 (extract_range_from_unary_expr): Same.
16699 (value_range_base::intersect_helper): Adjust for canonicalized
16700 ranges.
16701 (value_range_base::union_helper): Same.
16702 (value_range_base::normalize_symbolics): New.
16703 * tree-vrp.h (class value_range_base): Remove
16704 set_and_canonicalize.
16705 New prototype for normalize_symbolics.
16706 (class value_range): Remove set_and_canonicalize.
16707 (vrp_val_min): Adjust prototype.
16708 (vrp_val_max): Same.
16709 * vr-values.c
16710 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16711 instead of set_and_canonicalize.
16712
16713 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16714
16715 PR middle-end/91444
16716 * tree-vect-stmts.c (vectorizable_call): Check that the function
16717 is a BUILT_IN_MD function before passing it to
16718 targetm.vectorize.builtin_md_vectorized_function.
16719
16720 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16721
16722 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16723 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16724 (aarch64_select_early_remat_modes): Use it.
16725
16726 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16727
16728 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16729 16 for SVE predicates even if they are fixed-length.
16730
16731 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16732
16733 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16734 operand order match the MOV /Z alias.
16735
16736 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16737
16738 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16739 the vector pattern as an aarch64_svpattern argument. Update the
16740 overloaded caller accordingly.
16741 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16742 (aarch64_output_sve_vector_inc_dec): Likewise.
16743
16744 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16745
16746 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16747 multiplication case, try to compute VG * (lowest set bit) directly
16748 rather than always basing the multiplication on VG. Use
16749 expand_mult for the multiplication if we can.
16750
16751 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16752
16753 * config/aarch64/aarch64-protos.h
16754 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16755 (aarch64_sve_inc_dec_immediate_p): Rename to...
16756 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16757 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16758 (aarch64_output_sve_scalar_inc_dec): Declare.
16759 (aarch64_output_sve_inc_dec_immediate): Rename to...
16760 (aarch64_output_sve_vector_inc_dec): ...this.
16761 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16762 (aarch64_output_sve_scalar_inc_dec): New functions.
16763 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16764 arguments. Only handle true ADDVL and ADDPL instructions;
16765 don't emit an INC or DEC.
16766 (aarch64_sve_inc_dec_immediate_p): Rename to...
16767 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16768 (aarch64_output_sve_inc_dec_immediate): Rename to...
16769 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16770 aarch64_sve_vector_inc_dec_immediate_p.
16771 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16772 (aarch64_sve_plus_immediate): New predicates.
16773 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16774 rather than aarch64_sve_addvl_addpl_immediate.
16775 (aarch64_sve_inc_dec_immediate): Rename to...
16776 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16777 aarch64_sve_vector_inc_dec_immediate_p.
16778 (aarch64_sve_add_operand): Update accordingly.
16779 * config/aarch64/constraints.md (Uai): New constraint.
16780 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16781 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16782 operand into a register if it satisfies aarch64_sve_plus_immediate.
16783 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16784 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16785 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16786 aarch64_output_sve_vector_inc_dec instead of
16787 aarch64_output_sve_inc_dec_immediate.
16788
16789 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16790
16791 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16792 (UNSPEC_REVW): New constants.
16793 (elem_bits): New mode attribute.
16794 (SVE_INT_UNARY): New int iterator.
16795 (optab): Handle UNSPEC_REV[BHW].
16796 (sve_int_op): New int attribute.
16797 (min_elem_bits): Handle VNx16QI and the predicate modes.
16798 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16799 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16800 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16801 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16802 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16803 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16804 unspecs based on the total width of the reversed data.
16805 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16806 reinterpret followed by a subreg on big-endian targets.
16807
16808 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16809 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16810
16811 * config/aarch64/aarch64-sve.md
16812 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16813 alternatives in which one of the inputs is in the same register
16814 as the output.
16815
16816 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16817
16818 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16819 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16820
16821 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16822
16823 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16824 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16825
16826 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16827 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16828
16829 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16830 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16831 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16832
16833 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16834 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16835
16836 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16837 Add an alternative that uses reversed shifts.
16838
16839 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16840
16841 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16842 struct.
16843
16844 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16845
16846 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16847 a commutativity marker.
16848
16849 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16850 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16851
16852 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16853 (aarch64_prepare_sve_cond_int_fma): Declare.
16854 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16855 (aarch64_prepare_sve_int_fma): New functions.
16856 (aarch64_prepare_sve_cond_int_fma): Likewise.
16857 * config/aarch64/aarch64-sve.md
16858 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16859 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16860 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16861 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16862 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16863 (*madd<mode>): Rename to...
16864 (*fma<mode>4): ...this.
16865 (*msub<mode>): Rename to...
16866 (*fnma<mode>4): ...this.
16867
16868 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16869 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16870
16871 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16872 Print 2.0 naturally.
16873 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16874 * config/aarch64/predicates.md
16875 (aarch64_sve_float_negated_arith_immediate): New predicate,
16876 renamed from aarch64_sve_float_arith_with_sub_immediate.
16877 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16878 positive and negative constants.
16879 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16880 or an aarch64_sve_float_arith_with_sub_immediate.
16881 * config/aarch64/constraints.md (vsN): Use
16882 aarch64_sve_float_negated_arith_immediate.
16883 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16884 iterator.
16885 (sve_pred_fp_rhs2_immediate): New int attribute.
16886 * config/aarch64/aarch64-sve.md
16887 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16888 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16889 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16890 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16891 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16892 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16893
16894 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16895 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16896
16897 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16898 (*aarch64_cond_abd<SVE_F:mode>_3)
16899 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16900
16901 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16902 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16903
16904 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16905 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16906
16907 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16908 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16909
16910 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16911 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16912 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16913 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16914 optabs.
16915 * optabs.h (create_convert_operand_from): Expand comment.
16916 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16917 when mapping scalar rtxes to vector operands.
16918 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16919 ashiftrt and lshiftrt.
16920 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16921 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16922 (*cond_<optab><mode>_any_const): New patterns.
16923
16924 2019-08-15 Martin Liska <mliska@suse.cz>
16925
16926 PR ipa/91438
16927 * cgraph.c (cgraph_node::remove): When setting
16928 n->origin = NULL for all nested functions, reset
16929 also next_nested.
16930
16931 2019-08-15 Martin Liska <mliska@suse.cz>
16932
16933 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16934 and next_nested.
16935
16936 2019-08-15 Martin Liska <mliska@suse.cz>
16937
16938 PR ipa/91404
16939 * passes.c (order): Remove.
16940 (uid_hash_t): Likewise).
16941 (remove_cgraph_node_from_order): Remove from set
16942 of pointers (cgraph_node *).
16943 (insert_cgraph_node_to_order): New.
16944 (duplicate_cgraph_node_to_order): New.
16945 (do_per_function_toporder): Register all 3 cgraph hooks.
16946 Skip removed_nodes now as we know about all of them.
16947
16948 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16949
16950 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16951 <case E_V8QImode>: Use vector_set path for
16952 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16953 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16954 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16955
16956 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16957
16958 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16959
16960 2019-08-14 Martin Sebor <msebor@redhat.com>
16961
16962 PR tree-optimization/91294
16963 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16964 source length as exact.
16965
16966 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16967
16968 * doc/extend.texi: Add "noinit" attribute documentation.
16969 * doc/sourcebuild.texi: Add noinit effective target documentation.
16970 * varasm.c (default_section_type_flags): Add support for "noinit"
16971 section.
16972 (default_elf_select_section): Add support for "noinit" attribute.
16973 * config/msp430/msp430.c (msp430_attribute_table): Remove
16974 "noinit" entry.
16975
16976 2019-08-14 Richard Biener <rguenther@suse.de>
16977 Uroš Bizjak <ubizjak@gmail.com>
16978
16979 PR target/91154
16980 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16981 mode arguments.
16982 (scalar_chain::smode): New member.
16983 (scalar_chain::vmode): Likewise.
16984 (dimode_scalar_chain): Rename to...
16985 (general_scalar_chain): ... this.
16986 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16987 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16988 base with TImode and V1TImode.
16989 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16990 (general_scalar_chain::vector_const_cost): Adjust for SImode
16991 chains.
16992 (general_scalar_chain::compute_convert_gain): Likewise. Add
16993 {S,U}{MIN,MAX} support.
16994 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16995 (general_scalar_chain::make_vector_copies): Likewise. Handle
16996 non-DImode chains appropriately.
16997 (general_scalar_chain::convert_reg): Likewise.
16998 (general_scalar_chain::convert_op): Likewise.
16999 (general_scalar_chain::convert_insn): Likewise. Add
17000 fatal_insn_not_found if the result is not recognized.
17001 (convertible_comparison_p): Pass in the scalar mode and use that.
17002 (general_scalar_to_vector_candidate_p): Likewise. Rename from
17003 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
17004 (scalar_to_vector_candidate_p): Remove by inlining into single
17005 caller.
17006 (general_remove_non_convertible_regs): Rename from
17007 dimode_remove_non_convertible_regs.
17008 (remove_non_convertible_regs): Remove by inlining into single caller.
17009 (convert_scalars_to_vector): Handle SImode and DImode chains
17010 in addition to TImode chains.
17011 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
17012 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
17013 (*<maxmin>di3_doubleword): Likewise.
17014
17015 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17016 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17017
17018 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
17019 (*cond_bic<mode>_any): New patterns.
17020
17021 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17022
17023 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
17024 take the equivalent mask, as well as a bit count.
17025 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
17026 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
17027 (aarch64_sve_pred_and_operand): New predicates.
17028 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
17029 code attribute.
17030 * config/aarch64/aarch64-sve.md
17031 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
17032 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
17033
17034 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17035
17036 * config/aarch64/aarch64-sve.md
17037 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17038 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
17039 New patterns.
17040
17041 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17042 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17043
17044 * config/aarch64/aarch64-sve.md
17045 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
17046 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
17047
17048 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17049 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17050
17051 * config/aarch64/aarch64-sve.md
17052 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
17053 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
17054
17055 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17056
17057 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
17058 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
17059 New pattern.
17060
17061 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17062 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17063
17064 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
17065
17066 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17067 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17068
17069 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
17070 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
17071 (aarch64_print_operand): Add support for %I.
17072 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
17073 Bitcast floating-point constants to the corresponding integer constant.
17074 (aarch64_float_const_representable_p): Handle vectors as well
17075 as scalars.
17076 (aarch64_expand_sve_vcond): Make sure that the operands are valid
17077 for the new vcond_mask_<mode><vpred> expander.
17078 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
17079 test aarch64_float_const_representable_p.
17080 (aarch64_sve_reg_or_dup_imm): New predicate.
17081 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
17082 gen_vcond_mask_<mode><vpred> instead of
17083 gen_aarch64_sve_dup<mode>_const.
17084 (vcond_mask_<mode><vpred>): Turn into a define_expand that
17085 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
17086 for operands 1 and 2 respectively. Force operand 2 into a
17087 register if operand 1 is a register. Fold old define_insn...
17088 (aarch64_sve_dup<mode>_const): ...and this define_insn...
17089 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
17090 floating-point constants that can be moved as integers. Add
17091 alternatives for MOV /M and FMOV /M.
17092 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
17093 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
17094 1 and 2 respectively.
17095 * config/aarch64/constraints.md (Ufc): Handle vectors as well
17096 as scalars.
17097 (vss): New constraint.
17098
17099 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17100
17101 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
17102 (aarch64_sve_float_maxmin_operand): New predicates.
17103 * config/aarch64/constraints.md (vsB): New constraint.
17104 (vsM): Fix typo.
17105 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
17106 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
17107 UNSPEC_COND_FMINNM.
17108 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
17109 Use aarch64_sve_float_maxmin_operand for operand 2.
17110 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
17111 Add alternatives for the constant forms.
17112
17113 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17114
17115 * config/aarch64/constraints.md (vsb): New constraint.
17116 (vsm): Generalize description.
17117 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
17118 iterator.
17119 (sve_imm_con): Handle smax, smin, umax and umin.
17120 (sve_imm_prefix): New code attribute.
17121 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
17122 (aarch64_sve_vsb_operand): New predicates.
17123 (aarch64_sve_mul_immediate): Rename to...
17124 (aarch64_sve_vsm_immediate): ...this.
17125 (aarch64_sve_mul_operand): Rename to...
17126 (aarch64_sve_vsm_operand): ...this.
17127 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
17128 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
17129 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
17130 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
17131 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
17132 add movprfx support for the immediate alternatives.
17133 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17134 of the above.
17135 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17136 for operand 3.
17137
17138 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17139
17140 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17141 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17142 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17143
17144 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17145
17146 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17147 (optab, sve_int_op): Handle them.
17148 * config/aarch64/aarch64-sve.md: Expand comment.
17149
17150 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17151
17152 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17153 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17154 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17155
17156 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17157
17158 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17159 (aarch64_expand_sve_const_pred_trn): New functions.
17160 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17161 use the above functions when the parameter is true.
17162 (aarch64_expand_sve_const_pred): Update call accordingly.
17163 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17164 Rename to...
17165 (@aarch64_sve_<perm_insn><mode>): ...this.
17166
17167 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17168
17169 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17170 Declare.
17171 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17172 (aarch64_sve_emit_int_cmp): New functions.
17173 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17174 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17175 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17176 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17177 (UNSPEC_PRED_Z): New unspec.
17178 (set_clobber_cc_nzc): Delete.
17179 * config/aarch64/aarch64-sve.md: Add a block comment about
17180 UNSPEC_PRED_Z.
17181 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17182 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17183 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17184 UNSPEC_MERGE_PTRUE.
17185 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17186 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17187 check for compatible predicates.
17188 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17189 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17190 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17191 comparisons above.
17192
17193 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17194
17195 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17196 * config/aarch64/aarch64-sve.md: Add a section describing it.
17197 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17198 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17199 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17200 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17201 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17202 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17203 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17204 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17205 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17206 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17207 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17208 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17209 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17210 (aarch64_evpc_rev_local): Update accordingly.
17211
17212 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17213
17214 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17215 iterators.
17216 (SVE_BHSI, SVE_SDI): Tweak comment.
17217 (SVE_HSDI): Likewise. Fix definition.
17218 (SVE_SDF): New mode iterator.
17219 (elem_bits): New mode attribute.
17220 (SVE_COND_FCVT): New int iterator.
17221 * config/aarch64/aarch64-sve.md
17222 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17223 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17224 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17225 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17226 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17227 ...these new patterns.
17228 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17229 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17230 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17231 Merge into...
17232 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17233 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17234 ...these new patterns.
17235 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17236 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17237 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17238 ...this new pattern.
17239 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17240 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17241 ...this new pattern.
17242 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17243
17244 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17245
17246 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17247 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17248 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17249 unspecs.
17250 (optab, su): Handle them.
17251 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17252 * config/aarch64/aarch64-sve.md
17253 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17254 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17255 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17256 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17257 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17258 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17259 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17260 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17261 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17262 FIXUORS.
17263 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17264 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17265 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17266 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17267 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17268 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17269 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17270 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17271 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17272 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17273 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17274 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17275 of UNSPEC_FLOAT_CONVERT.
17276 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17277 aarch64_sve_extend<mode><Vwide>2.
17278
17279 2019-08-14 Richard Biener <rguenther@suse.de>
17280
17281 PR target/91154
17282 * config/i386/i386-features.c
17283 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17284 individual instruction gain. Fix reg-reg copy GRP cost. Use
17285 ix86_cost->sse_op for vector instruction costs.
17286
17287 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17288
17289 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17290 (cmp_op): Handle it.
17291 (SVE_COND_FP_CMP): Rename to...
17292 (SVE_COND_FP_CMP_I0): ...this.
17293 (SVE_FP_CMP): Remove.
17294 * config/aarch64/aarch64-sve.md
17295 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17296 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17297 using unspecs to represent the comparison.
17298 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17299 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17300 accordingly.
17301 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17302 (aarch64_unspec_cond_code): Move after integer code. Handle
17303 UNORDERED.
17304 (aarch64_emit_sve_predicated_cond): Replace with...
17305 (aarch64_emit_sve_fp_cond): ...this new function.
17306 (aarch64_emit_sve_or_conds): Replace with...
17307 (aarch64_emit_sve_or_fp_conds): ...this new function.
17308 (aarch64_emit_sve_inverted_cond): Replace with...
17309 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17310 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17311
17312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17313
17314 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17315 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17316 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17317 SVE_HSD instead of SVE_SD.
17318
17319 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17320 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17321
17322 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17323 iterator.
17324 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17325 attributes.
17326 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17327 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17328 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17329 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17330 (*div<SVE_F:mode>3): Generalize to...
17331 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17332
17333 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17334 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17335
17336 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17337 constants.
17338 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17339 predicate.
17340 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17341 Declare.
17342 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17343 function.
17344 * config/aarch64/aarch64-sve.md: Add a block comment about the
17345 handling of predicated FP operations.
17346 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17347 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17348 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17349 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17350 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17351 operand.
17352 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17353 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17354 operand.
17355 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17356 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17357 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17358 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17359 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17360 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17361 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17362 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17363 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17364 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17365 strictness operands. Use aarch64_sve_pred_dominates_p to check
17366 whether the predicate on the conditional operation is suitable
17367 for merging. Split patterns into the canonical equal-predicate form.
17368 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17369 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17370
17371 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17372 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17373
17374 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17375 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17376 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17377 rtx codes.
17378 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17379 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17380 unspecs.
17381
17382 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17383 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17384
17385 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17386 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17387 actually has, rather than relying on REG_EQUAL notes.
17388 Make the insn operand order match the SVE operand order.
17389 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17390 the SVE operand order.
17391
17392 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17393
17394 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17395 (aarch64_emit_set_immediate): Likewise.
17396 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17397 (aarch64_pfalse_reg): Likewise.
17398 (aarch64_convert_sve_data_to_pred): New function.
17399 (aarch64_sve_move_pred_via_while): Take an optional target register
17400 and the required register mode.
17401 (aarch64_expand_sve_const_pred_1): New function.
17402 (aarch64_expand_sve_const_pred): Likewise.
17403 (aarch64_expand_mov_immediate): Build an all-true predicate
17404 if the significant bits of the immediate are all true. Use
17405 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17406 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17407 before register allocation.
17408 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17409 a VNx16BI PTRUE when splitting the memory alternative.
17410 (vec_duplicate<mode>): Update accordingly.
17411 (*pred_cmp<cmp_op><mode>): Rename to...
17412 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17413
17414 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17415
17416 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17417 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17418 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17419 (UNSPEC_PTEST): New unspec.
17420 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17421 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17422 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17423 * config/aarch64/aarch64-sve.md: Add a new section describing the
17424 handling of UNSPEC_PTEST.
17425 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17426 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17427 (ptest_ptrue<mode>): Replace with...
17428 (aarch64_ptest<mode>): ...this new pattern.
17429 (cbranch<mode>4): Update after above changes.
17430 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17431 UNSPEC_PTEST_PTRUE.
17432 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17433 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17434 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17435
17436 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17437
17438 PR lto/91287
17439 * builtins.c (builtin_with_linkage_p): New function.
17440 * builtins.h (builtin_with_linkage_p): New function.
17441 * symtab.c (write_symbol): Remove redundant assert.
17442 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17443 Remove FIXME and use builtin_with_linkage_p.
17444
17445 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17446
17447 PR middle-end/91421
17448 * tree-core.h (function_decl::function_code): Change type to
17449 unsigned int.
17450 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17451 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17452 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17453 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17454 is BUILT_IN_NORMAL.
17455 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17456 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17457 (fndecl_built_in_p): Change the type of the "name" argument to
17458 unsigned int.
17459 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17460 after check for DECL_BUILT_IN_CLASS.
17461 * cgraphclones.c (build_function_decl_skip_args): Use
17462 set_decl_built_in_function.
17463 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17464 * ipa-split.c (split_function): Likewise.
17465 * langhooks.c (add_builtin_function_common): Likewise.
17466 * omp-simd-clone.c (simd_clone_create): Likewise.
17467 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17468 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17469 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17470 DECL_FUNCTION_CODE.
17471 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17472 instead of DECL_FUNCTION_CODE.
17473 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17474 instead of DECL_FUNCTION_CODE.
17475 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17476 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17477 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17478 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17479 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17480 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17481 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17482 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17483 (alpha_gimple_fold_builtin): Likewise.
17484 * config/arc/arc.c (arc_expand_builtin): Likewise.
17485 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17486 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17487 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17488 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17489 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17490 * config/frv/frv.c (frv_expand_builtin): Likewise.
17491 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17492 (gcn_expand_builtin): Likewise.
17493 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17494 (fold_builtin_cpu): Likewise.
17495 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17496 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17497 (ix86_gimple_fold_builtin): Likewise.
17498 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17499 (ia64_expand_builtin): Likewise.
17500 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17501 * config/mips/mips.c (mips_expand_builtin): Likewise.
17502 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17503 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17504 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17505 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17506 * config/pa/pa.c (pa_expand_builtin): Likewise.
17507 * config/pru/pru.c (pru_expand_builtin): Likewise.
17508 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17509 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17510 Likewise.
17511 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17512 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17513 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17514 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17515 (rs6000_builtin_reciprocal): Likewise.
17516 * config/rx/rx.c (rx_expand_builtin): Likewise.
17517 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17518 * config/s390/s390.c (s390_expand_builtin): Likewise.
17519 * config/sh/sh.c (sh_expand_builtin): Likewise.
17520 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17521 (sparc_fold_builtin): Likewise.
17522 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17523 * config/spu/spu.c (spu_expand_builtin): Likewise.
17524 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17525 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17526 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17527 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17528 (xtensa_expand_builtin): Likewise.
17529
17530 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17531
17532 PR middle-end/91421
17533 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17534 before the DECL_FUNCTION_CODE.
17535 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17536 to check for a BUILT_IN_ALLOCA call.
17537 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17538 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17539 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17540 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17541 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17542 for BUILT_IN_NORMAL functions.
17543 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17544 test for BUILT_IN_TM_ABORT.
17545 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17546 to check for a BUILT_IN_STACK_RESTORE call.
17547 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17548 * tree-ssa-threadedge.c
17549 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17550 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17551 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17552 test for a BUILT_IN_NORMAL call instead of a negative test for
17553 an internal function call.
17554
17555 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17556
17557 * tree.h (build_vector_a_then_b): Declare.
17558 * tree.c (build_vector_a_then_b): New function.
17559 * fold-const-call.c (fold_while_ult): Likewise.
17560 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17561 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17562 (aarch64_svpattern): New enum.
17563 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17564 constants through aarch64_expand_mov_immediate.
17565 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17566 than general_operand as the predicate for operand 1.
17567 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17568 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17569 insn_type.
17570 (simd_immediate_info::simd_immediate_info): New overload that
17571 takes a scalar_int_mode and an svpattern.
17572 (simd_immediate_info::u): Add a "pattern" field.
17573 (svpattern_token): New function.
17574 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17575 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17576 (aarch64_sve_move_pred_via_while): New functions.
17577 (aarch64_expand_mov_immediate): Try using
17578 aarch64_sve_move_pred_via_while for predicates that contain N ones
17579 followed by M zeros but that do not correspond to a VLnnn pattern.
17580 (aarch64_sve_pred_valid_immediate): New function.
17581 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17582 with PTRUE and PFALSE.
17583 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17584 forms.
17585
17586 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17587
17588 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17589 flag.
17590 (darwin_override_options): Likewise.
17591 * config/darwin.h: Likewise.
17592 * config/darwin.opt: Likewise.
17593 * config/i386/i386.c (output_pic_addr_const): Likewise.
17594 * config/rs6000/darwin.h: Likewise.
17595 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17596 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17597 ... this TARGET_MACHO_SYMBOL_STUBS.
17598 (FUNCTION_PROFILER):Likewise.
17599 * config/i386/i386.h: Likewise.
17600
17601 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17602
17603 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17604 <case E_V2SImode>: Use vec_extr path for
17605 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17606 <case E_V8QImode>: Ditto.
17607 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17608 Use SWI48 mode iterator. Use %k to output operand 0.
17609 (*mmx_pextrw): New insn pattern.
17610 (*mmx_pextrb): Ditto.
17611 (*mmx_pextrb_zext): Ditto.
17612
17613 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17614
17615 * target.def (libc_has_function, libc_has_fast_function): Improve
17616 documentation strings.
17617 * doc/tm.texi: Regenerate.
17618
17619 2019-08-13 Caroline Tice <cmtice@google.com>
17620
17621 PR other/91396
17622 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17623 vtv_end.o or vtv_end_preinit.o files if !static.
17624
17625 2019-08-13 Olivier Hainque <hainque@adacore.com>
17626
17627 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17628
17629 2019-08-13 Olivier Hainque <hainque@adacore.com>
17630
17631 * rtlanal.c (tablejump_casesi_pattern): New function, to
17632 determine if a tablejump insn is a casesi dispatcher. Extracted
17633 from patch_jump_insn.
17634 * rtl.h (tablejump_casesi_pattern): Declare.
17635 * cfgrtl.c (patch_jump_insn): Use it.
17636 * dwarf2cfi.c (create_trace_edges): Use it.
17637
17638 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17639
17640 PR target/81800
17641 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17642 operand is larger than a long int.
17643
17644 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17645
17646 * machmode.h (opt_mode::else_mode): New function.
17647 (opt_mode::else_blk): Use it.
17648 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17649 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17650 (aarch64_gen_stepped_int_parallel): Likewise.
17651 (aarch64_stepped_int_parallel_p): Likewise.
17652 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17653 argument.
17654 * config/aarch64/aarch64.c
17655 (aarch64_expand_sve_widened_duplicate): Delete.
17656 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17657 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17658 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17659 argument. Use early returns in the !CONST_INT_P handling.
17660 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17661 than handling some inline.
17662 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17663 from...
17664 (aarch64_simd_container_mode): ...here.
17665 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17666 (aarch64_sve_ld1rq_operand_p): New functions.
17667 * config/aarch64/predicates.md (descending_int_parallel)
17668 (aarch64_sve_ld1rq_operand): New predicates.
17669 * config/aarch64/constraints.md (UtQ): New constraint.
17670 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17671 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17672 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17673 (@aarch64_sve_reinterpret<mode>): New expander.
17674 (*aarch64_sve_reinterpret<mode>): New pattern.
17675 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17676 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17677 (*sve_ld1rq<Vesize>): Replace with...
17678 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17679
17680 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17681
17682 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17683 16:12.
17684
17685 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17686
17687 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17688 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17689 (msp430_check_path_for_devices): New.
17690 (parse_devices_csv_1): New.
17691 (parse_devices_csv): New.
17692 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17693 MCU data in devices.csv before using the hard-coded data.
17694 Warn if devices.csv isn't found and the MCU wasn't found in the
17695 hard-coded data either.
17696 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17697 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17698 Search for devices.csv on -I and -L paths.
17699 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17700 msp430_set_driver_var.
17701 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17702 -mdevices-csv-loc=.
17703 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17704 searched for devices.csv.
17705 (mwarn-devices-csv): Document option.
17706
17707 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17708
17709 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17710 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17711 Use a single Dn alternative instead of separate Dz and Dm
17712 alternatives. Use aarch64_output_sve_move_immediate.
17713 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17714 function.
17715 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17716 for predicates too.
17717 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17718 (aarch64_output_ptrue): Delete.
17719
17720 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17721
17722 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17723 INDEX.
17724 (simd_immediate_info::value, simd_immediate_info::step)
17725 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17726 with...
17727 (simd_immediate_info::u): ...this new union.
17728 (simd_immediate_info::simd_immediate_info): Update accordingly.
17729 (aarch64_output_simd_mov_immediate): Likewise.
17730 (aarch64_output_sve_mov_immediate): Likewise.
17731
17732 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17733
17734 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17735 extra_gcc_objs.
17736 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17737 (msp430_select_cpu): New spec function.
17738 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17739 MCU data.
17740 * config/msp430/msp430-devices.c: New file.
17741 * config/msp430/msp430-devices.h: New file.
17742 * config/msp430/msp430.c: Remove msp430_mcu_data.
17743 (msp430_option_override): Use msp430_extract_mcu_data to extract
17744 MCU data.
17745 (msp430_use_f5_series_hwmult): Likewise.
17746 (use_32bit_hwmult): Likewise.
17747 (msp430_no_hwmult): Likewise.
17748 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17749 assembler.
17750 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17751 and -mcpu option.
17752 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17753 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17754 Remove hard-coded MCU multilib data.
17755
17756 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17757
17758 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17759 based on the mode instead of testing properties of it.
17760
17761 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17762
17763 * doc/md.texi: Document the x and y constraints for AArch64.
17764 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17765 (FP_LO8_REGS): New reg_class.
17766 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17767 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17768 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17769 * config/aarch64/predicates.md (aarch64_simd_register): Use
17770 FP_REGNUM_P instead of checking the classes manually.
17771 * config/aarch64/constraints.md (y): New constraint.
17772
17773 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17774
17775 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17776 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17777 * config/aarch64/aarch64-simd.md
17778 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17779 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17780 from the asm template.
17781 * config/aarch64/aarch64-sve.md
17782 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17783 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17784 from the asm template.
17785 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17786 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17787 from the asm template.
17788 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17789
17790 2019-08-13 Martin Liska <mliska@suse.cz>
17791
17792 * value-prof.c (gimple_ic_transform): Add new line.
17793 Print details with MSG_NOTE.
17794
17795 2019-08-13 Martin Liska <mliska@suse.cz>
17796
17797 * doc/invoke.texi: Document automatic detection of jobserver.
17798 * lto-wrapper.c (run_gcc): Detect jobserver always.
17799
17800 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17801
17802 * config/i386/i386-expand.c (ix86_expand_vector_set)
17803 <case E_V2SImode>: Use vec_merge path for
17804 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17805 <case E_V8QImode>: Ditto.
17806 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17807 (*mmx_pinsrb): Ditto.
17808
17809 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17810
17811 PR target/83250
17812 PR target/91340
17813 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17814 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17815 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17816 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17817 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17818
17819 2019-08-12 Richard Biener <rguenther@suse.de>
17820
17821 PR lto/91375
17822 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17823 flag_devirtualize.
17824
17825 2019-08-12 Richard Biener <rguenther@suse.de>
17826
17827 PR driver/91130
17828 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17829 lang_mask option, always use CL_DRIVER.
17830 (get_options_from_collect_gcc_options): Adjust.
17831 (find_and_merge_options): Likewise.
17832 (run_gcc): Likewise.
17833
17834 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17835
17836 * ipa-predicate.c (add_condition): Restore inverted test.
17837
17838 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17839
17840 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17841 (enum omp_clause_device_type_kind): New enum.
17842 (struct tree_omp_clause): Add subcode.device_type_kind.
17843 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17844 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17845 for device_type clause.
17846 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17847 * tree-pretty-print.c (dump_omp_clause): Likewise.
17848
17849 PR target/91408
17850 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17851 vector_operand.
17852
17853 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17854
17855 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17856 handling spilled pseudos.
17857
17858 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17859
17860 PR target/91386
17861 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17862 to preserve the contents of the original insns.
17863
17864 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17865
17866 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17867 (addsi3_compare_op2): Likewise.
17868
17869 2019-08-09 Martin Liska <mliska@suse.cz>
17870
17871 * alias.c (alias_ptr_types_compatible_p): Strengten
17872 type comparison in LTO mode.
17873
17874 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17875
17876 PR middle-end/90313
17877 * tree-tailcall.c (find_tail_calls): Reject calls that might
17878 read from an escaped RESULT_DECL.
17879
17880 2019-08-09 Martin Liska <mliska@suse.cz>
17881
17882 * doc/invoke.texi: Document the option value.
17883 * lto-wrapper.c (run_gcc): Set auto_parallel
17884 only with -flto=auto.
17885
17886 2019-08-09 Martin Liska <mliska@suse.cz>
17887
17888 * opts.c (common_handle_option): Error for an invalid argument
17889 to -flto=.
17890
17891 2019-08-09 Martin Liska <mliska@suse.cz>
17892
17893 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17894 use dump_printf to report optimization.
17895 (sem_variable::merge): Likwise.
17896 (sem_item_optimizer::merge_classes): Use dump_printf to report
17897 ICF hits.
17898
17899 2019-08-09 Martin Liska <mliska@suse.cz>
17900
17901 * value-prof.c (gimple_divmod_fixed_value_transform):
17902 Use dump_printf_loc.
17903 (gimple_mod_pow2_value_transform): Likewise.
17904 (gimple_mod_subtract_transform): Likewise.
17905 (init_node_map): Likewise.
17906 (gimple_ic_transform): Likewise.
17907 (gimple_stringops_transform): Likewise.
17908
17909 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17910
17911 * doc/extend.texi: Add const qualifier to ld intrinsics.
17912
17913 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17914
17915 * config/rs6000/dfp.md (D64_D128): Rename to ...
17916 (DDTD): ... this, throughout.
17917 (dfp_suffix): Rename to ...
17918 (q): ... this, throughout.
17919
17920 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17921
17922 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17923 (dfp_suffix): Ditto.
17924 (adddd3, addtd3): Merge to ...
17925 (add<mode>3 for D64_D128): ... this.
17926 (subdd3, subtd3): Merge to ...
17927 (sub<mode>3 for D64_D128): ... this.
17928 (muldd3, multd3): Merge to ...
17929 (mul<mode>3 for D64_D128): ... this.
17930 (divdd3, divtd3): Merge to ...
17931 (div<mode>3 for D64_D128): ... this.
17932 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17933 (*cmp<mode>_internal1 for D64_D128): ... this.
17934 (ftruncdd2, ftrunctd2): Merge to ...
17935 (ftrunc<mode>2 for D64_D128): ... this.
17936 (fixdddi2, fixtddi2): Merge to ...
17937 (fix<mode>di2 for D64_D128): ... this.
17938
17939 2019-08-08 Jim Wilson <jimw@sifive.com>
17940
17941 PR target/91229
17942 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17943 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17944 Pass into recursive call.
17945 (riscv_flatten_aggregate_argument): New arg. Pass to
17946 riscv_flatten_aggregate_field.
17947 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17948 riscv_flatten_aggregate_argument twice, with false and true as last
17949 arg. Process result twice. Compare results and warn if different.
17950 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17951
17952 2019-08-08 Martin Liska <mliska@suse.cz>
17953
17954 PR bootstrap/91352
17955 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17956 * lto-wrapper.c (jobserver_active_p): Likewise.
17957
17958 2019-08-08 Martin Liska <mliska@suse.cz>
17959
17960 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17961 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17962 (create_version_clone_with_body): Likewise.
17963
17964 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17965
17966 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17967 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17968 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17969 GOVD_EXPLICIT flags.
17970 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17971 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17972 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17973 call install_var_field with mask 11 instead of 3.
17974 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17975 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17976
17977 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17978
17979 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17980 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17981
17982 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17983
17984 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17985 MOVPRFX alternatives. Make the GPR alternatives more expensive
17986 than the FPR ones.
17987
17988 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17989
17990 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17991 Disparage the GPR alternative relative to the FPR one.
17992 Fix handling of 8-bit and 16-bit FPR values.
17993
17994 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17995
17996 * config/aarch64/iterators.md (BITWISEV): Delete.
17997 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17998 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17999 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18000 UNSPEC_FMINNMV, UNSPEC_FMINV.
18001 (bit_reduc_op): Delete.
18002 (sve_int_op): New int attribute.
18003 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
18004 UNSPEC_FMINNMV, UNSPEC_FMINV.
18005 * config/aarch64/aarch64-sve.md
18006 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18007 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
18008 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
18009 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
18010 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
18011 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
18012 new patterns.
18013 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
18014 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
18015 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
18016 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
18017 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
18018 new patterns.
18019
18020 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18021
18022 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
18023 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
18024 (fms<mode>4, *fms<mode>4): Replace with...
18025 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
18026 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
18027 Use unspecs instead of rtx codes.
18028 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
18029 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
18030
18031 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18032
18033 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
18034 int iterator.
18035 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
18036 * config/aarch64/aarch64-sve.md
18037 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
18038 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
18039 use a single unspec for the rhs.
18040 (*<su><maxmin><mode>3): Delete.
18041 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
18042
18043 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18044
18045 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
18046 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
18047 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
18048 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
18049 (optab, sve_fp_op): Handle them.
18050 (SVE_FP_UNARY): Delete.
18051 (optab): Remove sqrt entry.
18052 (sve_fp_op): Remove neg, abs and sqrt entries.
18053 (SVE_COND_FP_UNARY): New int iterator.
18054 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
18055 (*<frint_pattern><mode>2): Delete.
18056 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18057 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18058 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
18059 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
18060
18061 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18062
18063 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
18064
18065 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18066
18067 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
18068 (UNSPEC_COND_FADD): ...this.
18069 (UNSPEC_COND_SUB): Rename to...
18070 (UNSPEC_COND_FSUB): ...this.
18071 (UNSPEC_COND_MUL): Rename to...
18072 (UNSPEC_COND_FMUL): ...this.
18073 (UNSPEC_COND_DIV): Rename to...
18074 (UNSPEC_COND_FDIV): ...this.
18075 (UNSPEC_COND_MAX): Rename to...
18076 (UNSPEC_COND_FMAXNM): ...this.
18077 (UNSPEC_COND_MIN): Rename to...
18078 (UNSPEC_COND_FMINNM): ...this.
18079 (UNSPEC_COND_LT): Rename to...
18080 (UNSPEC_COND_FCMLT): ...this.
18081 (UNSPEC_COND_LE): Rename to...
18082 (UNSPEC_COND_FCMLE): ...this.
18083 (UNSPEC_COND_EQ): Rename to...
18084 (UNSPEC_COND_FCMEQ): ...this.
18085 (UNSPEC_COND_NE): Rename to...
18086 (UNSPEC_COND_FCMNE): ...this.
18087 (UNSPEC_COND_GE): Rename to...
18088 (UNSPEC_COND_FCMGE): ...this.
18089 (UNSPEC_COND_GT): Rename to...
18090 (UNSPEC_COND_FCMGT): ...this.
18091 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
18092 (sve_fp_op_rev): Update accordingly.
18093 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
18094
18095 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18096
18097 * config/aarch64/aarch64-sve.md: Reorganize contents and add
18098 banner comments.
18099 * config/aarch64/check-sve-md.awk: New file.
18100 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
18101 (insn-conditions.md): Depend on it.
18102
18103 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
18104
18105 PR target/91385
18106 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
18107 (*negsi2_cmpz_zext): Ditto.
18108
18109 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18110
18111 * config/aarch64/iterators.md (commutative): Remove.
18112
18113 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
18114
18115 PR driver/91130
18116 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
18117 processing COLLECT_GCC_OPTIONS.
18118 (run_gcc): Likewise.
18119
18120 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
18121
18122 PR tree-optimization/91109
18123 * lra-remat.c (update_scratch_ops): Remove assignment of the
18124 hard register.
18125
18126 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
18127
18128 * data-streamer.h (streamer_write_poly_uint64): Declare.
18129 (streamer_read_poly_uint64): Likewise.
18130 * data-streamer-in.c (streamer_read_poly_uint64): New function.
18131 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
18132 * ipa-predicate.h (condition::size): Turn into a poly_int64.
18133 (add_condition): Take a poly_int64 size.
18134 * ipa-predicate.c (add_condition): Likewise.
18135 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18136 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18137 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18138 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18139 condition::size as a poly_int64.
18140 (unmodified_parm_1): Take a poly_int64 size pointer.
18141 (unmodified_parm): Likewise.
18142 (unmodified_parm_or_parm_agg_item): Likewise.
18143 (set_cond_stmt_execution_predicate): Update accordingly.
18144 (set_switch_stmt_execution_predicate): Likewise.
18145 (will_be_nonconstant_expr_predicate): Likewise.
18146 (will_be_nonconstant_predicate): Likewise.
18147 (inline_read_section): Stream condition::size as a poly_int.
18148 (ipa_fn_summary_write): Likewise.
18149
18150 2019-08-07 Martin Liska <mliska@suse.cz>
18151
18152 * fold-const.c (twoval_comparison_p): Replace int
18153 with bool as a return type.
18154 (simple_operand_p): Likewise.
18155 (operand_equal_p): Replace int with bool as a return type.
18156 * fold-const.h (operand_equal_p): Likewise.
18157
18158 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18159
18160 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18161 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18162 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18163 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18164 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18165 * tree-pretty-print.c (dump_omp_clause): Likewise.
18166 * tree-nested.c (convert_nonlocal_omp_clauses,
18167 convert_local_omp_clauses): Likewise.
18168 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18169 Likewise.
18170 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18171 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18172 clause with array or reference to array types, no matter what type
18173 except for reference it has.
18174
18175 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18176
18177 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18178
18179 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18180
18181 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18182 (arch_canonicalize): Support rv32g and rv64g and fix error
18183 handling.
18184
18185 2019-08-06 Martin Liska <mliska@suse.cz>
18186
18187 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18188 and DECL_IS_OPERATOR_DELETE_P.
18189
18190 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18191
18192 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18193 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18194 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18195 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18196 (gimplify_omp_for): Don't do C++ random access iterator clause
18197 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18198 don't predetermine the artificial iterator in case of C++ random
18199 access iterators as lastprivate, but private. For OMP_LOOP, force
18200 bind expr around simd body and force for_pre_body before the
18201 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18202 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18203 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18204 diff var of C++ random access iterators. Handle
18205 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18206 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18207 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18208 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18209 * omp-low.c (lower_rec_input_clauses): For
18210 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18211 variables instead of default constructing them.
18212 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18213 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18214 is_taskloop_ctx check from the assert to the guarding condition.
18215
18216 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18217
18218 * config/riscv/multilib-generator: (canonical_order): New.
18219 (arch_canonicalize): Dito.
18220 Apply arch_canonicalize for alts.
18221
18222 2019-08-05 Martin Sebor <msebor@redhat.com>
18223
18224 * doc/extend.texi (Common Variable Attributes): Document alias
18225 attribute.
18226
18227 2019-08-05 Marek Polacek <polacek@redhat.com>
18228
18229 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18230 * doc/invoke.texi: Document -Wcomma-subscript.
18231
18232 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18233
18234 * tree-core.h (tree_function_decl): Make function_code an
18235 independent field. Group the remaining bitfields into bytes
18236 and move decl_type so that it contines to be at a byte boundary.
18237 Leave 12 bits for future expansion.
18238
18239 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18240
18241 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18242 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18243 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18244 IFN_MASK_STORE.
18245
18246 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18247
18248 * gimple.h (gimple_move_vops): Declare.
18249 * gimple.c (gimple_move_vops): New function
18250 * gimple-fold.c (replace_call_with_call_and_fold)
18251 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18252 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18253 (gimple_fold_call): Use it.
18254 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18255 * tree-call-cdce.c (use_internal_fn): Likewise.
18256 * tree-if-conv.c (predicate_load_or_store): Likewise.
18257 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18258 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18259 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18260 (update_call_from_tree): Likewise.
18261 * tree-vect-stmts.c (vectorizable_load): Likewise.
18262 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18263
18264 2019-08-05 Martin Liska <mliska@suse.cz>
18265
18266 PR c++/91334
18267 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18268 with not arguments.
18269 (eliminate_unnecessary_stmts): Likewise.
18270
18271 2019-08-05 Richard Biener <rguenther@suse.de>
18272
18273 PR middle-end/91169
18274 * fold-const.c (get_array_ctor_element_at_index): Create
18275 offset_ints according to the sign of the index type and treat
18276 that as signed if it is obviously so.
18277
18278 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18279
18280 PR target/91341
18281 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18282 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18283 _mm256_storeu2_m128i): New function.
18284
18285 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18286
18287 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18288 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18289
18290 2019-08-05 Alan Modra <amodra@gmail.com>
18291
18292 PR target/91349
18293 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18294 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18295
18296 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18297
18298 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18299 bug that was fixed in Tcl 8.6.1.
18300
18301 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18302
18303 * config/rs6000/future.md: New file.
18304 * config/rs6000/rs6000.md: Include future.md.
18305 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18306
18307 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18308
18309 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18310 check to use targetm.slow_unaligned_access instead.
18311
18312 * function.c (assign_param_data_one): Remove unused data members.
18313
18314 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18315
18316 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18317 build_distinct_type_copy.
18318 (simd_clone_adjust_argument_types): Ditto.
18319 (simd_clone_adjust): Call build_distinct_type_copy here.
18320 (expand_simd_clones): Ditto.
18321
18322 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18323
18324 PR target/91201
18325 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18326
18327 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18328
18329 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18330 from 'const void *'.
18331 (sort_locs_in_loop_postorder_cmp): Likewise.
18332
18333 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18334
18335 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18336 (hot-bb-count-ws-permille): Likewise.
18337 (hot-bb-frequency-fraction): Likewise.
18338 (unlikely-bb-count-fraction): Likewise.
18339 * params.def (hot-bb-count-fraction): Rework description.
18340 (hot-bb-count-ws-permille): Likewise.
18341 (hot-bb-frequency-fraction): Likewise.
18342 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18343 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18344
18345 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18346
18347 PR target/91323
18348 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18349 Return false.
18350
18351 2019-08-02 Richard Biener <rguenther@suse.de>
18352
18353 * vec.h (vec::sort): Add gcc_qsort_r support.
18354 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18355 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18356 to gcc_qsort_r style callback.
18357 (sort_locs_in_loop_postorder_cmp): Likewise.
18358 (analyze_memory_references): Use gcc_sort_r interfaces.
18359 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18360
18361 2019-08-02 Martin Liska <mliska@suse.cz>
18362
18363 PR lto/91313
18364 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18365 to detect working job server.
18366 (driver::detect_jobserver): Test whether jobserver
18367 is active from GCC driver. That will prevent situation where
18368 GCC is invoked from a LD plugin and the linker already uses
18369 file descriptors suggested by make. That leads to a wrong
18370 detection.
18371 * gcc.h (driver): Add detect_jobserver.
18372 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18373 not scanning for --jobserver-auth prefix.
18374
18375 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18376
18377 PR tree-optimization/91201
18378 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18379 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18380 extraction.
18381
18382 2019-08-01 Martin Sebor <msebor@redhat.com>
18383
18384 PR c++/90947
18385 * tree.c (type_initializer_zero_p): Define.
18386 * tree.h (type_initializer_zero_p): New function.
18387
18388 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18389
18390 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18391
18392 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18393
18394 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18395 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18396 * predict.c (maybe_hot_count_p): Likewise.
18397 (maybe_hot_bb_p): Tweak comment.
18398 (maybe_hot_edge_p): Likewise.
18399 (probably_never_executed): Likewise. Minor tweak.
18400 (probably_never_executed_bb_p): Likewise.
18401 (unlikely_executed_edge_p): Likewise.
18402 (probably_never_executed_edge_p): Likewise.
18403 (optimize_function_for_size_p): Likewise.
18404 (optimize_function_for_speed_p): Likewise.
18405 (function_optimization_type): Likewise.
18406 (optimize_bb_for_size_p): Likewise.
18407 (optimize_bb_for_speed_p): Likewise.
18408 (bb_optimization_type): Likewise.
18409 (optimize_edge_for_size_p): Likewise.
18410 (optimize_edge_for_speed_p): Likewise.
18411 (optimize_insn_for_size_p): Likewise.
18412 (optimize_insn_for_speed_p): Likewise.
18413 (optimize_loop_for_size_p): Likewise.
18414 (optimize_loop_for_speed_p): Likewise.
18415 (optimize_loop_nest_for_speed_p): Likewise.
18416 (optimize_loop_nest_for_size_p): Likewise.
18417 (predictable_edge_p): Likewise.
18418 (handle_missing_profiles): Minor tweak.
18419
18420 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18421
18422 * config/rs6000/predicates.md (pcrel_external_address): Update
18423 comment.
18424
18425 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18426
18427 PR target/85693
18428 * config/i386/mmx.md (usadv8qi): New expander.
18429
18430 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18431
18432 PR c++/90590
18433 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18434 with reserved names that are in a system header.
18435
18436 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18437
18438 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18439 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18440 (*vec_extractv2si_0_zext): Ditto.
18441 (*vec_extractv2si_1): Add (rm,x) alternative.
18442 (*vec_extractv2si_1_zext): New insn pattern.
18443 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18444 insn constraint.
18445
18446 2019-08-01 Richard Biener <rguenther@suse.de>
18447
18448 * domwalk.c (bb_postorder): Remove static variable.
18449 (cmp_bb_postorder): Adjust.
18450 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18451 (dom_walker::walk): Adjust.
18452
18453 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18454
18455 * sort.cc (sort_r_ctx): New struct.
18456 (reorder23): Make templated on context type.
18457 (reorder45): Ditto.
18458 (cmp1): Ditto. Adjust signature.
18459 (netsort): Ditto.
18460 (mergesort): Ditto.
18461 [CHECKING_P] (cmp2to3): New static function. Use it...
18462 (gcc_qsort) [CHECKING_P]: ...here.
18463 (gcc_sort_r): New function.
18464 * system.h (sort_r_cmp_fn): New function typedef.
18465 (qsort_chk): Adjust signature.
18466 (gcc_sort_r): Declare.
18467 * vec.c (qsort_chk_error): Adjust.
18468 (qsort_chk): Adjust.
18469
18470 2019-08-01 Richard Biener <rguenther@suse.de>
18471
18472 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18473 (compute_antic): Localize it here.
18474
18475 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18476
18477 * common/config/riscv/riscv-common.c: Check -march string ends
18478 with null.
18479
18480 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18481
18482 * ipa-devirt.c (type_warning_cmp): Make static.
18483 (decl_warning_cmp): Ditto.
18484
18485 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18486
18487 PR target/91050
18488 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18489 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18490 use of deleted rs6000_dejagnu_cpu_index variable.
18491 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18492 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18493 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18494 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18495 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18496 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18497
18498 2019-07-31 Richard Biener <rguenther@suse.de>
18499
18500 PR tree-optimization/91280
18501 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18502 Decompose MEM_REF manually for offset handling.
18503
18504 2019-07-31 Richard Biener <rguenther@suse.de>
18505
18506 PR tree-optimization/91293
18507 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18508 of reduction stmts.
18509
18510 2019-07-31 Matt Thomas <matt@3am-software.com>
18511 Nick Hudson <nick@nthcliff.demon.co.uk>
18512 Matthew Green <mrg@eterna.com.au>
18513 Maya Rashish <coypu@sdf.org>
18514
18515 * config.gcc (hppa*-*-netbsd*): New target.
18516 * config/pa/pa-netbsd.h: New file.
18517 * config/pa/pa32-netbsd.h: New file.
18518
18519 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18520
18521 PR tree-optimization/91201
18522 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18523
18524 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18525
18526 * config/gcn/gcn-valu.md
18527 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18528 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18529 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18530 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18531 struct ilist. Add nops for delayeduse insns.
18532 * config/gcn/gcn.md (delayeduse): New attribute.
18533 (*movbi): Remove s_waitcnt from stores.
18534 (*mov<mode>_insn): Likewise.
18535 (*movti_insn): Likewise. Add delayeduse attribute.
18536 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18537 (atomic_store<mode>): Remove or adjust s_waitcnt.
18538
18539 2019-07-31 Richard Biener <rguenther@suse.de>
18540
18541 * vr-values.h (vr_values::swap_vr_value): New.
18542 (vr_values::free_value_range): likewise.
18543 * vr-values.c (vr_values::swap_vr_value): Implement.
18544 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18545 Do not return a range or take a var.
18546 (evrp_range_analyzer::stack): Change back to recording a non-const
18547 value_range *.
18548 * gimple-ssa-evrp-analyze.c
18549 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18550 value-range.
18551 (evrp_range_analyzer::pop_to_marker): Adjust.
18552 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18553 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18554 no longer needed value-range.
18555
18556 2019-07-31 Martin Liska <mliska@suse.cz>
18557
18558 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18559 have size and (or) alignment as 2nd and later arguments.
18560 Mark all of them as necessary.
18561
18562 2019-07-31 Richard Biener <rguenther@suse.de>
18563
18564 PR tree-optimization/91178
18565 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18566 Use tail-recursion.
18567
18568 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18569
18570 PR tree-optimization/91201
18571 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18572 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18573 TARGET_AVX512F.
18574 (reduc_plus_scal_<mode>): Improve formatting by introducing
18575 a temporary.
18576
18577 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18578
18579 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18580 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18581 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18582 (aarch64_init_tme_builtins): New.
18583 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18584 (aarch64_expand_builtin_tme): New.
18585 (aarch64_expand_builtin): Handle TME builtins.
18586 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18587 __ARM_FEATURE_TME when enabled.
18588 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18589 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18590 (TARGET_TME): New.
18591 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18592 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18593 UNSPECV_TCANCEL.
18594 (tstart, ttest, tcommit, tcancel): New instructions.
18595 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18596 (__tcancel, __ttest): New.
18597 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18598 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18599 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18600 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18601 * config/arm/types.md: Add new tme type attr.
18602 * doc/invoke.texi: Document "tme".
18603
18604 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18605
18606 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18607 warn_unused_result attribute.
18608 (cmse_check_address_range): Add warn_unused_result attribute.
18609
18610 2019-07-31 Richard Biener <rguenther@suse.de>
18611
18612 PR tree-optimization/91257
18613 * tree-vrp.c (union_ranges): Unify equality and less tests
18614 by using compare_values. Re-order cheap tests first.
18615
18616 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18617
18618 PR middle-end/91301
18619 * gimplify.c (gimplify_omp_for): If for class iterator on
18620 distribute parallel for there is no data sharing clause
18621 on inner_for_stmt, look for private clause on combined
18622 parallel too and if found, move it to inner_for_stmt.
18623
18624 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18625
18626 * lra-int.h (lra_operand_data): Remove early_clobber field.
18627 (lra_insn_reg): Likewise.
18628 * lra.c (debug_operand_data): Update accordingly.
18629 (setup_operand_alternative): Likewise.
18630 (new_insn_reg): Likewise. Remove early_clobber parameter.
18631 (collect_non_operand_hard_regs): Update call accordingly.
18632 Don't assign to lra_insn_reg::early_clobber.
18633 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18634 and update calls to new_insn_reg.
18635 (lra_update_insn_regno_info): Update calls accordingly.
18636 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18637 alternative number as a parameter and test whether the operand
18638 is earlyclobbered in that particular alternative.
18639 (process_alt_operands): Update call accordingly. Use per-alternative
18640 checks for earyclobber here too.
18641 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18642 against zero for IRA_UNKNOWN_ALT.
18643
18644 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18645
18646 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18647
18648 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18649
18650 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18651 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18652
18653 2019-07-30 Martin Liska <mliska@suse.cz>
18654
18655 PR ipa/89330
18656 * cgraph.c (cgraph_edge::make_direct): Use
18657 edge->indirect_unknown_callee as edge->resolve_speculation can
18658 deallocate edge which is this pointer.
18659
18660 2019-07-30 Richard Biener <rguenther@suse.de>
18661
18662 PR tree-optimization/91257
18663 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18664
18665 2019-07-30 Martin Liska <mliska@suse.cz>
18666
18667 * doc/invoke.texi: Document new behavior.
18668 * lto-wrapper.c (cpuset_popcount): New function
18669 is a copy of libgomp/config/linux/proc.c.
18670 (init_num_threads): Likewise.
18671 (run_gcc): Automatically detect core count for -flto.
18672 (jobserver_active_p): New function.
18673
18674 2019-07-30 Richard Biener <rguenther@suse.de>
18675
18676 PR tree-optimization/91257
18677 * bitmap.h (bitmap_ior_into_and_free): Declare.
18678 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18679 whether to add the unliked element to the freelist.
18680 (bitmap_list_insert_element_after): Add defaulted param for
18681 an already allocated element.
18682 (bitmap_ior_into_and_free): New function.
18683 * tree-ssa-structalias.c (condense_visit): Reduce the
18684 ponts-to and edge bitmaps of the SCC members in a
18685 logarithmic fashion rather than all to one.
18686
18687 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18688
18689 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18690 parameter. When nonnull, make sure that the addition or subtraction
18691 has the same condition.
18692 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18693 for CFN_COND_MUL too.
18694
18695 2019-07-30 Richard Biener <rguenther@suse.de>
18696
18697 PR tree-optimization/91291
18698 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18699 constant values.
18700
18701 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18702
18703 PR middle-end/91216
18704 * omp-low.c (global_nonaddressable_vars): New variable.
18705 (use_pointer_for_field): For global decls, if they are non-addressable,
18706 remember it in the global_nonaddressable_vars bitmap, if they are
18707 addressable and in the global_nonaddressable_vars bitmap, ignore their
18708 TREE_ADDRESSABLE bit.
18709 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18710 vars in global_nonaddressable_vars bitmap.
18711 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18712
18713 PR target/91150
18714 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18715 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18716 comparison to unsigned HOST_WIDE_INT before shifting it left.
18717
18718 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18719
18720 * config/i386/i386.md (movstrict<mode>): Use register_operand
18721 predicate for operand 0. Add expander condition. Assert that
18722 operand 0 is a SUBREG RTX.
18723 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18724 Update operand constraints and insn condition.
18725 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18726 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18727 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18728 Update operand 0 constraints.
18729 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18730
18731 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18732
18733 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18734 when -m{code,data}-region are used without -mlarge.
18735 * config/msp430/msp430.c (msp430_option_override): Error when a
18736 non-default code or data region is used without -mlarge.
18737 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18738 attributes when they are used without -mlarge.
18739
18740 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18741
18742 PR target/70320
18743 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18744
18745 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18746
18747 PR middle-end/91242
18748 * wide-int.h (generic_wide_int::sext_elt): New function.
18749 * inchash.h (hash::add_wide_int): Use it instead of elt.
18750
18751 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18752
18753 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18754 CODE_FOR_arm_##.
18755 * config/arm/arm.md (<crc_variant>): Rename to...
18756 (arm_<crc_variant>): ... This.
18757 (<cdp>): Rename to...
18758 (arm_<cdp>): ... This.
18759 (<ldc>): Rename to...
18760 (arm_<ldc>): ... This.
18761 (<stc>): Rename to...
18762 (arm_<stc>): ... This.
18763 (<mcr>): Rename to...
18764 (arm_<mcr>): ... This.
18765 (<mrc>): Rename to...
18766 (arm_<mrc>): ... This.
18767 (<mcrr>): Rename to...
18768 (arm_<mcrr>): ... This.
18769 (<mrrc>): Rename to...
18770 (arm_<mrrc>): ... This.
18771
18772 2019-07-29 Richard Biener <rguenther@suse.de>
18773
18774 PR tree-optimization/91257
18775 * tree-ssa-sccvn.h (struct vn_avail): New.
18776 (struct vn_ssa_aux): Add avail member.
18777 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18778 member, add m_avail_freelist one.
18779 (rpo_elim::~rpo_elim): Remove.
18780 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18781 data structure.
18782 (rpo_elim::eliminate_push_avail): Likewise.
18783 (do_unwind): Likewise.
18784 (do_rpo_vn): Likewise.
18785
18786 2019-07-29 Richard Biener <rguenther@suse.de>
18787
18788 PR tree-optimization/91257
18789 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18790 most cases, instead call compare_values which handles the
18791 symbolic ranges we handle specially.
18792 (compare_values_warnv): Do not call operand_less_p but open-code
18793 the effective fold calls. Avoid converting so much.
18794
18795 2019-07-29 Martin Liska <mliska@suse.cz>
18796
18797 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18798 remove LHS of operator new call. It's handled latter.
18799
18800 2019-07-29 Richard Biener <rguenther@suse.de>
18801
18802 PR tree-optimization/91267
18803 * vr-values.c (vr_values::update_value_range): Add early return
18804 for effectively VARYING lattice entry.
18805
18806 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18807
18808 PR debug/86638
18809 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18810 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18811 necessary if keep_all_vdefs_p is true.
18812 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18813 that keep_all_vdefs_p is false.
18814 (mark_all_reaching_defs_necessary): Likewise.
18815 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18816
18817 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18818
18819 * common.opt (Og): Change the initial value of flag_dse to 0.
18820 * opts.c (default_options_table): Move OPT_ftree_dse from
18821 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18822 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18823 entry before the OPT_ftree_sra entry.
18824 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18825 of flags disabled by Og.
18826
18827 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18828
18829 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18830 variables for -Og.
18831
18832 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18833
18834 * doc/sourcebuild.texi (check-function-bodies): Document.
18835
18836 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18837
18838 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18839 VEC_DUPLICATE of a fixed-length vector even if the result
18840 is variable-length. Likewise fold a duplicate of a
18841 variable-length vector if the variable-length vector is
18842 itself a duplicate of a fixed-length sequence.
18843 (test_vector_ops_duplicate): Test more cases.
18844
18845 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18846
18847 * vector-builder.h (vector_builder): Add a shape template parameter.
18848 (vector_builder::new_unary_operation): New function, generalizing
18849 the old tree_vector_builder function.
18850 (vector_builder::new_binary_operation): Likewise.
18851 (vector_builder::binary_encoded_nelts): Likewise.
18852 * int-vector-builder.h (int_vector_builder): Update template
18853 parameters to vector_builder.
18854 (int_vector_builder::shape_nelts): New function.
18855 * rtx-vector-builder.h (rtx_vector_builder): Update template
18856 parameters to vector_builder.
18857 (rtx_vector_builder::shape_nelts): New function.
18858 (rtx_vector_builder::nelts_of): Likewise.
18859 (rtx_vector_builder::npatterns_of): Likewise.
18860 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18861 * tree-vector-builder.h (tree_vector_builder): Update template
18862 parameters to vector_builder.
18863 (tree_vector_builder::shape_nelts): New function.
18864 (tree_vector_builder::nelts_of): Likewise.
18865 (tree_vector_builder::npatterns_of): Likewise.
18866 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18867 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18868 (tree_vector_builder::new_binary_operation): Delete.
18869 (tree_vector_builder::binary_encoded_nelts): Likewise.
18870 * simplify-rtx.c: Include rtx-vector-builder.h.
18871 (distributes_over_addition_p): New function.
18872 (simplify_const_unary_operation)
18873 (simplify_const_binary_operation): Generalize handling of vector
18874 constants to include variable-length vectors.
18875 (test_vector_ops_series): Add more tests.
18876
18877 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18878
18879 PR lto/91222
18880 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18881 than INDENTIFIER_POINTER.
18882
18883 2019-07-28 Martin Liska <mliska@suse.cz>
18884
18885 PR ipa/89330
18886 * cgraph.c (symbol_table::create_edge): Always allocate
18887 a cgraph_edge.
18888 (symbol_table::free_edge): Store summary_id to
18889 edge_released_summary_ids if != -1;
18890 * cgraph.h (NEXT_FREE_NODE): Remove.
18891 (SET_NEXT_FREE_NODE): Likewise.
18892 (NEXT_FREE_EDGE): Likewise.
18893 (symbol_table::release_symbol): Store summary_id to
18894 cgraph_released_summary_ids if != -1;
18895 (symbol_table::allocate_cgraph_symbol): Always allocate
18896 a cgraph_node.
18897
18898 2019-07-28 Alan Modra <amodra@gmail.com>
18899
18900 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18901 gen_sibcall.
18902
18903 2019-07-28 Alan Modra <amodra@gmail.com>
18904
18905 PR target/91135
18906 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18907 define.
18908 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18909 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18910 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18911
18912 2019-07-28 Alan Modra <amodra@gmail.com>
18913
18914 PR target/91050
18915 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18916 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18917 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18918 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18919 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18920 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18921 in asm_default spec.
18922 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18923 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18924
18925 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18926
18927 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18928
18929 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18930
18931 PR target/89517
18932 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18933 * config/aarch64/aarch64-option-extensions.def: Add new comments
18934 and restore easier to read options.
18935
18936 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18937
18938 * convert.c (convert_to_real_1): Move part of conversion code...
18939 * match.pd: ...To here.
18940
18941 2019-07-26 Martin Jambor <mjambor@suse.cz>
18942
18943 PR ipa/89330
18944 * ipa-inline-transform.c (check_speculations_1): New function.
18945 (push_all_edges_in_set_to_vec): Likewise.
18946 (check_speculations): Use check_speculations_1, new parameter
18947 new_edges.
18948 (inline_call): Pass new_edges to check_speculations.
18949 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18950 NULL.
18951 (speculation_useful_p): Early return true if edge is inlined, remove
18952 later checks for inline_failed.
18953
18954 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18955
18956 PR rtl-optimization/91223
18957 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18958 matching with INOUT operand.
18959
18960 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18961
18962 * stmt.c (expand_case): Try to narrow the index type if it's larger
18963 than a word. Tidy up.
18964
18965 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18966
18967 * cif-code.def (NEVER_CALL): New code.
18968 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18969 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18970
18971 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18972
18973 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18974 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18975
18976 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18977
18978 * ipa-devirt.c (add_type_duplicate): Fix return value.
18979
18980 2019-07-25 Richard Biener <rguenther@suse.de>
18981
18982 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18983 type parameter and use it instead of guessing expression
18984 type from the first operand.
18985 (extract_range_from_binary_expr): Pass expr_type down.
18986
18987 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18988
18989 * config/arm/arm.md (SATrev): Change to code attribute.
18990 (*satsi_<SAT:code>): Adjust for the above.
18991 (*satsi_<SAT:code>_shift): Likewise.
18992
18993 2019-07-25 Richard Biener <rguenther@suse.de>
18994
18995 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18996 Make value_range * temporary const.
18997 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18998 Likewise.
18999 (evrp_range_analyzer::record_ranges_from_): Likewise.
19000 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
19001 deal with having recorded a const one.
19002 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
19003 Return a const value_range *.
19004 (evrp_range_analyzer::pop_value_range): Likewise.
19005 (evrp_range_analyzer::stack): Record const value_range *s.
19006 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
19007 Adjust.
19008 * gimple-ssa-sprintf.c (get_int_range): Likewise.
19009 (format_integer): Likewise.
19010 (sprintf_dom_walker::handle_gimple_call): Likewise.
19011 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
19012 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
19013 (vrp_prop::get_value_range): Adjust.
19014 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
19015 modifying the lattice in-place.
19016 (vrp_prop::visit_stmt): Likewise.
19017 * vr-values.c (vr_values::get_lattice_entry): New private method.
19018 (vr_values::get_value_range): Wrap it and return a const
19019 value_range *.
19020 (vr_values::set_def_to_varying): New.
19021 (vr_values::set_defs_to_varying): Use it.
19022 (vr_values::update_value_range): Likewise.
19023 (vr_values::vrp_stmt_computes_nonzero): Adjust.
19024 (values::op_with_constant_singleton_va): Likewise.
19025 (vr_values::extract_range_for_var_from_co): Likewise.
19026 (vr_values::extract_range_from_ssa_name): Likewise.
19027 (vr_values::extract_range_from_cond_expr): Likewise.
19028 (vr_values::extract_range_basic): Likewise.
19029 (compare_ranges): Take const value_range *, adjust.
19030 (compare_range_with_value): Likewise.
19031 (vrp_valueize): Adjust.
19032 (vrp_valueize_1): Likewise.
19033 (vr_values::get_vr_for_comparison): Return a const value_range *.
19034 (vr_values::compare_name_with_value): Adjust.
19035 (vr_values::compare_names): Likewise.
19036 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19037 Likewise.
19038 (vr_values::vrp_evaluate_conditional): Likewise.
19039 (find_case_label_ranges): Take a const value_range *.
19040 (vr_values::vrp_visit_switch_stmt): Adjust.
19041 (vr_values::extract_range_from_phi_node): Likewise.
19042 (vr_values::simplify_div_or_mod_using_ran): Likewise.
19043 (vr_values::simplify_abs_using_ranges): Likewise.
19044 (test_for_singularity): Take a const value_range *.
19045 (range_fits_type_p): Likewise.
19046 (vr_values::simplify_cond_using_ranges_1): Adjust.
19047 (vr_values::simplify_cond_using_ranges_2): Likewise.
19048 (vr_values::simplify_switch_using_ranges): Likewise.
19049 (vr_values::simplify_float_conversion_usi): Likewise.
19050 (vr_values::two_valued_val_range_p): Likewise.
19051 * vr-values.h (vr_values::get_value_range): Return a const
19052 value_range *.
19053 (vr_values::set_def_to_varying): New.
19054 (vr_values::get_lattice_entry): New private method.
19055 (vr_values::get_vr_for_comparison): Return a const value_range *.
19056
19057 2019-07-25 Martin Liska <mliska@suse.cz>
19058 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
19059
19060 PR c++/23383
19061 * common.opt: Add -fallocation-dce
19062 * gimple.c (gimple_call_operator_delete_p): New.
19063 * gimple.h (gimple_call_operator_delete_p): Likewise.
19064 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
19065 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
19066 DECL_IS_OPERATOR_DELETE_P.
19067 (mark_all_reaching_defs_necessary_1): Likewise.
19068 (propagate_necessity): Likewise.
19069 (eliminate_unnecessary_stmts): Handle
19070 gimple_call_operator_delete_p.
19071 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19072 Add packing of OPERATOR_DELETE.
19073 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19074 Similarly here.
19075 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
19076 (DECL_SET_IS_OPERATOR_DELETE): New.
19077 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
19078
19079 2019-07-25 Martin Liska <mliska@suse.cz>
19080
19081 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
19082 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
19083 * coverage.c (coverage_begin_function): Likewise.
19084 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
19085 * gimple.c (gimple_call_nonnull_result_p): Likewise.
19086 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
19087 (sem_item::hash_referenced_symbol_properties): Likewise.
19088 * lto-streamer-out.c (hash_tree): Likewise.
19089 * predict.c (expr_expected_value_1): Likewise.
19090 * tree-inline.c (expand_call_inline): Likewise.
19091 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
19092 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
19093 * tree-core.h (enum function_decl_type): New enum.
19094 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
19095 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
19096 (set_function_decl_type): Likewise.
19097 (DECL_IS_OPERATOR_NEW_P): New.
19098 (DECL_SET_IS_OPERATOR_NEW): Likewise.
19099 (DECL_LAMBDA_FUNCTION): Likewise.
19100 (DECL_LAMBDA_FUNCTION_P): Likewise.
19101 (DECL_IS_OPERATOR_NEW): Remove.
19102 (DECL_SET_LAMBDA_FUNCTION): Likewise.
19103
19104 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
19105
19106 * ipa-profile.c (get_most_common_single_value): Use
19107 get_nth_most_common_value.
19108 * profile.c (sort_hist_value): New function.
19109 (compute_value_histograms): Call sort_hist_value to sort the
19110 values after loading from disk.
19111 * value-prof.c (get_most_common_single_value): Rename to ...
19112 get_nth_most_common_value. Add input params n, return
19113 the n_th value and count.
19114 (gimple_divmod_fixed_value_transform): Use
19115 get_nth_most_common_value.
19116 (gimple_ic_transform): Likewise.
19117 (gimple_stringops_transform): Likewise.
19118 * value-prof.h (get_most_common_single_value): Add input params
19119 n, default to 0.
19120
19121 2019-07-25 Richard Biener <rguenther@suse.de>
19122
19123 PR tree-optimization/91236
19124 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19125 size of CONSTRUCTOR write. Fix buffer size we pass to
19126 native_encode_expr.
19127
19128 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19129
19130 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
19131 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
19132 r273773.
19133
19134 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19135
19136 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19137 explicitly disabled with --disable-initfini-array.
19138
19139 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19140
19141 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19142 if-exists.
19143
19144 2019-07-24 Martin Sebor <msebor@redhat.com>
19145
19146 PR tree-optimization/91183
19147 PR tree-optimization/86688
19148 * builtins.c (compute_objsize): Handle MEM_REF.
19149 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19150 (get_min_string_length): Remove.
19151 (count_nonzero_bytes): New function.
19152 (handle_char_store): Rename...
19153 (handle_store): to this. Handle multibyte stores via integer types.
19154 (strlen_check_and_optimize_stmt): Adjust conditional and the called
19155 function name.
19156
19157 2019-07-24 Martin Sebor <msebor@redhat.com>
19158
19159 PR driver/80545
19160 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19161 (diagnostic_report_diagnostic): Same.
19162 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19163 (diagnostic_context::lang_mask): New data member.
19164 * ipa-pure-const.c (suggest_attribute): Use
19165 lang_hooks.option_lang_mask ().
19166 * opts-common.c (option_enabled): Handle new argument.
19167 (get_option_state): Pass an additional argument.
19168 * opts.c (print_filtered_help): Print supported languages for
19169 unsupported options. Adjust printing of current state.
19170 * opts.h (option_enabled): Add argument.
19171 * toplev.c (print_switch_values): Use lang_mask.
19172 (general_init): Set global_dc->lang_mask.
19173
19174 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19175
19176 PR bootstrap/87030
19177 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19178
19179 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19180
19181 * cgraphunit.c (symbol_table::compile): Start and stop
19182 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19183 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19184
19185 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19186
19187 * gimplify.c (flag_instrument_functions_exclude_p): Include
19188 namespace/class information in the printable name.
19189 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19190 to tokens entered into the vector.
19191
19192 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19193
19194 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19195 (get_static_chain): Call it instead of build_simple_mem_ref.
19196 (get_frame_field): Likewise.
19197 (get_nonlocal_debug_decl): Likewise.
19198 (convert_nonlocal_reference_op): Likewise.
19199
19200 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19201
19202 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19203 declaration.
19204 (arc_compute_frame_size): Millicode is disabled when compiling
19205 ISR.
19206 (arc_return_address_register): Likewise.
19207 (arc_compute_function_type): Likewise.
19208 (arc_compute_frame_size): Likewise.
19209 (secondary_reload_info): Likewise.
19210 (arc_get_unalign): Likewise.
19211 (arc_can_use_return_insn): Declare.
19212 * config/arc/arc.c (AUX_LP_START): Define
19213 (AUX_LP_END): Likewise.
19214 (arc_frame_info): Update gmask member to 64-bit datum.
19215 (GMASK_LEN): Update.
19216 (arc_compute_function_type): Make it static, move it forward.
19217 (arc_must_save_register): Update, consider the extra regs.
19218 (arc_compute_millicode_save_restore_regs): Update to use the 64
19219 bit gmask.
19220 (arc_compute_frame_size): Likewise.
19221 (arc_enter_leave_p): Likewise.
19222 (arc_save_callee_saves): Likewise.
19223 (arc_restore_callee_saves): Likewise.
19224 (arc_save_callee_enter): Likewise.
19225 (arc_restore_callee_leave): Likewise.
19226 (arc_save_callee_milli): Likewise.
19227 (arc_restore_callee_milli): Likewise.
19228 (arc_expand_prologue): Add new interrupt handling.
19229 (arc_return_address_register): Make it static, move it forward.
19230 (arc_expand_epilogue): Add new interrupt handling.
19231 (arc_get_unalign): Delete.
19232 (arc_epilogue_uses): Make sure we do not remove the extra
19233 saved/restored registers when interrupt.
19234 (arc_can_use_return_insn): New function.
19235 (push_reg): Likewise.
19236 (pop_reg): Likewise.
19237 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19238 procedures.
19239 (arc_restore_callee_saves): Likewise, but restoring.
19240 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19241 (R33_REG): Likewise.
19242 (R34_REG): Likewise.
19243 (R35_REG): Likewise.
19244 (R36_REG): Likewise.
19245 (R37_REG): Likewise.
19246 (R38_REG): Likewise.
19247 (R39_REG): Likewise.
19248 (R45_REG): Likewise.
19249 (R46_REG): Likewise.
19250 (R47_REG): Likewise.
19251 (R48_REG): Likewise.
19252 (R49_REG): Likewise.
19253 (R50_REG): Likewise.
19254 (R51_REG): Likewise.
19255 (R52_REG): Likewise.
19256 (R53_REG): Likewise.
19257 (R54_REG): Likewise.
19258 (R55_REG): Likewise.
19259 (R56_REG): Likewise.
19260 (R58_REG): Likewise.
19261 (type): Add rtie attribute.
19262 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19263 (movsi_insn): Accept moves to lp_count.
19264 (rtie): Update pattern.
19265 (simple_return): Simplify it, don't use this pattern as a return
19266 from an interrupt.
19267 (arc600_rtie): New pattern.
19268 (p_return_i): Clean up.
19269 (return): Likewise.
19270 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19271 family CPUs.
19272 * config/arc/predicates.md (move_src_operand): Consider lp_count
19273 as a register.
19274
19275 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19276
19277 * config/s390/predicates.md (addv_const_operand): New predicate.
19278 * config/s390/s390-modes.def (CCO): New condition code mode.
19279 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19280 (s390_branch_condition_mask): Likewise.
19281 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19282 ("mulv<mode>4"): New expanders.
19283 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19284 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19285 pattern definitions.
19286
19287 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19288
19289 PR middle-end/91166
19290 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19291 (define_predicates): Add entry for uniform_vector_p.
19292 (vec_same_elem_p): New match pattern.
19293
19294 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19295
19296 PR bootstrap/87030
19297 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19298 * config/i386/darwin32-biarch.h .. to here.
19299 * config/i386/darwin64-biarch.h: Adjust comments.
19300 * config/rs6000/darwin32-biarch.h: Likewise.
19301 * config/rs6000/darwin64-biarch.h: Likewise.
19302 * config.gcc: Missed commit from r273746
19303 (*-*-darwin*): Don't include CPU t-darwin here.
19304 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19305 an error message if i686-darwin configuration is attempted for
19306 Darwin >= 18.
19307
19308 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19309
19310 PR bootstrap/87030
19311 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19312 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19313 an error message if i686-darwin configuration is attempted for
19314 Darwin >= 18.
19315 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19316 (powerpc-*-darwin*): Use biarch files where needed.
19317 (powerpc64-*-darwin*): Likewise.
19318 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19319 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19320 arch case.
19321 * config/i386/darwin32-biarch.h: New.
19322 * config/i386/darwin64.h: Rename.
19323 * config/i386/darwin64-biarch.h: To this.
19324 * config/i386/t-darwin: Rename.
19325 * config/i386/t-darwin32-biarch: To this.
19326 * config/i386/t-darwin64: Rename.
19327 * config/i386/t-darwin64-biarch: To this.
19328 * config/rs6000/darwin32-biarch.h: New.
19329 * config/rs6000/darwin64.h: Rename.
19330 * config/rs6000/darwin64-biarch.h: To this.
19331 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19332 arch case.
19333 * config/rs6000/t-darwin8: Rename.
19334 * config/rs6000/t-darwin32-biarch: To this.
19335 * config/rs6000/t-darwin64 Rename.
19336 * config/rs6000/t-darwin64-biarch: To this.
19337
19338 2019-07-23 Martin Sebor <msebor@redhat.com>
19339
19340 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19341
19342 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19343
19344 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19345 (rh): New alias for it.
19346
19347 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19348
19349 * gdbhooks.py: Pass replace=True to
19350 gdb.printing.register_pretty_printer.
19351
19352 2019-07-23 Richard Biener <rguenther@suse.de>
19353
19354 PR debug/91231
19355 * lto-streamer-in.c (input_function): Drop inline-entry markers
19356 that ended up with an unknown location block.
19357
19358 2019-07-23 Richard Biener <rguenther@suse.de>
19359
19360 PR tree-optimization/83518
19361 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19362 init from a constant even when partial defs are already recorded.
19363
19364 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19365
19366 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19367 * config/i386/znver1.md: Enable patterns for znver2 and add store
19368 variants which use extra AGU unit.
19369
19370 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19371
19372 * config/i386/i386-options.c (ix86_option_override_internal): Default
19373 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19374 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19375 for ZNVER2.
19376
19377 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19378
19379 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19380 (znver2_costs): Update 256 bit SSE costs and multiplication.
19381
19382 2019-07-23 Jan Beulich <jbeulich@suse.com>
19383
19384 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19385 Require only AVX512F.
19386 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19387 alternative expanding to vpternlog.
19388
19389 2019-07-23 Martin Liska <mliska@suse.cz>
19390
19391 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19392 to -flto in dwarf producer string.
19393
19394 2019-07-23 Richard Biener <rguenther@suse.de>
19395
19396 * tree-cfg.c (label_for_bb): Remove global var.
19397 (main_block_label): Take label_for_bb as argument.
19398 (cleanup_dead_labels_eh): Likewise, adjust.
19399 (cleanup_dead_labels): Adjust.
19400
19401 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19402
19403 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19404 Configurations): Add documentation for __builtin_mtfsf.
19405
19406 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19407
19408 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19409 * config/riscv/riscv.c (riscv_constant_alignment): Use
19410 riscv_align_data_type.
19411 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19412 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19413 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19414 * config/riscv/riscv.opt (malign-data): New.
19415 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19416
19417 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19418
19419 * cgraph.c (dump_graphviz): New function.
19420 * cgraph.h (dump_graphviz): New function.
19421 * symtab.c (dump_graphviz): New function.
19422
19423 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19424
19425 * config/aarch64/aarch64-simd.md
19426 (*aarch64_simd_sra<mode>): New.
19427 * config/aarch64/iterators.md
19428 (SHIFTRT): New iterator.
19429 (sra_op): New attribute.
19430
19431 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19432
19433 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19434 callee-saved regs R4->R10 in an interrupt function that calls another
19435 function.
19436
19437 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19438
19439 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19440 (_mm_blendv_epi8): New.
19441
19442 2019-07-22 Richard Biener <rguenther@suse.de>
19443
19444 PR tree-optimization/91221
19445 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19446 restrict partial-def handling of empty constructors and
19447 memset to refs with known offset.
19448
19449 2019-07-22 Jan Beulich <jbeulich@suse.com>
19450
19451 * config/i386/sse.md (ternlogsuffix): New.
19452 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19453 AVX512F is in use.
19454 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19455
19456 2019-07-22 Martin Liska <mliska@suse.cz>
19457
19458 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19459 comment.
19460 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19461
19462 2019-07-22 Martin Liska <mliska@suse.cz>
19463
19464 * lto-section-in.c (lto_get_section_data):
19465 Use new function get_compression.
19466 * lto-streamer-out.c (produce_lto_section): Use
19467 set_compression to encode compression algorithm.
19468 * lto-streamer.h (struct lto_section): Do not
19469 use bitfields in the format.
19470
19471 2019-07-22 Martin Liska <mliska@suse.cz>
19472
19473 PR driver/91172
19474 * opts-common.c (decode_cmdline_option): Decode
19475 argument of -Werror and check it for a wrong language.
19476 * opts-global.c (complain_wrong_lang): Remove such case.
19477
19478 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19479
19480 * config/arc/arc.c (prepare_move_operands): Always use an
19481 intermediate register when storing a TLS symbols.
19482
19483 2019-07-22 Stafford Horne <shorne@gmail.com>
19484
19485 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19486 force_reg.
19487
19488 2019-07-22 Stafford Horne <shorne@gmail.com>
19489
19490 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19491 and munordered-float validations.
19492 * config/or1k/constraints.md (d): New register constraint.
19493 * config/or1k/predicates.md (fp_comparison_operator): New.
19494 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19495 operands.
19496 (or1k_expand_compare): Normalize unordered comparisons.
19497 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19498 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19499 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19500 * config/or1k/or1k.md (type): Add fpu.
19501 (fpu): New instruction reservation.
19502 (F, f, fr, fi, FI, FOP, fop): New.
19503 (<fop><F:mode>3): New ALU instruction definition.
19504 (float<fi><F:mode>2): New conversion instruction definition.
19505 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19506 (fpcmpcc): New code iterator.
19507 (*sf_fp_insn): New instruction definition.
19508 (cstore<F:mode>4): New expand definition.
19509 (cbranch<F:mode>4): New expand definition.
19510 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19511 munordered-float): New options.
19512 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19513 munordered-float.
19514
19515 2019-07-22 Stafford Horne <shorne@gmail.com>
19516
19517 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19518 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19519 documenation to be more clear.
19520 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19521 more clear.
19522 * config/or1k/or1k.opt (mrori): New option.
19523 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19524 msfimm, mshftimm): Rewrite documentation to be more clear.
19525 * config/or1k/or1k.md (insn_support): Add ror and rori.
19526 (enabled): Add conditions for ror and rori.
19527 (rotrsi3): Replace condition for shftimm with ror and rori.
19528
19529 2019-07-22 Stafford Horne <shorne@gmail.com>
19530
19531 PR target/90363
19532 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19533 (extend<mode>si2): Update predicate.
19534 * config/or1k/predicates.md (volatile_mem_operand): New.
19535 (reg_or_mem_operand): New.
19536
19537 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19538
19539 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19540 * config/rs6000/rs6000-call.c: ... to here.
19541
19542 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19543
19544 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19545 memory.
19546
19547 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19548
19549 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19550
19551 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19552
19553 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19554
19555 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19556
19557 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19558 (any_memory_operand): New predicate.
19559 (reg_or_mem_operand): Use it.
19560
19561 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19562
19563 PR target/91204
19564 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19565
19566 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19567
19568 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19569 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19570
19571 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19572
19573 * tree.def (OMP_LOOP): New tree code.
19574 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19575 (enum omp_clause_bind_kind): New enum.
19576 (struct tree_omp_clause): Add subcode.bind_kind.
19577 * tree.h (OMP_LOOP_CHECK): Rename to ...
19578 (OMP_LOOPING_CHECK): ... this.
19579 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19580 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19581 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19582 (OMP_CLAUSE_BIND_KIND): Define.
19583 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19584 bind clause entries.
19585 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19586 * tree-pretty-print.c (dump_omp_clause): Likewise.
19587 (dump_generic_node): Handle OMP_LOOP.
19588 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19589 (in_omp_construct): New variable.
19590 (is_gimple_stmt): Handle OMP_LOOP.
19591 (gimplify_scan_omp_clauses): For lastprivate don't set
19592 check_non_private if code == OMP_LOOP. For reduction clause
19593 on OMP_LOOP combined with parallel or teams propagate as shared
19594 on the combined construct. Handle OMP_CLAUSE_BIND.
19595 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19596 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19597 for constructs from a loop construct to gimplify_scan_omp_clauses.
19598 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19599 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19600 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19601 to match the implicit ORT_TARGET construct around whole body.
19602 Temporarily clear in_omp_construct when processing body.
19603 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19604 etc. temporarily set in_omp_construct when processing body.
19605 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19606 * omp-low.c (struct omp_context): Add loop_p.
19607 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19608 in that the original var might be private.
19609 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19610 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19611 addition of loop construct.
19612 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19613
19614 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19615 lastprivate non-addressable iterator of a collapse(1) simd.
19616
19617 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19618
19619 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19620 as in rs6000.c.
19621
19622 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19623
19624 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19625 refer to default conditions. Warn for the 'y' spec which is ignored
19626 by current linkers.
19627
19628 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19629
19630 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19631 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19632 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19633 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19634 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19635 init_cumulative_args, rs6000_promote_function_mode,
19636 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19637 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19638 rs6000_function_arg_boundary, rs6000_parm_offset,
19639 rs6000_parm_start, rs6000_arg_size,
19640 rs6000_darwin64_record_arg_advance_flush,
19641 rs6000_darwin64_record_arg_advance_recurse,
19642 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19643 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19644 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19645 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19646 rs6000_finish_function_arg, rs6000_function_arg,
19647 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19648 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19649 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19650 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19651 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19652 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19653 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19654 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19655 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19656 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19657 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19658 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19659 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19660 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19661 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19662 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19663 get_element_number, altivec_expand_vec_set_builtin,
19664 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19665 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19666 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19667 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19668 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19669 rs6000_expand_builtin, rs6000_vector_type,
19670 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19671 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19672 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19673 to rs6000-call.c.
19674 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19675 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19676 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19677 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19678 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19679 init_cumulative_args, rs6000_promote_function_mode,
19680 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19681 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19682 rs6000_function_arg_boundary, rs6000_parm_offset,
19683 rs6000_parm_start, rs6000_arg_size,
19684 rs6000_darwin64_record_arg_advance_flush,
19685 rs6000_darwin64_record_arg_advance_recurse,
19686 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19687 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19688 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19689 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19690 rs6000_finish_function_arg, rs6000_function_arg,
19691 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19692 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19693 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19694 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19695 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19696 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19697 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19698 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19699 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19700 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19701 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19702 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19703 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19704 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19705 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19706 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19707 get_element_number, altivec_expand_vec_set_builtin,
19708 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19709 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19710 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19711 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19712 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19713 rs6000_expand_builtin, rs6000_vector_type,
19714 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19715 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19716 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19717 to here from rs6000.c.
19718 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19719 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19720 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19721 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19722 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19723 rs6000_return_in_memory, rs6000_return_in_msb,
19724 rs6000_pass_by_reference, setup_incoming_varargs,
19725 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19726 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19727 rs6000_function_arg_padding, rs6000_function_arg,
19728 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19729 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19730 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19731 rs6000_passes_long_double, rs6000_passes_vector,
19732 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19733 altivec_builtin_mask_for_load) Add declarations.
19734 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19735 * config/config.gcc: Add new source file rs6000-call.c to garbage
19736 collector and extra_objs.
19737
19738 2019-07-19 Jeff Law <law@redhat.com>
19739
19740 PR tree-optimization/86061
19741 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19742 strncpy. Drop some trivial dead code.
19743 (maybe_trim_memstar_call): Handle strncpy.
19744
19745 2019-07-19 Richard Biener <rguenther@suse.de>
19746
19747 PR tree-optimization/91211
19748 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19749 memset encoding size.
19750
19751 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19752
19753 PR target/91204
19754 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19755
19756 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19757
19758 PR ipa/91194
19759 * ipa-inline.c (recursive_inlining): Fix limits check.
19760
19761 2019-07-19 Richard Biener <rguenther@suse.de>
19762
19763 PR tree-optimization/91200
19764 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19765 no PHI nodes in middle-bb.
19766
19767 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19768
19769 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19770 to +sve-bitperm.
19771 * config/aarch64/aarch64-option-extensions.def: Likewise.
19772
19773 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19774
19775 PR middle-end/91190
19776 * function.c (insert_temp_slot_address): Store into the hash table
19777 a copy of address to avoid RTL sharing issues.
19778
19779 2019-07-19 Richard Biener <rguenther@suse.de>
19780
19781 PR tree-optimization/91207
19782 Revert
19783 2019-07-17 Richard Biener <rguenther@suse.de>
19784
19785 PR tree-optimization/91178
19786 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19787 loads with a gap larger than the vector size always use
19788 VMAT_STRIDED_SLP.
19789 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19790 avoid loading vectors that are only contained in the gap
19791 and thus are not needed.
19792
19793 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19794
19795 * config/i386/i386.md (*addqi_2_slp): Remove.
19796 (*<code>qi_2_slp): Ditto.
19797
19798 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19799
19800 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19801 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19802 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19803 Rename function from rs6000_prefixed_address.
19804 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19805 TARGET_HAS_TOC.
19806 (TARGET_TOC): Likewise.
19807 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19808 rs6000.h.
19809 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19810 TARGET_HAS_TOC.
19811 (TARGET_TOC): Likewise.
19812 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19813 rs6000.h.
19814 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19815 TARGET_HAS_TOC.
19816 (TARGET_TOC): Likewise.
19817 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19818 check to require -mcmodel=medium for pc-relative addressing.
19819 (create_TOC_reference): Add assertion for TARGET_TOC.
19820 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19821 TARGET_NO_TOC.
19822 (rs6000_emit_move): Likewise.
19823 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19824 to 'TOC_alias_set'.
19825 (get_TOC_alias_set): Likewise.
19826 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19827 TARGET_NO_TOC.
19828 (rs6000_can_eliminate): Likewise.
19829 (rs6000_prefixed_address_mode_p): Rename function from
19830 rs6000_prefixed_address.
19831 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19832 TARGET_HAS_TOC and not pc-relative.
19833 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19834 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19835 TARGET_HAS_TOC.
19836 (TARGET_TOC): Likewise.
19837 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19838 rs6000.h.
19839
19840 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19841
19842 PR target/91188
19843 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19844 for operand 0. Do not use (match_dup) to match operand 1 with
19845 operand 0. Add check in insn constraint that either input operand
19846 matches operand 0. Use SWI12 mode iterator to also handle
19847 HImode operands.
19848 (*and<mode>_1_slp): Ditto.
19849 (*<code>qi_1_slp): Ditto.
19850 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19851 Do not use (match_dup) to match operand 1 with operand 0. Add
19852 check in insn constraint that operand 1 matches operand 0.
19853 Use SWI12 mode iterator to also handle HImode operands.
19854 (*ashl<mode>3_1_slp): Ditto.
19855 (*<shift_insn><mode>3_1_slp): Ditto.
19856 (*<rotate_insn><mode>3_1_slp): Ditto.
19857
19858 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19859
19860 * config/arm/arm-builtins.c
19861 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19862 (arm_expand_unop_builtin): Likewise.
19863 * config/arm/crypto.md
19864 (crypto_sha1h): Convert from define_insn to define_expand.
19865 (crypto_<crypto_pattern>): Likewise.
19866 (crypto_sha1h_lb): New define_insn.
19867 (crypto_<crypto_pattern>_lb): Likewise.
19868
19869 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19870
19871 PR target/90317
19872 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19873 (vsha1cq_u32): Likewise.
19874 (vsha1pq_u32): Likewise.
19875 (vsha1mq_u32): Likewise.
19876 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19877 vec select.
19878 (crypto_sha1c): Correct vec select.
19879 (crypto_sha1m): Likewise.
19880 (crypto_sha1p): Likewise.
19881
19882 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19883
19884 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19885 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19886 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19887 (subdi_zesidi_zesidi): Likewise.
19888 (negdi2_compare, negdi2_insn): Likewise.
19889 (negdi_extensidi): Likewise.
19890 (negdi_zero_extendsidi): Likewise.
19891 (arm_cmpdi_insn): Likewise.
19892 (subsi3_carryin): Use arm_borrow_operation.
19893 (subsi3_carryin_const): Likewise.
19894 (subsi3_carryin_const0): Likewise.
19895 (subsi3_carryin_compare): Likewise.
19896 (subsi3_carryin_compare_const): Likewise.
19897 (subsi3_carryin_compare_const0): Likewise.
19898 (subsi3_carryin_shift): Likewise.
19899 (rsbsi3_carryin_shift): Likewise.
19900 (negsi2_carryin_compare): Likewise.
19901
19902 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19903
19904 PR tree-optimization/91137
19905 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19906 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19907 Init, use and fini the above new field.
19908 (determine_base_object_1): New function.
19909 (determine_base_object): Reimplement using walk_tree.
19910
19911 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19912
19913 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19914 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19915 CLEANUP_FORCE_FAST_DCE is set.
19916 * ifcvt.c (rest_of_handle_if_conversion): Pass
19917 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19918 if-conversion succeeded.
19919
19920 2019-07-18 Richard Biener <rguenther@suse.de>
19921
19922 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19923 branches to make code less indented.
19924
19925 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19926
19927 PR middle-end/81824
19928 * attribs.c (decls_mismatched_attributes): Simplify the logic
19929 that avoids duplicates and false positives.
19930
19931 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19932
19933 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19934 data into data section when generating PIC code.
19935 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19936 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19937 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19938 return 2 for SOM and 0 for other targets.
19939
19940 2019-07-17 Jeff Law <law@redhat.com>
19941
19942 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19943 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19944 avoid unexpected switch statement fallthru.
19945
19946 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19947
19948 * config/i386/i386.md (*add<dwi>3_doubleword):
19949 Remove redundant constraints.
19950 (*add<mode>_1): Ditto.
19951 (*addhi_1): Ditto.
19952 (*addqi_1): Ditto.
19953 (*addqi_1_slp): Ditto.
19954 (*add<mode>_2): Ditto.
19955 (*addv<mode>4): Ditto.
19956 (*sub<dwi>3_doubleword): Ditto.
19957 (*sub<mode>_1): Ditto.
19958 (*subqi_1_slp): Ditto.
19959 (*sub<mode>_2): Ditto.
19960 (*subv<mode>4): Ditto.
19961 (*sub<mode>_3): Ditto.
19962 (@add<mode>3_carry): Ditto.
19963 (@sub<mode>3_carry): Ditto.
19964 (*add<mode>3_cc_overflow_1): Ditto.
19965 (*add<mode>3_zext_cc_overflow_2): Ditto.
19966 (*anddi_1): Ditto.
19967 (*and<mode>_1): Ditto.
19968 (*andqi_1): Ditto.
19969 (*andqi_1_slp): Ditto.
19970 (*anddi_2): Ditto.
19971 (*andqi_2_maybe_si): Ditto.
19972 (*and<mode>_2): Ditto.
19973 (*andqi_2_slp): Ditto.
19974 (*<code><mode>_1): Ditto.
19975 (*<code>qi_1): Ditto.
19976 (*<code>qi_1_slp): Ditto.
19977 (*<code><mode>_2): Ditto.
19978 (*<code>qi_2_slp): Ditto.
19979
19980 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19981
19982 * alias.c (record_component_aliases): Do not simplify pointed-to
19983 types of ODR types.
19984
19985 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19986
19987 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19988 partial reg stall on alternative 2.
19989
19990 2019-07-17 Richard Biener <rguenther@suse.de>
19991
19992 PR tree-optimization/91178
19993 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19994 lower SSA names to avoid quadratic behavior in the common case.
19995 * tree-data-ref.c (split_constant_offset): Add limit argument
19996 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19997 (split_constant_offset_1): Add limit argument and use it to
19998 limit SSA def walking. Optimize the common plus/minus case.
19999
20000 2019-07-17 Richard Biener <rguenther@suse.de>
20001
20002 PR tree-optimization/91178
20003 * tree-vect-stmts.c (get_group_load_store_type): For SLP
20004 loads with a gap larger than the vector size always use
20005 VMAT_STRIDED_SLP.
20006 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
20007 avoid loading vectors that are only contained in the gap
20008 and thus are not needed.
20009
20010 2019-07-17 Richard Biener <rguenther@suse.de>
20011
20012 PR tree-optimization/91180
20013 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
20014 computation for memset partial defs.
20015
20016 2019-07-17 Jakub Jelinek <jakub@redhat.com>
20017
20018 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
20019 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
20020 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
20021 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
20022 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
20023 * omp-grid.c (grid_process_grid_body,
20024 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
20025 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
20026 == GF_OMP_FOR_KIND_SIMD.
20027 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
20028 check_omp_nesting_restrictions, scan_omp_1_stmt,
20029 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
20030 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
20031 omp_find_scan): Likewise.
20032 * omp-expand.c (expand_omp_for): Likewise.
20033 * omp-general.c (omp_extract_for_data): Likewise.
20034
20035 PR tree-optimization/91157
20036 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
20037 a vector boolean with scalar mode.
20038 (expand_vector_condition): Handle first operand being a vector boolean
20039 with scalar mode.
20040 (expand_vector_operations_1): For comparisons, don't bail out early
20041 if the return type is vector boolean with scalar mode, but comparison
20042 operand type is not.
20043
20044 2019-07-17 Richard Biener <rguenther@suse.de>
20045
20046 PR tree-optimization/91181
20047 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
20048 IFN_LOADs as calls.
20049
20050 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
20051
20052 * config/i386/i386.md (*testdi_1): Match CCZmode for
20053 constants that might have the SImode sign bit set.
20054 (*testqi_1_maybe_si): Remove "!" constraint modifier.
20055 Use correct constraints for pentium pairing.
20056 (*test<mode>_1): Ditto.
20057
20058 2019-07-16 Jeff Law <law@redhat.com>
20059
20060 PR rtl-optimization/91173
20061 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
20062 SSA_NAME with a constant value, fold its value into the offset
20063 and clear the base before calling gen_addr_rtx.
20064
20065 2019-07-16 Jakub Jelinek <jakub@redhat.com>
20066
20067 PR rtl-optimization/91164
20068 * dse.c (rest_of_handle_dse): If dead edges have been purged,
20069 invalidate dominance info.
20070
20071 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20072
20073 * read-md.h (md_reader::record_potential_iterator_use): Add a
20074 file_location parameter.
20075 * read-rtl.c (attribute_use::loc): New field.
20076 (map_attr_string): Take a file_location parameter. Report cases
20077 in which attributes map to multiple distinct values.
20078 (apply_attribute_uses): Update call accordingly.
20079 (md_reader::handle_overloaded_name): Likewise.
20080 (md_reader::apply_iterator_to_string): Likewise. Skip empty
20081 nonnull strings.
20082 (record_attribute_use): Take a file_location parameter.
20083 Initialize attribute_use::loc.
20084 (md_reader::record_potential_iterator_use): Take a file_location
20085 parameter. Update call to record_attribute_use.
20086 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
20087 (rtx_reader::read_rtx_code): Likewise.
20088 (rtx_reader::read_rtx_operand): Likewise. Record a location
20089 for implicitly-expanded empty strings.
20090
20091 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20092
20093 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
20094 Use file_location instead of separate fields.
20095 (md_reader::set_md_ptr_loc): Take a file_location instead of a
20096 separate filename and line number.
20097 * read-md.c (ptr_loc): As above.
20098 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
20099 (md_reader::fprint_md_ptr_loc): Likewise.
20100 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
20101 instead of a separate filename and line number.
20102 (md_reader::read_string): Update call accordingly.
20103
20104 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20105
20106 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
20107 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
20108 leaving the choice between SFDF and P implicit.
20109 (*mov<mode>_update2): Likewise.
20110 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
20111 rather than leaving the choice betweem IBM128 and GPR implicit.
20112 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
20113 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
20114 QHSI implicit.
20115 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
20116 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
20117 * config/rs6000/vsx.md
20118 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
20119 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
20120 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
20121 and VSX_EXTRACT_I implicit.
20122
20123 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
20124
20125 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
20126 Explicitly use <MOVEP1:MODE> for the mode attribute.
20127
20128 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
20129
20130 PR bootstrap/91176
20131 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
20132
20133 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
20134
20135 PR target/91050
20136 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20137 .machine directive.
20138
20139 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
20140
20141 * config/i386/i386.md (@test<mode>_ccno_1):
20142 Rename from test<mode>_ccno_1.
20143 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
20144 (*testqi_1_maybe_si): Remove modrm attribute.
20145 (*test<mode>_1): Ditto.
20146 * config/i386/i386-expand.c (ix86_split_idivmod): Use
20147 gen_test_ccno_1 and gen_extend_insn.
20148
20149 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
20150
20151 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20152 to 0.
20153
20154 2019-07-15 Richard Biener <rguenther@suse.de>
20155
20156 PR middle-end/91162
20157 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20158 node make sure to replace all uses with something valid.
20159
20160 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20161
20162 PR tree-optimization/88497
20163 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20164 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20165 function undistribute_bitref_for_vector.
20166 (undistribute_bitref_for_vector): New function.
20167 (cleanup_vinfo_map): Likewise.
20168 (sort_by_mach_mode): Likewise.
20169
20170 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20171
20172 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20173 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20174 and testdi_ccno_1 using SWI48 mode attribute.
20175 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20176 x86_64_szext_general_operand.
20177 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20178 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20179 instead of genera_operand mode attribute.
20180
20181 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20182
20183 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20184 fopen and fclose to their respective types.
20185 (DotFn.invoke): Ditto.
20186
20187 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20188
20189 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20190 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20191 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20192 (array_index_predicate): Remove.
20193 (analyze_function_body): Account cost for variable ofsetted array
20194 indexing.
20195 (estimate_node_size_and_time): Do not compute array index hint.
20196 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20197 (inline_read_section): Do not read array index hint.
20198 (ipa_fn_summary_write): Do not write array index hint.
20199 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20200 * ipa-cp.c (hint_time_bonus): Remove.
20201 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20202 (ipa_fnsummary): Remove array_index.
20203 * ipa-inline.c (want_inline_small_function_p): Do not use
20204 array_index.
20205 (edge_badness): Likewise.
20206 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20207
20208 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20209
20210 PR target/91148
20211 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20212 superfluous "builtin function" phrasing.
20213
20214 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20215
20216 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20217 Break out from ...
20218 (aliasing_component_refs_walk): Break out from ...
20219 (aliasing_component_refs_p): ... here.
20220
20221 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20222
20223 PR target/91148
20224 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20225 "builtin function" phrasing.
20226
20227 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20228
20229 PR target/90723
20230 * recog.h (temporary_volatile_ok): New class.
20231 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20232 volatile_ok temporarily to true using temporary_volatile_ok.
20233 * expr.c (emit_block_move_via_cpymem): Likewise.
20234 * optabs.c (maybe_legitimize_operand): Likewise.
20235
20236 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20237
20238 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20239 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20240 uses inside of order(concurrent) constructs.
20241 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20242 OMP_CLAUSE_ORDER is seen.
20243 * omp-low.c (struct omp_context): Add order_concurrent member.
20244 (scan_sharing_clauses): Set ctx->order_concurrent if
20245 OMP_CLAUSE_ORDER is seen.
20246 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20247 of simd order(concurrent). Diagnose constructs not allowed inside of
20248 for order(concurrent).
20249 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20250 complaining about static double setjmp (double); or class static
20251 methods or non-global namespace setjmps.
20252 (omp_runtime_api_call): New function.
20253 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20254 order(concurrent) loops.
20255
20256 2019-07-12 Martin Sebor <msebor@redhat.com>
20257
20258 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20259 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20260 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20261 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20262
20263 2019-07-12 Jan Hubicka <jh@suse.cz>
20264
20265 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20266 (indirect_refs_may_alias_p): ... here.
20267 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20268 mem refs in the access paths.
20269
20270 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20271
20272 PR tree-optimization/89430
20273 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20274 store elimination for local variable without address escape.
20275
20276 2019-07-12 Jeff Law <law@redhat.com>
20277
20278 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20279 for the ".far" section.
20280
20281 2019-07-12 Richard Biener <rguenther@suse.de>
20282
20283 PR tree-optimization/91145
20284 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20285 chain check.
20286
20287 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20288
20289 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20290 rather than this_state as the lowering context for the ELSE
20291 seq in a GIMPLE_EH_ELSE.
20292
20293 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20294
20295 * vector-builder.h (vector_builder::elt): Allow already-supplied
20296 elements to be read back before building is complete.
20297
20298 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20299
20300 PR rtl-optimization/91136
20301 * df-core.c (ACCESSING REFS): Fix typos in comment.
20302 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20303 the beginning of the block to the initial set of live registers.
20304
20305 2019-07-12 Richard Biener <rguenther@suse.de>
20306
20307 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20308 * fold-const.c (get_array_ctor_element_at_index): Add
20309 ctor_idx output parameter informing the caller where in
20310 the constructor the element was (not) found. Add early exit
20311 for when the ctor is sorted.
20312 * gimple-fold.c (fold_array_ctor_reference): Support constant
20313 folding across multiple array elements.
20314
20315 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20316
20317 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20318 doesn't have location, set the current location to the function's end.
20319
20320 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20321
20322 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20323 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20324 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20325 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20326 * config/aarch64/aarch64-simd.md
20327 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20328 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20329 * config/aarch64/aarch64-sve.md
20330 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20331 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20332
20333 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20334
20335 * doc/md.texi: Document that @ patterns can have different
20336 numbers of operands.
20337 * genemit.c (handle_overloaded_gen): Handle this case.
20338 * genopinit.c (handle_overloaded_gen): Likewise.
20339 * gensupport.c (replace_operands_with_dups): Iterate over
20340 the new rtx's format rather than the old one's.
20341
20342 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20343
20344 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20345 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20346 order clause entries.
20347 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20348 * tree-pretty-print.c (dump_omp_clause): Likewise.
20349 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20350 Likewise.
20351 * omp-low.c (scan_sharing_clauses): Likewise.
20352 * tree-nested.c (convert_nonlocal_omp_clauses,
20353 convert_local_omp_clauses): Likewise.
20354
20355 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20356
20357 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20358 fallthrough target of current basic block isn't the placed
20359 right next.
20360
20361 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20362
20363 PR target/90980
20364 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20365 (_mm512_storeu_epi64): Likewise.
20366 (_mm512_loadu_epi32): Likewise.
20367 (_mm512_storeu_epi32): Likewise.
20368 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20369 (_mm_storeu_epi64): Likewise.
20370 (_mm256_storeu_epi32): Likewise.
20371 (_mm_storeu_epi32): Likewise.
20372
20373 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20374
20375 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20376
20377 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20378
20379 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20380 Handle Modula-2.
20381
20382 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20383
20384 PR target/91124
20385 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20386 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20387 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20388 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20389 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20390 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20391 define_insns.
20392 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20393 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20394 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20395 define_insns.
20396 (sse2_cvttpd2dq<mask_name>): Change into ...
20397 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20398 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20399 (*sse2_cvtpd2dq<mask_name>): Change into ...
20400 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20401 Add "C" constraint to const0_operand.
20402 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20403 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20404 changes.
20405
20406 PR target/91124
20407 * config/i386/i386-builtin-types.def
20408 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20409 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20410 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20411 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20412 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20413 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20414 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20415 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20416 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20417 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20418 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20419 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20420 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20421 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20422 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20423 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20424 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20425 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20426 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20427 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20428 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20429 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20430 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20431 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20432 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20433 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20434 __builtin_ia32_vpdpbusd_v4si_maskz,
20435 __builtin_ia32_vpdpbusds_v16si_mask,
20436 __builtin_ia32_vpdpbusds_v16si_maskz,
20437 __builtin_ia32_vpdpbusds_v8si_mask,
20438 __builtin_ia32_vpdpbusds_v8si_maskz,
20439 __builtin_ia32_vpdpbusds_v4si_mask,
20440 __builtin_ia32_vpdpbusds_v4si_maskz,
20441 __builtin_ia32_vpdpwssd_v16si_mask,
20442 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20443 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20444 __builtin_ia32_vpdpwssd_v4si_maskz,
20445 __builtin_ia32_vpdpwssds_v16si_mask,
20446 __builtin_ia32_vpdpwssds_v16si_maskz,
20447 __builtin_ia32_vpdpwssds_v8si_mask,
20448 __builtin_ia32_vpdpwssds_v8si_maskz,
20449 __builtin_ia32_vpdpwssds_v4si_mask,
20450 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20451 suffixed types rather than *_INT.
20452 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20453 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20454 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20455 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20456 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20457 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20458
20459 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20460
20461 * tree-vrp.c (intersect_ranges): If we know the intersection is
20462 empty, there is no need to conservatively add anything else to
20463 the set.
20464
20465 2019-07-11 Richard Biener <rguenther@suse.de>
20466
20467 PR middle-end/91131
20468 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20469 when the object is volatile and we have not cleared it even though
20470 there are no nonzero elements.
20471
20472 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20473
20474 * config/rs6000/predicates.md (cint34_operand): Update
20475 SIGNED_34BIT_OFFSET_P call.
20476 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20477 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20478 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20479 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20480 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20481 argument.
20482 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20483 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20484 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20485 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20486 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20487
20488 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20489
20490 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20491 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20492 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20493 (DEF_MIN_OSX_VERSION): New.
20494
20495 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20496
20497 * fold-const.c (fold_relational_const): Fix folding of
20498 vector-to-scalar NE_EXPRs.
20499 (test_vector_folding): Add more tests.
20500
20501 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20502
20503 PR target/91060
20504 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20505 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20506 (vec_setv2di_internal): Reexpress as...
20507 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20508 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20509 rather than gen_neon_vset_lane<mode>.
20510
20511 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20512
20513 PR target/91102
20514 * lra-constraints.c (process_alt_operands): Don't match user
20515 defined regs only if they are early clobbers.
20516
20517 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20518
20519 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20520
20521 2019-07-10 Richard Biener <rguenther@suse.de>
20522
20523 PR tree-optimization/91126
20524 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20525 native encoding offset for BYTES_BIG_ENDIAN.
20526 (vn_reference_lookup_3): Likewise.
20527
20528 2019-07-10 Richard Biener <rguenther@suse.de>
20529
20530 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20531 LHS whenever possible.
20532
20533 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20534
20535 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20536 from ...; work also on duplicated types.
20537 (nonoverlapping_component_refs_since_match): ... here
20538 (ncr_type_uid): Break out from ...
20539 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20540 available.
20541 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20542 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20543
20544 2019-07-09 Martin Sebor <msebor@redhat.com>
20545
20546 PR tree-optimization/90989
20547 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20548 optimization to just single character stores.
20549
20550 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20551
20552 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20553 Swap operands only once.
20554
20555 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20556
20557 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20558 for both call instructions.
20559
20560 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20561
20562 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20563 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20564
20565 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20566
20567 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20568 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20569 function from rs6000-logue.c back to rs6000.c.
20570 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20571
20572 2019-07-09 Martin Sebor <msebor@redhat.com>
20573
20574 PR c++/61339
20575 * auto-profile.c: Change class-key of PODs to struct and others
20576 to class.
20577 * basic-block.h: Same.
20578 * bitmap.c (bitmap_alloc): Same.
20579 * bitmap.h: Same.
20580 * builtins.c (expand_builtin_prefetch): Same.
20581 (expand_builtin_interclass_mathfn): Same.
20582 (expand_builtin_strlen): Same.
20583 (expand_builtin_mempcpy_args): Same.
20584 (expand_cmpstr): Same.
20585 (expand_builtin___clear_cache): Same.
20586 (expand_ifn_atomic_bit_test_and): Same.
20587 (expand_builtin_thread_pointer): Same.
20588 (expand_builtin_set_thread_pointer): Same.
20589 * caller-save.c (setup_save_areas): Same.
20590 (replace_reg_with_saved_mem): Same.
20591 (insert_restore): Same.
20592 (insert_save): Same.
20593 (add_used_regs): Same.
20594 * cfg.c (get_bb_copy): Same.
20595 (set_loop_copy): Same.
20596 * cfg.h: Same.
20597 * cfganal.h: Same.
20598 * cfgexpand.c (alloc_stack_frame_space): Same.
20599 (add_stack_var): Same.
20600 (add_stack_var_conflict): Same.
20601 (add_scope_conflicts_1): Same.
20602 (update_alias_info_with_stack_vars): Same.
20603 (expand_used_vars): Same.
20604 * cfghooks.c (redirect_edge_and_branch_force): Same.
20605 (delete_basic_block): Same.
20606 (split_edge): Same.
20607 (make_forwarder_block): Same.
20608 (force_nonfallthru): Same.
20609 (duplicate_block): Same.
20610 (lv_flush_pending_stmts): Same.
20611 * cfghooks.h: Same.
20612 * cfgloop.c (flow_loops_cfg_dump): Same.
20613 (flow_loop_nested_p): Same.
20614 (superloop_at_depth): Same.
20615 (get_loop_latch_edges): Same.
20616 (flow_loop_dump): Same.
20617 (flow_loops_dump): Same.
20618 (flow_loops_free): Same.
20619 (flow_loop_nodes_find): Same.
20620 (establish_preds): Same.
20621 (flow_loop_tree_node_add): Same.
20622 (flow_loop_tree_node_remove): Same.
20623 (flow_loops_find): Same.
20624 (find_subloop_latch_edge_by_profile): Same.
20625 (find_subloop_latch_edge_by_ivs): Same.
20626 (mfb_redirect_edges_in_set): Same.
20627 (form_subloop): Same.
20628 (merge_latch_edges): Same.
20629 (disambiguate_multiple_latches): Same.
20630 (disambiguate_loops_with_multiple_latches): Same.
20631 (flow_bb_inside_loop_p): Same.
20632 (glb_enum_p): Same.
20633 (get_loop_body_with_size): Same.
20634 (get_loop_body): Same.
20635 (fill_sons_in_loop): Same.
20636 (get_loop_body_in_dom_order): Same.
20637 (get_loop_body_in_custom_order): Same.
20638 (release_recorded_exits): Same.
20639 (get_loop_exit_edges): Same.
20640 (num_loop_branches): Same.
20641 (remove_bb_from_loops): Same.
20642 (find_common_loop): Same.
20643 (delete_loop): Same.
20644 (cancel_loop): Same.
20645 (verify_loop_structure): Same.
20646 (loop_preheader_edge): Same.
20647 (loop_exit_edge_p): Same.
20648 (single_exit): Same.
20649 (loop_exits_to_bb_p): Same.
20650 (loop_exits_from_bb_p): Same.
20651 (get_loop_location): Same.
20652 (record_niter_bound): Same.
20653 (get_estimated_loop_iterations_int): Same.
20654 (max_stmt_executions_int): Same.
20655 (likely_max_stmt_executions_int): Same.
20656 (get_estimated_loop_iterations): Same.
20657 (get_max_loop_iterations): Same.
20658 (get_max_loop_iterations_int): Same.
20659 (get_likely_max_loop_iterations): Same.
20660 * cfgloop.h (simple_loop_desc): Same.
20661 (get_loop): Same.
20662 (loop_depth): Same.
20663 (loop_outer): Same.
20664 (loop_iterator::next): Same.
20665 (loop_outermost): Same.
20666 * cfgloopanal.c (mark_irreducible_loops): Same.
20667 (num_loop_insns): Same.
20668 (average_num_loop_insns): Same.
20669 (expected_loop_iterations_unbounded): Same.
20670 (expected_loop_iterations): Same.
20671 (mark_loop_exit_edges): Same.
20672 (single_likely_exit): Same.
20673 * cfgloopmanip.c (fix_bb_placement): Same.
20674 (fix_bb_placements): Same.
20675 (remove_path): Same.
20676 (place_new_loop): Same.
20677 (add_loop): Same.
20678 (scale_loop_frequencies): Same.
20679 (scale_loop_profile): Same.
20680 (create_empty_if_region_on_edge): Same.
20681 (create_empty_loop_on_edge): Same.
20682 (loopify): Same.
20683 (unloop): Same.
20684 (fix_loop_placements): Same.
20685 (copy_loop_info): Same.
20686 (duplicate_loop): Same.
20687 (duplicate_subloops): Same.
20688 (loop_redirect_edge): Same.
20689 (can_duplicate_loop_p): Same.
20690 (duplicate_loop_to_header_edge): Same.
20691 (mfb_keep_just): Same.
20692 (has_preds_from_loop): Same.
20693 (create_preheader): Same.
20694 (create_preheaders): Same.
20695 (lv_adjust_loop_entry_edge): Same.
20696 (loop_version): Same.
20697 * cfgloopmanip.h: Same.
20698 * cgraph.h: Same.
20699 * cgraphbuild.c: Same.
20700 * combine.c (make_extraction): Same.
20701 * config/i386/i386-features.c: Same.
20702 * config/i386/i386-features.h: Same.
20703 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20704 (ix86_emit_outlined_ms2sysv_restore): Same.
20705 (ix86_noce_conversion_profitable_p): Same.
20706 (ix86_init_cost): Same.
20707 (ix86_simd_clone_usable): Same.
20708 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20709 Wstruct-not-pod.
20710 * coretypes.h: Same.
20711 * data-streamer-in.c (string_for_index): Change class-key of PODs
20712 to struct and others to class.
20713 (streamer_read_indexed_string): Same.
20714 (streamer_read_string): Same.
20715 (bp_unpack_indexed_string): Same.
20716 (bp_unpack_string): Same.
20717 (streamer_read_uhwi): Same.
20718 (streamer_read_hwi): Same.
20719 (streamer_read_gcov_count): Same.
20720 (streamer_read_wide_int): Same.
20721 * data-streamer.h (streamer_write_bitpack): Same.
20722 (bp_unpack_value): Same.
20723 (streamer_write_char_stream): Same.
20724 (streamer_write_hwi_in_range): Same.
20725 (streamer_write_record_start): Same.
20726 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20727 (add_cross_iteration_register_deps): Same.
20728 (build_intra_loop_deps): Same.
20729 * df-core.c (df_analyze): Same.
20730 (loop_post_order_compute): Same.
20731 (loop_inverted_post_order_compute): Same.
20732 * df-problems.c (df_rd_alloc): Same.
20733 (df_rd_simulate_one_insn): Same.
20734 (df_rd_local_compute): Same.
20735 (df_rd_init_solution): Same.
20736 (df_rd_confluence_n): Same.
20737 (df_rd_transfer_function): Same.
20738 (df_rd_free): Same.
20739 (df_rd_dump_defs_set): Same.
20740 (df_rd_top_dump): Same.
20741 (df_lr_alloc): Same.
20742 (df_lr_reset): Same.
20743 (df_lr_local_compute): Same.
20744 (df_lr_init): Same.
20745 (df_lr_confluence_n): Same.
20746 (df_lr_free): Same.
20747 (df_lr_top_dump): Same.
20748 (df_lr_verify_transfer_functions): Same.
20749 (df_live_alloc): Same.
20750 (df_live_reset): Same.
20751 (df_live_init): Same.
20752 (df_live_confluence_n): Same.
20753 (df_live_finalize): Same.
20754 (df_live_free): Same.
20755 (df_live_top_dump): Same.
20756 (df_live_verify_transfer_functions): Same.
20757 (df_mir_alloc): Same.
20758 (df_mir_reset): Same.
20759 (df_mir_init): Same.
20760 (df_mir_confluence_n): Same.
20761 (df_mir_free): Same.
20762 (df_mir_top_dump): Same.
20763 (df_word_lr_alloc): Same.
20764 (df_word_lr_reset): Same.
20765 (df_word_lr_init): Same.
20766 (df_word_lr_confluence_n): Same.
20767 (df_word_lr_free): Same.
20768 (df_word_lr_top_dump): Same.
20769 (df_md_alloc): Same.
20770 (df_md_simulate_one_insn): Same.
20771 (df_md_reset): Same.
20772 (df_md_init): Same.
20773 (df_md_free): Same.
20774 (df_md_top_dump): Same.
20775 * df-scan.c (df_insn_delete): Same.
20776 (df_insn_rescan): Same.
20777 (df_notes_rescan): Same.
20778 (df_sort_and_compress_mws): Same.
20779 (df_install_mws): Same.
20780 (df_refs_add_to_chains): Same.
20781 (df_ref_create_structure): Same.
20782 (df_ref_record): Same.
20783 (df_def_record_1): Same.
20784 (df_find_hard_reg_defs): Same.
20785 (df_uses_record): Same.
20786 (df_get_conditional_uses): Same.
20787 (df_get_call_refs): Same.
20788 (df_recompute_luids): Same.
20789 (df_get_entry_block_def_set): Same.
20790 (df_entry_block_defs_collect): Same.
20791 (df_get_exit_block_use_set): Same.
20792 (df_exit_block_uses_collect): Same.
20793 (df_mws_verify): Same.
20794 (df_bb_verify): Same.
20795 * df.h (df_scan_get_bb_info): Same.
20796 * doc/tm.texi: Same.
20797 * dse.c (record_store): Same.
20798 * dumpfile.h: Same.
20799 * emit-rtl.c (const_fixed_hasher::equal): Same.
20800 (set_mem_attributes_minus_bitpos): Same.
20801 (change_address): Same.
20802 (adjust_address_1): Same.
20803 (offset_address): Same.
20804 * emit-rtl.h: Same.
20805 * except.c (dw2_build_landing_pads): Same.
20806 (sjlj_emit_dispatch_table): Same.
20807 * explow.c (allocate_dynamic_stack_space): Same.
20808 (emit_stack_probe): Same.
20809 (probe_stack_range): Same.
20810 * expmed.c (store_bit_field_using_insv): Same.
20811 (store_bit_field_1): Same.
20812 (store_integral_bit_field): Same.
20813 (extract_bit_field_using_extv): Same.
20814 (extract_bit_field_1): Same.
20815 (emit_cstore): Same.
20816 * expr.c (emit_block_move_via_cpymem): Same.
20817 (expand_cmpstrn_or_cmpmem): Same.
20818 (set_storage_via_setmem): Same.
20819 (emit_single_push_insn_1): Same.
20820 (expand_assignment): Same.
20821 (store_constructor): Same.
20822 (expand_expr_real_2): Same.
20823 (expand_expr_real_1): Same.
20824 (try_casesi): Same.
20825 * flags.h: Same.
20826 * function.c (try_fit_stack_local): Same.
20827 (assign_stack_local_1): Same.
20828 (assign_stack_local): Same.
20829 (cut_slot_from_list): Same.
20830 (insert_slot_to_list): Same.
20831 (max_slot_level): Same.
20832 (move_slot_to_level): Same.
20833 (temp_address_hasher::equal): Same.
20834 (remove_unused_temp_slot_addresses): Same.
20835 (assign_temp): Same.
20836 (combine_temp_slots): Same.
20837 (update_temp_slot_address): Same.
20838 (preserve_temp_slots): Same.
20839 * function.h: Same.
20840 * fwprop.c: Same.
20841 * gcc-rich-location.h: Same.
20842 * gcov.c: Same.
20843 * genattrtab.c (check_attr_test): Same.
20844 (check_attr_value): Same.
20845 (convert_set_attr_alternative): Same.
20846 (convert_set_attr): Same.
20847 (check_defs): Same.
20848 (copy_boolean): Same.
20849 (get_attr_value): Same.
20850 (expand_delays): Same.
20851 (make_length_attrs): Same.
20852 (min_fn): Same.
20853 (make_alternative_compare): Same.
20854 (simplify_test_exp): Same.
20855 (tests_attr_p): Same.
20856 (get_attr_order): Same.
20857 (clear_struct_flag): Same.
20858 (gen_attr): Same.
20859 (compares_alternatives_p): Same.
20860 (gen_insn): Same.
20861 (gen_delay): Same.
20862 (find_attrs_to_cache): Same.
20863 (write_test_expr): Same.
20864 (walk_attr_value): Same.
20865 (write_attr_get): Same.
20866 (eliminate_known_true): Same.
20867 (write_insn_cases): Same.
20868 (write_attr_case): Same.
20869 (write_attr_valueq): Same.
20870 (write_attr_value): Same.
20871 (write_dummy_eligible_delay): Same.
20872 (next_comma_elt): Same.
20873 (find_attr): Same.
20874 (make_internal_attr): Same.
20875 (copy_rtx_unchanging): Same.
20876 (gen_insn_reserv): Same.
20877 (check_tune_attr): Same.
20878 (make_automaton_attrs): Same.
20879 (handle_arg): Same.
20880 * genextract.c (gen_insn): Same.
20881 (VEC_char_to_string): Same.
20882 * genmatch.c (print_operand): Same.
20883 (lower): Same.
20884 (parser::parse_operation): Same.
20885 (parser::parse_capture): Same.
20886 (parser::parse_c_expr): Same.
20887 (parser::parse_simplify): Same.
20888 (main): Same.
20889 * genoutput.c (output_operand_data): Same.
20890 (output_get_insn_name): Same.
20891 (compare_operands): Same.
20892 (place_operands): Same.
20893 (process_template): Same.
20894 (validate_insn_alternatives): Same.
20895 (validate_insn_operands): Same.
20896 (gen_expand): Same.
20897 (note_constraint): Same.
20898 * genpreds.c (write_one_predicate_function): Same.
20899 (add_constraint): Same.
20900 (process_define_register_constraint): Same.
20901 (write_lookup_constraint_1): Same.
20902 (write_lookup_constraint_array): Same.
20903 (write_insn_constraint_len): Same.
20904 (write_reg_class_for_constraint_1): Same.
20905 (write_constraint_satisfied_p_array): Same.
20906 * genrecog.c (optimize_subroutine_group): Same.
20907 * gensupport.c (process_define_predicate): Same.
20908 (queue_pattern): Same.
20909 (remove_from_queue): Same.
20910 (process_rtx): Same.
20911 (is_predicable): Same.
20912 (change_subst_attribute): Same.
20913 (subst_pattern_match): Same.
20914 (alter_constraints): Same.
20915 (alter_attrs_for_insn): Same.
20916 (shift_output_template): Same.
20917 (alter_output_for_subst_insn): Same.
20918 (process_one_cond_exec): Same.
20919 (subst_dup): Same.
20920 (process_define_cond_exec): Same.
20921 (mnemonic_htab_callback): Same.
20922 (gen_mnemonic_attr): Same.
20923 (read_md_rtx): Same.
20924 * ggc-page.c: Same.
20925 * gimple-loop-interchange.cc (dump_reduction): Same.
20926 (dump_induction): Same.
20927 (loop_cand::~loop_cand): Same.
20928 (free_data_refs_with_aux): Same.
20929 (tree_loop_interchange::interchange_loops): Same.
20930 (tree_loop_interchange::map_inductions_to_loop): Same.
20931 (tree_loop_interchange::move_code_to_inner_loop): Same.
20932 (compute_access_stride): Same.
20933 (compute_access_strides): Same.
20934 (proper_loop_form_for_interchange): Same.
20935 (tree_loop_interchange_compute_ddrs): Same.
20936 (prune_datarefs_not_in_loop): Same.
20937 (prepare_data_references): Same.
20938 (pass_linterchange::execute): Same.
20939 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20940 (unroll_jam_possible_p): Same.
20941 (fuse_loops): Same.
20942 (adjust_unroll_factor): Same.
20943 (tree_loop_unroll_and_jam): Same.
20944 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20945 (loop_versioning::expensive_stmt_p): Same.
20946 (loop_versioning::version_for_unity): Same.
20947 (loop_versioning::dump_inner_likelihood): Same.
20948 (loop_versioning::find_per_loop_multiplication): Same.
20949 (loop_versioning::analyze_term_using_scevs): Same.
20950 (loop_versioning::record_address_fragment): Same.
20951 (loop_versioning::analyze_expr): Same.
20952 (loop_versioning::analyze_blocks): Same.
20953 (loop_versioning::prune_conditions): Same.
20954 (loop_versioning::merge_loop_info): Same.
20955 (loop_versioning::add_loop_to_queue): Same.
20956 (loop_versioning::decide_whether_loop_is_versionable): Same.
20957 (loop_versioning::make_versioning_decisions): Same.
20958 (loop_versioning::implement_versioning_decisions): Same.
20959 * gimple-ssa-evrp-analyze.c
20960 (evrp_range_analyzer::record_ranges_from_phis): Same.
20961 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20962 (count_multiple_uses): Same.
20963 (split_group): Same.
20964 (imm_store_chain_info::output_merged_store): Same.
20965 (pass_store_merging::process_store): Same.
20966 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20967 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20968 (is_max): Same.
20969 (alloca_call_type): Same.
20970 (pass_walloca::execute): Same.
20971 * gimple-streamer-in.c (input_phi): Same.
20972 (input_gimple_stmt): Same.
20973 * gimple-streamer.h: Same.
20974 * godump.c (go_force_record_alignment): Same.
20975 (go_format_type): Same.
20976 (go_output_type): Same.
20977 (go_output_fndecl): Same.
20978 (go_output_typedef): Same.
20979 (keyword_hash_init): Same.
20980 (find_dummy_types): Same.
20981 * graph.c (draw_cfg_nodes_no_loops): Same.
20982 (draw_cfg_nodes_for_loop): Same.
20983 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20984 * hsa-brig.c: Same.
20985 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20986 * hsa-dump.c (dump_hsa_cfun): Same.
20987 * hsa-gen.c (gen_function_def_parameters): Same.
20988 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20989 * input.c (dump_line_table_statistics): Same.
20990 (test_lexer): Same.
20991 * input.h: Same.
20992 * internal-fn.c (get_multi_vector_move): Same.
20993 (expand_load_lanes_optab_fn): Same.
20994 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20995 (expand_GOMP_SIMT_EXIT): Same.
20996 (expand_GOMP_SIMT_LAST_LANE): Same.
20997 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20998 (expand_GOMP_SIMT_VOTE_ANY): Same.
20999 (expand_GOMP_SIMT_XCHG_BFLY): Same.
21000 (expand_GOMP_SIMT_XCHG_IDX): Same.
21001 (expand_addsub_overflow): Same.
21002 (expand_neg_overflow): Same.
21003 (expand_mul_overflow): Same.
21004 (expand_call_mem_ref): Same.
21005 (expand_mask_load_optab_fn): Same.
21006 (expand_scatter_store_optab_fn): Same.
21007 (expand_gather_load_optab_fn): Same.
21008 * ipa-cp.c (ipa_get_parm_lattices): Same.
21009 (print_all_lattices): Same.
21010 (ignore_edge_p): Same.
21011 (build_toporder_info): Same.
21012 (free_toporder_info): Same.
21013 (push_node_to_stack): Same.
21014 (ipcp_lattice<valtype>::set_contains_variable): Same.
21015 (set_agg_lats_to_bottom): Same.
21016 (ipcp_bits_lattice::meet_with): Same.
21017 (set_single_call_flag): Same.
21018 (initialize_node_lattices): Same.
21019 (ipa_get_jf_ancestor_result): Same.
21020 (ipcp_verify_propagated_values): Same.
21021 (propagate_scalar_across_jump_function): Same.
21022 (propagate_context_across_jump_function): Same.
21023 (propagate_bits_across_jump_function): Same.
21024 (ipa_vr_operation_and_type_effects): Same.
21025 (propagate_vr_across_jump_function): Same.
21026 (set_check_aggs_by_ref): Same.
21027 (set_chain_of_aglats_contains_variable): Same.
21028 (merge_aggregate_lattices): Same.
21029 (agg_pass_through_permissible_p): Same.
21030 (propagate_aggs_across_jump_function): Same.
21031 (call_passes_through_thunk_p): Same.
21032 (propagate_constants_across_call): Same.
21033 (devirtualization_time_bonus): Same.
21034 (good_cloning_opportunity_p): Same.
21035 (context_independent_aggregate_values): Same.
21036 (gather_context_independent_values): Same.
21037 (perform_estimation_of_a_value): Same.
21038 (estimate_local_effects): Same.
21039 (value_topo_info<valtype>::add_val): Same.
21040 (add_all_node_vals_to_toposort): Same.
21041 (value_topo_info<valtype>::propagate_effects): Same.
21042 (ipcp_propagate_stage): Same.
21043 (ipcp_discover_new_direct_edges): Same.
21044 (same_node_or_its_all_contexts_clone_p): Same.
21045 (cgraph_edge_brings_value_p): Same.
21046 (gather_edges_for_value): Same.
21047 (create_specialized_node): Same.
21048 (find_more_scalar_values_for_callers_subset): Same.
21049 (find_more_contexts_for_caller_subset): Same.
21050 (copy_plats_to_inter): Same.
21051 (intersect_aggregates_with_edge): Same.
21052 (find_aggregate_values_for_callers_subset): Same.
21053 (cgraph_edge_brings_all_agg_vals_for_node): Same.
21054 (decide_about_value): Same.
21055 (decide_whether_version_node): Same.
21056 (spread_undeadness): Same.
21057 (identify_dead_nodes): Same.
21058 (ipcp_store_vr_results): Same.
21059 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
21060 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
21061 (redirect_to_unreachable): Same.
21062 (edge_set_predicate): Same.
21063 (evaluate_conditions_for_known_args): Same.
21064 (evaluate_properties_for_edge): Same.
21065 (ipa_fn_summary_t::duplicate): Same.
21066 (ipa_call_summary_t::duplicate): Same.
21067 (dump_ipa_call_summary): Same.
21068 (ipa_dump_fn_summary): Same.
21069 (eliminated_by_inlining_prob): Same.
21070 (set_cond_stmt_execution_predicate): Same.
21071 (set_switch_stmt_execution_predicate): Same.
21072 (compute_bb_predicates): Same.
21073 (will_be_nonconstant_expr_predicate): Same.
21074 (phi_result_unknown_predicate): Same.
21075 (analyze_function_body): Same.
21076 (compute_fn_summary): Same.
21077 (estimate_edge_devirt_benefit): Same.
21078 (estimate_edge_size_and_time): Same.
21079 (estimate_calls_size_and_time): Same.
21080 (estimate_node_size_and_time): Same.
21081 (remap_edge_change_prob): Same.
21082 (remap_edge_summaries): Same.
21083 (ipa_merge_fn_summary_after_inlining): Same.
21084 (ipa_fn_summary_generate): Same.
21085 (inline_read_section): Same.
21086 (ipa_fn_summary_read): Same.
21087 (ipa_fn_summary_write): Same.
21088 * ipa-fnsummary.h: Same.
21089 * ipa-hsa.c (ipa_hsa_read_section): Same.
21090 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
21091 * ipa-icf.c (sem_function::param_used_p): Same.
21092 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
21093 * ipa-inline.c (edge_badness): Same.
21094 (inline_small_functions): Same.
21095 * ipa-polymorphic-call.c
21096 (ipa_polymorphic_call_context::stream_out): Same.
21097 * ipa-predicate.c (predicate::remap_after_duplication): Same.
21098 (predicate::remap_after_inlining): Same.
21099 (predicate::stream_out): Same.
21100 * ipa-predicate.h: Same.
21101 * ipa-profile.c (ipa_profile_read_summary): Same.
21102 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
21103 (count_formal_params): Same.
21104 (ipa_dump_param): Same.
21105 (ipa_alloc_node_params): Same.
21106 (ipa_print_node_jump_functions_for_edge): Same.
21107 (ipa_print_node_jump_functions): Same.
21108 (ipa_load_from_parm_agg): Same.
21109 (get_ancestor_addr_info): Same.
21110 (ipa_compute_jump_functions_for_edge): Same.
21111 (ipa_analyze_virtual_call_uses): Same.
21112 (ipa_analyze_stmt_uses): Same.
21113 (ipa_analyze_params_uses_in_bb): Same.
21114 (update_jump_functions_after_inlining): Same.
21115 (try_decrement_rdesc_refcount): Same.
21116 (ipa_impossible_devirt_target): Same.
21117 (update_indirect_edges_after_inlining): Same.
21118 (combine_controlled_uses_counters): Same.
21119 (ipa_edge_args_sum_t::duplicate): Same.
21120 (ipa_write_jump_function): Same.
21121 (ipa_write_indirect_edge_info): Same.
21122 (ipa_write_node_info): Same.
21123 (ipa_read_edge_info): Same.
21124 (ipa_prop_read_section): Same.
21125 (read_replacements_section): Same.
21126 * ipa-prop.h (ipa_get_param_count): Same.
21127 (ipa_get_param): Same.
21128 (ipa_get_type): Same.
21129 (ipa_get_param_move_cost): Same.
21130 (ipa_set_param_used): Same.
21131 (ipa_get_controlled_uses): Same.
21132 (ipa_set_controlled_uses): Same.
21133 (ipa_get_cs_argument_count): Same.
21134 * ipa-pure-const.c (analyze_function): Same.
21135 (pure_const_read_summary): Same.
21136 * ipa-ref.h: Same.
21137 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21138 * ipa-split.c (test_nonssa_use): Same.
21139 (dump_split_point): Same.
21140 (dominated_by_forbidden): Same.
21141 (split_part_set_ssa_name_p): Same.
21142 (find_split_points): Same.
21143 * ira-build.c (finish_loop_tree_nodes): Same.
21144 (low_pressure_loop_node_p): Same.
21145 * ira-color.c (ira_reuse_stack_slot): Same.
21146 * ira-int.h: Same.
21147 * ira.c (setup_reg_equiv): Same.
21148 (print_insn_chain): Same.
21149 (ira): Same.
21150 * loop-doloop.c (doloop_condition_get): Same.
21151 (add_test): Same.
21152 (record_reg_sets): Same.
21153 (doloop_optimize): Same.
21154 * loop-init.c (loop_optimizer_init): Same.
21155 (fix_loop_structure): Same.
21156 * loop-invariant.c (merge_identical_invariants): Same.
21157 (compute_always_reached): Same.
21158 (find_exits): Same.
21159 (may_assign_reg_p): Same.
21160 (find_invariants_bb): Same.
21161 (find_invariants_body): Same.
21162 (replace_uses): Same.
21163 (can_move_invariant_reg): Same.
21164 (free_inv_motion_data): Same.
21165 (move_single_loop_invariants): Same.
21166 (change_pressure): Same.
21167 (mark_ref_regs): Same.
21168 (calculate_loop_reg_pressure): Same.
21169 * loop-iv.c (biv_entry_hasher::equal): Same.
21170 (iv_extend_to_rtx_code): Same.
21171 (check_iv_ref_table_size): Same.
21172 (clear_iv_info): Same.
21173 (latch_dominating_def): Same.
21174 (iv_get_reaching_def): Same.
21175 (iv_constant): Same.
21176 (iv_subreg): Same.
21177 (iv_extend): Same.
21178 (iv_neg): Same.
21179 (iv_add): Same.
21180 (iv_mult): Same.
21181 (get_biv_step): Same.
21182 (record_iv): Same.
21183 (analyzed_for_bivness_p): Same.
21184 (record_biv): Same.
21185 (iv_analyze_biv): Same.
21186 (iv_analyze_expr): Same.
21187 (iv_analyze_def): Same.
21188 (iv_analyze_op): Same.
21189 (iv_analyze): Same.
21190 (iv_analyze_result): Same.
21191 (biv_p): Same.
21192 (eliminate_implied_conditions): Same.
21193 (simplify_using_initial_values): Same.
21194 (shorten_into_mode): Same.
21195 (canonicalize_iv_subregs): Same.
21196 (determine_max_iter): Same.
21197 (check_simple_exit): Same.
21198 (find_simple_exit): Same.
21199 (get_simple_loop_desc): Same.
21200 * loop-unroll.c (report_unroll): Same.
21201 (decide_unrolling): Same.
21202 (unroll_loops): Same.
21203 (loop_exit_at_end_p): Same.
21204 (decide_unroll_constant_iterations): Same.
21205 (unroll_loop_constant_iterations): Same.
21206 (compare_and_jump_seq): Same.
21207 (unroll_loop_runtime_iterations): Same.
21208 (decide_unroll_stupid): Same.
21209 (unroll_loop_stupid): Same.
21210 (referenced_in_one_insn_in_loop_p): Same.
21211 (reset_debug_uses_in_loop): Same.
21212 (analyze_iv_to_split_insn): Same.
21213 * lra-eliminations.c (lra_debug_elim_table): Same.
21214 (setup_can_eliminate): Same.
21215 (form_sum): Same.
21216 (lra_get_elimination_hard_regno): Same.
21217 (lra_eliminate_regs_1): Same.
21218 (eliminate_regs_in_insn): Same.
21219 (update_reg_eliminate): Same.
21220 (init_elimination): Same.
21221 (lra_eliminate): Same.
21222 * lra-int.h: Same.
21223 * lra-lives.c (initiate_live_solver): Same.
21224 * lra-remat.c (create_remat_bb_data): Same.
21225 * lra-spills.c (lra_spill): Same.
21226 * lra.c (lra_set_insn_recog_data): Same.
21227 (lra_set_used_insn_alternative_by_uid): Same.
21228 (init_reg_info): Same.
21229 (expand_reg_info): Same.
21230 * lto-cgraph.c (output_symtab): Same.
21231 (read_identifier): Same.
21232 (get_alias_symbol): Same.
21233 (input_node): Same.
21234 (input_varpool_node): Same.
21235 (input_ref): Same.
21236 (input_edge): Same.
21237 (input_cgraph_1): Same.
21238 (input_refs): Same.
21239 (input_symtab): Same.
21240 (input_offload_tables): Same.
21241 (output_cgraph_opt_summary): Same.
21242 (input_edge_opt_summary): Same.
21243 (input_cgraph_opt_section): Same.
21244 * lto-section-in.c (lto_free_raw_section_data): Same.
21245 (lto_create_simple_input_block): Same.
21246 (lto_free_function_in_decl_state_for_node): Same.
21247 * lto-streamer-in.c (lto_tag_check_set): Same.
21248 (lto_location_cache::revert_location_cache): Same.
21249 (lto_location_cache::input_location): Same.
21250 (lto_input_location): Same.
21251 (stream_input_location_now): Same.
21252 (lto_input_tree_ref): Same.
21253 (lto_input_eh_catch_list): Same.
21254 (input_eh_region): Same.
21255 (lto_init_eh): Same.
21256 (make_new_block): Same.
21257 (input_cfg): Same.
21258 (fixup_call_stmt_edges): Same.
21259 (input_struct_function_base): Same.
21260 (input_function): Same.
21261 (lto_read_body_or_constructor): Same.
21262 (lto_read_tree_1): Same.
21263 (lto_read_tree): Same.
21264 (lto_input_scc): Same.
21265 (lto_input_tree_1): Same.
21266 (lto_input_toplevel_asms): Same.
21267 (lto_input_mode_table): Same.
21268 (lto_reader_init): Same.
21269 (lto_data_in_create): Same.
21270 * lto-streamer-out.c (output_cfg): Same.
21271 * lto-streamer.h: Same.
21272 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21273 (generate_prolog_epilog): Same.
21274 (mark_loop_unsched): Same.
21275 (dump_insn_location): Same.
21276 (loop_canon_p): Same.
21277 (sms_schedule): Same.
21278 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21279 (expand_omp_for_generic): Same.
21280 (expand_omp_for_static_nochunk): Same.
21281 (expand_omp_for_static_chunk): Same.
21282 (expand_omp_simd): Same.
21283 (expand_omp_taskloop_for_inner): Same.
21284 (expand_oacc_for): Same.
21285 (expand_omp_atomic_pipeline): Same.
21286 (mark_loops_in_oacc_kernels_region): Same.
21287 * omp-offload.c (oacc_xform_loop): Same.
21288 * omp-simd-clone.c (simd_clone_adjust): Same.
21289 * optabs-query.c (get_traditional_extraction_insn): Same.
21290 * optabs.c (expand_vector_broadcast): Same.
21291 (expand_binop_directly): Same.
21292 (expand_twoval_unop): Same.
21293 (expand_twoval_binop): Same.
21294 (expand_unop_direct): Same.
21295 (emit_indirect_jump): Same.
21296 (emit_conditional_move): Same.
21297 (emit_conditional_neg_or_complement): Same.
21298 (emit_conditional_add): Same.
21299 (vector_compare_rtx): Same.
21300 (expand_vec_perm_1): Same.
21301 (expand_vec_perm_const): Same.
21302 (expand_vec_cond_expr): Same.
21303 (expand_vec_series_expr): Same.
21304 (maybe_emit_atomic_exchange): Same.
21305 (maybe_emit_sync_lock_test_and_set): Same.
21306 (expand_atomic_compare_and_swap): Same.
21307 (expand_atomic_load): Same.
21308 (expand_atomic_store): Same.
21309 (maybe_emit_op): Same.
21310 (valid_multiword_target_p): Same.
21311 (create_integer_operand): Same.
21312 (maybe_legitimize_operand_same_code): Same.
21313 (maybe_legitimize_operand): Same.
21314 (create_convert_operand_from_type): Same.
21315 (can_reuse_operands_p): Same.
21316 (maybe_legitimize_operands): Same.
21317 (maybe_gen_insn): Same.
21318 (maybe_expand_insn): Same.
21319 (maybe_expand_jump_insn): Same.
21320 (expand_insn): Same.
21321 * optabs.h (create_expand_operand): Same.
21322 (create_fixed_operand): Same.
21323 (create_output_operand): Same.
21324 (create_input_operand): Same.
21325 (create_convert_operand_to): Same.
21326 (create_convert_operand_from): Same.
21327 * optinfo.h: Same.
21328 * poly-int.h: Same.
21329 * predict.c (optimize_insn_for_speed_p): Same.
21330 (optimize_loop_for_size_p): Same.
21331 (optimize_loop_for_speed_p): Same.
21332 (optimize_loop_nest_for_speed_p): Same.
21333 (get_base_value): Same.
21334 (predicted_by_loop_heuristics_p): Same.
21335 (predict_extra_loop_exits): Same.
21336 (predict_loops): Same.
21337 (predict_paths_for_bb): Same.
21338 (predict_paths_leading_to): Same.
21339 (propagate_freq): Same.
21340 (pass_profile::execute): Same.
21341 * predict.h: Same.
21342 * profile-count.c (profile_count::differs_from_p): Same.
21343 (profile_probability::differs_lot_from_p): Same.
21344 * profile-count.h: Same.
21345 * profile.c (branch_prob): Same.
21346 * regrename.c (free_chain_data): Same.
21347 (mark_conflict): Same.
21348 (create_new_chain): Same.
21349 (merge_overlapping_regs): Same.
21350 (init_rename_info): Same.
21351 (merge_chains): Same.
21352 (regrename_analyze): Same.
21353 (regrename_do_replace): Same.
21354 (scan_rtx_reg): Same.
21355 (record_out_operands): Same.
21356 (build_def_use): Same.
21357 * regrename.h: Same.
21358 * reload.h: Same.
21359 * reload1.c (init_reload): Same.
21360 (maybe_fix_stack_asms): Same.
21361 (copy_reloads): Same.
21362 (count_pseudo): Same.
21363 (count_spilled_pseudo): Same.
21364 (find_reg): Same.
21365 (find_reload_regs): Same.
21366 (select_reload_regs): Same.
21367 (spill_hard_reg): Same.
21368 (fixup_eh_region_note): Same.
21369 (set_reload_reg): Same.
21370 (allocate_reload_reg): Same.
21371 (compute_reload_subreg_offset): Same.
21372 (reload_adjust_reg_for_icode): Same.
21373 (emit_input_reload_insns): Same.
21374 (emit_output_reload_insns): Same.
21375 (do_input_reload): Same.
21376 (inherit_piecemeal_p): Same.
21377 * rtl.h: Same.
21378 * sanopt.c (maybe_get_dominating_check): Same.
21379 (maybe_optimize_ubsan_ptr_ifn): Same.
21380 (can_remove_asan_check): Same.
21381 (maybe_optimize_asan_check_ifn): Same.
21382 (sanopt_optimize_walker): Same.
21383 * sched-deps.c (add_dependence_list): Same.
21384 (chain_to_prev_insn): Same.
21385 (add_insn_mem_dependence): Same.
21386 (create_insn_reg_set): Same.
21387 (maybe_extend_reg_info_p): Same.
21388 (sched_analyze_reg): Same.
21389 (sched_analyze_1): Same.
21390 (get_implicit_reg_pending_clobbers): Same.
21391 (chain_to_prev_insn_p): Same.
21392 (deps_analyze_insn): Same.
21393 (deps_start_bb): Same.
21394 (sched_free_deps): Same.
21395 (init_deps): Same.
21396 (init_deps_reg_last): Same.
21397 (free_deps): Same.
21398 * sched-ebb.c: Same.
21399 * sched-int.h: Same.
21400 * sched-rgn.c (add_branch_dependences): Same.
21401 (concat_insn_mem_list): Same.
21402 (deps_join): Same.
21403 (sched_rgn_compute_dependencies): Same.
21404 * sel-sched-ir.c (reset_target_context): Same.
21405 (copy_deps_context): Same.
21406 (init_id_from_df): Same.
21407 (has_dependence_p): Same.
21408 (change_loops_latches): Same.
21409 (bb_top_order_comparator): Same.
21410 (make_region_from_loop_preheader): Same.
21411 (sel_init_pipelining): Same.
21412 (get_loop_nest_for_rgn): Same.
21413 (make_regions_from_the_rest): Same.
21414 (sel_is_loop_preheader_p): Same.
21415 * sel-sched-ir.h (inner_loop_header_p): Same.
21416 (get_all_loop_exits): Same.
21417 * selftest.h: Same.
21418 * sese.c (sese_build_liveouts): Same.
21419 (sese_insert_phis_for_liveouts): Same.
21420 * sese.h (defined_in_sese_p): Same.
21421 * sreal.c (sreal::stream_out): Same.
21422 * sreal.h: Same.
21423 * streamer-hooks.h: Same.
21424 * target-globals.c (save_target_globals): Same.
21425 * target-globals.h: Same.
21426 * target.def: Same.
21427 * target.h: Same.
21428 * targhooks.c (default_has_ifunc_p): Same.
21429 (default_empty_mask_is_expensive): Same.
21430 (default_init_cost): Same.
21431 * targhooks.h: Same.
21432 * toplev.c: Same.
21433 * tree-affine.c (aff_combination_mult): Same.
21434 (aff_combination_expand): Same.
21435 (aff_combination_constant_multiple_p): Same.
21436 * tree-affine.h: Same.
21437 * tree-cfg.c (build_gimple_cfg): Same.
21438 (replace_loop_annotate_in_block): Same.
21439 (replace_uses_by): Same.
21440 (remove_bb): Same.
21441 (dump_cfg_stats): Same.
21442 (gimple_duplicate_sese_region): Same.
21443 (gimple_duplicate_sese_tail): Same.
21444 (move_block_to_fn): Same.
21445 (replace_block_vars_by_duplicates): Same.
21446 (move_sese_region_to_fn): Same.
21447 (print_loops_bb): Same.
21448 (print_loop): Same.
21449 (print_loops): Same.
21450 (debug): Same.
21451 (debug_loops): Same.
21452 * tree-cfg.h: Same.
21453 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21454 (chrec_fold_multiply_poly_poly): Same.
21455 (chrec_evaluate): Same.
21456 (chrec_component_in_loop_num): Same.
21457 (reset_evolution_in_loop): Same.
21458 (is_multivariate_chrec): Same.
21459 (chrec_contains_symbols): Same.
21460 (nb_vars_in_chrec): Same.
21461 (chrec_convert_1): Same.
21462 (chrec_convert_aggressive): Same.
21463 * tree-chrec.h: Same.
21464 * tree-core.h: Same.
21465 * tree-data-ref.c (dump_data_dependence_relation): Same.
21466 (canonicalize_base_object_address): Same.
21467 (data_ref_compare_tree): Same.
21468 (prune_runtime_alias_test_list): Same.
21469 (get_segment_min_max): Same.
21470 (create_intersect_range_checks): Same.
21471 (conflict_fn_no_dependence): Same.
21472 (object_address_invariant_in_loop_p): Same.
21473 (analyze_ziv_subscript): Same.
21474 (analyze_siv_subscript_cst_affine): Same.
21475 (analyze_miv_subscript): Same.
21476 (analyze_overlapping_iterations): Same.
21477 (build_classic_dist_vector_1): Same.
21478 (add_other_self_distances): Same.
21479 (same_access_functions): Same.
21480 (build_classic_dir_vector): Same.
21481 (subscript_dependence_tester_1): Same.
21482 (subscript_dependence_tester): Same.
21483 (access_functions_are_affine_or_constant_p): Same.
21484 (get_references_in_stmt): Same.
21485 (loop_nest_has_data_refs): Same.
21486 (graphite_find_data_references_in_stmt): Same.
21487 (find_data_references_in_bb): Same.
21488 (get_base_for_alignment): Same.
21489 (find_loop_nest_1): Same.
21490 (find_loop_nest): Same.
21491 * tree-data-ref.h (dr_alignment): Same.
21492 (ddr_dependence_level): Same.
21493 * tree-if-conv.c (fold_build_cond_expr): Same.
21494 (add_to_predicate_list): Same.
21495 (add_to_dst_predicate_list): Same.
21496 (phi_convertible_by_degenerating_args): Same.
21497 (idx_within_array_bound): Same.
21498 (all_preds_critical_p): Same.
21499 (pred_blocks_visited_p): Same.
21500 (predicate_bbs): Same.
21501 (build_region): Same.
21502 (if_convertible_loop_p_1): Same.
21503 (is_cond_scalar_reduction): Same.
21504 (predicate_scalar_phi): Same.
21505 (remove_conditions_and_labels): Same.
21506 (combine_blocks): Same.
21507 (version_loop_for_if_conversion): Same.
21508 (versionable_outer_loop_p): Same.
21509 (ifcvt_local_dce): Same.
21510 (tree_if_conversion): Same.
21511 (pass_if_conversion::gate): Same.
21512 * tree-if-conv.h: Same.
21513 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21514 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21515 (free_rdg): Same.
21516 (stmt_has_scalar_dependences_outside_loop): Same.
21517 (copy_loop_before): Same.
21518 (create_bb_after_loop): Same.
21519 (const_with_all_bytes_same): Same.
21520 (generate_memset_builtin): Same.
21521 (generate_memcpy_builtin): Same.
21522 (destroy_loop): Same.
21523 (build_rdg_partition_for_vertex): Same.
21524 (compute_access_range): Same.
21525 (data_ref_segment_size): Same.
21526 (latch_dominated_by_data_ref): Same.
21527 (compute_alias_check_pairs): Same.
21528 (fuse_memset_builtins): Same.
21529 (finalize_partitions): Same.
21530 (find_seed_stmts_for_distribution): Same.
21531 (prepare_perfect_loop_nest): Same.
21532 * tree-parloops.c (lambda_transform_legal_p): Same.
21533 (loop_parallel_p): Same.
21534 (reduc_stmt_res): Same.
21535 (add_field_for_name): Same.
21536 (create_call_for_reduction_1): Same.
21537 (replace_uses_in_bb_by): Same.
21538 (transform_to_exit_first_loop_alt): Same.
21539 (try_transform_to_exit_first_loop_alt): Same.
21540 (transform_to_exit_first_loop): Same.
21541 (num_phis): Same.
21542 (gen_parallel_loop): Same.
21543 (gather_scalar_reductions): Same.
21544 (get_omp_data_i_param): Same.
21545 (try_create_reduction_list): Same.
21546 (oacc_entry_exit_single_gang): Same.
21547 (parallelize_loops): Same.
21548 * tree-pass.h: Same.
21549 * tree-predcom.c (determine_offset): Same.
21550 (last_always_executed_block): Same.
21551 (split_data_refs_to_components): Same.
21552 (suitable_component_p): Same.
21553 (valid_initializer_p): Same.
21554 (find_looparound_phi): Same.
21555 (insert_looparound_copy): Same.
21556 (add_looparound_copies): Same.
21557 (determine_roots_comp): Same.
21558 (predcom_tmp_var): Same.
21559 (initialize_root_vars): Same.
21560 (initialize_root_vars_store_elim_1): Same.
21561 (initialize_root_vars_store_elim_2): Same.
21562 (finalize_eliminated_stores): Same.
21563 (initialize_root_vars_lm): Same.
21564 (remove_stmt): Same.
21565 (determine_unroll_factor): Same.
21566 (execute_pred_commoning_cbck): Same.
21567 (base_names_in_chain_on): Same.
21568 (combine_chains): Same.
21569 (pcom_stmt_dominates_stmt_p): Same.
21570 (try_combine_chains): Same.
21571 (prepare_initializers_chain_store_elim): Same.
21572 (prepare_initializers_chain): Same.
21573 (prepare_initializers): Same.
21574 (prepare_finalizers_chain): Same.
21575 (prepare_finalizers): Same.
21576 (insert_init_seqs): Same.
21577 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21578 (compute_overall_effect_of_inner_loop): Same.
21579 (add_to_evolution_1): Same.
21580 (add_to_evolution): Same.
21581 (follow_ssa_edge_binary): Same.
21582 (follow_ssa_edge_expr): Same.
21583 (backedge_phi_arg_p): Same.
21584 (follow_ssa_edge_in_condition_phi_branch): Same.
21585 (follow_ssa_edge_in_condition_phi): Same.
21586 (follow_ssa_edge_inner_loop_phi): Same.
21587 (follow_ssa_edge): Same.
21588 (analyze_evolution_in_loop): Same.
21589 (analyze_initial_condition): Same.
21590 (interpret_loop_phi): Same.
21591 (interpret_condition_phi): Same.
21592 (interpret_rhs_expr): Same.
21593 (interpret_expr): Same.
21594 (interpret_gimple_assign): Same.
21595 (analyze_scalar_evolution_1): Same.
21596 (analyze_scalar_evolution): Same.
21597 (analyze_scalar_evolution_for_address_of): Same.
21598 (get_instantiated_value_entry): Same.
21599 (loop_closed_phi_def): Same.
21600 (instantiate_scev_name): Same.
21601 (instantiate_scev_poly): Same.
21602 (instantiate_scev_binary): Same.
21603 (instantiate_scev_convert): Same.
21604 (instantiate_scev_not): Same.
21605 (instantiate_scev_r): Same.
21606 (instantiate_scev): Same.
21607 (resolve_mixers): Same.
21608 (initialize_scalar_evolutions_analyzer): Same.
21609 (scev_reset_htab): Same.
21610 (scev_reset): Same.
21611 (derive_simple_iv_with_niters): Same.
21612 (simple_iv_with_niters): Same.
21613 (expression_expensive_p): Same.
21614 (final_value_replacement_loop): Same.
21615 * tree-scalar-evolution.h (block_before_loop): Same.
21616 * tree-ssa-address.h: Same.
21617 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21618 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21619 (record_edge_info): Same.
21620 * tree-ssa-live.c (var_map_base_fini): Same.
21621 (remove_unused_locals): Same.
21622 * tree-ssa-live.h: Same.
21623 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21624 (pass_ch_vect::execute): Same.
21625 (pass_ch::process_loop_p): Same.
21626 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21627 (movement_possibility): Same.
21628 (outermost_invariant_loop): Same.
21629 (stmt_cost): Same.
21630 (determine_max_movement): Same.
21631 (invariantness_dom_walker::before_dom_children): Same.
21632 (move_computations): Same.
21633 (may_move_till): Same.
21634 (force_move_till_op): Same.
21635 (force_move_till): Same.
21636 (memref_free): Same.
21637 (record_mem_ref_loc): Same.
21638 (set_ref_stored_in_loop): Same.
21639 (mark_ref_stored): Same.
21640 (sort_bbs_in_loop_postorder_cmp): Same.
21641 (sort_locs_in_loop_postorder_cmp): Same.
21642 (analyze_memory_references): Same.
21643 (mem_refs_may_alias_p): Same.
21644 (find_ref_loc_in_loop_cmp): Same.
21645 (rewrite_mem_ref_loc::operator): Same.
21646 (first_mem_ref_loc_1::operator): Same.
21647 (sm_set_flag_if_changed::operator): Same.
21648 (execute_sm_if_changed_flag_set): Same.
21649 (execute_sm): Same.
21650 (hoist_memory_references): Same.
21651 (ref_always_accessed::operator): Same.
21652 (refs_independent_p): Same.
21653 (record_dep_loop): Same.
21654 (ref_indep_loop_p_1): Same.
21655 (ref_indep_loop_p): Same.
21656 (can_sm_ref_p): Same.
21657 (find_refs_for_sm): Same.
21658 (loop_suitable_for_sm): Same.
21659 (store_motion_loop): Same.
21660 (store_motion): Same.
21661 (fill_always_executed_in): Same.
21662 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21663 (estimated_unrolled_size): Same.
21664 (loop_edge_to_cancel): Same.
21665 (remove_exits_and_undefined_stmts): Same.
21666 (remove_redundant_iv_tests): Same.
21667 (unloop_loops): Same.
21668 (estimated_peeled_sequence_size): Same.
21669 (try_peel_loop): Same.
21670 (canonicalize_loop_induction_variables): Same.
21671 (canonicalize_induction_variables): Same.
21672 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21673 (name_info): Same.
21674 (stmt_after_inc_pos): Same.
21675 (contains_abnormal_ssa_name_p): Same.
21676 (niter_for_exit): Same.
21677 (find_bivs): Same.
21678 (mark_bivs): Same.
21679 (find_givs_in_bb): Same.
21680 (find_induction_variables): Same.
21681 (find_interesting_uses_cond): Same.
21682 (outermost_invariant_loop_for_expr): Same.
21683 (idx_find_step): Same.
21684 (add_candidate_1): Same.
21685 (add_iv_candidate_derived_from_uses): Same.
21686 (alloc_use_cost_map): Same.
21687 (prepare_decl_rtl): Same.
21688 (generic_predict_doloop_p): Same.
21689 (computation_cost): Same.
21690 (determine_common_wider_type): Same.
21691 (get_computation_aff_1): Same.
21692 (get_use_type): Same.
21693 (determine_group_iv_cost_address): Same.
21694 (iv_period): Same.
21695 (difference_cannot_overflow_p): Same.
21696 (may_eliminate_iv): Same.
21697 (determine_set_costs): Same.
21698 (cheaper_cost_pair): Same.
21699 (compare_cost_pair): Same.
21700 (iv_ca_cand_for_group): Same.
21701 (iv_ca_recount_cost): Same.
21702 (iv_ca_set_remove_invs): Same.
21703 (iv_ca_set_no_cp): Same.
21704 (iv_ca_set_add_invs): Same.
21705 (iv_ca_set_cp): Same.
21706 (iv_ca_add_group): Same.
21707 (iv_ca_cost): Same.
21708 (iv_ca_compare_deps): Same.
21709 (iv_ca_delta_reverse): Same.
21710 (iv_ca_delta_commit): Same.
21711 (iv_ca_cand_used_p): Same.
21712 (iv_ca_delta_free): Same.
21713 (iv_ca_new): Same.
21714 (iv_ca_free): Same.
21715 (iv_ca_dump): Same.
21716 (iv_ca_extend): Same.
21717 (iv_ca_narrow): Same.
21718 (iv_ca_prune): Same.
21719 (cheaper_cost_with_cand): Same.
21720 (iv_ca_replace): Same.
21721 (try_add_cand_for): Same.
21722 (get_initial_solution): Same.
21723 (try_improve_iv_set): Same.
21724 (find_optimal_iv_set_1): Same.
21725 (create_new_iv): Same.
21726 (rewrite_use_compare): Same.
21727 (remove_unused_ivs): Same.
21728 (determine_scaling_factor): Same.
21729 * tree-ssa-loop-ivopts.h: Same.
21730 * tree-ssa-loop-manip.c (create_iv): Same.
21731 (compute_live_loop_exits): Same.
21732 (add_exit_phi): Same.
21733 (add_exit_phis): Same.
21734 (find_uses_to_rename_use): Same.
21735 (find_uses_to_rename_def): Same.
21736 (find_uses_to_rename_in_loop): Same.
21737 (rewrite_into_loop_closed_ssa): Same.
21738 (check_loop_closed_ssa_bb): Same.
21739 (split_loop_exit_edge): Same.
21740 (ip_end_pos): Same.
21741 (ip_normal_pos): Same.
21742 (copy_phi_node_args): Same.
21743 (gimple_duplicate_loop_to_header_edge): Same.
21744 (can_unroll_loop_p): Same.
21745 (determine_exit_conditions): Same.
21746 (scale_dominated_blocks_in_loop): Same.
21747 (niter_for_unrolled_loop): Same.
21748 (tree_transform_and_unroll_loop): Same.
21749 (rewrite_all_phi_nodes_with_iv): Same.
21750 * tree-ssa-loop-manip.h: Same.
21751 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21752 (number_of_iterations_ne): Same.
21753 (assert_no_overflow_lt): Same.
21754 (assert_loop_rolls_lt): Same.
21755 (number_of_iterations_lt): Same.
21756 (adjust_cond_for_loop_until_wrap): Same.
21757 (tree_simplify_using_condition): Same.
21758 (simplify_using_initial_conditions): Same.
21759 (simplify_using_outer_evolutions): Same.
21760 (loop_only_exit_p): Same.
21761 (ssa_defined_by_minus_one_stmt_p): Same.
21762 (number_of_iterations_popcount): Same.
21763 (number_of_iterations_exit): Same.
21764 (find_loop_niter): Same.
21765 (finite_loop_p): Same.
21766 (chain_of_csts_start): Same.
21767 (get_val_for): Same.
21768 (loop_niter_by_eval): Same.
21769 (derive_constant_upper_bound_ops): Same.
21770 (do_warn_aggressive_loop_optimizations): Same.
21771 (record_estimate): Same.
21772 (get_cst_init_from_scev): Same.
21773 (record_nonwrapping_iv): Same.
21774 (idx_infer_loop_bounds): Same.
21775 (infer_loop_bounds_from_ref): Same.
21776 (infer_loop_bounds_from_array): Same.
21777 (infer_loop_bounds_from_pointer_arith): Same.
21778 (infer_loop_bounds_from_signedness): Same.
21779 (bound_index): Same.
21780 (discover_iteration_bound_by_body_walk): Same.
21781 (maybe_lower_iteration_bound): Same.
21782 (estimate_numbers_of_iterations): Same.
21783 (estimated_loop_iterations): Same.
21784 (estimated_loop_iterations_int): Same.
21785 (max_loop_iterations): Same.
21786 (max_loop_iterations_int): Same.
21787 (likely_max_loop_iterations): Same.
21788 (likely_max_loop_iterations_int): Same.
21789 (estimated_stmt_executions_int): Same.
21790 (max_stmt_executions): Same.
21791 (likely_max_stmt_executions): Same.
21792 (estimated_stmt_executions): Same.
21793 (stmt_dominates_stmt_p): Same.
21794 (nowrap_type_p): Same.
21795 (loop_exits_before_overflow): Same.
21796 (scev_var_range_cant_overflow): Same.
21797 (scev_probably_wraps_p): Same.
21798 (free_numbers_of_iterations_estimates): Same.
21799 * tree-ssa-loop-niter.h: Same.
21800 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21801 (idx_analyze_ref): Same.
21802 (analyze_ref): Same.
21803 (gather_memory_references_ref): Same.
21804 (mark_nontemporal_store): Same.
21805 (emit_mfence_after_loop): Same.
21806 (may_use_storent_in_loop_p): Same.
21807 (mark_nontemporal_stores): Same.
21808 (should_unroll_loop_p): Same.
21809 (volume_of_dist_vector): Same.
21810 (add_subscript_strides): Same.
21811 (self_reuse_distance): Same.
21812 (insn_to_prefetch_ratio_too_small_p): Same.
21813 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21814 (patch_loop_exit): Same.
21815 (find_or_create_guard_phi): Same.
21816 (easy_exit_values): Same.
21817 (connect_loop_phis): Same.
21818 (connect_loops): Same.
21819 (compute_new_first_bound): Same.
21820 (split_loop): Same.
21821 (tree_ssa_split_loops): Same.
21822 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21823 (is_maybe_undefined): Same.
21824 (tree_may_unswitch_on): Same.
21825 (simplify_using_entry_checks): Same.
21826 (tree_unswitch_single_loop): Same.
21827 (tree_unswitch_loop): Same.
21828 (tree_unswitch_outer_loop): Same.
21829 (empty_bb_without_guard_p): Same.
21830 (used_outside_loop_p): Same.
21831 (get_vop_from_header): Same.
21832 (hoist_guard): Same.
21833 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21834 (get_lsm_tmp_name): Same.
21835 * tree-ssa-loop.h: Same.
21836 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21837 (build_and_add_sum): Same.
21838 (no_side_effect_bb): Same.
21839 (get_ops): Same.
21840 (linearize_expr): Same.
21841 (should_break_up_subtract): Same.
21842 (linearize_expr_tree): Same.
21843 * tree-ssa-scopedtables.c: Same.
21844 * tree-ssa-scopedtables.h: Same.
21845 * tree-ssa-structalias.c (condense_visit): Same.
21846 (label_visit): Same.
21847 (dump_pred_graph): Same.
21848 (perform_var_substitution): Same.
21849 (move_complex_constraints): Same.
21850 (remove_preds_and_fake_succs): Same.
21851 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21852 (determine_bb_domination_status): Same.
21853 (duplicate_thread_path): Same.
21854 (thread_through_all_blocks): Same.
21855 * tree-ssa-threadupdate.h: Same.
21856 * tree-streamer-in.c (streamer_read_string_cst): Same.
21857 (input_identifier): Same.
21858 (unpack_ts_type_common_value_fields): Same.
21859 (unpack_ts_block_value_fields): Same.
21860 (unpack_ts_translation_unit_decl_value_fields): Same.
21861 (unpack_ts_omp_clause_value_fields): Same.
21862 (streamer_read_tree_bitfields): Same.
21863 (streamer_alloc_tree): Same.
21864 (lto_input_ts_common_tree_pointers): Same.
21865 (lto_input_ts_vector_tree_pointers): Same.
21866 (lto_input_ts_poly_tree_pointers): Same.
21867 (lto_input_ts_complex_tree_pointers): Same.
21868 (lto_input_ts_decl_minimal_tree_pointers): Same.
21869 (lto_input_ts_decl_common_tree_pointers): Same.
21870 (lto_input_ts_decl_non_common_tree_pointers): Same.
21871 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21872 (lto_input_ts_field_decl_tree_pointers): Same.
21873 (lto_input_ts_function_decl_tree_pointers): Same.
21874 (lto_input_ts_type_common_tree_pointers): Same.
21875 (lto_input_ts_type_non_common_tree_pointers): Same.
21876 (lto_input_ts_list_tree_pointers): Same.
21877 (lto_input_ts_vec_tree_pointers): Same.
21878 (lto_input_ts_exp_tree_pointers): Same.
21879 (lto_input_ts_block_tree_pointers): Same.
21880 (lto_input_ts_binfo_tree_pointers): Same.
21881 (lto_input_ts_constructor_tree_pointers): Same.
21882 (lto_input_ts_omp_clause_tree_pointers): Same.
21883 (streamer_read_tree_body): Same.
21884 * tree-streamer.h: Same.
21885 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21886 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21887 (vect_analyze_possibly_independent_ddr): Same.
21888 (vect_analyze_data_ref_dependence): Same.
21889 (vect_compute_data_ref_alignment): Same.
21890 (vect_enhance_data_refs_alignment): Same.
21891 (vect_analyze_data_ref_access): Same.
21892 (vect_check_gather_scatter): Same.
21893 (vect_find_stmt_data_reference): Same.
21894 (vect_create_addr_base_for_vector_ref): Same.
21895 (vect_setup_realignment): Same.
21896 (vect_supportable_dr_alignment): Same.
21897 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21898 (adjust_phi_and_debug_stmts): Same.
21899 (vect_set_loop_mask): Same.
21900 (add_preheader_seq): Same.
21901 (vect_maybe_permute_loop_masks): Same.
21902 (vect_set_loop_masks_directly): Same.
21903 (vect_set_loop_condition_masked): Same.
21904 (vect_set_loop_condition_unmasked): Same.
21905 (slpeel_duplicate_current_defs_from_edges): Same.
21906 (slpeel_add_loop_guard): Same.
21907 (slpeel_can_duplicate_loop_p): Same.
21908 (create_lcssa_for_virtual_phi): Same.
21909 (iv_phi_p): Same.
21910 (vect_update_ivs_after_vectorizer): Same.
21911 (vect_gen_vector_loop_niters_mult_vf): Same.
21912 (slpeel_update_phi_nodes_for_loops): Same.
21913 (slpeel_update_phi_nodes_for_guard1): Same.
21914 (find_guard_arg): Same.
21915 (slpeel_update_phi_nodes_for_guard2): Same.
21916 (slpeel_update_phi_nodes_for_lcssa): Same.
21917 (vect_do_peeling): Same.
21918 (vect_create_cond_for_alias_checks): Same.
21919 (vect_loop_versioning): Same.
21920 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21921 (vect_inner_phi_in_double_reduction_p): Same.
21922 (vect_analyze_scalar_cycles_1): Same.
21923 (vect_fixup_scalar_cycles_with_patterns): Same.
21924 (vect_get_loop_niters): Same.
21925 (bb_in_loop_p): Same.
21926 (vect_get_max_nscalars_per_iter): Same.
21927 (vect_verify_full_masking): Same.
21928 (vect_compute_single_scalar_iteration_cost): Same.
21929 (vect_analyze_loop_form_1): Same.
21930 (vect_analyze_loop_form): Same.
21931 (vect_active_double_reduction_p): Same.
21932 (vect_analyze_loop_operations): Same.
21933 (neutral_op_for_slp_reduction): Same.
21934 (vect_is_simple_reduction): Same.
21935 (vect_model_reduction_cost): Same.
21936 (get_initial_def_for_reduction): Same.
21937 (get_initial_defs_for_reduction): Same.
21938 (vect_create_epilog_for_reduction): Same.
21939 (vectorize_fold_left_reduction): Same.
21940 (vectorizable_reduction): Same.
21941 (vectorizable_induction): Same.
21942 (vectorizable_live_operation): Same.
21943 (loop_niters_no_overflow): Same.
21944 (vect_get_loop_mask): Same.
21945 (vect_transform_loop_stmt): Same.
21946 (vect_transform_loop): Same.
21947 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21948 (vect_determine_precisions): Same.
21949 (vect_pattern_recog_1): Same.
21950 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21951 * tree-vect-stmts.c (stmt_vectype): Same.
21952 (process_use): Same.
21953 (vect_init_vector_1): Same.
21954 (vect_truncate_gather_scatter_offset): Same.
21955 (get_group_load_store_type): Same.
21956 (vect_build_gather_load_calls): Same.
21957 (vect_get_strided_load_store_ops): Same.
21958 (vectorizable_simd_clone_call): Same.
21959 (vectorizable_store): Same.
21960 (permute_vec_elements): Same.
21961 (vectorizable_load): Same.
21962 (vect_transform_stmt): Same.
21963 (supportable_widening_operation): Same.
21964 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21965 (vec_info::free_stmt_vec_info): Same.
21966 (vect_free_loop_info_assumptions): Same.
21967 (vect_loop_vectorized_call): Same.
21968 (set_uid_loop_bbs): Same.
21969 (vectorize_loops): Same.
21970 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21971 * tree.c (add_tree_to_fld_list): Same.
21972 (fld_type_variant_equal_p): Same.
21973 (fld_decl_context): Same.
21974 (fld_incomplete_type_of): Same.
21975 (free_lang_data_in_binfo): Same.
21976 (need_assembler_name_p): Same.
21977 (find_decls_types_r): Same.
21978 (get_eh_types_for_runtime): Same.
21979 (find_decls_types_in_eh_region): Same.
21980 (find_decls_types_in_node): Same.
21981 (assign_assembler_name_if_needed): Same.
21982 * value-prof.c (stream_out_histogram_value): Same.
21983 * value-prof.h: Same.
21984 * var-tracking.c (use_narrower_mode): Same.
21985 (prepare_call_arguments): Same.
21986 (vt_expand_loc_callback): Same.
21987 (resolve_expansions_pending_recursion): Same.
21988 (vt_expand_loc): Same.
21989 * varasm.c (const_hash_1): Same.
21990 (compare_constant): Same.
21991 (tree_output_constant_def): Same.
21992 (simplify_subtraction): Same.
21993 (get_pool_constant): Same.
21994 (output_constant_pool_2): Same.
21995 (output_constant_pool_1): Same.
21996 (mark_constants_in_pattern): Same.
21997 (mark_constant_pool): Same.
21998 (get_section_anchor): Same.
21999 * vr-values.c (compare_range_with_value): Same.
22000 (vr_values::extract_range_from_phi_node): Same.
22001 * vr-values.h: Same.
22002 * web.c (unionfind_union): Same.
22003 * wide-int.h: Same.
22004
22005 2019-07-09 Martin Sebor <msebor@redhat.com>
22006
22007 PR c++/61339
22008 * align.h: Change class-key from class to struct and vice versa
22009 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
22010 * alloc-pool.h: Same.
22011 * asan.c (shadow_mem_size): Same.
22012 * auto-profile.c: Same.
22013 * basic-block.h: Same.
22014 * bitmap.h: Same.
22015 * cfgexpand.c (set_rtl): Same.
22016 (expand_one_stack_var_at): Same.
22017 * cfghooks.h: Same.
22018 * cfgloop.h: Same.
22019 * cgraph.h: Same.
22020 * config/i386/i386.h: Same.
22021 * df-problems.c (df_print_bb_index): Same.
22022 * df-scan.c: Same.
22023 * df.h (df_single_use): Same.
22024 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
22025 (layout::annotation_line_showed_range_p): Same.
22026 (get_printed_columns): Same.
22027 (correction::ensure_terminated): Same.
22028 (line_corrections::~line_corrections): Same.
22029 * dojump.h: Same.
22030 * dse.c: Same.
22031 * dump-context.h: Same.
22032 * dumpfile.h: Same.
22033 * dwarf2out.c: Same.
22034 * edit-context.c: Same.
22035 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
22036 * flags.h: Same.
22037 * function.c (assign_stack_local): Same.
22038 * function.h: Same.
22039 * gcc.c: Same.
22040 * gcov.c (block_info::block_info): Same.
22041 * genattrtab.c: Same.
22042 * genextract.c: Same.
22043 * genmatch.c (comparison_code_p): Same.
22044 (id_base::id_base): Same.
22045 (decision_tree::print): Same.
22046 * genoutput.c: Same.
22047 * genpreds.c (write_one_predicate_function): Same.
22048 * genrecog.c (validate_pattern): Same.
22049 (find_operand_positions): Same.
22050 (optimize_subroutine_group): Same.
22051 (merge_pattern_transition::merge_pattern_transition): Same.
22052 (merge_pattern_info::merge_pattern_info): Same.
22053 (merge_state_result::merge_state_result): Same.
22054 (merge_into_state): Same.
22055 * gensupport.c: Same.
22056 * gensupport.h: Same.
22057 * ggc-common.c (init_ggc_heuristics): Same.
22058 * ggc-tests.c (test_union): Same.
22059 * gimple-loop-interchange.cc (dump_induction): Same.
22060 * gimple-loop-versioning.cc: Same.
22061 * gimple-match.h (gimple_match_cond::any_else): Same.
22062 * gimple-ssa-backprop.c: Same.
22063 * gimple-ssa-sprintf.c: Same.
22064 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
22065 Same.
22066 (store_immediate_info::store_immediate_info): Same.
22067 (merged_store_group::apply_stores): Same.
22068 (get_location_for_stmts): Same.
22069 * gimple-ssa-strength-reduction.c: Same.
22070 * gimple-ssa-warn-alloca.c: Same.
22071 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
22072 * godump.c (go_type_decl): Same.
22073 * hash-map-tests.c (test_map_of_strings_to_int): Same.
22074 * hash-map.h: Same.
22075 * hash-set-tests.c (test_set_of_strings): Same.
22076 * hsa-brig.c: Same.
22077 * hsa-common.h: Same.
22078 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
22079 * input.c (assert_loceq): Same.
22080 * input.h: Same.
22081 * ipa-cp.c: Same.
22082 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
22083 * ipa-fnsummary.h: Same.
22084 * ipa-inline.h: Same.
22085 * ipa-prop.h: Same.
22086 * ipa-split.c (visit_bb): Same.
22087 * ira-int.h (minmax_set_iter_next): Same.
22088 * loop-invariant.c: Same.
22089 * loop-iv.c: Same.
22090 * lra-eliminations.c: Same.
22091 * lra-int.h: Same.
22092 * lra-lives.c (mark_regno_dead): Same.
22093 * lra-remat.c: Same.
22094 * lra-spills.c: Same.
22095 * lto-streamer.h: Same.
22096 * mem-stats.h: Same.
22097 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
22098 * omp-low.c (omp_clause_aligned_alignment): Same.
22099 * optabs-query.h (get_vcond_eq_icode): Same.
22100 * optabs.h: Same.
22101 * opts.c (wrap_help): Same.
22102 * poly-int.h: Same.
22103 * predict.c (predict_paths_leading_to_edge): Same.
22104 * pretty-print.h: Same.
22105 * profile-count.h: Same.
22106 * read-md.h: Same.
22107 * read-rtl-function.c: Same.
22108 * ree.c: Same.
22109 * reginfo.c: Same.
22110 * regrename.c: Same.
22111 * regrename.h: Same.
22112 * reload.h: Same.
22113 * rtl-iter.h: Same.
22114 * rtl.h (costs_add_n_insns): Same.
22115 * sanopt.c: Same.
22116 * sched-int.h: Same.
22117 * sel-sched-ir.h: Same.
22118 * selftest.h: Same.
22119 * sese.h (vec_find): Same.
22120 * stmt.c: Same.
22121 * target-globals.h: Same.
22122 * tree-affine.c (aff_combination_find_elt): Same.
22123 * tree-affine.h: Same.
22124 * tree-data-ref.h: Same.
22125 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
22126 * tree-predcom.c: Same.
22127 * tree-scalar-evolution.c (find_var_scev_info): Same.
22128 * tree-ssa-alias.h: Same.
22129 * tree-ssa-ccp.c: Same.
22130 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
22131 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
22132 (rewrite_mem_refs): Same.
22133 (execute_sm_if_changed): Same.
22134 (hoist_memory_references): Same.
22135 * tree-ssa-loop-ivopts.c (operator<=): Same.
22136 * tree-ssa-loop.h: Same.
22137 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22138 * tree-ssa-structalias.c: Same.
22139 * tree-switch-conversion.h (cluster::cluster): Same.
22140 (simple_cluster::simple_cluster): Same.
22141 * tree-vect-patterns.c (type_conversion_p): Same.
22142 * tree-vectorizer.c (dump_stmt_cost): Same.
22143 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22144 * tree.c (protected_set_expr_location): Same.
22145 * tree.h (desired_pro_or_demotion_p): Same.
22146 (fndecl_built_in_p): Same.
22147 * unique-ptr-tests.cc: Same.
22148 * var-tracking.c (delete_variable_part): Same.
22149 * varasm.c (assemble_real): Same.
22150 (tree_output_constant_def): Same.
22151 * vec.c: Same.
22152 * wide-int-bitmask.h: Same.
22153 * wide-int.h (decompose): Same.
22154
22155 2019-07-09 Richard Biener <rguenther@suse.de>
22156
22157 PR tree-optimization/91114
22158 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22159 find a vector type isn't fatal.
22160
22161 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22162
22163 * config/aarch64/aarch64-simd.md
22164 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22165 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22166 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22167 (*aarch64_crypto_aese_fused,
22168 *aarch64_crypto_aesd_fused): Update to new definition.
22169 * config/aarch64/aarch64.c
22170 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22171
22172 2019-07-09 Richard Biener <rguenther@suse.de>
22173
22174 * gimple-match.h (gimple_match_op::resimplify): New.
22175 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22176 gimple_resimplify4, gimple_resimplify5): Remove.
22177 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22178 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22179 Make static.
22180 (gimple_match_op::resimplify): New.
22181 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22182 according to availability. Use gimple_match_op::resimplify.
22183
22184 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22185
22186 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22187
22188 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22189
22190 * config/arm/crypto.md:
22191 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22192 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22193 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22194 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22195 * config/arm/arm.c
22196 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22197 * config/arm/aarch-common-protos.h
22198 (aarch_crypto_can_dual_issue): Remove.
22199 * config/arm/aarch-common.c
22200 (aarch_crypto_can_dual_issue): Likewise.
22201 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22202 * config/arm/cortex-a53.md: Likewise.
22203 * config/arm/cortex-a57.md: Likewise.
22204 * config/arm/iterators.md:
22205 (CRYPTO_BINARY): Redefine.
22206 (CRYPTO_UNARY): Removed.
22207 (CRYPTO_AES, CRYPTO_AESMC): New.
22208
22209 2019-07-09 Richard Biener <rguenther@suse.de>
22210
22211 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22212 (vn_reference_lookup_3): If the main ref has no access path recorded
22213 but orig_ref has use it to do access-path based disambiguation.
22214 (vn_reference_lookup_pieces): Adjust.
22215 (vn_reference_lookup): Pass down original ref if we valueized.
22216
22217 2019-07-09 Martin Liska <mliska@suse.cz>
22218
22219 * doc/extend.texi: Document influence on loop
22220 optimizers.
22221
22222 2019-07-09 Martin Liska <mliska@suse.cz>
22223
22224 * lto-compress.c (lto_normalized_zstd_level): Do not use
22225 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22226 of libzstd. One can use 0 as a default compression level.
22227
22228 2019-07-09 Martin Liska <mliska@suse.cz>
22229
22230 * doc/invoke.texi: Add link from -fprofile-dir option.
22231 Use better wording for 'gcno filename'.
22232
22233 2019-07-08 Martin Sebor <msebor@redhat.com>
22234
22235 PR middle-end/71924
22236 PR middle-end/90549
22237 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22238 comment.
22239 (args_loc_t): New type.
22240 (args_loc_t, locmap_t): same.
22241 (diag_returned_locals): New function.
22242 (is_addr_local): Same.
22243 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22244 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22245 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22246
22247 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22248
22249 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22250 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22251 and casts in offset when different, both through gimple stmts
22252 and through trees. Rewritten using loops to minimize code duplication
22253 for each operand.
22254
22255 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22256
22257 * emit-rtl.c (set_insn_locations): New function moved from...
22258 * function.c (set_insn_locations): ...here.
22259 * ira-emit.c (emit_moves): Propagate location of the first instruction
22260 to the inserted move instructions.
22261 * reg-stack.c (compensate_edge): Set the location if the sequence is
22262 inserted on the edge.
22263 * rtl.h (set_insn_locations): Declare.
22264
22265 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22266
22267 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22268 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22269 .machine string.
22270
22271 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22272
22273 PR rtl-optimization/88233
22274 * common.opt (fsplit-wide-types-early): New option.
22275 * common/config/rs6000/rs6000-common.c
22276 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22277 OPT_LEVELS_ALL.
22278 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22279 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22280 flag_split_wide_types_early.
22281 (pass_data_lower_subreg3): New.
22282 (pass_lower_subreg3): New.
22283 (make_pass_lower_subreg3): New.
22284 * passes.def (pass_lower_subreg2): Move after the loop passes.
22285 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22286 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22287 the pass pipeline; its previous place is taken by ...
22288 (make_pass_lower_subreg3): ... this.
22289
22290 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22291
22292 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22293 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22294
22295 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22296
22297 * config/s390/constraints.md: Add new jsc constraint.
22298 * config/s390/predicates.md: New predicates.
22299 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22300 * config/s390/s390.c (s390_valid_shift_count): New function.
22301 (print_shift_count_operand): Use s390_valid_shift_count.
22302 (print_operand): Likewise.
22303 * config/s390/s390.md: Use new predicate.
22304 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22305 * config/s390/vector.md: Use new predicate.
22306
22307 2019-07-08 Andrew Waterman <andrew@sifive.com>
22308 Jim Wilson <jimw@sifive.com>
22309
22310 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22311 bitsize instead of BITS_PER_WORD.
22312
22313 2019-07-08 Martin Liska <mliska@suse.cz>
22314
22315 * collect2.c (defined): Revert to before r254460.
22316 (scan_prog_file): Revert to before r254460.
22317
22318 2019-07-08 Richard Biener <rguenther@suse.de>
22319
22320 PR tree-optimization/83518
22321 * tree-ssa-sccvn.c: Include splay-tree.h.
22322 (struct pd_range, struct pd_data): New.
22323 (struct vn_walk_cb_data): Add data to track partial definitions.
22324 (vn_walk_cb_data::~vn_walk_cb_data): New.
22325 (vn_walk_cb_data::push_partial_def): New.
22326 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22327 (vn_reference_lookup_2): When partial defs are registered give up.
22328 (vn_reference_lookup_3): Track partial defs for memset and
22329 constructor zeroing and for defs from constants.
22330
22331 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22332
22333 * doc/install.texi (bootstrap-Og): Document.
22334
22335 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22336
22337 * config/riscv/pic.md (*local_pic_load_s<mode>)
22338 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22339 referenced by <mode>, giving...
22340 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22341 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22342 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22343 use <X:MODE> for the mode attribute.
22344
22345 2019-07-07 Jeff Law <law@redhat.com>
22346
22347 PR tree-optimization/91090
22348 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22349 in handling of ranges to simplify switch statements.
22350
22351 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22352
22353 * config/darwin.c (darwin_override_options): Make a final check on PIC
22354 options.
22355
22356 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22357
22358 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22359 on for kernel code.
22360
22361 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22362
22363 PR target/91068
22364 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22365 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22366 instead of matching them to "l" output operands.
22367
22368 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22369
22370 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22371 and check whether addr.reg is nonnull before using it.
22372
22373 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22374
22375 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22376 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22377 variable(s). For conditional lastprivate look through outer
22378 GIMPLE_OMP_SCAN context.
22379 (lower_omp_1): For conditional lastprivate look through outer
22380 GIMPLE_OMP_SCAN context.
22381
22382 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22383 member to combined_into_simd_safelen1.
22384 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22385 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22386 clauses if ctx->combined_into_simd_safelen1 put statements after the
22387 predicate conditionalized block rather than into it.
22388
22389 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22390
22391 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22392 operand 1.
22393 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22394 Make the choice of <mode> explicit, giving...
22395 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22396
22397 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22398
22399 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22400 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22401 of .md attributes.
22402 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22403 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22404 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22405 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22406 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22407 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22408 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22409 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22410 (*avx512f_scatterdi<mode>): Likewise.
22411 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22412
22413 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22414
22415 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22416 specify the mode iterator referenced by <mode>, giving...
22417 (*push1_h8300hs_<QHI:mode>): ...this.
22418
22419 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22420
22421 * config/gcn/gcn-valu.md
22422 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22423 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22424 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22425 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22426 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22427 but using the _exec comparison patterns.
22428 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22429 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22430 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22431 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22432 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22433 but using the _exec comparison patterns.
22434
22435 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22436
22437 * config/arm/sync.md
22438 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22439 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22440 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22441 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22442 <SIDI:cas_cmp_str>.
22443
22444 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22445
22446 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22447 (maybe_lookup_ctx): Add forward declaration.
22448 (omp_find_scan): Likewise. Walk into body of simd if composited
22449 with worksharing loop.
22450 (scan_omp_simd_scan): New function.
22451 (scan_omp_1_stmt): Call it.
22452 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22453 ctx->for_simd_scan_phase.
22454 (lower_rec_input_clauses): Do much less work for inscan reductions
22455 in ctx->for_simd_scan_phase is_simd regions.
22456 (lower_omp_scan): Set is_simd also on simd constructs composited
22457 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22458 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22459 emit their body after in simd constructs composited with worksharing
22460 loop.
22461 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22462
22463 * omp-low.c (omp_find_scan): Make static.
22464 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22465 the second loop, var2 represents the first partial sum and so needs
22466 to go before rprivb[ivar].
22467
22468 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22469
22470 * config/rs6000/rs6000-logue.c: Remove unused code.
22471
22472 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22473
22474 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22475
22476 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22477
22478 PR target/90712
22479 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22480 check with a frame laid out check.
22481
22482 2019-07-05 Richard Biener <rguenther@suse.de>
22483
22484 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22485 when comparing against a store with possibly the same value.
22486
22487 2019-07-05 Richard Biener <rguenther@suse.de>
22488
22489 PR tree-optimization/91091
22490 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22491 (walk_non_aliased_vuses): Likewise.
22492 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22493 (get_continuation_for_phi): New tbaa_p parameter and pass
22494 it down.
22495 (walk_non_aliased_vuses): Likewise.
22496 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22497 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22498 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22499 Likewise.
22500 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22501 (adjust_offsets_for_equal_base_address): New function.
22502 (vn_reference_lookup_3): Use it to catch more base equivalences.
22503 Handle and pass down tbaa_p flag.
22504 (vn_reference_lookup_pieces): Adjust.
22505 (vn_reference_lookup): Remove alias-set altering, instead pass
22506 down false as tbaa_p.
22507
22508 2019-07-05 Richard Biener <rguenther@suse.de>
22509
22510 PR tree-optimization/91091
22511 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22512 accesses can happen with -fno-strict-aliasing.
22513
22514 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22515
22516 * tree-ssa-alias.c (alias_stats): Add
22517 nonoverlapping_component_refs_since_match_p_must_overlap.
22518 (dump_alias_stats): Print it.
22519 (nonoverlapping_component_refs_since_match_p): Add early exit.
22520 (nonoverlapping_component_refs_p): Do not account early exit.
22521
22522 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22523
22524 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22525 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22526 (emit_eh_dispatch): Delete.
22527 (lower_catch): Emit the eh_dispatch manually and set the location of
22528 the first catch statement onto it.
22529 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22530 (lower_eh_dispatch): Propagate location.
22531 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22532 (eliminate_build): Likewise.
22533
22534 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22535
22536 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22537 phi nodes if possible.
22538 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22539 location info on the newly created statement.
22540 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22541 newly created increment if needed.
22542
22543 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22544
22545 PR middle-end/78884
22546 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22547 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22548 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22549 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22550 ctx->add_safelen1 is set.
22551
22552 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22553 GOMP_loop_start at the start of second worksharing loop in a scan.
22554 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22555 worksharing loop in a scan even if there are conditional lastprivates,
22556 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22557
22558 2019-07-04 Jan Hubicka <jh@suse.cz>
22559
22560 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22561 Fix check for match in the ref walk.
22562
22563 2019-07-04 Martin Liska <mliska@suse.cz>
22564
22565 * tree-ssa-loop-niter.c
22566 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22567 (estimate_numbers_of_iterations):
22568 Support __builtin_expect_with_probability for analysis
22569 of # of loop iterations.
22570
22571 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22572
22573 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22574 * except.c: Likewise.
22575 * expr.c (expand_expr_real_1): Reject it.
22576 * gimplify.c (gimplify_expr): Gimplify it, within
22577 TRY_FINALLY_EXPR.
22578 * tree-dump.c (dequeue_and_dump): Dump it.
22579 * tree-pretty-print.c (dump_generic_node): Likewise.
22580 * tree.c (block_may_fallthru): Handle it.
22581 * tree.def (EH_ELSE_EXPR): Introduce it.
22582 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22583 with GIMPLE_EH_ELSE as try/finally/else.
22584
22585 2019-07-04 Richard Biener <rguenther@suse.de>
22586
22587 PR ipa/91062
22588 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22589 parameter whether to disable GC collection.
22590 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22591 honor it.
22592 (execute_all_ipa_transforms): Likewise and pass it down.
22593 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22594 collection from applying IPA transforms.
22595 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22596 from applying IPA transforms.
22597
22598 2019-07-04 Richard Biener <rguenther@suse.de>
22599
22600 PR tree-optimization/90911
22601 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22602 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22603 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22604 scalar_loop_scaling.
22605 (vect_transform_loop): Scale scalar loop profile if needed.
22606 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22607 the loop copy from if-conversion adjust edge probabilities
22608 and scale the vectorized loop body profile, queue the scalar
22609 profile for updating after peeling.
22610
22611 2019-07-04 Jan Hubicka <jh@suse.cz>
22612
22613 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22614 parameters; return early for must-alias.
22615 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22616 outer types match, try nonoverlapping_component_refs
22617 if must-alias is not obvious.
22618 (indirect_refs_may_alias_p): Likewise.
22619 (refs_may_alias_p_2): Likewise.
22620
22621 2019-07-04 Richard Biener <rguenther@suse.de>
22622
22623 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22624 argument.
22625 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22626 globals into...
22627 (struct vn_walk_cb_data): New callback data struct.
22628 (vn_reference_lookup_2): Adjust.
22629 (vn_reference_lookup_3): Likewise.
22630 (vn_reference_lookup_pieces): Likewise.
22631 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22632 (visit_reference_op_load): Adjust.
22633
22634 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22635
22636 PR tree-optimization/91063
22637 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22638 stmt from stmts sequence before calling vect_init_vector_1.
22639 Formatting fix.
22640
22641 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22642
22643 PR target/88833
22644 * fwprop.c (reg_single_def_p): New function.
22645 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22646 (forward_propagate_into): New parameter reg_prop_only
22647 with default value false.
22648 Propagate def's src into loop only if SET_SRC and SET_DEST
22649 of def_set have single definitions.
22650 Likewise if reg_prop_only is set to true.
22651 (fwprop): New param fwprop_addr_p.
22652 Integrate fwprop_addr into fwprop.
22653 (fwprop_addr): Remove.
22654 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22655 to true.
22656 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22657 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22658 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22659
22660 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22661
22662 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22663 in worksharing loop scans.
22664
22665 PR tree-optimization/91074
22666 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22667 temporary.
22668
22669 PR rtl-optimization/90756
22670 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22671 for VECTOR_TYPE_P.
22672
22673 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22674
22675 * config/aarch64/aarch64.md: Remove redundant constraints from
22676 define_expand but keep some patterns untouched if they are
22677 specially selected by TARGET_SECONDARY_RELOAD hook.
22678 * config/aarch64/aarch64-sve.md: Likewise.
22679 * config/aarch64/atomics.md: Remove redundant constraints from
22680 define_expand.
22681 * config/aarch64/aarch64-simd.md: Likewise.
22682
22683 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22684
22685 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22686 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22687 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22688 clauses.
22689 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22690 DARWIN_NOPIE_SPEC.
22691
22692 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22693
22694 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22695 (STARTFILE_SPEC): Split crt3 into a separate spec.
22696 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22697 (DARWIN_CRT2_SPEC): New.
22698 (DARWIN_CRT3_SPEC): New.
22699 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22700 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22701 (DARWIN_CRT3_SPEC): New.
22702
22703 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22704
22705 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22706 Change the RTL attribute "length" from "4" to "*" to allow the
22707 length attribute to be adjusted automatically for prefixed load,
22708 store, and add immediate instructions.
22709 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22710 Likewise.
22711 (extendsi<mode>2, EXTSI iterator): Likewise.
22712 (movsi_internal1): Likewise.
22713 (movsi_from_sf): Likewise.
22714 (movdi_from_sf_zero_ext): Likewise.
22715 (mov<mode>_internal): Likewise.
22716 (movcc_internal1, QHI iterator): Likewise.
22717 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22718 (movsf_from_si): Likewise.
22719 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22720 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22721 (mov<mode>, FMOVE128 iterator): Likewise.
22722 (movdi_internal64): Likewise.
22723 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22724 Likewise.
22725 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22726 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22727 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22728 (vsx_splat_v4sf): Likewise.
22729
22730 2019-07-03 Mark Wielaard <mark@klomp.org>
22731
22732 PR debug/90981
22733 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22734 DW_AT_addr_base if there is actually a .debug_addr section with
22735 addresses.
22736 (output_addr_table): Add DWARF5 table header generation here after
22737 checking there are actually any addresses from...
22738 (dwarf2out_finish): ...here.
22739
22740 2019-07-03 Richard Biener <rguenther@suse.de>
22741
22742 PR middle-end/91069
22743 * match.pd (vec_perm -> bit_insert): Fix element read from
22744 first vector.
22745
22746 2019-07-03 Martin Liska <mliska@suse.cz>
22747
22748 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22749 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22750 condition.
22751 * generic-match-head.c: Include dbgcnt.h.
22752 * gimple-match-head.c: Likewise.
22753
22754 2019-07-03 Martin Liska <mliska@suse.cz>
22755
22756 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22757 (GCOV_COUNTER_V_TOPN): New.
22758 (GCOV_COUNTER_V_INDIR): Use _topn.
22759 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22760 (GCOV_TOPN_VALUES): New.
22761 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22762 (GCOV_TOPN_VALUES_COUNTERS): New.
22763 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22764 * tree-profile.c:
22765 (gimple_init_gcov_profiler): Rename variables from one_value
22766 to topn_values.
22767 (gimple_gen_one_value_profiler): Remove.
22768 (gimple_gen_topn_values_profiler): New function.
22769 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22770 names instead of SINGLE_VALUE.
22771 (stream_out_histogram_value): Likewise.
22772 (stream_in_histogram_value): Likewise.
22773 (get_most_common_single_value): Likewise.
22774 (gimple_divmod_fixed_value_transform): Likewise.
22775 (gimple_stringops_transform): Likewise.
22776 (gimple_divmod_values_to_profile): Likewise.
22777 (gimple_stringops_values_to_profile): Likewise.
22778 (gimple_find_values_to_profile): Likewise.
22779 * value-prof.h (enum hist_type): Rename to TOPN.
22780 (gimple_gen_one_value_profiler): Remove.
22781 (gimple_gen_topn_values_profiler): New.
22782
22783 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22784
22785 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22786 if it has the DW_AT_data_member_location attribute.
22787
22788 2019-07-03 Richard Biener <rguenther@suse.de>
22789
22790 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22791 dumping.
22792
22793 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22794
22795 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22796 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22797 (tlsdesc_small_sve_<mode>): Likewise.
22798
22799 2019-07-03 Martin Liska <mliska@suse.cz>
22800
22801 * Makefile.in: Define ZSTD_LIB.
22802 * common.opt: Adjust compression level
22803 to support also zstd levels.
22804 * config.in: Regenerate.
22805 * configure: Likewise.
22806 * configure.ac: Add --with-zstd and --with-zstd-include options
22807 and detect ZSTD.
22808 * doc/install.texi: Mention zstd dependency.
22809 * gcc.c: Print supported LTO compression algorithms.
22810 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22811 (lto_compression_zstd): Likewise.
22812 (lto_uncompression_zstd): Likewise.
22813 (lto_end_compression): Dispatch in between zlib and zstd.
22814 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22815 (lto_uncompression_zlib): Make it static.
22816 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22817 * lto-section-in.c (lto_get_section_data): Pass info
22818 about used compression.
22819 * lto-streamer-out.c: By default use zstd when possible.
22820 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22821 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22822
22823 2019-07-03 Martin Liska <mliska@suse.cz>
22824
22825 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22826 * lto-section-out.c (lto_destroy_simple_output_block): Never
22827 compress LTO_section_lto section.
22828 * lto-streamer-out.c (produce_asm): Do not set major_version
22829 and minor_version.
22830 (lto_output_toplevel_asms): Likewise.
22831 (produce_lto_section): New function.
22832 (lto_output): Call produce_lto_section.
22833 (lto_write_mode_table): Do not set major_version and
22834 minor_version.
22835 (produce_asm_for_decls): Likewise.
22836 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22837 type.
22838 (struct lto_header): Remove.
22839 (struct lto_section): New struct.
22840 (struct lto_simple_header): Do not inherit from lto_header.
22841 (struct lto_file_decl_data): Add lto_section_header field.
22842
22843 2019-07-03 Martin Liska <mliska@suse.cz>
22844
22845 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22846 dead assignemts.
22847 * reg-stack.c (check_asm_stack_operands): Likewise.
22848 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22849 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22850 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22851 force_expand_binop.
22852
22853 2019-07-03 Martin Liska <mliska@suse.cz>
22854
22855 PR tree-optimization/90892
22856 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22857 in string constants.
22858
22859 2019-07-03 Martin Liska <mliska@suse.cz>
22860
22861 PR middle-end/90899
22862 * multiple_target.c (create_dispatcher_calls): Add to comdat
22863 group only if set for ifunc.
22864
22865 2019-07-03 Martin Liska <mliska@suse.cz>
22866
22867 PR target/88056
22868 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22869 Define local_object_name in outer scope in order to handle
22870 use-after-scope issue.
22871
22872 2019-07-03 Martin Liska <mliska@suse.cz>
22873
22874 * common.opt: Add fprofile-note.
22875 * coverage.c (coverage_init): Append the option
22876 to bbg_file_name.
22877 * doc/invoke.texi: Document -fprofile-note.
22878
22879 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22880
22881 PR tree-optimization/91033
22882 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22883 vect_analyze_data_refs): Add bool * arguments.
22884 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22885 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22886 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22887 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22888 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22889 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22890 vect_analyze_data_refs caller.
22891
22892 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22893 clause.
22894 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22895 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22896 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22897 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22898 OMP_CLAUSE__SCANTEMP_ entry.
22899 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22900 * tree-pretty-print.c (dump_omp_clause): Likewise.
22901 * tree-nested.c (convert_nonlocal_omp_clauses,
22902 convert_local_omp_clauses): Likewise.
22903 * omp-general.h (struct omp_for_data): Add have_scantemp and
22904 have_nonctrl_scantemp members.
22905 * omp-general.c (omp_extract_for_data): Initialize them.
22906 * omp-low.c (struct omp_context): Add scan_exclusive member.
22907 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22908 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22909 ctx->scan_exclusive.
22910 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22911 of !ctx->scan_inclusive.
22912 (lower_rec_input_clauses): Simplify gimplification of dtors using
22913 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22914 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22915 loops. Don't add barrier for reduction_omp_orig_ref if
22916 ctx->scan_??xclusive.
22917 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22918 (lower_omp_scan): Use ctx->scan_exclusive instead
22919 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22920 reductions. Use new_vard != new_var instead of repeated
22921 omp_is_reference calls.
22922 (omp_find_scan, lower_omp_for_scan): New functions.
22923 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22924 inscan reductions.
22925 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22926 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22927 and fd->have_scantemp.
22928
22929 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22930 on worksharing loop propagate it as shared clause to containing
22931 combined parallel.
22932
22933 * omp-expand.c (expand_omp_for_static_nochunk,
22934 expand_omp_for_static_chunk): For nowait worksharing loop with
22935 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22936 at the end.
22937
22938 2019-07-02 qing zhao <qing.zhao@oracle.com>
22939
22940 PR preprocessor/90581
22941 * doc/cppopts.texi: Add document for -fmax-include-depth.
22942 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22943
22944 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22945
22946 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22947 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22948 (mmx_packssdw): Ditto.
22949 (mmx_punpckhbw): Ditto.
22950 (mmx_punpcklbw): Ditto.
22951 (mmx_punpckhwd): Ditto.
22952 (mmx_punpcklwd): Ditto.
22953 (mmx_punpckhdq): Ditto.
22954 (mmx_punpckldq): Ditto.
22955 (*vec_dupv4hi): Ditto.
22956 (*vec_dupv2si): Ditto.
22957 (mmx_pmovmskb): Ditto.
22958 * config/i386/sse.md (sse_cvtpi2ps): Use
22959 TARGET_SSE2 && SSE_REG_P in split condition.
22960 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22961 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22962 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22963 (ssse3_pshufbv8qi3): Ditto.
22964 (ssse3_palignrdi): Ditto.
22965
22966 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22967
22968 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22969 with inlined save and restore.
22970
22971 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22972
22973 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22974 to be inserted on single successor edge of the entry block. Then call
22975 commit_edge_insertions instead of inserting the instructions manually.
22976 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22977 RTL expansion and rebuild jump labels chain.
22978
22979 2019-07-02 Richard Biener <rguenther@suse.de>
22980
22981 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22982 TI_CHREC_KNOWN.
22983 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22984 Define here.
22985 * tree.c (build_common_tree_nodes): Initialize them.
22986 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22987 Make declarations comments.
22988 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22989 chrec_known): Remove definitions.
22990 (initialize_scalar_evolutions_analyzer): Remove.
22991 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22992 * tree-streamer.c (preload_common_nodes): Do not preload
22993 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22994
22995 2019-07-02 Jan Hubicka <jh@suse.cz>
22996
22997 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22998 sanity check.
22999
23000 2019-07-02 Jan Hubicka <jh@suse.cz>
23001
23002 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
23003 to ..
23004 (nonoverlapping_component_refs_since_match_p): ... this one;
23005 handle also non-decl bases; return -1 if search gave up.
23006 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
23007 nonoverlapping_component_refs_of_decl_p_no_alias to
23008 nonoverlapping_component_refs_since_match_p_may_alias,
23009 nonoverlapping_component_refs_since_match_p_no_alias.
23010 (dump_alias_stats): Update dumping.
23011 (aliasing_matching_component_refs_p): Break out from ...;
23012 dispatch to nonoverlapping_component_refs_for_decl_p
23013 and nonoverlapping_component_refs_since_match_p.
23014 (aliasing_component_refs_p): ... here; call
23015 nonoverlapping_component_refs_p in scenarios where we can not
23016 precisely determine base match.
23017 (decl_refs_may_alias_p): Use
23018 nonoverlapping_component_refs_since_match_p.
23019 (indirect_ref_may_alias_decl_p): Do not call
23020 nonoverlapping_component_refs_p.
23021 (indirect_refs_may_alias_p): Likewise.
23022
23023 2019-07-02 Jan Hubicka <jh@suse.cz>
23024
23025 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
23026 to clobber of return value.
23027
23028 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23029
23030 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
23031 for is_neon_type instructions that have not already been categorized.
23032
23033 2019-07-02 Richard Biener <rguenther@suse.de>
23034
23035 PR tree-optimization/58483
23036 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
23037 for MEM_REF base hashing.
23038 (equal_mem_array_ref_p): Likewise for base comparison.
23039
23040 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23041
23042 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
23043 parameterized name.
23044 (signbit<mode>2): Use that name. Simplify.
23045
23046 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
23047
23048 PR middle-end/66726
23049 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
23050 Tune heuristic from PR71016 to allow MIN / MAX.
23051
23052 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23053
23054 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
23055 parameterized name.
23056 (abs<mode>2): Use that name. Simplify.
23057
23058 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23059
23060 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
23061 parameterized name.
23062 (neg<mode>2): Use that name. Simplify.
23063
23064 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23065
23066 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
23067 name.
23068 (abs<mode>2): Use that name. Simplify.
23069
23070 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23071
23072 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
23073 name.
23074 (neg<mode>2): Use that name. Simplify.
23075
23076 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
23077
23078 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
23079 ("enabled" attribute): Handle sse_noavx isa attribute.
23080 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
23081 Use TARGET_SSE && SSE_REGNO_P in split condition.
23082 (*vec_dupv2sf): Ditto.
23083
23084 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23085
23086 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
23087 name.
23088 (floatsi<mode>2): Use that name. Simplify.
23089
23090 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23091
23092 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
23093 parameterized name.
23094 (extenddf<mode>2_vsx): Make this a parameterized name.
23095 (extenddf<mode>2): Use those names. Simplify.
23096
23097 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23098
23099 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
23100 name.
23101 (eh_return): Use that name. Simplify.
23102
23103 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23104
23105 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
23106 (doloop_end): Use that name. Simplify.
23107
23108 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23109
23110 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
23111 parameterized name.
23112 (indirect_jump): Use that name. Simplify.
23113
23114 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23115
23116 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
23117 parameterized name.
23118 (abs<mode>2): Use that name. Simplify.
23119
23120 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23121
23122 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
23123 parameterized name.
23124 (fix_trunc<mode>si2): Use that name. Simplify.
23125
23126 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23127
23128 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
23129 (allocate_stack): Use that name. Simplify.
23130
23131 2019-07-01 Martin Sebor <msebor@redhat.com>
23132
23133 PR middle-end/90923
23134 * hash-map.h (hash_map::put): On insertion invoke element ctor.
23135 (hash_map::get_or_insert): Same. Reformat comment.
23136 * hash-set.h (hash_set::add): On insertion invoke element ctor.
23137 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23138 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23139 * hash-table.h (hash_table::operator=): Prevent copy assignment.
23140 (hash_table::hash_table (const hash_table&)): Use copy ctor
23141 instead of assignment to copy elements.
23142
23143 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
23144 John David Anglin <danglin@gcc.gnu.org>
23145
23146 PR target/90963
23147 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23148 using saved frame pointer.
23149
23150 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
23151
23152 PR middle-end/64242
23153 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23154 Add frame clobber and schedule blockage.
23155
23156 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
23157
23158 * doc/invoke.texi (Link Options): Further editorial changes to
23159 -flinker-output docs.
23160
23161 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23162
23163 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23164 Load both operands of a PLUS into registers separately.
23165
23166 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23167
23168 * config/s390/vector.md: Fix shift count operand printing.
23169
23170 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23171
23172 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23173
23174 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23175
23176 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23177 Use recog_data to test for an output operand.
23178
23179 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23180
23181 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23182 exclude any others that are disparaged or that are bound to need
23183 a reload or spill.
23184 (ira_get_dup_out_num): Expand comment.
23185
23186 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23187
23188 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23189 constraint string for each operand/alternative combo. Only handle
23190 '%' at the start of constraint strings, and look for it outside
23191 the main loop.
23192
23193 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23194
23195 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23196 alternative_mask instead of HARD_REG_SET to represent a
23197 bitmask of alternatives.
23198 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23199 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23200
23201 2019-07-01 Martin Liska <mliska@suse.cz>
23202
23203 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23204 use () for a constructor call.
23205 (test_applying_fixits_line_out_of_range): Likewise.
23206 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23207 argument.
23208 (free_page): Likewise.
23209
23210 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23211
23212 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23213 parameter names to match usage (no functional change).
23214 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23215
23216 2019-07-01 Richard Biener <rguenther@suse.de>
23217
23218 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23219 pass parameter.
23220 (pass_fre::execute): Honor it.
23221 * passes.def: Adjust pass_fre invocations to allow iterating,
23222 add non-iterating pass_fre before late threading/dom.
23223
23224 2019-07-01 Richard Biener <rguenther@suse.de>
23225
23226 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23227 TARGET_MEM_REF handling to also handle address-taken ones.
23228
23229 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23230
23231 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23232 hardware attributes): Document avx512vp2intersect.
23233
23234 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23235
23236 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23237 (abs<mode>2): New expander.
23238 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23239 Use CODE_FOR_ssse3_absv8qi2.
23240 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23241 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23242
23243 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23244
23245 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23246 to sse, sse_noavx and avx. Update all uses.
23247
23248 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23249
23250 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23251 (*mmx_<plusminus_insn><mode>3): Ditto.
23252 (*mmx_mulv4hi3"): Ditto.
23253 (*mmx_smulv4hi3_highpart): Ditto.
23254 (*mmx_umulv4hi3_highpart): Ditto.
23255 (*mmx_pmaddwd): Ditto.
23256 (*sse2_umulv1siv1di3): Ditto.
23257 (*mmx_<code>v4hi3): Ditto.
23258 (*mmx_<code>v8qi3): Ditto.
23259 (mmx_ashr<mode>3): Ditto.
23260 ("mmx_<shift_insn><mode>3): Ditto.
23261 (*mmx_eq<mode>3): Ditto.
23262 (mmx_gt<mode>3): Ditto.
23263 (mmx_andnot<mode>3): Ditto.
23264 (*mmx_<code><mode>3): Ditto.
23265 (*mmx_pinsrw): Ditto.
23266 (*mmx_pextrw): Ditto.
23267 (mmx_pshufw_1): Ditto.
23268 (*mmx_uavgv8qi3): Ditto.
23269 (*mmx_uavgv4hi3): Ditto.
23270 ("mmx_psadbw): Ditto.
23271 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23272 (sse_cvttps2pi): Ditto.
23273 (ssse3_pmaddubsw): Ditto.
23274 (*ssse3_pmulhrswv4hi3): Ditto.
23275 (ssse3_psign<mode>3): Ditto.
23276
23277 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23278
23279 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23280 adjustment for bit-fields to all aggregate types.
23281
23282 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23283
23284 * config/rs6000/predicates.md (pcrel_address): Use
23285 SYMBOL_REF_LOCAL_P to determine if a label is local.
23286 (pcrel_external_address): New predicate.
23287 (non_prefixed_mem_operand): Delete, predicate not used.
23288 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23289 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23290 addressing.
23291 (SYMBOL_REF_PCREL_P): Likewise.
23292
23293 PR target/91009
23294 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23295 alternative.
23296 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23297 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23298 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23299
23300 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23301
23302 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23303 override on extra_headers.
23304
23305 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23306
23307 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23308 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23309 from warning.
23310 (darwin_driver_init): Likewise.
23311
23312 2019-06-28 Jan Beulich <jbeulich@suse.com>
23313
23314 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23315 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23316 Eliminate redundant alternative.
23317
23318 2019-06-28 Jan Beulich <jbeulich@suse.com>
23319
23320 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23321 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23322 Use vector_operand.
23323
23324 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23325
23326 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23327 having a lower cost regardless of the speed option.
23328
23329 2019-06-28 Jan Beulich <jbeulich@suse.com>
23330
23331 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23332 vector_operand plus, on both alternatives, "Bm" constraint.
23333
23334 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23335
23336 * config/arm/arm.md: Remove redundant constraints from
23337 define_expand but leave reload_inm and reload_outm patterns
23338 untouched since they need special constraints to work.
23339 * config/arm/arm-fixed.md: Remove redundant constraints from
23340 define_expand.
23341 * config/arm/iwmmxt.md: Likewise.
23342 * config/arm/neon.md: Likewise.
23343 * config/arm/sync.md: Likewise.
23344 * config/arm/thumb1.md: Likewise.
23345 * config/arm/vec-common.md: Likewise.
23346
23347 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23348
23349 * doc/install.texi: Document --disable-tm-clone-registry.
23350
23351 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23352
23353 PR c++/91024
23354 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23355 statements.
23356
23357 PR tree-optimization/91010
23358 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23359 return true. Otherwise, don't call operand_equal_p if offset1 or
23360 offset2 is NULL and just return false.
23361
23362 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23363
23364 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23365 user-specified float mode choice for kernel mode code.
23366
23367 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23368
23369 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23370 spec.
23371
23372 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23373
23374 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23375 use longcall for 64b code.
23376
23377 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23378
23379 * builtins.c (get_memory_rtx): Fix comment.
23380 * optabs.def (movmem_optab): Change to cpymem_optab.
23381 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23382 (emit_block_move_hints): Change movmem to cpymem.
23383 * defaults.h: Change movmem to cpymem.
23384 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23385 (default_use_by_pieces_infrastructure_p): Ditto.
23386 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23387 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23388 to cpymem.
23389 * config/aarch64/aarch64.h: Change movmem to cpymem.
23390 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23391 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23392 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23393 movmem to cpymem.
23394 * config/arc/arc-protos.h: Change movmem to cpymem.
23395 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23396 * config/arc/arc.h: Change movmem to cpymem in comment.
23397 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23398 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23399 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23400 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23401 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23402 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23403 * config/avr/avr-protos.h: Change movmem to cpymem.
23404 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23405 avr_out_movmem): Change movmem to cpymem.
23406 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23407 Change movmem to cpymem.
23408 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23409 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23410 Change movmem to cpymem.
23411 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23412 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23413 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23414 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23415 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23416 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23417 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23418 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23419 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23420 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23421 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23422 expand_small_cpymem_or_setmem,
23423 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23424 expand_set_or_cpymem_constant_prologue,
23425 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23426 * config/i386/i386-protos.h: Change movmem to cpymem.
23427 * config/i386/i386.h: Change movmem to cpymem in comment.
23428 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23429 (setmem<mode>): Change expansion function name.
23430 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23431 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23432 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23433 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23434 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23435 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23436 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23437 to cpymem.
23438 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23439 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23440 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23441 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23442 Change movmem to cpymem.
23443 * config/mips/mips.h: Change movmem to cpymem.
23444 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23445 * config/nds32/nds32-memory-manipulation.c
23446 (nds32_expand_movmemsi_loop_unknown_size,
23447 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23448 nds32_expand_movmemsi_unroll,
23449 nds32_expand_movmemsi): Change movmem to cpymem.
23450 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23451 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23452 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23453 (pa_adjust_insn_length): Change call to compute_movmem_length.
23454 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23455 movmemdi, movmemdi_prereload,
23456 movmemdi_postreload): Change movmem to cpymem.
23457 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23458 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23459 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23460 * config/riscv/riscv.h: Change movmem to cpymem.
23461 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23462 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23463 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23464 movmem to cpymem.
23465 * config/s390/s390-protos.h: Change movmem to cpymem.
23466 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23467 s390_expand_insv): Change movmem to cpymem.
23468 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23469 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23470 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23471 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23472 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23473 for nonexistent function.
23474 * config/vax/vax.h: Change movmem to cpymem in comment.
23475 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23476 * config/visium/visium.h: Change movmem to cpymem in comment.
23477 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23478 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23479 * doc/md.texi: Change movmem to cpymem and update description to match.
23480 * doc/rtl.texi: Change movmem to cpymem.
23481 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23482 * doc/tm.texi: Regenerate.
23483
23484 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23485
23486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23487 -fvariable-expansion-in-unroller by default.
23488 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23489 default for Power.
23490
23491 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23492
23493 Revert
23494 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23495 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23496
23497 * config.gcc(rs6000-*-*): Define target_gtfiles.
23498
23499 2019-06-27 Jan Hubicka <jh@suse.cz>
23500
23501 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23502 (add_type_duplicate): When odr hash is not allocated, to nothing.
23503 (odr_based_tbaa_p): New function.
23504 (set_type_canonical_for_odr_type): New function.
23505 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23506 set_type_canonical_for_odr_type): New.
23507 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23508 ODR based TBAA are not equivalent to non-ODR types.
23509
23510 2019-06-27 Martin Liska <mliska@suse.cz>
23511
23512 PR tree-optimization/90974
23513 PR rtl-optimization/90975
23514 PR rtl-optimization/90976
23515 PR target/91016
23516 PR tree-optimization/91017
23517 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23518 unused tmp.
23519 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23520 initial commit of IRA.
23521 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23522 of op0 and op1.
23523 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23524 Remove unused mode1.
23525 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23526 to new_stmt_info.
23527
23528 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23529
23530 PR target/90991
23531 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23532 instead of register_operand for operands[1], add m to its constraints
23533 if operands[2] uses "C" constraint. Ensure in condition that if
23534 operands[2] is not 0, then operands[1] is not a MEM. For last two
23535 alternatives, use unaligned loads instead of aligned if operands[1] is
23536 misaligned_operand.
23537
23538 2019-06-27 Martin Liska <mliska@suse.cz>
23539
23540 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23541 dead assignments.
23542 * bt-load.c (move_btr_def): Likewise.
23543 * builtins.c (expand_builtin_apply_args_1): Likewise.
23544 (expand_builtin_apply): Likewise.
23545 * cfgexpand.c (expand_asm_stmt): Likewise.
23546 (construct_init_block): Likewise.
23547 * cfghooks.c (verify_flow_info): Likewise.
23548 * cfgloopmanip.c (remove_path): Likewise.
23549 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23550 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23551 * combine.c (simplify_if_then_else): Likewise.
23552 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23553 (choose_basereg): Likewise.
23554 (ix86_expand_prologue): Likewise.
23555 (ix86_preferred_output_reload_class): Likewise.
23556 * cselib.c (cselib_record_sets): Likewise.
23557 * df-scan.c (df_scan_alloc): Likewise.
23558 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23559 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23560 * emit-rtl.c (try_split): Likewise.
23561 * graphite-scop-detection.c (assign_parameter_index_in_region):
23562 Likewise.
23563 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23564 * ira-color.c (setup_profitable_hard_regs): Likewise.
23565 * ira.c (rtx_moveable_p): Likewise.
23566 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23567 * read-rtl.c (read_subst_mapping): Likewise.
23568 * regrename.c (scan_rtx): Likewise.
23569 * reorg.c (fill_slots_from_thread): Likewise.
23570 * tree-inline.c (tree_function_versioning): Likewise.
23571 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23572 * tree-ssa-sink.c (statement_sink_location): Likewise.
23573 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23574 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23575 (vect_create_epilog_for_reduction): Likewise.
23576 * tree.c (build_nonstandard_integer_type): Likewise.
23577
23578 2019-06-27 Richard Biener <rguenther@suse.de>
23579
23580 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23581
23582 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23583
23584 PR tree-optimization/89772
23585 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23586 out-of-bound accesses checking.
23587
23588 2019-06-27 Martin Liska <mliska@suse.cz>
23589
23590 PR tree-optimization/91014
23591 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23592 when LHS is NULL_TREE.
23593
23594 2019-06-27 Martin Liska <mliska@suse.cz>
23595
23596 * symbol-summary.h (traverse): Pass
23597 argument a to the call of callback.
23598 (gt_ggc_mx): Mark arguments as unused.
23599 (gt_pch_nx): Likewise.
23600
23601 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23602
23603 PR target/62147
23604 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23605 finiteness.
23606
23607 2019-06-26 Jeff Law <law@redhat.com>
23608
23609 PR tree-optimization/90883
23610 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23611 (delete_dead_or_redundant_assignment): Likewise.
23612
23613 PR tree-optimization/90883
23614 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23615 * tree-ssa-dse.c: Update various comments to distinguish between
23616 dead and redundant stores.
23617 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23618 (dse_optimize_redundant_stores): New function.
23619 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23620 Distinguish between dead and redundant calls in dump output. All
23621 callers updated.
23622 (delete_dead_or_redundant_assignment): Similarly for assignments.
23623 (dse_optimize_stmt): Handle _CHK variants. For statements which
23624 store 0 into multiple memory locations, try to prove a subsequent
23625 store is redundant.
23626
23627 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23628
23629 PR target/89021
23630 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23631 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23632
23633 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23634
23635 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23636 (branch_islands): New extern.
23637 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23638 * config/rs6000/rs6000.c: .. here.
23639
23640 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23641
23642 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23643 (powerpc*-*-*) ... to here.
23644
23645 2019-06-26 Jeff Law <law@redhat.com>
23646
23647 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23648 memcpy, memmove and memset builtins.
23649 (maybe_trim_memstar_call): Likewise.
23650
23651 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23652
23653 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23654
23655 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23656
23657 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23658
23659 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23660
23661 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23662 declaration.
23663 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23664 "static".
23665 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23666 declaration.
23667
23668 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23669
23670 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23671
23672 2019-06-26 Richard Biener <rguenther@suse.de>
23673
23674 PR ipa/90982
23675 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23676
23677 2019-06-26 Richard Biener <rguenther@suse.de>
23678
23679 * lto-streamer.h (lto_bitmap_alloc): Remove.
23680 (lto_bitmap_free): Likewise.
23681 * lto-streamer.c (lto_bitmap_alloc): Remove.
23682 (lto_bitmap_free): Likewise.
23683 (lto_obstack): Likewise.
23684 (lto_obstack_initialized): Likewise.
23685 * lto-streamer-out.c (lto_output): Use own obstack for local
23686 bitmap, free it consistently.
23687
23688 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23689
23690 PR target/90991
23691 * config/i386/sse.md
23692 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23693 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23694 insns if operands[2] is misaligned_operand.
23695
23696 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23697
23698 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23699 TARGET_POWERPC64.
23700 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23701 to GPR.
23702
23703 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23704
23705 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23706
23707 2019-06-26 Martin Liska <mliska@suse.cz>
23708
23709 PR tree-optimization/90973
23710 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23711 epilogue_cost_vec instead of prologue_cost_vec for
23712 a epilogue cost.
23713
23714 2019-06-26 Martin Liska <mliska@suse.cz>
23715
23716 * bb-reorder.c (connect_better_edge_p): Add missing else
23717 statement in the middle of if-else statements.
23718
23719 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23720 H.J. Lu <hongjiu.lu@intel.com>
23721 Olga Makhotina <olga.makhotina@intel.com>
23722
23723 * common/config/i386/i386-common.c
23724 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23725 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23726 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23727 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23728 (ix86_handle_option): Handle -mavx512vp2intersect.
23729 * config/i386/avx512vp2intersectintrin.h: New.
23730 * config/i386/avx512vp2intersectvlintrin.h: New.
23731 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23732 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23733 AVX512VP2INTERSECT.
23734 * config/i386/i386-builtin-types.def: Add new types.
23735 * config/i386/i386-builtin.def: Add new builtins.
23736 * config/i386/i386-builtins.c: (enum processor_features): Add
23737 F_AVX512VP2INTERSECT.
23738 (static const _isa_names_table isa_names_table): Ditto.
23739 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23740 __AVX512VP2INTERSECT__.
23741 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23742 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23743 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23744 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23745 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23746 * config/i386/i386-options.c (ix86_target_string): Add
23747 -mavx512vp2intersect.
23748 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23749 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23750 P2HImode and P2QImode.
23751 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23752 number for P2QImode and P2HImode.
23753 (ix86_regmode_natural_size): New function.
23754 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23755 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23756 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23757 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23758 * config/i386/i386.opt: Add -mavx512vp2intersect.
23759 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23760 avx512vp2intersectvlintrin.h.
23761 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23762 (define_mode_iterator VI48_AVX512VP2VL): New.
23763 (avx512vp2intersect_2intersect<mode>,
23764 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23765 * config.gcc: Add avx512vp2intersectvlintrin.h and
23766 avx512vp2intersectintrin.h to extra_headers.
23767 * doc/invoke.texi: Document -mavx512vp2intersect.
23768
23769 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23770
23771 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23772
23773 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23774
23775 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23776 savres_routine_syms, savres_routine_name, morestack_ref,
23777 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23778 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23779 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23780 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23781 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23782 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23783 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23784 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23785 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23786 get_stack_clash_protection_probe_interval,
23787 get_stack_clash_protection_guard_size,
23788 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23789 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23790 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23791 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23792 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23793 gen_frame_mem_offset, rs6000_savres_routine_name,
23794 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23795 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23796 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23797 rs6000_global_entry_point_prologue_needed_p,
23798 rs6000_get_separate_components, rs6000_components_for_bb,
23799 rs6000_disqualify_components, rs6000_emit_prologue_components,
23800 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23801 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23802 rs6000_output_savres_externs, rs6000_output_function_prologue,
23803 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23804 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23805 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23806 rs6000_output_function_epilogue, gen_add3_const,
23807 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23808 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23809 to rs6000-logue.c.
23810 (machine_function): Moved to rs6000.h.
23811 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23812 rs6000-internal.h.
23813 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23814 savres_routine_syms, savres_routine_name, morestack_ref,
23815 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23816 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23817 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23818 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23819 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23820 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23821 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23822 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23823 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23824 get_stack_clash_protection_probe_interval,
23825 get_stack_clash_protection_guard_size,
23826 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23827 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23828 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23829 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23830 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23831 gen_frame_mem_offset, rs6000_savres_routine_name,
23832 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23833 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23834 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23835 rs6000_global_entry_point_prologue_needed_p,
23836 rs6000_get_separate_components, rs6000_components_for_bb,
23837 rs6000_disqualify_components, rs6000_emit_prologue_components,
23838 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23839 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23840 rs6000_output_savres_externs, rs6000_output_function_prologue,
23841 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23842 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23843 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23844 rs6000_output_function_epilogue, gen_add3_const,
23845 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23846 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23847 to here from rs6000.c.
23848 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23849 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23850 quad_address_offset_p) Moved to here from rs6000.c.
23851 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23852 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23853 collector.
23854
23855 2019-06-25 Martin Liska <mliska@suse.cz>
23856
23857 * hash-table.c (hashtab_chk_error): Move here from ...
23858 * hash-table.h (hashtab_chk_error): ... here.
23859
23860 2019-06-25 Martin Liska <mliska@suse.cz>
23861
23862 PR tree-optimization/90978
23863 * df-scan.c (df_update_entry_block_defs): Remove dead else
23864 branch.
23865 (df_update_exit_block_uses): Likewise.
23866
23867 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23868 Andrew Stubbs <ams@codesourcery.com>
23869
23870 * config.gcc (thread_file): Set to gcn for AMD GCN.
23871 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23872 (TARGET_EMUTLS_VAR_INIT): New hook.
23873
23874 2019-06-25 Martin Jambor <mjambor@suse.cz>
23875
23876 PR ipa/90939
23877 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23878
23879 2019-06-25 Richard Biener <rguenther@suse.de>
23880
23881 PR tree-optimization/90930
23882 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23883 into parallel form in the last pass instance.
23884
23885 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23886
23887 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23888 (arc_legitimize_pic_address): Simplify and cleanup the function.
23889 (SYMBOLIC_CONST): Remove.
23890 (prepare_pic_move): Likewise.
23891 (prepare_move_operands): Handle complex mov cases here.
23892 (arc_legitimize_address_0): Remove call to
23893 arc_legitimize_pic_address.
23894 (arc_legitimize_address): Remove call to
23895 arc_legitimize_tls_address.
23896 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23897 (movhi_insn): Likewise.
23898
23899 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23900
23901 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23902 PTRDIFF_TYPE.
23903 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23904 format of "__intN" types for UINTMAX_TYPE.
23905 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23906 format of "__intN" types for SIZETYPE.
23907 * tree.c (build_common_tree_nodes): Accept "__intN__"
23908 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23909 * doc/invoke.texi: Document that __intN__ disables pedantic
23910 warnings.
23911
23912 2019-06-25 Jan Hubicka <jh@suse.cz>
23913
23914 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23915 base2_alias_set is non-zero before doing TBAA based disambiguation.
23916
23917 2019-06-25 Martin Liska <mliska@suse.cz>
23918
23919 PR tree-optimization/90973
23920 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23921 of prologue and epilogue.
23922
23923 2019-06-24 Jan Hubicka <jh@suse.cz>
23924
23925 * ipa-utils.h (type_with_linkage_p): Verify that type is
23926 CXX_ODR_P.
23927 (odr_type_p): Remove extra return.
23928 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23929 hash STRING_FLAG only for arrays and integers.
23930 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23931 Update analogously.
23932 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23933 Likewise.
23934 * print-tree.c (print_node): Print cxx-odr-p
23935 and string-flag.
23936 * tree.c (need_assembler_name_p): Also check that type
23937 is CXX_ODR_TYPE_P
23938 (verify_type_variant): Update verification of SRING_FLAG;
23939 also check CXX_ODR_P.
23940 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23941 (TYPE_STRING_FLAG): Use it.
23942 (TYPE_CXX_ODR_P): New macro.
23943 * dwarf2out.c (gen_array_type_die): First check that type
23944 is an array and then test string flag.
23945
23946 2019-06-24 Richard Biener <rguenther@suse.de>
23947
23948 PR tree-optimization/90972
23949 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23950 in common code, dealing with STRING_CST properly.
23951
23952 2019-06-24 Richard Biener <rguenther@suse.de>
23953
23954 PR tree-optimization/90930
23955 PR tree-optimization/90316
23956 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23957 decrement of limit.
23958
23959 2019-06-24 Martin Sebor <msebor@redhat.com>
23960
23961 * tree-pretty-print.h: Remove unnecessary punctuation characters
23962 from a diagnostic.
23963 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23964
23965 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23966
23967 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23968 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23969 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23970
23971 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23972
23973 * config/rs6000/darwin.h: Handle GCC target pragma.
23974
23975 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23976
23977 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23978
23979 2019-06-22 Jeff Law <law@redhat.com>
23980
23981 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23982
23983 2019-06-22 Jan Hubicka <jh@suse.cz>
23984
23985 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23986 give up on bitfields; continue searching for different refs
23987 appearing later.
23988
23989 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23990
23991 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23992 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23993 containing the offset as possible simd lane access. Look through
23994 widening conversion. Move the
23995 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23996
23997 2019-06-21 Richard Biener <rguenther@suse.de>
23998
23999 PR tree-optimization/90930
24000 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
24001 flag on new stmts to avoid re-processing them.
24002
24003 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
24004
24005 PR c++/90875 - added -Wswitch-outside-range option
24006 * doc/invoke.texi (Wswitch-outside-range): Document.
24007
24008 2019-06-21 Jeff Law <law@redhat.com>
24009
24010 PR tree-optimization/90949
24011 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
24012 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
24013
24014 2019-06-21 Richard Biener <rguenther@suse.de>
24015
24016 PR debug/90914
24017 * dwarf2out.c (prune_unused_types_walk): Always consider
24018 function-local extern declarations as used.
24019
24020 2019-06-21 Richard Biener <rguenther@suse.de>
24021
24022 PR tree-optimization/90913
24023 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
24024 the scalar variant of if-conversion versioning.
24025
24026 2019-06-21 Jakub Jelinek <jakub@redhat.com>
24027
24028 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
24029 create another "omp scan inscan exclusive" array if
24030 !ctx->scan_inclusive.
24031 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
24032 (lower_omp_scan): Likewise.
24033 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
24034 2-bit bitfield for simd_lane_access_p member.
24035 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
24036 aux == (void *)-4 as simd lane access.
24037 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
24038 comment with permutations to show the canonical permutation order.
24039 (vectorizable_scan_store): Handle exclusive scan.
24040 (vectorizable_store): Call vectorizable_scan_store even for
24041 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
24042
24043 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
24044 "omp simd array" arrays with one byte elements.
24045
24046 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
24047
24048 * config/alpha/alpha.md (@unaligned_store<mode>):
24049 Rename from unaligned_store<mode>.
24050 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
24051 * config/alpha/sync.md (@load_locked_<mode>): Rename
24052 from load_locked_<mode>.
24053 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
24054 (@atomic_compare_and_swap<mode>_1): Rename
24055 from atomic_compare_and_swap<mode>_1.
24056 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
24057 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
24058 Use gen_reload_in_aligned and gen_unaligned_store.
24059 (emit_load_locked): Remove.
24060 (emit_store_conditional): Ditto.
24061 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
24062 (alpha_split_compare_and_swap): Ditto.
24063 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
24064 (alpha_split_compare_and_swap_12): Use gen_load_locked
24065 and gen_store_conditional.
24066 (alpha_split_atomic_exchange): Ditto.
24067 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
24068 (alpha_split_atomic_exchange_12): Use gen_load_locked
24069 and gen_store_conditional.
24070
24071 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
24072
24073 * config/aarch64/aarch64-errata.h: New file.
24074 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
24075 (CA53_ERR_843419_SPEC): Delete.
24076 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
24077 * config/aarch64/aarch64-linux.h: Likewise.
24078 * config/aarch64/aarch64-netbsd.h: Likewise.
24079 * config/aarch64/aarch64-freebsd.h: Likewise.
24080
24081 2019-06-20 Marek Polacek <polacek@redhat.com>
24082
24083 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
24084
24085 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
24086
24087 * config/rs6000/rs6000.md (isa attribute): Add support for
24088 for a future processor.
24089
24090 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
24091
24092 PR target/54855
24093 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
24094 standard scalar operation pattern for V2DF.
24095 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
24096 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
24097 (*ieee_<ieee_maxmin><mode>3): Likewise.
24098 (vec_setv2df_0): Likewise.
24099
24100 2019-06-20 Jan Hubicka <jh@suse.cz>
24101
24102 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
24103 parameter; it has no use in gimple memory model.
24104 (indirect_ref_may_alias_decl_p): Update.
24105
24106 2019-06-20 Martin Liska <mliska@suse.cz>
24107
24108 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
24109 to 10.
24110
24111 2019-06-20 Jakub Jelinek <jakub@redhat.com>
24112
24113 * tree-vect-stmts.c (enum scan_store_kind): New type.
24114 (scan_store_can_perm_p): Change last argument from int * to
24115 vec<enum scan_store_kind> *, record precisely which permutations
24116 need whole vector left shift or that plus VEC_COND_EXPR.
24117 (vectorizable_scan_store): Adjust caller, use whole vector left shift
24118 and additional VEC_COND_EXPR only for those iterations that need it.
24119
24120 2019-06-20 Alexandre Oliva <oliva@adacore.com>
24121
24122 * config.gcc: Fix ARM --with-fpu checking and error message.
24123
24124 2019-06-19 Marek Polacek <polacek@redhat.com>
24125
24126 PR c++/60364 - noreturn after first decl not diagnosed.
24127 * attribs.c (get_attribute_namespace): No longer static.
24128 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
24129 attributes.
24130 (attr_noreturn_exclusions): Make it extern.
24131 * attribs.h (get_attribute_namespace): Declare.
24132 * tree-inline.c (function_attribute_inlinable_p): Use
24133 get_attribute_name.
24134
24135 2019-06-19 Martin Sebor <msebor@redhat.com>
24136
24137 PR tree-optimization/90626
24138 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24139
24140 PR tree-optimization/90626
24141 * tree-ssa-strlen.c (strxcmp_unequal): New function.
24142 (handle_builtin_string_cmp): Call it.
24143
24144 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24145
24146 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24147 and DARWIN_NOPIE_SPEC.
24148 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24149 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24150 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24151 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24152 (DARWIN_EXPORT_DYNAMIC): Delete.
24153 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24154 and pie options processing to darwin.h.
24155 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24156
24157 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24158
24159 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24160 in computing the number of options to be moved.
24161
24162 2019-06-19 Maya Rashish <coypu@sdf.org>
24163
24164 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24165 (CLEAR_INSN_CACHE) Use it.
24166
24167 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24168
24169 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24170
24171 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24172
24173 PR middle-end/84521
24174 * builtins.c (expand_builtin_setjmp_setup): Save
24175 hard_frame_pointer_rtx.
24176 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24177 restore fp.
24178 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24179 non-local goto.
24180 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24181 elimination code.
24182 (remove_reg_equal_offset_note): Remove unused function.
24183 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24184 code.
24185 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24186 (arc_builtin_setjmp_frame_value): Remove function.
24187 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24188 (avr_builtin_setjmp_frame_value): Remove function.
24189 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24190 (ix86_builtin_setjmp_frame_value): Remove function.
24191 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24192 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24193 (sparc_builtin_setjmp_frame_value): Remove function.
24194 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24195 (vax_builtin_setjmp_frame_value): Remove function.
24196 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24197 pointer if has_nonlocal_label.
24198
24199 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24200
24201 * doc/md.texi: Document vec_shl_<mode> pattern.
24202 * optabs.def (vec_shl_optab): New optab.
24203 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24204 argument, if == vec_shl_optab, check for left whole vector shift
24205 pattern rather than right shift.
24206 (expand_vec_perm_const): Add vec_shl_optab support.
24207 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24208 in the comment.
24209 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24210 can be handled by vec_shl_optab.
24211 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24212 (check_scan_store): Use it.
24213 (vectorizable_scan_store): If target can't do normal permutations,
24214 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24215 after it.
24216 * config/i386/sse.md (vec_shl_<mode>): New expander.
24217
24218 * omp-low.c (lower_rec_input_clauses): Handle references properly
24219 in inscan clauses.
24220 (lower_omp_scan): Likewise.
24221
24222 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24223
24224 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24225 mem_mode is BLKmode.
24226
24227 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24228
24229 PR target/90922
24230 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24231 pointer adjustment for the case of no callee-saved registers and
24232 stack frame bigger than 128 bytes.
24233
24234 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24235
24236 PR middle-end/90862
24237 * omp-low.c (check_omp_nesting_restrictions): Handle
24238 GF_OMP_TARGET_KIND_OACC_DECLARE.
24239
24240 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24241
24242 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24243 (@add<mode>3_carry): Rename from add<mode>3_carry.
24244 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24245 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24246 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24247 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24248 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24249 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24250 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24251 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24252 (cmpstrnsi): Use gen_cmp_1.
24253 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24254 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24255 (@umonitor_<mode>): Rename from umonitor_<mode>.
24256 * config/i386/i386-expand.c (ix86_expand_copysign):
24257 Use gen_copysign3_const and gen_copysign3_var.
24258 (ix86_expand_xorsign): Use gen_xorsign3_1.
24259 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24260 gen_sub3_carry_ccgz and gen_cmp1.
24261 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24262 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24263 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24264 (ix86_split_lshr): Ditto.
24265 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24266
24267 2019-06-18 Jason Merrill <jason@redhat.com>
24268
24269 * tree.c (build_constructor): Add MEM_STAT_DECL.
24270
24271 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24272
24273 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24274 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24275 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24276 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24277 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24278 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24279 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24280 Use CC_NZC instead of CC.
24281 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24282 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24283 (aarch64_print_operand): Handle E_CC_NZCmode.
24284 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24285 of gen_set_clobber_cc.
24286
24287 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24288
24289 * config/aarch64/aarch64-sve.md: Tabify file.
24290
24291 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24292
24293 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24294 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24295 * config/aarch64/aarch64-sve.md: Use it.
24296
24297 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24298
24299 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24300 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24301 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24302 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24303 (aarch64_expand_sve_vec_cmp_int): Use it.
24304 (aarch64_expand_sve_vec_cmp_float): Likewise.
24305 * config/aarch64/aarch64-sve.md: Likewise throughout.
24306
24307 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24308 Kugan Vivekanandarajah <kuganv@linaro.org>
24309
24310 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24311 (*cond_<optab><mode>_z): Fold into...
24312 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24313 operand 4 can be tied to operand 0 (either inherently or via RA).
24314
24315 2019-06-18 Richard Biener <rguenther@suse.de>
24316
24317 PR debug/90900
24318 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24319 as if optimized away.
24320
24321 2019-06-18 Tom de Vries <tdevries@suse.de>
24322
24323 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24324 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24325 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24326 Rename to ...
24327 (define_insn "@set_softstack_<mode>"): ... this.
24328 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24329 (define_insn "@omp_simt_enter_<mode>"): ... this.
24330 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24331 (define_insn "@omp_simt_exit_<mode>"): ... this.
24332
24333 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24334
24335 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24336 vf parameter. Restore the previous iv step of nscalars_step,
24337 but give it iv_type rather than compare_type. Tweak code order
24338 to match the comments.
24339 (vect_set_loop_condition_masked): Update accordingly.
24340 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24341 for iv_precision. Tweak comment formatting.
24342
24343 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24344
24345 * config/darwin.c: Strip trailing whitespace.
24346
24347 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24348
24349 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24350 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24351
24352 2019-06-18 Martin Jambor <mjambor@suse.cz>
24353
24354 PR ipa/90889
24355 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24356 caller does not have flag_ipa_cp set.
24357
24358 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24359
24360 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24361 from "*fold_left_plus_<mode>", updated operands order.
24362 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24363 * internal-fn.c (mask_fold_left_direct): New define.
24364 (expand_mask_fold_left_optab_fn): Likewise.
24365 (direct_mask_fold_left_optab_supported_p): Likewise.
24366 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24367 * optabs.def (mask_fold_left_plus_optab): New optab.
24368 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24369 masked internal_fn for a reduction ifn.
24370 (vectorize_fold_left_reduction): Add support for masking reductions.
24371
24372 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24373
24374 PR middle-end/80791
24375 * target.def (predict_doloop_p): New hook.
24376 * targhooks.h (default_predict_doloop_p): New declaration.
24377 * targhooks.c (default_predict_doloop_p): New function.
24378 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24379 * doc/tm.texi: Regenerate.
24380 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24381 (TARGET_PREDICT_DOLOOP_P): New macro.
24382 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24383
24384 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24385
24386 * omp-low.c (struct omp_context): Add scan_inclusive field.
24387 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24388 if inclusive scan.
24389 (struct omplow_simd_context): Add lastlane member.
24390 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24391 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24392 1 or 2 argument.
24393 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24394 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24395 (lower_omp_scan): New function.
24396 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24397 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24398 check 3rd argument if present rather than 2nd.
24399 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24400 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24401 2-bit bitfield.
24402 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24403 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24404 than 2nd.
24405 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24406 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24407 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24408 init.
24409 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24410 IFN_GOMP_SIMD_LANE argument.
24411 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24412 encoded ->aux value.
24413 * tree-vect-stmts.c: Include attribs.h.
24414 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24415 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24416 functions.
24417 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24418 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24419
24420 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24421
24422 PR target/62055
24423 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24424 (*nabs<mode>2_1): Ditto.
24425 (nabs sse-reg splitter): New splitter.
24426 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24427
24428 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24429
24430 PR bootstrap/90873.
24431 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24432 TMR index check.
24433
24434 2019-06-17 Tom de Vries <tdevries@suse.de>
24435
24436 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24437 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24438 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24439 ...
24440 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24441 match_operand 0.
24442 (define_insn "omp_simt_enter_insn"): Rename to ...
24443 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24444 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24445 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24446 gen_omp_simt_enter_si.
24447 (define_expand "omp_simt_exit"): New.
24448 (define_insn "omp_simt_exit"): Rename to ...
24449 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24450 match_operand 0.
24451
24452 2019-06-17 Matthew Green <mrg@eterna.com.au>
24453 Maya Rashish <coypu@sdf.org>
24454
24455 * config.gcc (aarch64*-*-netbsd*): New target.
24456 * config/aarch64/aarch64-netbsd.h: New file.
24457 * config/aarch64/t-aarch64-netbsd: Likewise.
24458
24459 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24460
24461 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24462 the access path from base to first VIEW_CONVERT_EXPR or
24463 BIT_FIELD_REF.
24464
24465 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24466
24467 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24468 access path on BIT_FIELD_REFs.
24469
24470 2019-06-17 Martin Liska <mliska@suse.cz>
24471
24472 PR ipa/90874
24473 * ipa-utils.h (odr_type_p): Remove dead code.
24474
24475 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24476
24477 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24478 alternative Solaris 11.4 format.
24479 * configure: Regenerate.
24480
24481 2019-06-17 Tom de Vries <tdevries@suse.de>
24482
24483 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24484 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24485 match_operand 0.
24486 (define_insn "call_value_insn"): Rename to ...
24487 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24488 match_operand 0.
24489 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24490 DI.
24491
24492 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24493
24494 PR middle-end/64242
24495 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24496 frame clobbers and schedule block.
24497 (builtin_longjmp): Likewise.
24498
24499 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24500
24501 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24502 describe how to perform MSPABI compliant 64-bit shift.
24503 * config/msp430/msp430.md (ashldi3): New define_expand.
24504 (ashrdi3): New define_expand.
24505 (lshrdi3): New define_expand.
24506
24507 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24508
24509 * doc/sourcebuild.texi: Document new effective target keyword
24510 longlong64.
24511
24512 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24513
24514 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24515 indirect_refs_may_alias_p): Revert accidental commits.
24516
24517 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24518 at the end of structures.
24519
24520 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24521
24522 * config/darwin.c (machopic_indirect_call_target): Use renamed
24523 darwin_picsymbol_stubs to decide on output.
24524 (darwin_override_options): Handle darwin_picsymbol_stubs.
24525 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24526 (LD64_VERSION): Revise default.
24527 * config/darwin.opt: (mpic-symbol-stubs): New option.
24528 (darwin_picsymbol_stubs): New variable.
24529 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24530 rename to TARGET_MACHO_PICSYM_STUBS.
24531 * config/i386/i386.c (output_pic_addr_const): Likewise.
24532 * config/i386/i386.h Likewise.
24533 * config/rs6000/darwin.h: Likewise.
24534 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24535 darwin_picsymbol_stubs.
24536
24537 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24538
24539 * config/darwin.opt (prebind, noprebind, seglinkedit,
24540 noseglinkedit): Add RejectNegative.
24541
24542 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24543
24544 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24545 in my previous patch.
24546
24547 2019-06-16 Tom de Vries <tdevries@suse.de>
24548
24549 PR tree-optimization/89376
24550 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24551
24552 2019-06-15 Maya Rashish <coypu@sdf.org>
24553
24554 * doc/invoke.texi (Spec Files): Update location of the
24555 Fortran spec file.
24556
24557 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24558
24559 * doc/extend.texi (Common Function Attributes): Clarify
24560 no_sanitize. Fix grammar.
24561
24562 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24563
24564 * tree-ssa-alias.c (alias_stats): Add
24565 nonoverlapping_component_refs_p_may_alias,
24566 nonoverlapping_component_refs_p_no_alias,
24567 nonoverlapping_component_refs_of_decl_p_may_alias,
24568 nonoverlapping_component_refs_of_decl_p_no_alias.
24569 (dump_alias_stats): Dump them.
24570 (nonoverlapping_component_refs_of_decl_p): Add stats.
24571 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24572 ARRAY_REF.
24573
24574 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24575
24576 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24577 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24578 only.
24579 (*anddi3_doubleword): Split before reload. Merge with
24580 anddi->zext pre-reload splitter.
24581 (*andndi3_doubleword): Split before reload.
24582 (*<code>di3_doubleword): Ditto.
24583 (*one_cmpldi2_doubleword): Ditto.
24584
24585 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24586
24587 PR middle-end/90779
24588 * gimplify.c: Include omp-offload.h and context.h.
24589 (gimplify_bind_expr): Add "omp declare target" attributes
24590 to static block scope variables inside of target region or target
24591 functions.
24592
24593 2019-06-15 Tom de Vries <tdevries@suse.de>
24594
24595 PR tree-optimization/90009
24596 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24597 Return NULL if bb contains IFN_UNIQUE.
24598
24599 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24600
24601 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24602 (un): New define_mode_attr.
24603 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24604 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24605 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24606 merge into ...
24607 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24608
24609 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24610
24611 * config/darwin.opt: Add RejectNegative where needed, reorder
24612 and add minimal functional descriptions.
24613
24614 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24615
24616 PR rtl-optimization/90765
24617 * calls.c (update_stack_alignment_for_call): New function.
24618 (expand_call): Call update_stack_alignment_for_call when
24619 outgoing parameter is passed in the stack.
24620 (emit_library_call_value_1): Likewise.
24621 * function.c (locate_and_pad_parm): Don't update
24622 stack_alignment_needed and preferred_stack_boundary.
24623
24624 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24625
24626 PR target/90877
24627 * config/i386/i386-features.c
24628 (dimode_scalar_chain::compute_convert_gain): Replace
24629 mmxsse_to_integer with sse_to_integer.
24630 * config/i386/i386.c (ix86_register_move_cost): Verify that
24631 moves between MMX and non-MMX units require secondary memory.
24632 Correct costs of moves between SSE and integer units.
24633 * config/i386/i386.h (processor_costs): Rename cost of moving
24634 SSE register to integer to sse_to_integer. Rename cost of
24635
24636 2019-06-14 Matt Thomas <matt@3am-software.com>
24637 Matthew Green <mrg@eterna.com.au>
24638 Nick Hudson <skrll@netbsd.org>
24639 Maya Rashish <coypu@sdf.org>
24640 Richard Earnshaw <rearnsha@arm.com>
24641
24642 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24643 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24644 * config/arm/netbsd-eabi.h: New file.
24645 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24646 redefining.
24647 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24648 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24649 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24650 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24651
24652 2019-06-14 Richard Biener <rguenther@suse.de>
24653
24654 * tree-loop-distribution.c (classify_partition): Return
24655 whether a reduction appeared in all partitions and do not
24656 stop builtin detection because of this.
24657 (distribute_loop): Sort a non-builtin partition last if
24658 there's a reduction in all partitions and make sure the
24659 partition prevailing as last is not a builtin.
24660
24661 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24662
24663 PR ipa/90401
24664 * ipa-prop.c (add_to_agg_contents_list): New function.
24665 (clobber_by_agg_contents_list_p): Likewise.
24666 (extract_mem_content): Likewise.
24667 (get_place_in_agg_contents_list): Delete.
24668 (determine_known_aggregate_parts): Renamed from
24669 determine_locally_known_aggregate_parts. New parameter
24670 aa_walk_budget_p.
24671
24672 2019-06-13 Martin Sebor <msebor@redhat.com>
24673
24674 PR tree-optimization/90662
24675 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24676 to the same type.
24677
24678 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24679
24680 PR bootstrap/90873
24681 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24682 dbase is not TARGET_MEM_REF.
24683
24684 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24685
24686 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24687 Update all uses.
24688 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24689 Do not generate DImode extends for 32bit targets.
24690 (and->zext post-reload splitter): Use gen_extend_insn
24691 instead of indirect functions.
24692 (anddi->zext pre-reload splitter): New.
24693 (*zext<mode>_doubleword_and): Remove.
24694 (*zext<mode>_doubleword): Ditto.
24695 (*zextsi_doubleword): Dittto.
24696
24697 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24698
24699 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24700 Use gen_sub3_insn instead of indirect function.
24701 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24702 indirect function.
24703 (ix86_adjust_counter): Ditto.
24704
24705 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24706 Lijia He <helijia@linux.ibm.com>
24707
24708 PR tree-optimization/77820
24709 * tree-ssa-threadedge.c
24710 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24711 function.
24712 (thread_across_edge): Add call to
24713 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24714
24715 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24716
24717 * config/darwin-driver.c (validate_macosx_version_min): New.
24718 (darwin_default_min_version): Cleanup and validate supplied version.
24719 (darwin_driver_init): Likewise and push cleaned version into opts.
24720
24721 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24722
24723 PR tree-optimization/90869
24724 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24725 converts in MEM_REF referencing decl rather than view converts
24726 from decl type to MEM_REF type.
24727
24728 2019-06-13 Richard Biener <rguenther@suse.de>
24729
24730 PR tree-optimization/90856
24731 * tree-sra.c (build_ref_for_model): Only use
24732 build_reconstructed_reference when address-spaces are the same.
24733
24734 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24735
24736 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24737 wrap ei variable name in the declaration in ()s.
24738 (nvptx_single): Actually use mode_label variable. Formatting fix.
24739
24740 2019-06-13 Richard Biener <rguenther@suse.de>
24741
24742 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24743 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24744 also return the condition stmt.
24745 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24746 loop we can version and version that, reusing the loop version
24747 created by if-conversion instead of versioning again.
24748
24749 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24750
24751 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24752 may_contain_p.
24753 * tree-vrp (value_range_base::may_contain_p): Call into
24754 value_inside_range.
24755 (value_inside_range): Make private inside value_range_base class.
24756 Take min/max from *this.
24757 (range_includes_p): Remove.
24758 * tree-vrp.h (value_range_base): Add value_inside_range.
24759 (range_includes_p): Remove.
24760 (range_includes_zero_p): Call may_contain_p.
24761 * vr-values.c (compare_range_with_value): Same.
24762
24763 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24764
24765 * doc/extend.texi (ARC Function Attributes): Update info.
24766
24767 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24768
24769 PR tree-optimization/89713
24770 * doc/invoke.texi (-ffinite-loops): Document new option.
24771 * common.opt (-ffinite-loops): New option.
24772 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24773 IFN_GOACC_LOOP calls as necessary.
24774 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24775 is finite.
24776 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24777 IFN_GOACC_LOOP call is not used.
24778 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24779
24780 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24781
24782 PR target/88838
24783 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24784 compare_type is not with Pmode size, we will create an IV with
24785 Pmode size with truncated use (i.e. converted to the correct type).
24786 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24787 (vect_iv_limit_for_full_masking): New. Factored out of
24788 vect_set_loop_condition_masked.
24789 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24790 (vect_iv_limit_for_full_masking): Declare.
24791
24792 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24793
24794 PR target/88834
24795 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24796 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24797 (get_alias_ptr_type_for_ptr_address): Likewise.
24798 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24799 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24800 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24801 allow_reg_index_p.
24802
24803 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24804
24805 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24806
24807 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24808
24809 * common/config/pru/pru-common.c: New file.
24810 * config.gcc: Add PRU target.
24811 * config/pru/alu-zext.md: New file.
24812 * config/pru/constraints.md: New file.
24813 * config/pru/predicates.md: New file.
24814 * config/pru/pru-opts.h: New file.
24815 * config/pru/pru-passes.c: New file.
24816 * config/pru/pru-pragma.c: New file.
24817 * config/pru/pru-protos.h: New file.
24818 * config/pru/pru.c: New file.
24819 * config/pru/pru.h: New file.
24820 * config/pru/pru.md: New file.
24821 * config/pru/pru.opt: New file.
24822 * config/pru/t-pru: New file.
24823 * doc/extend.texi: Document PRU pragmas.
24824 * doc/invoke.texi: Document PRU-specific options.
24825 * doc/md.texi: Document PRU asm constraints.
24826
24827 2019-06-12 Martin Sebor <msebor@redhat.com>
24828
24829 PR middle-end/90676
24830 * tree-pretty-print.c (dump_mem_ref): New function. Include
24831 MEM_REF type in output when different size than operand.
24832 (dump_generic_node): Move code to dump_mem_ref and call it.
24833
24834 2019-06-12 Martin Sebor <msebor@redhat.com>
24835
24836 PR tree-optimization/90662
24837 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24838 to arrays.
24839
24840 2019-06-12 Tom de Vries <tdevries@suse.de>
24841
24842 PR tree-optimization/90009
24843 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24844
24845 2019-06-12 Martin Liska <mliska@suse.cz>
24846
24847 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24848 the created map.
24849 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24850 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24851 Do not sanitize created maps.
24852
24853 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24854
24855 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24856 value_range::singleton_p.
24857 * tree-vrp.c (value_range_constant_singleton): Remove.
24858 * tree-vrp.h (value_range_constant_singleton): Remove.
24859 * vr-values.c (vr_values::singleton): Use
24860 value_range::singleton_p.
24861
24862 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24863
24864 PR target/90811
24865 * cfgexpand.c (align_local_variable): Add really_expand argument,
24866 don't SET_DECL_ALIGN if it is false.
24867 (add_stack_var): Add really_expand argument, pass it through to
24868 align_local_variable.
24869 (expand_one_stack_var_1): Pass true as really_expand to
24870 align_local_variable.
24871 (expand_one_ssa_partition): Pass true as really_expand to
24872 add_stack_var.
24873 (expand_one_var): Pass really_expand through to add_stack_var.
24874
24875 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24876
24877 * config/arm/iterators.md (VABAL): New int iterator.
24878 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24879 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24880 UNSPEC_VABAL_U values.
24881
24882 2019-06-12 Martin Liska <mliska@suse.cz>
24883
24884 * value-prof.c (stream_out_histogram_value): Only first value
24885 can't be negative.
24886
24887 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24888
24889 PR c/90760
24890 * symtab.c (symtab_node::set_section): Allow being called on aliases
24891 as long as they aren't analyzed yet.
24892
24893 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24894
24895 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24896 to `mips_set_text_contents_type' to indicate whether a
24897 non-debug insn follows.
24898
24899 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24900
24901 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24902 enabling -mpcrel by default.
24903 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24904 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24905 that the test against -mcpu=future is done first. Then test if
24906 -mprefixed-addr is on for -mpcrel.
24907 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24908
24909 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24910
24911 PR target/90811
24912 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24913 instead of and.u%d.
24914
24915 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24916
24917 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24918
24919 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24920
24921 PR c++/90449 - add -Winaccessible-base option.
24922 * doc/invoke.texi (Winaccessible-base): Document.
24923
24924 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24925
24926 PR tree-optimization/62041
24927 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24928
24929 2019-06-11 Jason Merrill <jason@redhat.com>
24930
24931 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24932 * tree.c (get_tree_code_name): Likewise.
24933 * print-tree.c (print_node): Only briefly print a node with an
24934 invalid code.
24935
24936 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24937
24938 PR bootstrap/90819
24939 * trans-mem.c (tm_memopt_compute_available): Add assertion
24940 that blocks is not empty. Formatting fix.
24941
24942 2019-06-11 Martin Liska <mliska@suse.cz>
24943
24944 PR c++/87847
24945 * hash-table.h: Extend create_gcc, add one parameter
24946 that is passed into hash_table::hash_table.
24947
24948 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24949
24950 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24951 New prototype.
24952 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24953 Emit clobber also for non-sse operations.
24954 (ix86_split_fp_absneg_operator): New function.
24955 * config/i386/i386.md (SSEMODEF): New mode iterator.
24956 (ssevecmodef): New mode attribute.
24957 (<code>tf2): Use absneg code iterator.
24958 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24959 Add three-operand AVX alternatives.
24960 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24961 Use absneg code iterator and X87MODEF mode iterator.
24962 (absneg fp_reg non-sse splitter): Call absneg code iterator
24963 and X87MODEF mode iterator.
24964 (absneg general_reg non-sse splitter): Use absneg code iterator
24965 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24966 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24967 code iterator. Add three-operand AVX alternative.
24968 (absneg sse_reg splitter): Use absneg code iterator
24969 and SSEMODEF mode iterator. Handle AVX operands.
24970 (absneg fp_reg splitter): Use absneg code iterator
24971 and MODEF mode iterator.
24972 (absneg general_reg splitter): Merge splitters using MODEF mode
24973 iterator. Use absneg code iterator. Call
24974 ix86_split_fp_absneg_operator.
24975 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24976 Do not enable for non-sse modes before reload.
24977 (CSGNMODE): Remove.
24978 (CSGNVMODE): Ditto.
24979 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24980 ssevecmodef mode attribute instaed of CSGNVMODE.
24981 (copysign<mode>3_const): Ditto.
24982 (copysign<mode>3_var): Ditto.
24983 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24984 Use absneg code iterator. Simplify code using std::swap.
24985 * config/i386/predicates.md (absneg_operator): Remove.
24986
24987 2019-06-10 Martin Sebor <msebor@redhat.com>
24988
24989 * gimple-fold.c (get_range_strlen): Update comment that didn't
24990 make it into r267503 or related commits.
24991
24992 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24993
24994 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24995 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24996
24997 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24998
24999 * tree.def (OMP_SCAN): New tree code.
25000 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
25001 OMP_CLAUSE_EXCLUSIVE.
25002 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
25003 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
25004 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
25005 OMP_CLAUSE_{IN,EX}CLUSIVE.
25006 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25007 * tree-nested.c (convert_nonlocal_reference_stmt,
25008 convert_local_reference_stmt, convert_gimple_call): Handle
25009 GIMPLE_OMP_SCAN.
25010 * tree-pretty-print.c (dump_omp_clause): Handle
25011 OMP_CLAUSE_{IN,EX}CLUSIVE.
25012 (dump_generic_node): Handle OMP_SCAN.
25013 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
25014 * gimple.h (gomp_scan): New type.
25015 (is_a_helper <gomp_scan *>::test,
25016 is_a_helper <const gomp_scan *>::test): New templates.
25017 (gimple_build_omp_scan): Declare.
25018 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
25019 gimple_omp_scan_set_clauses): New inline functions.
25020 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
25021 * gimple.c (gimple_build_omp_scan): New function.
25022 (gimple_copy): Handle GIMPLE_OMP_SCAN.
25023 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
25024 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
25025 GIMPLE_OMP_TASKGROUP.
25026 (dump_gimple_omp_scan): New function.
25027 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
25028 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
25029 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
25030 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
25031 (is_gimple_stmt): Handle OMP_SCAN.
25032 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
25033 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
25034 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
25035 mentioned in nested #pragma omp scan. Handle
25036 OMP_CLAUSE_{IN,EX}CLUSIVE.
25037 (gimplify_expr): Handle OMP_SCAN.
25038 * omp-low.c (check_omp_nesting_restrictions): For parent context,
25039 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
25040 simd constructs.
25041 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
25042 GIMPLE_OMP_SCAN.
25043
25044 2019-06-10 Martin Liska <mliska@suse.cz>
25045
25046 * ipa-cp.c (ignore_edge_p): New function.
25047 (build_toporder_info): Use it.
25048 * ipa-inline.c (ignore_edge_p): New function.
25049 (inline_small_functions): Use it.
25050 * ipa-pure-const.c (ignore_edge_for_nothrow):
25051 Verify opt_for_fn for caller and callee.
25052 (ignore_edge_for_pure_const): Likewise.
25053 * ipa-reference.c (ignore_edge_p): Extend to check
25054 for opt_for_fn.
25055 * ipa-utils.c (searchc): Refactor.
25056 * ipa-utils.h: Fix coding style.
25057
25058 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25059
25060 * config/arc/arc.c (arc_rtx_costs): Update costs.
25061
25062 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
25063
25064 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
25065 (arc_split_ior): Likewise.
25066 (arc_check_mov_const): Likewise.
25067 (arc_split_mov_const): Likewise.
25068 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
25069 (arc_rtx_costs): Replace check Crr with Cax constraint.
25070 (prepare_move_operands): Cleanup, remove unused code.
25071 (arc_split_ior): New function.
25072 (arc_check_ior_const): Likewise.
25073 (arc_split_mov_const): Likewise.
25074 (arc_check_mov_const): Likewise.
25075 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
25076 in define_insn_and_split pattern.
25077 (iorsi3): Likewise.
25078 (mulsi3_v2): Add new matching variant.
25079 (andsi3_i): Cleanup pattern.
25080 (rotrsi3_cnt1): Update pattern.
25081 (rotrsi3_cnt8): New pattern.
25082 (ashlsi2_cnt8): Likewise.
25083 (ashlsi2_cnt16): Likewise.
25084 * config/arc/constraints.md (C0p): Update constraint.
25085 (Crr): Remove it.
25086 (C0x): New pattern.
25087 (Cax): New pattern.
25088
25089 2019-06-10 Martin Liska <mliska@suse.cz>
25090
25091 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
25092 Update coding style.
25093 (sem_item_optimizer::dump_cong_classes):
25094 Print how many items are in a non-singular class. Improve
25095 coding style.
25096
25097 2019-06-10 Martin Liska <mliska@suse.cz>
25098
25099 * value-prof.c (dump_histogram_value): Change dump format.
25100 (gimple_mod_subtract_transform): Remove legacy comment.
25101
25102 2019-06-10 Martin Liska <mliska@suse.cz>
25103
25104 * value-prof.c (dump_histogram_value): Print histogram values
25105 only if present.
25106
25107 2019-06-10 Martin Liska <mliska@suse.cz>
25108
25109 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
25110 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
25111 * ipa-profile.c (ipa_profile_generate_summary):
25112 Use get_most_common_single_value.
25113 * tree-profile.c (gimple_init_gcov_profiler):
25114 Instrument with __gcov_one_value_profiler_v2
25115 and __gcov_indirect_call_profiler_v4.
25116 * value-prof.c (dump_histogram_value):
25117 Print all values for HIST_TYPE_SINGLE_VALUE.
25118 (stream_out_histogram_value): Update assert for
25119 N values.
25120 (stream_in_histogram_value): Set number of
25121 counters for HIST_TYPE_SINGLE_VALUE.
25122 (get_most_common_single_value): New.
25123 (gimple_divmod_fixed_value_transform):
25124 Use get_most_common_single_value.
25125 (gimple_ic_transform): Likewise.
25126 (gimple_stringops_transform): Likewise.
25127 (gimple_find_values_to_profile): Set number
25128 of counters for HIST_TYPE_SINGLE_VALUE.
25129 * value-prof.h (get_most_common_single_value): New.
25130
25131 2019-06-10 Martin Liska <mliska@suse.cz>
25132
25133 * hash-map.h: Pass default value to hash_table ctor.
25134 * hash-table.h: Add default value to call of a ctor.
25135
25136 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
25137
25138 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25139 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25140
25141 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
25142
25143 PR target/90751
25144 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25145 Call pa_output_function_label.
25146 (TARGET_ASM_FUNCTION_PROLOGUE): define.
25147 * config/pa/pa-protos.h (pa_output_function_label): Declare.
25148 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25149 to declaration.
25150 (pa_linux_output_function_prologue): Declare.
25151 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25152 (pa_output_function_label): New.
25153 (pa_output_function_prologue): Revise to use pa_output_function_label.
25154 (pa_linux_output_function_prologue): New.
25155 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25156
25157 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
25158
25159 * tree-vrp.h (value_range_base::intersect): New.
25160 (value_range::intersect_helper): Move from here...
25161 (value_range_base::intersect_helper): ...to here.
25162 * tree-vrp.c (value_range::intersect_helper): Rename to...
25163 (value_range_base::intersect_helper): ...this, and rewrite to
25164 return a value instead of modifying THIS in place.
25165 Also, move equivalence handling...
25166 (value_range::intersect): ...here, while calling intersect_helper.
25167 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25168 calling intersect.
25169 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25170 Same.
25171 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25172
25173 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25174
25175 * Makefile.in (genprogerr): Add condmd.
25176 (genprog): Remove it here.
25177
25178 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25179
25180 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25181
25182 2019-06-07 Richard Biener <rguenther@suse.de>
25183
25184 PR debug/90574
25185 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25186 that appear after user labels.
25187
25188 2019-06-07 Martin Liska <mliska@suse.cz>
25189
25190 * cselib.c (cselib_init): Disable hash table
25191 sanitization.
25192 * hash-set.h: Pass new default argument to m_table.
25193 * hash-table.c: Add global variable with hash table
25194 sanitization limit.
25195 * hash-table.h (Allocator>::hash_table): Add new argument
25196 to ctor.
25197 (hashtab_chk_error): New.
25198 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25199 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25200 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25201
25202 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25203
25204 * common.opt (flto-odr-type-merging): Ignore.
25205 * invoke.texi (-flto-odr-type-merging): Remove.
25206 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25207 (can_be_vtable_hashed_p): Remove.
25208 (hash_odr_vtable): Remove.
25209 (odr_vtable_hasher::hash): Remove.
25210 (types_same_for_odr): Remove.
25211 (types_odr_comparable): Remove.
25212 (odr_vtable_hasher::equal): Remove.
25213 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25214 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25215 (get_odr_type): Do not use vtable hash.
25216 (dump_odr_type): Remove commented out code.
25217 (build_type_inheritance_graph): Do not allocate vtable hash.
25218 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25219 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25220 (odr_type_p): Likewise.
25221 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25222 test.
25223
25224 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25225
25226 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25227 immediately after same_types_for_tbaa_p returns -1 and continue
25228 looking for possible exact match; if matching types are arrays
25229 watch for partial overlaps.
25230 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25231 (indirect_refs_may_alias_p): Do type based disambiguation first;
25232 update comment.
25233
25234 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25235
25236 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25237
25238 2019-06-07 Martin Liska <mliska@suse.cz>
25239
25240 * doc/invoke.texi: Remove param.
25241 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25242 Remove.
25243 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25244 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25245 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25246 * profile.c (instrument_values): Remove
25247 HIST_TYPE_INDIR_CALL_TOPN.
25248 * tree-profile.c (init_ic_make_global_vars):
25249 Always build __gcov_indirect_call only.
25250 (gimple_init_gcov_profiler): Remove usage
25251 of PARAM_INDIR_CALL_TOPN_PROFILE.
25252 (gimple_gen_ic_profiler): Likewise.
25253 * value-prof.c (dump_histogram_value): Likewise.
25254 (stream_in_histogram_value): Likewise.
25255 (gimple_indirect_call_to_profile): Likewise.
25256 (gimple_find_values_to_profile): Likewise.
25257 * value-prof.h (enum hist_type): Likewise.
25258
25259 2019-06-07 Martin Liska <mliska@suse.cz>
25260
25261 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25262 function.
25263
25264 2019-06-07 Martin Liska <mliska@suse.cz>
25265
25266 PR tree-optimization/78902
25267 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25268 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25269 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25270 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25271 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25272 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25273 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25274 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25275 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25276 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25277 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25278 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25279 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25280 New.
25281 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25282 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25283 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25284 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25285 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25286 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25287 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25288 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25289 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25290 warn_unused_result attribute.
25291 (BUILT_IN_STRDUP): Likewise.
25292 (BUILT_IN_STRNDUP): Likewise.
25293 (BUILT_IN_ALLOCA): Likewise.
25294 (BUILT_IN_CALLOC): Likewise.
25295 (BUILT_IN_MALLOC): Likewise.
25296 (BUILT_IN_REALLOC): Likewise.
25297
25298 2019-06-06 Jim Wilson <jimw@sifive.com>
25299
25300 PR target/89955
25301 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25302 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25303 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25304
25305 2019-06-06 Martin Sebor <msebor@redhat.com>
25306
25307 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25308 (handle_builtin_malloc): Remove trailing spaces.
25309 (handle_builtin_memset): Same.
25310 (handle_builtin_memcmp): Same.
25311 (compute_string_length): Same.
25312 (determine_min_objsize): Same.
25313 (handle_builtin_string_cmp): Same.
25314 (handle_char_store): Same. Break up excessively long line.
25315
25316 2019-06-06 Martin Jambor <mjambor@suse.cz>
25317
25318 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25319 check.
25320
25321 2019-06-06 Martin Jambor <mjambor@suse.cz>
25322
25323 * tree-sra.c (struct access): New field grp_same_access_path.
25324 (dump_access): Dump it.
25325 (build_reconstructed_reference): New function.
25326 (build_ref_for_model): Use it if possible.
25327 (path_comparable_for_same_access): New function.
25328 (same_access_path_p): Likewise.
25329 (sort_and_splice_var_accesses): Set the new flag.
25330 (analyze_access_subtree): Likewise.
25331 (propagate_subaccesses_across_link): Propagate zero value of the new
25332 flag down the access tree.
25333
25334 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25335
25336 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25337 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25338 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25339 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25340 Add gfx906.
25341
25342 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25343
25344 PR tree-optimization/90332
25345 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25346 Handle VALS containing two vectors.
25347 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25348 to...
25349 (@aarch64_combinez<mode>): ... This.
25350 (*aarch64_combinez_be<mode>): Rename to...
25351 (@aarch64_combinez_be<mode>): ... This.
25352 (vec_init<mode><Vhalf>): New define_expand.
25353 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25354
25355 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25356
25357 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25358 library functions only when not optimizing for size.
25359 (ashlsi3): Likewise.
25360 (ashrhi3): Likewise.
25361 (ashrsi3): Likewise.
25362 (lshrhi3): Likewise.
25363 (lshrsi3): Likewise.
25364
25365 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25366
25367 PR rtl-optimization/88751
25368 * ira.c (ira): Use the number of the actually referenced registers
25369 when calculating the threshold.
25370
25371 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25372
25373 * configure: Regenerate.
25374
25375 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25376
25377 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25378 register if it is in memory, so the shift can be emulated with a rotate
25379 instruction.
25380 (ashrhi3): Likewise.
25381 (lshrhi3): Likewise.
25382
25383 2019-06-06 Martin Liska <mliska@suse.cz>
25384
25385 PR tree-optimization/87954
25386 * match.pd: Simplify mult where both arguments are 0 or 1.
25387
25388 2019-06-06 Richard Biener <rguenther@suse.de>
25389
25390 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25391 put equivalences on UNDEFINED ranges.
25392 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25393 Make sure to drop defs of stmts added during simplification
25394 to VARYING.
25395
25396 2019-06-06 Richard Biener <rguenther@suse.de>
25397
25398 * tree-ssa-structalias.c: Include tree-cfg.h.
25399 (make_heapvar): Do not make heap vars artificial.
25400 (find_func_aliases_for_builtin_call): Handle stack allocation
25401 functions.
25402 (find_func_aliases): Delay processing of simple enough returns
25403 in non-IPA mode.
25404 (set_uids_in_ptset): Adjust.
25405 (find_what_var_points_to): Likewise.
25406 (solve_constraints): Do not dump points-to sets here.
25407 (compute_points_to_sets): Post-process return statements,
25408 amending the escaped solution. Dump points-to sets afterwards.
25409 (ipa_pta_execute): Dump points-to sets.
25410
25411 2019-06-06 Martin Liska <mliska@suse.cz>
25412
25413 PR web/87933
25414 * doc/install.texi: Fix HTML headers and
25415 titles for 'Installing GCC' pages.
25416
25417 2019-06-06 Martin Liska <mliska@suse.cz>
25418
25419 * ipa-icf-gimple.h (dump_message_1): Remove.
25420 (dump_message): Likewise.
25421 (return_false_with_message_1): Print also file.
25422 (return_false_with_msg): Likewise.
25423 (return_with_result): Likewise.
25424 (return_with_debug): Likewise.
25425 * ipa-icf.c (sem_function::equals_private): Remove call
25426 to dump_message.
25427
25428 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25429
25430 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25431 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25432 memory operand for it.
25433 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25434
25435 2019-06-05 Martin Sebor <msebor@redhat.com>
25436
25437 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25438 Adjust quoting and hyphenation.
25439 * convert.c (convert_to_real_1): Same.
25440 * gcc.c (driver_wrong_lang_callback): Same.
25441 (driver::handle_unrecognized_options): Same.
25442 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25443 * opts-common.c (cmdline_handle_error): Same.
25444 (read_cmdline_option): Same.
25445 * opts-global.c (complain_wrong_lang): Same.
25446 (print_ignored_options): Same.
25447 (handle_common_deferred_options): Same.
25448 * pretty-print.h: Same.
25449 * print-rtl.c (debug_bb_n_slim): Same.
25450 * sched-rgn.c (make_pass_sched_fusion): Same.
25451 * tree-cfg.c (verify_gimple_assign_unary): Same.
25452 (verify_gimple_label): Same.
25453 * tree-ssa-operands.c (verify_ssa_operands): Same.
25454 * varasm.c (do_assemble_alias): Same.
25455 (assemble_alias): Same.
25456
25457 2019-06-05 Richard Henderson <rth@twiddle.net>
25458
25459 * config/alpha/alpha.c (direct_return): Move down after
25460 struct machine_function definition; use saved frame_size;
25461 return bool.
25462 (struct machine_function): Add sa_mask, sa_size, frame_size.
25463 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25464 (alpha_compute_frame_layout): ... new function.
25465 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25466 (alpha_initial_elimination_offset): Use saved sa_size.
25467 (alpha_vms_initial_elimination_offset): Likewise.
25468 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25469 (alpha_expand_prologue): Use saved frame data. Merge integer
25470 and fp register save loops.
25471 (alpha_expand_epilogue): Likewise.
25472 (alpha_start_function): Use saved frame data.
25473 * config/alpha/alpha-protos.h (direct_return): Update.
25474 (alpha_sa_size): Remove.
25475
25476 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25477
25478 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25479 multiplication by a power-of-two value.
25480 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25481 and turn the modulo operation into a masking operation.
25482
25483 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25484
25485 PR debug/90733
25486 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25487 with VOIDmode inner operands.
25488
25489 2019-06-05 Richard Biener <rguenther@suse.de>
25490
25491 PR middle-end/90726
25492 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25493 turn an expression graph into a tree.
25494
25495 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25496
25497 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25498 member.
25499 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25500 treat it like explicit monotonic schedule modifier.
25501 (expand_omp_for): Initialize has_lastprivate_conditional.
25502 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25503 schedule modifier.
25504
25505 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25506 references, lookup in in hash map MEM_REF operand instead of the
25507 MEM_REF itself.
25508 (lower_omp_1): When looking for lastprivate conditional assignments,
25509 handle MEM_REFs with REFERENCE_TYPE operands.
25510
25511 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25512 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25513 and references a VLA. Handle references to non-VLAs if is_simd
25514 all privatization clauses like reductions.
25515 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25516 If omp_is_reference, use always omp simd arrays and set
25517 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25518 fails, emit reference initialization.
25519
25520 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25521
25522 PR target/89803
25523 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25524 _mm_mask_fpclass_sd_mask): New intrinsics.
25525 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25526 * config/i386/i386-builtin.def
25527 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25528 New builtins.
25529 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25530 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25531 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25532 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25533 case QI_FTYPE_V2SF_INT): Ditto.
25534 * config/i386/sse.md
25535 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25536 Extended to insnstructions with mask operands.
25537
25538 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25539
25540 * config/rs6000/constraints.md (define_register_constraint "wp"):
25541 Delete.
25542 (define_register_constraint "wq"): Delete.
25543 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25544 (rs6000_init_hard_regno_mode_ok): Adjust.
25545 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25546 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25547 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25548 (define_mode_attr VSa): Delete.
25549 (define_mode_attr VSisa): New.
25550 (rest of file): Adjust.
25551 * doc/md.texi (Machine Constraints): Adjust.
25552
25553 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25554
25555 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25556 (define_attr "enabled"): Handle those new isa values.
25557
25558 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25559
25560 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25561 (define_mode_attr VSr5): Delete.
25562 (define_mode_attr VStype_sqrt): Delete.
25563 (define_mode_iterator VSX_SPDP): Delete.
25564 (define_mode_attr VS_spdp_res): Delete.
25565 (define_mode_attr VS_spdp_insn): Delete.
25566 (define_mode_attr VS_spdp_type): Delete.
25567 (*vsx_sqrt<mode>2): Adjust.
25568 (vsx_<VS_spdp_insn>): Delete, split to...
25569 (vsx_xscvdpsp): ... this. New. And...
25570 (vsx_xvcvspdp): ... this. New. And...
25571 (vsx_xvcvdpsp): ... this. New.
25572
25573 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25574
25575 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25576 and V2DF.
25577 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25578 (rest of file): Adjust.
25579
25580 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25581
25582 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25583 (vsx_extract_<mode>_var): Ditto.
25584
25585 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25586
25587 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25588 with just "wa".
25589
25590 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25591
25592 * config/rs6000/constraints.md (define_register_constraint "ww"):
25593 Delete.
25594 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25595 (rs6000_init_hard_regno_mode_ok): Adjust.
25596 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25597 RS6000_CONSTRAINT_ww.
25598 * config/rs6000/rs6000.md: Adjust.
25599 * config/rs6000/vsx.md: Adjust.
25600 * doc/md.texi (Machine Constraints): Adjust.
25601
25602 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25603
25604 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25605 (define_mode_attr sd): New.
25606 (define_mode_attr s): New.
25607 (define_mode_attr Ftrad): Delete.
25608 (define_mode_attr Fvsx): Delete.
25609 (define_mode_attr Fs): Delete.
25610 (rest of file): Use the new mode attributes.
25611 * config.rs6000/vsx.md: Use the new mode attributes.
25612
25613 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25614
25615 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25616 with just "wa".
25617
25618 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25619
25620 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25621 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25622 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25623
25624 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25625
25626 PR target/78263
25627 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25628 C++ with strict ANSI requirements.
25629
25630 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25631
25632 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25633 computations when step is 1.
25634
25635 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25636
25637 * config/rs6000/constraints.md (define_register_constraint "wf"):
25638 Delete.
25639 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25640 (rs6000_init_hard_regno_mode_ok): Adjust.
25641 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25642 RS6000_CONSTRAINT_wf.
25643 * config/rs6000/rs6000.md: Adjust.
25644 * config/rs6000/vsx.md: Adjust.
25645 * doc/md.texi (Machine Constraints): Adjust.
25646
25647 2019-06-04 Andrew Pinski <apinski@marvell.com>
25648
25649 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25650 Fix ILP32 value.
25651
25652 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25653
25654 * config/rs6000/constraints.md (define_register_constraint "wd"):
25655 Delete.
25656 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25657 (rs6000_init_hard_regno_mode_ok): Adjust.
25658 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25659 RS6000_CONSTRAINT_wd.
25660 * config/rs6000/rs6000.md: Adjust.
25661 * config/rs6000/vsx.md: Adjust.
25662 * doc/md.texi (Machine Constraints): Adjust.
25663
25664 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25665
25666 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25667 (rest of file): Adjust.
25668
25669 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25670
25671 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25672 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25673 (vsx_splat_<mode>_reg): Adjust.
25674
25675 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25676
25677 * config/rs6000/constraints.md (define_register_constraint "ws"):
25678 Delete.
25679 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25680 (rs6000_init_hard_regno_mode_ok): Adjust.
25681 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25682 RS6000_CONSTRAINT_ws.
25683 * config/rs6000/rs6000.md: Adjust.
25684 * config/rs6000/vsx.md: Adjust.
25685 * doc/md.texi (Machine Constraints): Adjust.
25686
25687 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25688
25689 * config/rs6000/constraints.md (define_register_constraint "wv"):
25690 Delete.
25691 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25692 (rs6000_init_hard_regno_mode_ok): Adjust.
25693 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25694 RS6000_CONSTRAINT_wv.
25695 * config/rs6000/rs6000.md: Adjust.
25696 * config/rs6000/vsx.md: Adjust.
25697 * doc/md.texi (Machine Constraints): Adjust.
25698
25699 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25700
25701 * config/rs6000/constraints.md (define_register_constraint "wi"):
25702 Delete.
25703 (define_register_constraint "wt"): Delete.
25704 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25705 (rs6000_init_hard_regno_mode_ok): Adjust.
25706 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25707 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25708 * config/rs6000/rs6000.md: Adjust.
25709 * config/rs6000/vsx.md: Adjust.
25710 * doc/md.texi (Machine Constraints): Adjust.
25711
25712 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25713
25714 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25715 const.
25716 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25717 default_elf_asm_output_external.
25718
25719 2019-06-04 Martin Liska <mliska@suse.cz>
25720
25721 * ipa-icf.c (INCLUDE_LIST): Remove.
25722 (sem_item_optimizer::execute): Remove call to init_wpa.
25723 * ipa-icf.h (init_wpa): Remove.
25724
25725 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25726
25727 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25728 conditional on combined for simd.
25729 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25730 member.
25731 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25732 constructs, don't remove lastprivate_conditional_map, but instead set
25733 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25734 to parent construct temporaries.
25735 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25736 like !ctx->lastprivate_conditional_map.
25737 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25738 use up->outer context instead of up.
25739 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25740 gimple_omp_for_combined_p.
25741 (expand_omp_for_static_nochunk): Likewise.
25742 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25743 probably moved over into expand_omp_for_generic rather than being copied
25744 there.
25745
25746 2019-06-04 Martin Liska <mliska@suse.cz>
25747
25748 * value-prof.c (dump_histogram_value): Fix typo.
25749 (gimple_mod_subtract_transform): Likewise.
25750
25751 2019-06-04 Richard Biener <rguenther@suse.de>
25752
25753 PR middle-end/90726
25754 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25755 (tree_contains_chrecs): Likewise.
25756 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25757 exponential behaivor from ...
25758 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25759 ... here.
25760 (expression_expensive_p): Avoid exponential behavior and compute
25761 expanded size, rejecting any expansion.
25762 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25763 (idx_contains_abnormal_ssa_name_p): Likewise.
25764 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25765 (contains_abnormal_ssa_name_p): Simplify and use
25766 walk_tree_without_duplicates.
25767
25768 2019-06-04 Richard Biener <rguenther@suse.de>
25769
25770 PR tree-optimization/90738
25771 Revert
25772 2019-06-03 Richard Biener <rguenther@suse.de>
25773
25774 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25775 full reference tree and record in ref->ref.
25776 (vn_reference_lookup_3): Pass in original ref to
25777 ao_ref_init_from_vn_reference.
25778 (vn_reference_lookup): Likewise.
25779 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25780 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25781 Handle non-decl bases in the original reference.
25782
25783 2019-06-04 Martin Liska <mliska@suse.cz>
25784
25785 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25786 number of references.
25787 (sem_item_optimizer::do_congruence_step):
25788 (sem_item_optimizer::worklist_push): Dump how references
25789 a class has.
25790 (sem_item_optimizer::worklist_pop): Use heap.
25791 (sem_item_optimizer::process_cong_reduction): Likewise.
25792 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25793
25794 2019-06-04 Martin Liska <mliska@suse.cz>
25795
25796 * ipa-icf.h (struct sem_usage_pair_hash): New.
25797 (sem_usage_pair_hash::hash): Likewise.
25798 (sem_usage_pair_hash::equal): Likewise.
25799 (struct sem_usage_hash): Likewise.
25800 * ipa-icf.c (sem_item::sem_item): Initialize
25801 referenced_by_count.
25802 (sem_item::add_reference): Register a reference
25803 in ref_map and not in target->usages.
25804 (sem_item::setup): Remove initialization of
25805 dead vectors.
25806 (sem_item::~sem_item): Remove usage of dead vectors.
25807 (sem_item::dump): Remove dump of references.
25808 (sem_item_optimizer::sem_item_optimizer): Initialize
25809 m_references.
25810 (sem_item_optimizer::read_section): Remove useless
25811 dump.
25812 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25813 (sem_item_optimizer::build_graph): Pass m_references
25814 to ::add_reference.
25815 (sem_item_optimizer::verify_classes): Remove usage of dead
25816 vectors.
25817 (sem_item_optimizer::traverse_congruence_split): Return true
25818 when a class is split.
25819 (sem_item_optimizer::do_congruence_step_for_index): Use
25820 hash_map for look up of (sem_item *, index). That brings
25821 significant speed up.
25822 (sem_item_optimizer::do_congruence_step): Return true
25823 when a split is done.
25824 (congruence_class::is_class_used): Use referenced_by_count.
25825
25826 2019-06-04 Alan Modra <amodra@gmail.com>
25827
25828 PR target/90689
25829 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25830 error.
25831
25832 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25833
25834 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25835 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25836 (rs6000_secondary_reload_simple_move): Adjust.
25837 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25838 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25839 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25840 comment.
25841 (power6x): Adjust.
25842 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25843 (floatunssi<mode>2_lfiwzx): Adjust.
25844 (fix_trunc<mode>si2_stfiwx): Adjust.
25845 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25846 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25847 (mfpgpr): Mark as deprecated.
25848 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25849 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25850 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25851
25852 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25853
25854 * config/rs6000/constraints.md (define_register_constraint "wg"):
25855 Delete.
25856 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25857 RS6000_CONSTRAINT_wg.
25858 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25859 (rs6000_init_hard_regno_mode_ok): Adjust.
25860 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25861 Delete "wg" alternatives.
25862 * doc/md.texi (Machine Constraints): Adjust.
25863
25864 2019-06-03 Alan Modra <amodra@gmail.com>
25865
25866 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25867 (get_uncond_jump_length): Assert length less than INT_MAX and
25868 non-negative.
25869
25870 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25871
25872 PR middle-end/64242
25873 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25874 block.
25875 (expand_builtin_nonlocal_goto): Likewise.
25876
25877 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25878
25879 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25880 (aarch64_asm_output_external): Declare.
25881 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25882 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25883 (aarch64_asm_output_alias): New.
25884 (aarch64_asm_output_external): New.
25885 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25886 (ASM_OUTPUT_EXTERNAL): Define.
25887
25888 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25889 * tree-vrp.h (value_range_base::nonzero_p): New.
25890 (value_range_base::set_nonnull): Rename to...
25891 (value_range_base::set_nonzero): ...this.
25892 (value_range_base::set_null): Rename to...
25893 (value_range_base::set_zero): ...this.
25894 (value_range::set_nonnull): Remove.
25895 (value_range::set_null): Remove.
25896 * tree-vrp.c (range_is_null): Remove.
25897 (range_is_nonnull): Remove.
25898 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25899 instead of range_is_*null.
25900 (extract_range_from_unary_expr): Same.
25901 (value_range_base::set_nonnull): Rename to...
25902 (value_range_base::set_nonzero): ...this.
25903 (value_range::set_nonnull): Remove.
25904 (value_range_base::set_null): Rename to...
25905 (value_range_base::set_zero): ...this.
25906 (value_range::set_null): Remove.
25907 (extract_range_from_binary_expr): Rename set_*null uses to
25908 set_*zero.
25909 (extract_range_from_unary_expr): Same.
25910 (union_helper): Same.
25911 * vr-values.c (get_value_range): Use set_*zero instead of
25912 set_*null.
25913 (vr_values::extract_range_from_binary_expr): Same.
25914 (vr_values::extract_range_basic): Same.
25915
25916 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25917
25918 PR driver/90684
25919 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25920
25921 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25922
25923 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25924 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25925 Rename to...
25926 (aarch64_<su>abd<mode>_3): ... This.
25927 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25928
25929 2019-06-03 Richard Biener <rguenther@suse.de>
25930
25931 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25932 full reference tree and record in ref->ref.
25933 (vn_reference_lookup_3): Pass in original ref to
25934 ao_ref_init_from_vn_reference.
25935 (vn_reference_lookup): Likewise.
25936 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25937 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25938 Handle non-decl bases in the original reference.
25939
25940 2019-06-03 Martin Liska <mliska@suse.cz>
25941
25942 * doc/generic.texi: Remove Java Trees.
25943
25944 2019-06-03 Martin Liska <mliska@suse.cz>
25945
25946 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25947 returns 0 when operands are equal.
25948
25949 2019-06-03 Richard Biener <rguenther@suse.de>
25950
25951 PR tree-optimization/90716
25952 * tree-loop-distribution.c (destroy_loop): Process blocks in
25953 correct order.
25954
25955 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25956
25957 PR target/88837
25958 * vector-builder.h (vector_builder::count_dups): New method.
25959 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25960 Declare prototype.
25961 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25962 (vec_init<mode><Vel>): New pattern.
25963 * config/aarch64/aarch64.c (emit_insr): New function.
25964 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25965 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25966 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25967 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25968
25969 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25970
25971 PR tree-optimization/90681
25972 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25973 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25974 special case for SLP, but fail on non-groupped loads.
25975
25976 2019-06-03 Martin Liska <mliska@suse.cz>
25977
25978 * cfg.c (debug): Use TDF_DETAILS for debug and
25979 print edge info only once.
25980
25981 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25982
25983 PR fortran/90539
25984 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25985
25986 2019-06-01 Martin Sebor <msebor@redhat.com>
25987
25988 PR middle-end/90694
25989 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25990
25991 2019-05-31 Jan Hubicka <jh@suse.cz>
25992
25993 * alias.c: Include ipa-utils.h.
25994 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25995 * ipa-devirt.c (prevailing_odr_type): New.
25996 * ipa-utils.h (previaling_odr_type): Declare.
25997
25998 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25999 Hongtao Liu <hongtao.liu@intel.com>
26000
26001 PR target/89355
26002 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
26003 NOTE_INSN_DELETED_LABEL check.
26004
26005 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
26006 Robert Suchanek <robert.suchanek@mips.com>
26007
26008 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
26009 and 3rd operands of the fmadd/fmsub/maddv builtin.
26010
26011 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26012
26013 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
26014 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26015 on OMP_SIMD if not nested inside of worksharing loop that also has
26016 lastprivate conditional clause for the same decl.
26017 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
26018 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
26019 on simd.
26020 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
26021 on simd construct.
26022 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
26023 on simd construct.
26024 (lower_lastprivate_clauses): Likewise.
26025 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
26026 calling lower_rec_input_clauses.
26027 (lower_omp_for): Likewise.
26028 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
26029 clause on simd construct.
26030 * omp-expand.c (expand_omp_simd): Initialize cond_var if
26031 OMP_CLAUSE__CONDTEMP_ clause is present.
26032
26033 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
26034 ivar and lvar.
26035
26036 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
26037
26038 PR c/43673
26039 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
26040 TEX_D32, TEX_D64 or TEX_D128.
26041
26042 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26043
26044 * match.pd (~(vec?cst1:cst2)): New transformation.
26045
26046 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
26047
26048 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
26049 ((size_t)(A /[ex] B) CMP C): New transformation.
26050
26051 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
26052
26053 * doc/md.texi: Document define_insn_and_rewrite.
26054 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
26055 * gensupport.c (queue_elem): Update comment.
26056 (replace_operands_with_dups): New function.
26057 (gen_rewrite_sequence): Likewise.
26058 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
26059 * read-rtl.c (apply_subst_iterator): Likewise.
26060 (add_condition_to_rtx, named_rtx_p): Likewise.
26061 (rtx_reader::read_rtx_operand): Likewise.
26062 * config/aarch64/aarch64-sve.md
26063 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
26064 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
26065 define_insn_and_rewrite.
26066 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
26067 Remove separate define_split.
26068
26069 2019-05-31 Jan Hubicka <jh@suse.cz>
26070
26071 * tree-ssa-alias.c (type_has_components_p): New function.
26072 (aliasing_component_refs_p): Use it.
26073
26074 2019-05-31 Martin Liska <mliska@suse.cz>
26075
26076 * gdbhooks.py: Add const_tree to TreePrinter.
26077
26078 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
26079
26080 PR debug/86964
26081 * common.opt (feliminate-unused-debug-symbols): Enable by default.
26082 * doc/invoke.texi (Debugging Options): Document new default of
26083 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
26084
26085 2019-05-31 Jakub Jelinek <jakub@redhat.com>
26086
26087 PR tree-optimization/90671
26088 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
26089 template_block used to be empty on the first call, don't use
26090 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
26091 seq with bb_seq and set it with set_bb_seq.
26092
26093 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
26094
26095 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
26096
26097 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26098 Michael Meissner <meissner@linux.ibm.com>
26099
26100 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
26101 (prefixed_mem_operand): Likewise.
26102 (non_prefixed_mem_operand): Likewise.
26103 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
26104 prototype.
26105 * config/rs6000/rs6000.c (print_operand_address): Handle
26106 PC-relative addresses.
26107 (mode_supports_prefixed_address_p): New function.
26108 (rs6000_prefixed_address): New function.
26109 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
26110 (SYMBOL_REF_PCREL_P): Likewise.
26111
26112 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26113
26114 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
26115 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
26116 (gimplify_omp_for): If worksharing loop with lastprivate conditional
26117 is nested inside of parallel region, add _condtemp_ clause to both.
26118 * tree-nested.c (convert_nonlocal_omp_clauses,
26119 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
26120 assertion failure.
26121 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
26122 member.
26123 * omp-general.c (omp_extract_for_data): Compute it.
26124 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
26125 (lower_rec_input_clauses): Likewise.
26126 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
26127 clause is already present, just add one further one after it.
26128 (lower_lastprivate_clauses): Handle cond_ptr with array type.
26129 (lower_send_shared_vars): Clear _condtemp_ vars.
26130 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
26131 or section or taskgroup.
26132 * omp-expand.c (determine_parallel_type): Disallow combining only if
26133 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
26134 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26135 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26136 expand_omp_for_static_chunk, expand_omp_for): Use
26137 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26138 determine if a special set of API routines are needed and if condtemp
26139 needs to be initialized, while always initialize cond_var if
26140 fd->lastprivate_conditional is non-zero.
26141
26142 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26143 Michael Meissner <meissner@linux.ibm.com>
26144
26145 * config/rs6000/constraints.md (eI): New constraint.
26146 * config/rs6000/predicates.md (cint34_operand): New predicate.
26147 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26148 (SIGNED_34BIT_OFFSET_P): Likewise.
26149 * doc/md.texi (eI): Document constraint.
26150
26151 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
26152
26153 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26154
26155 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26156 Michael Meissner <meissner@linux.ibm.com>
26157
26158 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26159 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26160 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26161 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26162 (OTHER_FUTURE_MASKS): Likewise.
26163 (POWERPC_MASKS): Likewise.
26164 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26165 specified without -mprefixed-addr or -mcpu=future. Error if
26166 -mprefixed-addr is specified without -mcpu=future.
26167 (rs6000_opt_masks): Add entry for prefixed-addr.
26168 * rs6000.opt (mprefixed-addr): New option.
26169
26170 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26171
26172 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26173 cfun->is_thunk check.
26174
26175 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26176
26177 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26178 to length.
26179
26180 2019-05-30 Martin Liska <mliska@suse.cz>
26181
26182 * gdbinit.in: Fix 'ptc' command. Add trt
26183 that prints TREE_TYPE($).
26184
26185 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26186 Alan Modra <amodra@gmail.com>
26187
26188 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26189 calls here...
26190 (rs6000_indirect_call_template_1): ...and here.
26191 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26192 plt16_ha, plt16_lo, mtctr indirect calls. Use
26193 rs6000_pltseq_enum.
26194 (rs6000_decl_ok_for_sibcall): New function.
26195 (rs6000_function_ok_for_sibcall): Refactor.
26196 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26197 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26198 when pcrel. Reorganize.
26199 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26200 * rs6000.h (rs6000_pltseq_enum): New enum.
26201 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26202 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26203 (*pltseq_plt16_ha): Likewise.
26204 (*pltseq_plt16_lo): Likewise.
26205 (*pltseq_mtctr): Likewise.
26206 (*pltseq_plt_pcrel): New insn.
26207 (*call_local_aix): Handle @notoc calls.
26208 (*call_value_local_aix): Likewise.
26209 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26210 (*call_value_nonlocal_aix): Likewise.
26211 (*call_indirect_pcrel): New insn.
26212 (*call_value_indirect_pcrel): Likewise.
26213
26214 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26215
26216 * config/i386/sse.md (*save_multiple<mode>): Rename from
26217 save_multiple<mode>.
26218 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26219 (*restore_multiple_and_return<mode>): Rename from
26220 restore_multiple_and_return<mode>.
26221 (*restore_multiple_leave_return<mode>): Rename from
26222 restore_multiple_leave_return<mode>.
26223
26224 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26225
26226 * config.gcc (rx-*-linux*): New target.
26227 * config/rx/elf.opt: New file.
26228 * config/rx/linux.h: Likewise.
26229 * config/rx/t-linux: Likewise.
26230 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26231 make it zero.
26232 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26233 (ASM_APP_OFF): Likewise.
26234 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26235 moved elsewhere.
26236
26237 2019-05-29 Jan Hubicka <jh@suse.cz>
26238
26239 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26240 variants are pointer equivalent.
26241
26242 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26243
26244 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26245 * config/aarch64/aarch64-sve2.md: New file.
26246 (<u>avg<mode>3_floor): New pattern.
26247 (<u>avg<mode>3_ceil): Likewise.
26248 (*<sur>h<addsub><mode>): Likewise.
26249 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26250 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26251
26252 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26253
26254 PR bootstrap/90543
26255 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26256 for var_opt_string printing. In cl_optimization_print_diff, print
26257 (null) instead of invoking undefined behavior if one of the
26258 var_opt_string pointers is NULL and use && instead of first || in the
26259 guarding condition. For var_target_other options, handle const char *
26260 target variables similarly to const char * optimize node variables.
26261
26262 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26263
26264 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26265 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26266 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26267 Add autib1716 and pacib1716 initialisation.
26268 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26269 for autib1716 and pacib1716.
26270 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26271 aarch64_post_cfi_startproc): Define.
26272 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26273 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26274 aarch64_handle_pac_ret_protection): Set default sign key to A.
26275 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26276 aarch64_expand_prologue): Add check for b-key.
26277 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26278 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26279 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26280 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26281 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26282 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26283 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26284 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26285 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26286 pauth_hint_num_a with pauth_hint_num.
26287 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26288 pauth_hint_num_a with pauth_hint_num.
26289 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26290 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26291 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26292 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26293 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26294 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26295 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26296 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26297 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26298 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26299 UNSPEC_AUTIA1716 respectively.
26300 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26301 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26302 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26303 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26304 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26305 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26306
26307 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26308
26309 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26310 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26311 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26312 explicit clause on combined parallel into implicit shared clause.
26313 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26314 and firstprivate if the decl has one too from combined parallel to
26315 the worksharing construct.
26316
26317 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26318 Michael Meissner <meissner@linux.ibm.com>
26319
26320 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26321
26322 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26323
26324 * rtl.h (LABEL_REF_P): New #define.
26325
26326 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26327
26328 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26329
26330 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26331
26332 * internal-fn.c: Marked mask_load_direct as vectorizable.
26333 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26334 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26335 combined even if masks different with allow_slp_p param.
26336 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26337 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26338 dissolve SLP-only vectorizable groups when SLP has been discarded.
26339 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26340 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26341 masks.
26342 (vect_build_slp_tree_1): Fixed comment typo.
26343 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26344 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26345 loads for SLP only.
26346 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26347 vectorizable.
26348 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26349
26350 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26351
26352 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26353 Remove obsolete use_thunk reference.
26354 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26355 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26356 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26357 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26358 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26359 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26360 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26361 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26362 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26363
26364 2019-05-28 Nathan Sidwell <nathan@acm.org>
26365
26366 * tree.h (IDENTIFIER_ANON_P): New.
26367 (anon_aggrname_format, anon_aggname_p): Don't declare.
26368 (make_anon_name): Declare.
26369 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26370 (hash_tree): Likewise.
26371 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26372 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26373 (anon_cnt, make_anon_name): New.
26374
26375 2019-05-28 Martin Liska <mliska@suse.cz>
26376
26377 PR other/90315
26378 * opts-global.c (decode_options): Print help for all
26379 help_option_arguments.
26380 * opts.c (print_help): Add new argument.
26381 (common_handle_option): Remember all values into
26382 help_option_arguments.
26383 * opts.h (print_help): Add new argument.
26384
26385 2019-05-28 Martin Liska <mliska@suse.cz>
26386
26387 PR ipa/90555
26388 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26389 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26390 (func_checker::compare_bb): Call compare_loops.
26391
26392 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26393
26394 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26395 on sections construct.
26396 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26397 construct.
26398 (lower_omp_sections): Handle lastprivate conditional.
26399 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26400 lastprivate_conditional_map.
26401 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26402
26403 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26404 critical, taskgroup and section regions when looking for a region
26405 with non-NULL lastprivate_conditional_map.
26406
26407 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26408
26409 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26410 (*ix86_gen_sub3): Ditto.
26411 (*ix86_gen_sub3_carry): Ditto.
26412 (*ix86_gen_one_cmpl2): Ditto.
26413 (*ix86_gen_andsp): Ditto.
26414 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26415 (gen_and2_insn): New static function.
26416 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26417 Use gen_add3_insn instead of ix86_gen_add3.
26418 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26419 instead of ix86_gen_add3.
26420 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26421 Use gen_sub3_insn instead of ix86_gen_sub3.
26422 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26423 instead of ix86_gen_add3.
26424 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26425 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26426 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26427 * config/i386/i386-options.c (ix86_option_override_internal):
26428 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26429 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26430
26431 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26432
26433 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26434 and DW_OP_GNU_const_index opcodes.
26435
26436 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26437
26438 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26439
26440 2019-05-27 Richard Biener <rguenther@suse.de>
26441
26442 PR tree-optimization/90637
26443 * tree-ssa-sink.c (statement_sink_location): Honor the
26444 computed sink location for single-uses.
26445
26446 2019-05-27 Richard Biener <rguenther@suse.de>
26447
26448 PR middle-end/90610
26449 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26450 a bit-insert.
26451
26452 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26453
26454 * config/i386/i386.md (@sub<mode>3_carry): Rename
26455 from sub<mode>3_carry.
26456 (@leave_<mode>): New expander.
26457 (*leave): Rename from leave.
26458 (*leave_rex64): Rename from leave_rex64.
26459 (@monitorx_<mode>): Rename from monitorx_<mode>.
26460 (@clzero_<mode>): Rename from clzero_<mode>.
26461 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26462 from sse3_monitor_<mode>.
26463 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26464 (*ix86_gen_leave): Ditto.
26465 (*ix86_gen_monitor): Ditto.
26466 (*ix86_gen_monitorx): Ditto.
26467 (*ix86_gen_clzero): Ditto.
26468 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26469 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26470 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26471 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26472 Use gen_sse3_monitor instead of ix86_gen_monitor.
26473 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26474 instead of ix86_gen_monitorx.
26475 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26476 instead of ix86_gen_clzero.
26477 * config/i386/i386-options.c (ix86_option_override_internal):
26478 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26479 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26480
26481 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26482
26483 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26484 Rename from tls_global_dynamic_64_<mode>.
26485 (@tls_local_dynamic_base_64_<mode>): Rename from
26486 tls_local_dynamic_base_64_<mode>.
26487 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26488 Remove indirect function.
26489 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26490 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26491 instead of ix86_gen_tls_global_dynamic_64.
26492 Use gen_tls_local_dynamic_base_64 instead of
26493 ix86_gen_tls_local_dynamic_base_64.
26494 * config/i386/i386-options.c (ix86_option_override_internal):
26495 Do not initialize ix86_gen_tls_global_dynamic_64 and
26496 ix86_gen_tls_local_dynamic_base_64.
26497
26498 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26499
26500 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26501 Rename from pro_epilogue_adjust_stack_<mode>_add.
26502 (@pro_epilogue_adjust_stack_sub_<mode>)
26503 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26504 (@allocate_stack_worker_probe_<mode>):
26505 Rename from allocate_stack_worker_probe_<mode>.
26506 (allocate_stack): Use gen_allocate_stack_worker_probe.
26507 (probe_stack): Use gen_probe_stack_1.
26508 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26509 (@adjust_stack_and_probe_<mode>): Rename from
26510 adjust_stack_and_probe<mode>.
26511 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26512 (stack_protect_set): Use gen_stack_protect_set_1.
26513 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26514 (stack_protect_test): Use gen_stack_protect_test_1.
26515 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26516 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26517 Remove indirect function.
26518 (*ix86_gen_adjust_stack_and_probe): Ditto.
26519 (*ix86_gen_probe_stack_range): Ditto.
26520 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26521 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26522 (ix86_adjust_stack_and_probe_stack_clash): Use
26523 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26524 (ix86_adjust_stack_and_probe): Ditto.
26525 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26526 of ix86_gen_probe_stack_range.
26527 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26528 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26529 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26530 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26531 CODE_FOR_stack_protect_test_{si,di}.
26532 * config/i386/i386-options.c (ix86_option_override_internal):
26533 Do not initialize ix86_gen_allocate_stack_worker,
26534 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26535
26536 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26537
26538 * doc/invoke.texi (Link Options): Many editorial changes around
26539 -flinker-output.
26540
26541 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26542
26543 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26544 pre-Solaris 11 referene and most Studio compiler details.
26545
26546 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26547
26548 PR target/90530
26549 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26550 DImode to SImode in floating-point registers on 64-bit target.
26551 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26552 register_operand in xmpyu patterns.
26553
26554 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26555
26556 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26557 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26558 OMP_CLAUSE__REDUCTEMP_.
26559 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26560 OMP_CLAUSE__CONDTEMP_.
26561 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26562 * tree-pretty-print.c (dump_omp_clause): Likewise.
26563 * tree-nested.c (convert_nonlocal_omp_clauses,
26564 convert_local_omp_clauses): Likewise.
26565 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26566 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26567 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26568 on OMP_FOR.
26569 (gimplify_omp_for): Warn and disable conditional modifier from
26570 lastprivate on loop iterators.
26571 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26572 member.
26573 * omp-general.c (omp_extract_for_data): Initialize it.
26574 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26575 member.
26576 (delete_omp_context): Delete it.
26577 (lower_lastprivate_conditional_clauses): New function.
26578 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26579 handle lastprivate conditional clauses.
26580 (lower_reduction_clauses): Add CLIST argument, emit it into
26581 the critical section if any.
26582 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26583 lower_reduction_clauses callers.
26584 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26585 to lower_lastprivate_clauses.
26586 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26587 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26588 clist into a critical section if not emitted there already by
26589 lower_reduction_clauses.
26590 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26591 callers.
26592 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26593 conditional variables.
26594 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26595 clause is present.
26596 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26597 expand_omp_for_static_chunk): Handle lastprivate conditional.
26598 (expand_omp_for): Handle fd.lastprivate_conditional like
26599 fd.have_reductemp.
26600
26601 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26602
26603 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26604 kernel does not exit cleanly.
26605 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26606
26607 2019-05-24 Jason Merrill <jason@redhat.com>
26608
26609 Revert:
26610 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26611
26612 2019-05-24 Richard Biener <rguenther@suse.de>
26613
26614 PR testsuite/90607
26615 * tree-loop-distribution.c (struct partition): Add location
26616 member.
26617 (partition_alloc): Initialize all fields.
26618 (generate_memset_builtin): Use the location recorded in the
26619 partition for the generated call.
26620 (generate_memcpy_builtin): Likewise.
26621 (classify_partition): Record the location of a single store
26622 as location for the partition.
26623
26624 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26625
26626 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26627 for lo-part.
26628
26629 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26630
26631 PR target/90588
26632 * common/config/aarch64/aarch64-common.c
26633 (aarch64_rewrite_selected_cpu): Change local temporary variable
26634 type from unsigned long to uint64_t.
26635 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26636 aarch64_get_extension_string_for_isa_flags): Change declaration to
26637 match new definition by replacing unsigned long with uint64_t.
26638
26639 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26640
26641 PR target/90568
26642 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26643 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26644 Handle stack_protect_test_<mode> codegen similarly to corresponding
26645 sub instruction.
26646
26647 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26648
26649 * config/i386/darwin.h: Reject -mfentry*.
26650 * doc/sourcebuild.texi: Document mfentry target support.
26651
26652 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26653
26654 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26655 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26656 false for PC-relative functions.
26657 (rs6000_output_function_prologue): Change called function name to
26658 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26659 name,1" for PC-relative functions.
26660 (rs6000_elf_declare_function_name): Change called function name to
26661 rs6000_global_entry_point_prologue_needed_p.
26662
26663 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26664
26665 PR target/90552
26666 * config/i386/i386.c (gen_rtx_cost):
26667 Use ix86_tune_cost instead of ix86_cost.
26668
26669 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26670 Michael Meissner <meissner@linux.ibm.com>
26671 Segher Boessenkool <segher@kernel.crashing.org>
26672
26673 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26674 OPTION_MASK_PCREL.
26675 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26676 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26677 (rs6000_fndecl_pcrel_p): Likewise.
26678 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26679 error if -mpcrel is requested without -mcpu=future.
26680 (rs6000_opt_masks): Add entry for pcrel.
26681 (rs6000_fndecl_pcrel_p): New function.
26682 (rs6000_pcrel_p): Likewise.
26683 * config/rs6000/rs6000.opt (mpcrel): New option.
26684 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26685
26686 2019-05-23 Jan Hubicka <jh@suse.cz>
26687 Martin Liska <mliska@suse.cz>
26688
26689 PR tree-optimization/90576
26690 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26691 poly_int_tree_p.
26692 (aliasing_component_refs_p): Fix three way size compare conditional;
26693 give up earlier in case we can not decide on equivalence.
26694
26695 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26696 Michael Meissner <meissner@linux.ibm.com>
26697 Segher Boessenkool <segher@kernel.crashing.org>
26698
26699 * config.gcc: Add future cpu.
26700 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26701 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26702 #define.
26703 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26704 (RS6000_CPU): New instantiation for future cpu.
26705 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26706 PROCESSOR_FUTURE.
26707 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26708 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26709 * config/rs6000/rs6000-tables.opt: Regenerate.
26710 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26711 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26712 (rs6000_machine_from_flags): Handle future cpu.
26713 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26714 PROCESSOR_POWER9 for now.
26715 (rs6000_adjust_cost): Likewise.
26716 (rs6000_issue_rate): Likewise.
26717 (rs6000_register_move_cost): Likewise.
26718 (rs6000_opt_masks): Add entry for future.
26719 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26720 (MASK_FUTURE): New #define.
26721 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26722 * config/rs6000/rs6000.opt (mfuture): New target option.
26723 * doc/invoke.texi (mcpu): Add future cpu.
26724
26725 2019-05-23 Martin Liska <mliska@suse.cz>
26726
26727 PR c++/90587
26728 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26729 operation points to a temporary (pointed via tree_to_wide_ref)
26730 that is out of scope after the &.
26731
26732 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26733
26734 PR c++/90592
26735 * doc/extend.texi (Function Names): Add missing word.
26736
26737 2019-05-23 Richard Biener <rguenther@suse.de>
26738
26739 PR tree-optimization/88440
26740 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26741 at -O[2s]+.
26742 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26743 generated call.
26744 (generate_memcpy_builtin): Likewise.
26745 (distribute_loop): Pass in whether to only distribute patterns.
26746 (prepare_perfect_loop_nest): Also allow size optimization.
26747 (pass_loop_distribution::execute): When optimizing a loop
26748 nest for size allow pattern replacement.
26749
26750 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26751
26752 PR target/90568
26753 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26754 of xor.
26755
26756 2019-05-23 Martin Liska <mliska@suse.cz>
26757
26758 PR sanitizer/90570
26759 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26760 expression similarly to gimplify_decl_expr.
26761
26762 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26763
26764 * cse.c (cse_dump_path): s/dump_file/f.
26765
26766 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26767
26768 PR c++/90462
26769 * diagnostic-format-json.cc: Include "selftest.h".
26770 (json_from_expanded_location): Only add "file" key for non-NULL
26771 file strings.
26772 (json_from_location_range): Don't add "start" and "finish"
26773 children if they are UNKNOWN_LOCATION.
26774 (selftest::test_unknown_location): New selftest.
26775 (selftest::test_bad_endpoints): New selftest.
26776 (selftest::diagnostic_format_json_cc_tests): New function.
26777 * json.cc (json::object::get): New function.
26778 (selftest::test_object_get): New selftest.
26779 (selftest::json_cc_tests): Call it.
26780 * json.h (json::object::get): New decl.
26781 * selftest-run-tests.c (selftest::run_tests): Call
26782 selftest::diagnostic_format_json_cc_tests.
26783 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26784 decl.
26785
26786 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26787 Andrew Stubbs <amd@codesourcery.com>
26788
26789 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26790 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26791 (kernel): Rename to...
26792 (main_kernel): ... this.
26793 (load_image): Load _init_array and _fini_array kernels.
26794 (run): Add argument for kernel to run.
26795 (main): Run init_array_kernel before main_kernel, and
26796 fini_array_kernel after.
26797 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26798 amdgpu_hsa_kernel attribute on functions.
26799 (gcn_disable_constructors): Delete.
26800 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26801 * config/gcn/crt0.c (size_t): Define.
26802 (_init_array, _fini_array): New.
26803 (__preinit_array_start, __preinit_array_end,
26804 __init_array_start, __init_array_end,
26805 __fini_array_start, __fini_array_end): Declare weak references.
26806
26807 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26808
26809 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26810
26811 2019-05-22 Jason Merrill <jason@redhat.com>
26812
26813 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26814
26815 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26816
26817 PR target/88483
26818 * config/i386/i386-options.c (ix86_init_machine_status): Set
26819 stack_frame_required to true.
26820 * config/i386/i386.c (ix86_get_frame_size): New function.
26821 (ix86_frame_pointer_required): Replace get_frame_size with
26822 ix86_get_frame_size.
26823 (ix86_compute_frame_layout): Likewise.
26824 (ix86_find_max_used_stack_alignment): Changed to void. Set
26825 stack_frame_required.
26826 (ix86_finalize_stack_frame_flags): Always call
26827 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26828 ix86_get_frame_size.
26829 * config/i386/i386.h (machine_function): Add stack_frame_required.
26830
26831 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26832
26833 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26834
26835 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26836
26837 * common/config/aarch64/aarch64-common.c
26838 (struct aarch64_option_extension, struct processor_name_to_arch,
26839 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26840 aarch64_contains_opt,
26841 aarch64_get_extension_string_for_isa_flags): Change type of
26842 variables storing flags to uint64_t.
26843 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26844 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26845 * config/aarch64/aarch64.c (struct processor,
26846 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26847 aarch64_validate_march, aarch64_override_options,
26848 aarch64_option_print, aarch64_handle_attr_isa_flags,
26849 aarch64_declare_function_name, aarch64_start_file): Make flag
26850 variables uint64_t.
26851 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26852 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26853 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26854 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26855 * config/aarch64/driver-aarch64.c
26856 (struct aarch64_arch_extension, struct aarch64_core_data,
26857 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26858 flag variables uint64_t.
26859 * doc/invoke.texi: Add documentation for new arguments.
26860
26861 2019-05-22 Richard Biener <rguenther@suse.de>
26862
26863 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26864 rewrite ...
26865 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26866
26867 2019-05-22 Martin Liska <mliska@suse.cz>
26868
26869 PR lto/90500
26870 * doc/extend.texi: Document the change.
26871
26872 2019-05-22 Richard Biener <rguenther@suse.de>
26873
26874 PR tree-optimization/90450
26875 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26876 (mem_ref_hasher::equal): Check it.
26877 (mem_ref_alloc): Initialize it.
26878 (gather_mem_refs_stmt): Set it.
26879
26880 2019-05-22 Richard Biener <rguenther@suse.de>
26881
26882 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26883 Add ABS_EXPR.
26884 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26885 as ABSU_EXPR.
26886
26887 2019-05-22 Alan Modra <amodra@gmail.com>
26888
26889 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26890 (ASM_CPU_SPEC): Conditionally add -many.
26891 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26892 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26893 (rs6000_file_start): ..extracted from here, and modified to
26894 test all ISA bits.
26895 (rs6000_output_function_prologue): Emit .machine as necessary.
26896
26897 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26898
26899 PR middle-end/90553
26900 * ira-lives.c (process_bb_node_lives): Consider defs
26901 for a call insn to be die before the call, not after.
26902
26903 * function.c (assign_parm_setup_block): Raise alignment of
26904 stacked parameter only for STRICT_ALIGNMENT targets.
26905
26906 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26907
26908 * config/rs6000/constraints.md (define_register_constraint "wz"):
26909 Delete.
26910 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26911 RS6000_CONSTRAINT_wz.
26912 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26913 (rs6000_init_hard_regno_mode_ok): Adjust.
26914 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26915 * doc/md.texi (Machine Constraints): Adjust.
26916
26917 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26918
26919 * config/rs6000/constraints.md (define_register_constraint "wl"):
26920 Delete.
26921 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26922 RS6000_CONSTRAINT_wl.
26923 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26924 (rs6000_init_hard_regno_mode_ok): Adjust.
26925 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26926 * doc/md.texi (Machine Constraints): Adjust.
26927
26928 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26929
26930 * config/rs6000/constraints.md (define_register_constraint "wm"):
26931 Delete.
26932 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26933 RS6000_CONSTRAINT_wm.
26934 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26935 (rs6000_init_hard_regno_mode_ok): Adjust.
26936 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26937 * doc/md.texi (Machine Constraints): Adjust.
26938
26939 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26940
26941 * config/rs6000/constraints.md (define_register_constraint "wk"):
26942 Delete.
26943 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26944 RS6000_CONSTRAINT_wk.
26945 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26946 (rs6000_init_hard_regno_mode_ok): Adjust.
26947 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26948 * doc/md.texi (Machine Constraints): Adjust.
26949
26950 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26951
26952 * config/rs6000/constraints.md (define_register_constraint "wj"):
26953 Delete.
26954 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26955 RS6000_CONSTRAINT_wj.
26956 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26957 (rs6000_init_hard_regno_mode_ok): Adjust.
26958 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26959 (VS_64dm): Delete.
26960 * config/rs6000/vsx.md: Ditto.
26961 * doc/md.texi (Machine Constraints): Adjust.
26962
26963 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26964
26965 * config/rs6000/constraints.md (define_register_constraint "wh"):
26966 Delete.
26967 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26968 RS6000_CONSTRAINT_wh.
26969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26970 (rs6000_init_hard_regno_mode_ok): Adjust.
26971 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26972 * doc/md.texi (Machine Constraints): Adjust.
26973
26974 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26975
26976 PR target/90547
26977 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26978 Avoid calling gen_lowpart with CONST operand.
26979
26980 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26981
26982 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26983 field template_last_to_copy.
26984 (ssa_create_duplicates): Set it, and use it. Attempt to
26985 preserve more debug stmts.
26986
26987 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26988
26989 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26990 (signbit<mode>2): New expander
26991
26992 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26993
26994 PR bootstrap/87338
26995 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26996 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26997
26998 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26999
27000 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
27001 %ebx and %ecx bafore calling cpuid with leaf 1 or
27002 non-constant leaf argument.
27003
27004 2019-05-21 Alan Modra <amodra@gmail.com>
27005
27006 PR target/90545
27007 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
27008 power9 direct move cost.
27009
27010 2019-05-21 Richard Biener <rguenther@suse.de>
27011
27012 PR middle-end/90510
27013 * fold-const.c (fold_read_from_vector): New function.
27014 * fold-const.h (fold_read_from_vector): Declare.
27015 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
27016 single-element insert permutations. Canonicalize selector
27017 further and fix issue with last commit.
27018
27019 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27020
27021 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
27022 parameter with default value false to declaration.
27023 (split_edges_for_insertion): New inline function. Wrapper for
27024 split_critical_edges with for_edge_insertion_p = true.
27025 * tree-cfg.c (split_critical_edges): Don't split non-critical
27026 edges if for_edge_insertion_p is false. Fix whitespace.
27027 * tree-ssa-pre.c (pass_pre::execute): Call
27028 split_edges_for_insertion instead of split_critical_edges.
27029 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
27030 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
27031 (pass_data_sink_code): Update function name in the comment.
27032
27033 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
27034
27035 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
27036 around is_value_included_in that knows how to handle BIT_AND_EXPR.
27037 (is_pred_expr_subset_of): Use the new function. Handle more cases where
27038 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
27039 positives.
27040
27041 2019-05-21 Martin Liska <mliska@suse.cz>
27042
27043 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
27044 an extra newline.
27045 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
27046 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
27047 vec_lvsr.
27048 * config/rs6000/rs6000.c (rs6000_option_override_internal):
27049 Quote a C type.
27050 (rs6000_function_arg): Likewise.
27051 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
27052 (rs6000_expand_ternop_builtin): Use interval syntax.
27053 (get_element_number): Likewise.
27054 (altivec_expand_builtin): Likewise.
27055 (rs6000_get_function_versions_dispatcher): Quote target_clones.
27056
27057 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27058
27059 PR c++/59813
27060 PR target/90418
27061 * function.h (struct function): Add calls_eh_return member.
27062 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
27063 gimplifying __builtin_eh_return call.
27064 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
27065 to cfun.
27066 (expand_call_inline): Or in src_cfun->calls_eh_return into
27067 dst_cfun->calls_eh_return.
27068 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
27069 cfun->calls_eh_return.
27070 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
27071 * lto-streamer-out.c (output_struct_function_base): Write
27072 calls_eh_return.
27073
27074 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
27075
27076 PR rtl-optimization/43147
27077 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
27078 IX86_BUILTIN_SHUFPD.
27079
27080 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27081
27082 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
27083 (refs_may_alias_p_1): ... here; update stats.
27084 (refs_may_alias_p): Do not update stats here.
27085
27086 2019-05-20 Richard Biener <rguenther@suse.de>
27087
27088 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
27089 doesn't produce pointers.
27090 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
27091 the first operand points to.
27092
27093 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
27094
27095 * tree-ssa-alias.c (compare_sizes): New function.
27096 (sompare_type_sizes): New function
27097 (aliasing_component_refs_p): Use it.
27098 (indirect_ref_may_alias_decl_p): Likewise.
27099
27100 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27101
27102 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
27103
27104 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27105
27106 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
27107 (LIBLSAN_EARLY_SPEC): Likewise.
27108 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
27109
27110 2019-05-20 Martin Liska <mliska@suse.cz>
27111
27112 * config/i386/i386.c (ix86_libc_has_fast_function):
27113 Add ATTRIBUTE_UNUSED for the argument.
27114
27115 2019-05-20 Richard Biener <rguenther@suse.de>
27116
27117 * gimple-match-head.c: Include vec-perm-indices.h.
27118 * generic-match-head.c: Likewise.
27119 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
27120 is included.
27121 * fold-const.c (fold_vec_perm): Export.
27122 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
27123 (match.pd): ...here.
27124
27125 2019-05-20 Jakub Jelinek <jakub@redhat.com>
27126
27127 * cfgloop.h (struct loop): Add simdlen member.
27128 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
27129 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
27130 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
27131 as new argument to autovectorize_vector_sizes target hook. If
27132 loop->simdlen, pick up vector size where the vectorization factor
27133 is equal to loop->simd, and if there is none, fall back to the first
27134 successful one.
27135 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27136 caller.
27137 * omp-low.c (omp_clause_aligned_alignment): Likewise.
27138 * omp-general.c (omp_max_vf): Likewise.
27139 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27140 * tree-vect-slp.c (vect_slp_bb): Likewise.
27141 * target.def (autovectorize_vector_sizes): Add ALL argument and
27142 document it.
27143 * doc/tm.texi: Adjust documentation.
27144 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27145 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27146 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27147 bool argument.
27148 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27149 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27150 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27151 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
27152 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27153 preferred vector size is not 512-bit or 256-bit, just put those
27154 unpreferred ones last.
27155
27156 2019-05-20 Martin Liska <mliska@suse.cz>
27157
27158 * targhooks.c (default_libc_has_fast_function): New function.
27159 * targhooks.h (default_libc_has_fast_function): Likewise.
27160
27161 2019-05-20 Martin Liska <mliska@suse.cz>
27162
27163 PR middle-end/90263
27164 * builtins.c (expand_builtin_memory_copy_args): When having a
27165 target with fast mempcpy implementation do now use memcpy.
27166 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27167 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27168 * doc/tm.texi: Likewise.
27169 * doc/tm.texi.in: Likewise.
27170 * target.def:
27171 * expr.c (emit_block_move_hints): Add 2 new arguments.
27172 * expr.h (emit_block_move_hints): Bail out when libcall
27173 to memcpy would be used.
27174
27175 2019-05-20 Martin Liska <mliska@suse.cz>
27176
27177 * profile-count.c: Add vertical spacing in order
27178 to separate functions.
27179 * profile-count.h: Likewise.
27180
27181 2019-05-20 Martin Liska <mliska@suse.cz>
27182
27183 * profile-count.h: Do not use full qualified
27184 names if possible.
27185 * profile-count.c (profile_count::to_frequency): Likewise.
27186
27187 2019-05-20 Martin Liska <mliska@suse.cz>
27188
27189 * profile-count.h (enum profile_quality): Use capital letters
27190 for enum value names. Use the adjusted names.
27191 * profile-count.c: Use the adjusted names.
27192
27193 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27194
27195 * config/rs6000/constraints.md (define_register_constraint "wH"):
27196 Delete.
27197 (define_register_constraint "wI"): Delete.
27198 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27199 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27200 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27201 (rs6000_init_hard_regno_mode_ok): Adjust.
27202 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27203 resp. "d", or with "wa" as appropriate, all with "p8v".
27204 * config/rs6000/vsx.md: Ditto.
27205 * doc/md.texi (Machine Constraints): Adjust.
27206
27207 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27208
27209 * config/rs6000/constraints.md (define_register_constraint "wy"):
27210 Delete.
27211 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27212 RS6000_CONSTRAINT_wy.
27213 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27214 (rs6000_init_hard_regno_mode_ok): Adjust.
27215 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27216 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27217 (define_mode_attr Fisa): New.
27218 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27219 * doc/md.texi (Machine Constraints): Adjust.
27220
27221 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27222
27223 * config/rs6000/constraints.md (define_register_constraint "wu"):
27224 Delete.
27225 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27226 RS6000_CONSTRAINT_wu.
27227 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27228 (rs6000_init_hard_regno_mode_ok): Adjust.
27229 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27230 both with "p8v".
27231 (define_mode_attr Fa): Delete.
27232 * config/rs6000/vsx.md: Ditto.
27233 * doc/md.texi (Machine Constraints): Adjust.
27234
27235 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27236
27237 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27238 Delete.
27239 (define_register_constraint "wK"): Delete.
27240 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27241 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27242 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27243 (rs6000_init_hard_regno_mode_ok): Adjust.
27244 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27245 Replace "wK" constraint by "wH" with "p9v".
27246 * config/rs6000/vsx.md: Ditto.
27247 * doc/md.texi (Machine Constraints): Adjust.
27248
27249 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27250
27251 * config/rs6000/constraints.md (define_register_constraint "wb"):
27252 Delete.
27253 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27254 RS6000_CONSTRAINT_wb.
27255 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27256 (rs6000_init_hard_regno_mode_ok): Adjust.
27257 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27258 * config/rs6000/vsx.md: Ditto.
27259 * doc/md.texi (Machine Constraints): Adjust.
27260
27261 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27262
27263 * config/rs6000/constraints.md (define_register_constraint "wo"):
27264 Delete.
27265 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27266 RS6000_CONSTRAINT_wo.
27267 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27268 (rs6000_init_hard_regno_mode_ok): Adjust.
27269 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27270 * config/rs6000/altivec.md: Ditto.
27271 * doc/md.texi (Machine Constraints): Adjust.
27272
27273 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27274
27275 * config/darwin-c.c (darwin_register_objc_includes): Do not
27276 prepend the sysroot when building gnu-runtime header search
27277 paths.
27278
27279 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27280
27281 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27282 instead of direct output of the asm.
27283
27284 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27285
27286 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27287 argument to be type bool (was int before).
27288 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27289 at first use. Use type bool for some variables. Fix a theoretical
27290 eh_return bug for svr4.
27291
27292 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27293
27294 * config/rs6000/rs6000.md (isa): New attribute.
27295 (enabled): New attribute.
27296
27297 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27298
27299 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27300 assemble_start_function and assemble_end_function.
27301
27302 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27303
27304 PR middle-end/89433
27305 * omp-general.c (oacc_verify_routine_clauses): Change formal
27306 parameters. Add checking if already marked with an OpenACC
27307 'routine' directive. Adjust all users.
27308
27309 PR middle-end/89433
27310 * omp-general.c (oacc_build_routine_dims): Move some of its
27311 processing into...
27312 (oacc_verify_routine_clauses): ... this new function.
27313 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27314
27315 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27316
27317 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27318 formating of picbase labels to match other ports.
27319
27320 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27321
27322 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27323 in the generated code.
27324
27325 2019-05-16 Martin Sebor <msebor@redhat.com>
27326
27327 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27328 identifiers, keywords, operators, and types in diagnostics. Correct
27329 quoting, spelling, and sentence capitalization issues.
27330 (expand_builtin_atomic_is_lock_free): Same.
27331 (fold_builtin_next_arg): Same.
27332 * cfgexpand.c (expand_one_var): Same.
27333 (tree_conflicts_with_clobbers_p): Same.
27334 (expand_asm_stmt): Same.
27335 (verify_loop_structure): Same.
27336 * cgraphunit.c (process_function_and_variable_attributes): Same.
27337 * collect-utils.c (collect_execute): Same.
27338 * collect2.c (maybe_run_lto_and_relink): Same.
27339 (is_lto_object_file): Same.
27340 (scan_prog_file): Same.
27341 * convert.c (convert_to_real_1): Same.
27342 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27343 * except.c (verify_eh_tree): Same.
27344 * gcc.c (execute): Same.
27345 (eval_spec_function): Same.
27346 (run_attempt): Same.
27347 (driver::set_up_specs): Same.
27348 (compare_debug_auxbase_opt_spec_function): Same.
27349 * gcov-tool.c (unlink_gcda_file): Same.
27350 (do_merge): Same.
27351 (do_rewrite): Same.
27352 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27353 * gimplify.c (gimplify_asm_expr): Same.
27354 (gimplify_adjust_omp_clauses): Same.
27355 * hsa-gen.c (gen_hsa_addr_insns): Same.
27356 (gen_hsa_insns_for_load): Same.
27357 (gen_hsa_cmp_insn_from_gimple): Same.
27358 (gen_hsa_insns_for_operation_assignment): Same.
27359 (gen_get_level): Same.
27360 (gen_hsa_alloca): Same.
27361 (omp_simple_builtin::generate): Same.
27362 (gen_hsa_atomic_for_builtin): Same.
27363 (gen_hsa_insns_for_call): Same.
27364 * input.c (dump_location_info): Same.
27365 * ipa-devirt.c (compare_virtual_tables): Same.
27366 * ira.c (ira_setup_eliminable_regset): Same.
27367 * lra-assigns.c (lra_assign): Same.
27368 * lra-constraints.c (lra_constraints): Same.
27369 * lto-streamer-in.c (lto_input_mode_table): Same.
27370 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27371 (merge_and_complain): Same.
27372 (compile_offload_image): Same.
27373 (compile_images_for_offload_targets): Same.
27374 (debug_objcopy): Same.
27375 (run_gcc): Same.
27376 (main): Same.
27377 * opts.c (print_specific_help): Same.
27378 (parse_no_sanitize_attribute): Same.
27379 (print_help): Same.
27380 (handle_param): Same.
27381 * plugin.c (add_new_plugin): Same.
27382 (parse_plugin_arg_opt): Same.
27383 (try_init_one_plugin): Same.
27384 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27385 operators, and types in diagnostics. Correct quoting and spelling
27386 issues.
27387 * read-rtl-function.c (parse_edge_flag_token): Same.
27388 (function_reader::parse_enum_value): Same.
27389 * reg-stack.c (check_asm_stack_operands): Same.
27390 * regcprop.c (validate_value_data): Same.
27391 * sched-rgn.c (make_pass_sched_fusion): Same.
27392 * stmt.c (check_unique_operand_names): Same.
27393 * targhooks.c (default_target_option_pragma_parse): Same.
27394 * tlink.c (recompile_files): Same.
27395 * toplev.c (process_options): Same.
27396 (do_compile): Same.
27397 * trans-mem.c (diagnose_tm_1): Same.
27398 (ipa_tm_scan_irr_block): Same.
27399 (ipa_tm_diagnose_transaction): Same.
27400 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27401 format a tree code name in a diagnostic.
27402 (verify_types_in_gimple_min_lval): Same.
27403 (verify_types_in_gimple_reference): Same.
27404 (verify_gimple_call): Same.
27405 (verify_gimple_assign_unary): Same.
27406 (verify_gimple_assign_binary): Same.
27407 (verify_gimple_assign_ternary): Same.
27408 (verify_gimple_assign_single): Same.
27409 (verify_gimple_switch): Same.
27410 (verify_gimple_label): Same.
27411 (verify_gimple_phi): Same.
27412 (verify_gimple_in_seq): Same.
27413 (verify_eh_throw_stmt_node): Same.
27414 (collect_subblocks): Same.
27415 (gimple_verify_flow_info): Same.
27416 (do_warn_unused_result): Same.
27417 * tree-inline.c (expand_call_inline): Same.
27418 * tree-into-ssa.c (update_ssa): Same.
27419 * tree.c (tree_int_cst_elt_check_failed): Same.
27420 (tree_vec_elt_check_failed): Same.
27421 (omp_clause_operand_check_failed): Same.
27422 (verify_type_variant): Same.
27423 (verify_type): Same.
27424 * value-prof.c (verify_histograms): Same.
27425 * varasm.c (assemble_start_function): Same.
27426
27427 2019-05-16 Martin Sebor <msebor@redhat.com>
27428
27429 * config/i386/i386-expand.c (get_element_number): Quote keywords
27430 and other internal names in diagnostics. Adjust other diagnostic
27431 formatting issues noted by -Wformat-diag.
27432 * config/i386/i386-features.c
27433 (ix86_mangle_function_version_assembler_name): Same.
27434 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27435 * config/i386/i386.c (ix86_function_type_abi): Same.
27436 (ix86_function_ms_hook_prologue): Same.
27437 (classify_argument): Same.
27438 (ix86_expand_prologue): Same.
27439 (ix86_md_asm_adjust): Same.
27440 (ix86_memmodel_check): Same.
27441
27442 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27443
27444 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27445 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27446 and fpxx modes.
27447
27448 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27449
27450 PR target/90497
27451 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27452 intrinsics without SSE/SSE2/SSSE3.
27453 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27454 check.
27455 (*mmx_uavgv8qi3): Likewise.
27456
27457 2019-05-17 Richard Biener <rguenther@suse.de>
27458
27459 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27460 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27461
27462 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27463
27464 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27465 vec_sldw insn pattern.
27466
27467 2019-05-17 Richard Biener <rguenther@suse.de>
27468
27469 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27470
27471 2019-05-17 Martin Liska <mliska@suse.cz>
27472
27473 PR driver/90496
27474 * toplev.c (output_stack_usage): With LTO and sanitizer it
27475 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27476 has no file location.
27477
27478 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27479
27480 PR c++/90484
27481 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27482 sz0 is equal to sz1, instead return false in that case.
27483
27484 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27485 has non-constant expression, force sctx.lane and use two
27486 argument IFN_GOMP_SIMD_LANE instead of single argument.
27487 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27488 two argument IFN_GOMP_SIMD_LANE without lhs.
27489 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27490 member.
27491 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27492 Define.
27493 (LOOP_REQUIRES_VERSIONING): Or in
27494 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27495 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27496 simd_if_cond.
27497 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27498 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27499 from simd if clause if needed.
27500
27501 2019-05-16 Richard Biener <rguenther@suse.de>
27502
27503 * tree-affine.c (expr_to_aff_combination): New function split
27504 out from...
27505 (tree_to_aff_combination): ... here.
27506 (aff_combination_expand): Avoid building a GENERIC tree.
27507
27508 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27509
27510 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27511 assemble_start_function and assemble_end_function calls.
27512 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27513 assemble_start_function and assemble_end_function.
27514 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27515 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27516 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27517 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27518 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27519 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27520 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27521 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27522 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27523 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27524 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27525 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27526 Likewise.
27527 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27528 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27529 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27530 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27531 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27532 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27533 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27534 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27535 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27536 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27537 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27538 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27539 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27540 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27541 Likewise.
27542 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27543 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27544 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27545
27546 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27547
27548 * tree-ssa-alias.c (alias_stats): Add
27549 aliasing_component_refs_p_may_alias and
27550 aliasing_component_refs_p_no_alias.
27551 (dump_alias_stats): Print aliasing_component_refs_p stats.
27552 (aliasing_component_refs_p): Update stats.
27553
27554 2019-05-16 Martin Liska <mliska@suse.cz>
27555
27556 PR lto/90500
27557 * multiple_target.c (expand_target_clones): Do not allow
27558 target_clones being used with a symbol that is an alias.
27559
27560 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27561
27562 PR tree-optimization/90394
27563 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27564 positives rather than ICE for cases where (code2 == NE_EXPR
27565 && code1 == BIT_AND_EXPR).
27566
27567 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27568
27569 PR fortran/90329
27570 * tree-core.h (struct tree_decl_common): Document
27571 decl_nonshareable_flag for PARM_DECLs.
27572 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27573 * calls.c (expand_call): Don't try tail call if caller
27574 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27575 passed on the stack and callee needs to pass any arguments on the
27576 stack.
27577 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27578 else if instead of series of mutually exclusive ifs. Handle
27579 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27580 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27581
27582 * lto-streamer.h (LTO_major_version): Bump to 9.
27583
27584 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27585
27586 PR tree-optimization/90106
27587 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27588 new parameter as new internal function call, also move it to new
27589 basic block.
27590 (use_internal_fn): Pass internal function call to
27591 shrink_wrap_one_built_in_call_with_conds.
27592
27593 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27594
27595 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27596 max_vf to 1.
27597 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27598 safelen_int and set loop->dont_vectorize.
27599
27600 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27601
27602 PR target/89021
27603 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27604 SSE/SSE2/SSSE3.
27605 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27606 Likewise.
27607 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27608 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27609 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27610 is defined.
27611
27612 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27613
27614 PR target/89021
27615 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27616 define_insn_and_split to support SSE emulation.
27617 (*vec_extractv2sf_0): Likewise.
27618 (*vec_extractv2sf_1): Likewise.
27619 (*vec_extractv2si_0): Likewise.
27620 (*vec_extractv2si_1): Likewise.
27621 (*vec_extractv2si_zext_mem): Likewise.
27622 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27623 (vec_extractv2sf_1 splitter): Likewise.
27624 (vec_extractv2sfsf): Likewise.
27625 (vec_setv2si): Likewise.
27626 (vec_extractv2si_1 splitter): Likewise.
27627 (vec_extractv2sisi): Likewise.
27628 (vec_setv4hi): Likewise.
27629 (vec_extractv4hihi): Likewise.
27630 (vec_setv8qi): Likewise.
27631 (vec_extractv8qiqi): Likewise.
27632 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27633 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27634 (vec_extractv2sisi): Likewise.
27635 (vec_extractv4hihi): Likewise.
27636 (vec_extractv8qiqi): Likewise.
27637 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27638 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27639 (vec_initv2sisi): Likewise.
27640 (vec_initv4hihi): Likewise.
27641 (vec_initv8qiqi): Likewise.
27642 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27643 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27644 (vec_setv4hi): Likewise.
27645 (vec_setv8qi): Likewise.
27646
27647 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27648
27649 PR target/89021
27650 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27651 TARGET_MMX_WITH_SSE.
27652 (MMXMODE:*mov<mode>_internal): Likewise.
27653 (MMXMODE:movmisalign<mode>): Likewise.
27654
27655 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27656
27657 PR target/89021
27658 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27659 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27660 (sse2_cvtpd2pi): Ditto.
27661 (sse2_cvttpd2pi): Ditto.
27662 (*vec_concatv2sf_sse4_1): Ditto.
27663 (*vec_concatv2sf_sse): Ditto.
27664 (*vec_concatv2si_sse4_1): Ditto.
27665 (*vec_concatv2si): Ditto.
27666 (*vec_concatv4si_0): Ditto.
27667 (*vec_concatv2di_0): Ditto.
27668
27669 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27670
27671 PR target/89021
27672 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27673
27674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27675
27676 PR target/89021
27677 * config/i386/sse.md (ssse3_palignrdi): Changed to
27678 define_insn_and_split to support SSE emulation.
27679
27680 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27681
27682 PR target/89021
27683 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27684
27685 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27686
27687 PR target/89021
27688 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27689 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27690 SSE emulation.
27691
27692 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27693
27694 PR target/89021
27695 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27696 or TARGET_MMX_WITH_SSE.
27697 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27698
27699 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27700
27701 PR target/89021
27702 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27703
27704 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27705
27706 PR target/89021
27707 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27708 Changed to define_insn_and_split to support SSE emulation.
27709
27710 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27711
27712 PR target/89021
27713 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27714 Changed to define_insn_and_split to support SSE emulation.
27715
27716 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27717
27718 PR target/89021
27719 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27720 (*mmx_<emms>): This.
27721 (mmx_<emms>): New expander.
27722
27723 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27724
27725 PR target/89021
27726 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27727 support.
27728 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27729
27730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27731
27732 PR target/89021
27733 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27734
27735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27736
27737 PR target/89021
27738 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27739
27740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27741
27742 PR target/89021
27743 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27744 TARGET_MMX_WITH_SSE.
27745 (*mmx_uavgv4hi3): Add SSE emulation.
27746
27747 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27748
27749 PR target/89021
27750 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27751 and TARGET_MMX_WITH_SSE.
27752 (*mmx_uavgv8qi3): Add SSE emulation.
27753
27754 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27755
27756 PR target/89021
27757 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27758 maskmovdqu for __MMX_WITH_SSE__.
27759
27760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27761
27762 PR target/89021
27763 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27764 TARGET_MMX and TARGET_MMX_WITH_SSE.
27765 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27766
27767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27768
27769 PR target/89021
27770 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27771 define_insn_and_split to support SSE emulation.
27772
27773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27774
27775 PR target/89021
27776 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27777 and TARGET_MMX_WITH_SSE.
27778 (mmx_<code>v8qi3): Likewise.
27779 (smaxmin:<code>v4hi3): New.
27780 (umaxmin:<code>v8qi3): Likewise.
27781 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27782 (umaxmin:*mmx_<code>v8qi3): Likewise.
27783
27784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27785
27786 PR target/89021
27787 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27788 TARGET_MMX_WITH_SSE.
27789 (*mmx_pinsrw): Add SSE emulation.
27790
27791 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27792
27793 PR target/89021
27794 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27795
27796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27797
27798 PR target/89021
27799 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27800 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27801 SSE emulation.
27802
27803 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27804
27805 PR target/89021
27806 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27807 (sse_cvttps2pi): Likewise.
27808
27809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27810
27811 PR target/89021
27812 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27813 TARGET_MMX_WITH_SSE.
27814 (mmx_pshufw_1): Add SSE emulation.
27815 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27816 TARGET_MMX_WITH_SSE to support SSE emulation.
27817
27818 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27819
27820 PR target/89021
27821 * config/i386/constraints.md (Yw): New constraint.
27822 * config/i386/mmx.md (*vec_dupv2si): Changed to
27823 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27824 support SSE emulation.
27825
27826 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27827
27828 PR target/89021
27829 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27830 TARGET_MMX_WITH_SSE.
27831 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27832 support.
27833 (mmx_gt<mode>3): Likewise.
27834
27835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27836
27837 PR target/89021
27838 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27839 TARGET_MMX_WITH_SSE. Add SSE support.
27840
27841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27842
27843 PR target/89021
27844 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27845 TARGET_MMX_WITH_SSE.
27846 (any_logic:<code><mode>3): New.
27847 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27848 Add SSE support.
27849
27850 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27851
27852 PR target/89021
27853 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27854 TARGET_MMX_WITH_SSE. Add SSE emulation.
27855 (mmx_<shift_insn><mode>3): Likewise.
27856 (ashr<mode>3): New.
27857 (<shift_insn><mode>3): Likewise.
27858
27859 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27860
27861 PR target/89021
27862 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27863 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27864
27865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27866
27867 PR target/89021
27868 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27869 TARGET_MMX_WITH_SSE.
27870 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27871 SSE support.
27872
27873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27874
27875 PR target/89021
27876 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27877 TARGET_MMX_WITH_SSE.
27878 (mulv4hi3): New.
27879 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27880 support.
27881
27882 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27883
27884 PR target/89021
27885 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27886 (plusminus:mmx_<plusminus_insn><mode>3): Check
27887 TARGET_MMX_WITH_SSE.
27888 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27889 (<plusminus_insn><mode>3): New.
27890 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27891 (*mmx_<plusminus_insn><mode>3): Likewise.
27892
27893 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27894
27895 PR target/89021
27896 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27897 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27898 prototype.
27899 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27900 define_insn_and_split to support SSE emulation.
27901 (mmx_punpcklbw): Likewise.
27902 (mmx_punpckhwd): Likewise.
27903 (mmx_punpcklwd): Likewise.
27904 (mmx_punpckhdq): Likewise.
27905 (mmx_punpckldq): Likewise.
27906
27907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27908 Uros Bizjak <ubizjak@gmail.com>
27909
27910 PR target/89021
27911 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27912 New function.
27913 (ix86_split_mmx_pack): Likewise.
27914 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27915 New prototype.
27916 (ix86_split_mmx_pack): Likewise.
27917 * config/i386/i386.md (mmx_isa): New.
27918 (enabled): Also check mmx_isa.
27919 * config/i386/mmx.md (any_s_truncate): New code iterator.
27920 (s_trunsuffix): New code attr.
27921 (mmx_packsswb): Removed.
27922 (mmx_packssdw): Likewise.
27923 (mmx_packuswb): Likewise.
27924 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27925 MMX packsswb/packuswb with SSE2.
27926 (mmx_packssdw): Likewise.
27927 * config/i386/predicates.md (register_mmxmem_operand): New.
27928
27929 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27930
27931 PR target/89021
27932 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27933 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27934 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27935 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27936 (ix86_vector_mode_supported_p): Likewise.
27937 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27938
27939 2019-05-15 Martin Liska <mliska@suse.cz>
27940
27941 PR middle-end/90478
27942 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27943 Check for overflow.
27944
27945 2019-05-15 Richard Biener <rguenther@suse.de>
27946
27947 * tree-into-ssa.c (pass_build_ssa::execute): Run
27948 update_address_taken before going into SSA.
27949
27950 2019-05-15 Richard Biener <rguenther@suse.de>
27951
27952 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27953 as __BIT_FIELD_REF with type with -gimple.
27954
27955 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27956
27957 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27958 semantically equivalent branches (left over after prior refactorings).
27959
27960 2019-05-15 Richard Biener <rguenther@suse.de>
27961
27962 PR tree-optimization/88828
27963 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27964 bogus check.
27965
27966 2019-05-14 Richard Biener <rguenther@suse.de>
27967
27968 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27969 as __VIEW_CONVERT with -gimple.
27970
27971 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27972
27973 PR target/82920
27974 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27975 Darwin.
27976
27977 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27978
27979 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27980 define_split to become a define_insn_and_split.
27981
27982 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27983
27984 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27985 arguments.
27986 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27987 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27988 (sibcall_epilogue): Adjust.
27989 (epilogue): Adjust.
27990
27991 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27992
27993 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27994 to unsupported ones.
27995 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27996 * config.host: Likewise.
27997 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27998 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27999 __svr4__]: Remove "brand" fallback.
28000 [!KSTAT_DATA_STRING]: Remove.
28001 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
28002 to *-*-solaris2*.
28003 (comdat_group): Likewise.
28004 (set_have_as_tls): Likewise.
28005 (gcc_cv_target_dl_iterate_phdr): Likewise.
28006 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
28007 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
28008 * configure: Regenerate.
28009 * doc/install.texi: Simplify Solaris target triplets.
28010 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
28011 (Specific, *-*-solaris2*): Document Solaris 10 removal.
28012 Remove Solaris 10 references.
28013 Remove obsolete Solaris bug reference.
28014 (Specific, sparc-sun-solaris2.10): Remove.
28015
28016 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
28017
28018 * config/i386/i386.md (any_div): New code iterator.
28019 (paired_mod): New code attribute.
28020 (sgnprefix): Handle DIV and UDIV RTXes.
28021 (u): Ditto.
28022 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
28023 and udivmod<mode>4 patterns using any_div code iterator.
28024 (divmod splitters): Macroize splitters using any_div code iterator.
28025 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
28026 (*udivmodsi4_pow2_zext_2): Ditto.
28027 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
28028 and *udivmod<mode>4_noext patterns using any_div code iterator.
28029 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
28030 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
28031 patterns using any_div code iterator.
28032 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
28033 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
28034 patterns using any_div code iterator.
28035 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
28036 udivmodhiqi3 patterns using any_extend code iterator.
28037
28038 2019-05-14 Richard Biener <rguenther@suse.de>
28039 H.J. Lu <hongjiu.lu@intel.com>
28040
28041 PR tree-optimization/88828
28042 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
28043 permuting in a single non-constant element not extracted
28044 from a vector.
28045
28046 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
28047
28048 * internal-fn.def (SIGNBIT): New.
28049 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
28050 defined.
28051 (signbitv4sf2): Likewise.
28052
28053 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
28054
28055 PR target/90357
28056 * config/mips/mips.c (mips_split_move): Skip forward SRC into
28057 next insn when the SRC reg is dead.
28058
28059 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
28060
28061 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
28062 (alloc_cand_and_find_basis): Ditto.
28063 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
28064 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
28065 (create_add_imm_cand, slsr_process_cast): Ditto.
28066 (slsr_process_copy, replace_mult_candidate): Ditto.
28067 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
28068 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
28069 (pass_strength_reduction::execute): Init the first NULL element.
28070
28071 2019-05-13 Nathan Sidwell <nathan@acm.org>
28072
28073 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
28074 (run_attempt): Reformat line break.
28075
28076 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
28077
28078 PR target/90418
28079 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
28080 data registers in sibcall epilogues.
28081 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28082
28083 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
28084
28085 PR target/89221
28086 * configure.ac (--enable-frame-pointer):
28087 Disable by default for cygwin and mingw.
28088 * configure: Regenerate.
28089
28090 2019-05-13 Nathan Sidwell <nathan@acm.org>
28091
28092 * dwarf2out.c (breakout_comdat_types): Move comment to correct
28093 piece of code.
28094 (const_ok_for_output_1): Balance parens around #if/#else/#endif
28095 (gen_member_die): Move abstract origin check earlier. Only VARs
28096 can be static_inline_p. Simplify splicing control flow.
28097
28098 2019-05-13 Richard Biener <rguenther@suse.de>
28099
28100 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
28101 VIEW_CONVERT_EXPR.
28102 (vect_build_slp_tree_1): Likewise.
28103
28104 2019-05-13 Richard Biener <rguenther@suse.de>
28105
28106 PR tree-optimization/90402
28107 * tree-if-conv.c (tree_if_conversion): Value number only
28108 the loop body by making the latch an exit of the region
28109 as well.
28110 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
28111 processing PHIs.
28112 (do_rpo_vn): Deal with multiple edges into the entry block
28113 that are not backedges inside the region by skipping PHIs
28114 of the entry block.
28115
28116 2019-05-13 Richard Biener <rguenther@suse.de>
28117
28118 PR tree-optimization/90316
28119 * tree-ssa-pre.c (insert_aux): Fold into ...
28120 (insert): ... this function. Use a RPO walk to reduce the
28121 number of required iterations.
28122
28123 2019-05-13 Martin Liska <mliska@suse.cz>
28124
28125 PR tree-optimization/90416
28126 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
28127 string instead of passing the second part as va_arg argument.
28128
28129 2019-05-13 Martin Liska <mliska@suse.cz>
28130
28131 PR gcov-profile/90380
28132 * gcov.c (handle_cycle): Do not support zero cycle count,
28133 it should not be possible.
28134 (path_contains_zero_cycle_arc): New function.
28135 (circuit): Ignore zero cycle arc counts.
28136
28137 2019-05-13 Martin Liska <mliska@suse.cz>
28138
28139 PR gcov-profile/90380
28140 * gcov.c (enum loop_type): Remove the enum and
28141 the operator.
28142 (handle_cycle): Assert that we should not reach
28143 a negative count.
28144 (circuit): Use loop_found instead of a tri-state loop_type.
28145 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28146 happen.
28147
28148 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28149
28150 PR target/82920
28151 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28152 (ix86_output_indirect_branch_via_reg): Use output mechanism
28153 accounting for __USER_LABEL_PREFIX__.
28154 (ix86_output_indirect_branch_via_push): Likewise.
28155 (ix86_output_function_return): Likewise.
28156 (ix86_output_indirect_function_return): Likewise.
28157
28158 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28159
28160 * doc/md.texi: Document use of code attributes in rtx patterns.
28161 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28162 * read-rtl.c (find_code): Split out search loops into...
28163 (maybe_find_code): ...this new function.
28164 (check_code_iterator): Make the error message more informative.
28165 (check_code_attribute): New function.
28166 (rtx_reader::rtx_alloc_for_name): Likewise.
28167 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28168 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28169 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28170 <max_opp> directly as an rtx code instead of via a match_operator.
28171 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28172 (<su>abd<mode>_3): Update accordingly.
28173
28174 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28175
28176 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28177 is given, print the state of the EH "save world" computation for
28178 Darwin.
28179
28180 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28181
28182 PR c++/59813
28183 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28184 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28185
28186 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28187
28188 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28189 Use pinsrd for TARGET_SSE4_1.
28190 * config/i386/sse.md (movdi_to_sse): Ditto.
28191
28192 2019-05-10 Richard Biener <rguenther@suse.de>
28193
28194 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28195 (do_rpo_vn): Initialize next_value_id.
28196
28197 2019-05-10 Martin Liska <mliska@suse.cz>
28198
28199 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28200 Fix plural form.
28201
28202 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28203
28204 PR tree-optimization/90385
28205 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28206 arguments of the exit phis.
28207
28208 PR c++/90383
28209 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28210 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28211 id->do_not_fold.
28212 (copy_tree_body_r): Likewise.
28213 (copy_fn): Set id.do_not_fold to true.
28214
28215 2019-05-10 Martin Liska <mliska@suse.cz>
28216
28217 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28218 Reapply changes from r269790.
28219
28220 2019-05-10 Martin Liska <mliska@suse.cz>
28221
28222 PR middle-end/90340
28223 * doc/invoke.texi: New params.
28224 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28225 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28226 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28227 Use it.
28228 * tree-switch-conversion.h (struct jump_table_cluster):
28229 Likewise.
28230
28231 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28232
28233 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28234
28235 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28236
28237 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28238
28239 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28240
28241 PR rtl-optimization/88879
28242 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28243
28244 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28245
28246 PR target/90405
28247 * config/arm/arm.c (callee_saved_reg_p): Move before
28248 thumb_find_work_register.
28249 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28250 thumb_find_work_register. Only call df_get_live_out once.
28251 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28252 (thumb_find_work_register): Use
28253 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28254 algorithms to locate a spare call clobbered reg.
28255
28256 2019-05-09 Martin Liska <mliska@suse.cz>
28257
28258 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28259 and MAX_EXPR in GIMPLE FE format.
28260
28261 2019-05-09 Martin Liska <mliska@suse.cz>
28262
28263 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28264 * gimple-pretty-print.c (dump_gimple_bb_header):
28265 Dump BB count.
28266 (pp_cfg_jump): Dump edge probability.
28267 * profile-count.c (profile_quality_as_string): Simplify
28268 with a static array.
28269 (parse_profile_quality): New function.
28270 (profile_count::dump): Simplify with a static array.
28271 (profile_count::from_gcov_type): Add new argument.
28272 * profile-count.h (parse_profile_quality): Likewise.
28273 * predict.h (set_hot_bb_threshold): New.
28274 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28275 New param.
28276 * predict.c (get_hot_bb_threshold): Set from the new param.
28277 (set_hot_bb_threshold): New.
28278
28279 2019-05-09 Richard Biener <rguenther@suse.de>
28280
28281 PR tree-optimization/90395
28282 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28283 rewrite vector stores that throw internally.
28284
28285 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28286
28287 * cif-code.def (CHKP): Remove.
28288
28289 PR target/89221
28290 * configure.ac (--enable-frame-pointer): Disable by default for
28291 GNU systems.
28292 * configure: Regenerate.
28293
28294 2019-05-09 Alan Modra <amodra@gmail.com>
28295
28296 PR target/89271
28297 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28298 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28299 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28300 cost for general <-> vsx when direct moves are available.
28301 Cost union classes at minimal cost for any reg in the class.
28302 Correct calculation for moves between vsx, float, and altivec.
28303 Don't return a low cost for moves between special regs. Don't
28304 use hard coded register numbers.
28305 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28306 (rs6000_ira_change_pseudo_allocno_class): New function.
28307 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28308 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28309 alternatives.
28310 (movsi_internal1): Don't disparage vector alternatives.
28311 (mov<mode>_internal): Likewise, excepting alternative that
28312 will be split.
28313 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28314 we <- b alternative.
28315
28316 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28317
28318 PR c++/59813
28319 PR tree-optimization/89060
28320 * tree-ssa-live.h (live_vars_map): New typedef.
28321 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28322 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28323 (struct compute_live_vars_data): New type.
28324 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28325 live_vars_at_stmt, destroy_live_vars): New functions.
28326 * tree-tailcall.c: Include tree-ssa-live.h.
28327 (live_vars, live_vars_vec): New global variables.
28328 (find_tail_calls): Perform variable life analysis before punting.
28329 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28330 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28331 member.
28332 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28333 Perform variable life analysis to select variables that really need
28334 clobbers added.
28335 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28336 instead set id->eh_landing_pad_dest and assert it is the same.
28337 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28338
28339 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28340 Richard Earnshaw <rearnsha@arm.com>
28341
28342 PR target/88167
28343 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28344 function.
28345 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28346 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28347 register if both the epilogue and prologue can use call-clobbered
28348 regs.
28349 (thumb1_unexpanded_epilogue): Use
28350 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28351 picking temporaries for restoring high regs to match that of the
28352 prologue where possible.
28353 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28354 the list of work registers. Detect if the return address is still live
28355 at the end of the prologue and avoid using it for a work register if so.
28356 If the return address is not live, add LR to the list of pushable regs
28357 after the first pass.
28358
28359 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28360
28361 PR tree-optimization/90078
28362 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28363 (INFTY): Increase the value for infinite cost.
28364 (struct comp_cost): Promote type of members to int64_t.
28365 (infinite_cost): Don't set complexity in initialization.
28366 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28367 overflows to infinite_cost.
28368 (adjust_setup_cost): Promote type of parameter and cost computation
28369 to int64_t.
28370 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28371 int64_t.
28372 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28373 cost computation to int64_t.
28374 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28375 int64_t's format specifier in dump.
28376
28377 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28378
28379 PR tree-optimization/90240
28380 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28381 with respect to scaling factor pre-computed for each basic block.
28382 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28383 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28384 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28385 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28386 live range for array of loop's basic blocks. Cleanup aux field of
28387 loop's basic blocks.
28388
28389 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28390
28391 PR tree-optimization/90356
28392 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28393
28394 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28395
28396 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28397 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28398 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28399 (ix86_handle_option): Handle -mavx512bf16.
28400 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28401 to extra_headers.
28402 * config/i386/avx512bf16vlintrin.h: New.
28403 * config/i386/avx512bf16intrin.h: New.
28404 * config/i386/cpuid.h (bit_AVX512BF16): New.
28405 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28406 * config/i386/i386-builtin-types.def: Add new types.
28407 * config/i386/i386-builtin.def: Add new builtins.
28408 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28409 __AVX512BF16__.
28410 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28411 (ix86_option_override_internal): Handle BF16.
28412 (ix86_valid_target_attribute_inner_p): Ditto.
28413 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28414 * config/i386/i386-builtin.c (enum processor_features): Add
28415 F_AVX512BF16.
28416 (static const _isa_names_table isa_names_table): Ditto.
28417 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28418 (PTA_AVX512BF16): Ditto.
28419 * config/i386/i386.opt: Add -mavx512bf16.
28420 * config/i386/immintrin.h: Include avx512bf16intrin.h
28421 and avx512bf16vlintrin.h.
28422 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28423 avx512f_cvtneps2bf16_<mode><mask_name>,
28424 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28425 * config/i386/subst.md (mask_half): Add new subst.
28426 * doc/invoke.texi: Document -mavx512bf16.
28427
28428 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28429
28430 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28431 Delete declaration.
28432 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28433 (rs6000_debug_legitimize_reload_address): Delete.
28434 (rs6000_legitimize_reload_address_ptr): Delete.
28435 (rs6000_option_override_internal): Adjust.
28436 (mem_operand_gpr): Adjust comment.
28437 (legitimate_lo_sum_address_p): Ditto.
28438 (rs6000_legitimize_reload_address): Delete.
28439 (rs6000_debug_legitimize_reload_address): Delete.
28440 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28441
28442 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28443
28444 PR target/89765
28445 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28446 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28447 to compute vector element selector for both constant and variable
28448 operands.
28449
28450 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28451
28452 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28453 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28454 ashrdi3_cvt using SWI48 mode iterator.
28455
28456 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28457
28458 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28459 (aarch64_<su>abd<mode>_3): Likewise.
28460 (*aarch64_<su>abd<mode>_3): New define_insn.
28461 (<sur>sad<vsi2qi>): New define_expand.
28462 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28463 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28464 (build_vect_cond_expr): Likewise.
28465
28466 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28467
28468 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28469 clobbers outside of accessible_reg_set.
28470 * config/i386/i386.c (ix86_conditional_register_usage):
28471 Disable register sets by clearing corresponding bits in
28472 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28473 call_used_regs and don't clear corresponding reg_names array members.
28474
28475 2019-05-07 Richard Biener <rguenther@suse.de>
28476
28477 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28478 not specified still compute a comp_vectype for invariant
28479 compares.
28480
28481 2019-05-07 Richard Biener <rguenther@suse.de>
28482
28483 PR tree-optimization/90316
28484 * tree-ssa-pre.c (translate_vuse_through_block): When
28485 same_valid is NULL do not bother to search for a virtual
28486 PHI continuation.
28487 (phi_translate_1): When operands changed we cannot keep
28488 the same value-number so do not bother to ask whether
28489 that's possible from translate_vuse_through_block.
28490
28491 2019-05-07 Martin Liska <mliska@suse.cz>
28492
28493 * bitmap.c (bitmap_register): Come up with
28494 alloc_descriptor_max_uid and assign it for
28495 a new bitmap.
28496 (register_overhead): Use get_descriptor as
28497 a descriptor.
28498 (release_overhead): New.
28499 (bitmap_elem_to_freelist): Call it.
28500 (bitmap_elt_clear_from): Likewise.
28501 (bitmap_obstack_free): Likewise.
28502 (bitmap_move): Sensitively release memory.
28503 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28504 (bitmap_initialize): Initialize alloc_descriptor to zero.
28505 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28506
28507 2019-05-07 Richard Biener <rguenther@suse.de>
28508
28509 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28510 we build a SLP node. Remove max_size and limiting.
28511 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28512
28513 2019-05-07 Richard Biener <rguenther@suse.de>
28514
28515 PR tree-optimization/90316
28516 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28517 limit by reference.
28518 (walk_non_aliased_vuses): Take walking limit argument.
28519 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28520 walking if it is reached instead of just counting.
28521 (get_continuation_for_phi): Likewise.
28522 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28523 limiting to the callback.
28524 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28525 (vn_reference_lookup_3): Likewise.
28526 (vn_reference_lookup_pieces): Likewise.
28527 (vn_reference_lookup): Likewise.
28528 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28529 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28530 (avail_exprs_stack::lookup_avail_expr): Likewise.
28531
28532 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28533
28534 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28535 for comparaible types in the second direction even if first one
28536 hits incomparable type.
28537
28538 2019-05-07 Richard Biener <rguenther@suse.de>
28539
28540 PR lto/90369
28541 * lto-wrapper.c (debug_objcopy): Use the original filename
28542 including archive offset for the filename used for -save-temps.
28543
28544 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28545
28546 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28547 detection.
28548
28549 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28550 Hongtao Liu <hongtao.liu@intel.com>
28551
28552 PR target/89750
28553 PR target/86444
28554 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28555 Modified, original implementation isn't correct.
28556
28557 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28558
28559 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28560 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28561 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28562 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28563 (FRAME_POINTER_REGNUM): Change numbering.
28564 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28565 (alt_reg_names): Adjust.
28566 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28567 fixed.
28568 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28569 (DWARF_FRAME_REGISTERS): Delete.
28570 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28571 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28572 Adjust.
28573 (REG_ALLOC_ORDER): Adjust.
28574 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28575 (REG_CLASS_CONTENTS): Adjust.
28576 (RETURN_ADDR_RTX): Change comment.
28577 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28578 instead of 67.
28579 (REGISTER_NAMES): Adjust.
28580 (ADDITIONAL_REGISTER_NAMES): Adjust.
28581 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28582
28583 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28584
28585 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28586 Delete.
28587 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28588 (DWARF_FRAME_REGISTERS): Adjust.
28589 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28590 Adjust.
28591 (REG_ALLOC_ORDER): Adjust.
28592 (enum reg_class): Delete SPR_REGS.
28593 (REG_CLASS_NAMES): Delete SPR_REGS.
28594 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28595 (REGISTER_NAMES): Adjust.
28596 (ADDITIONAL_REGISTER_NAMES): Adjust.
28597 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28598 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28599 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28600 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28601 (htm_spr_regno): Delete.
28602 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28603 argument.
28604 (rs6000_dbx_register_number): Adjust.
28605
28606 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28607
28608 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28609
28610 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28611
28612 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28613 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28614
28615 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28616
28617 PR tree-optimization/88709
28618 PR tree-optimization/90271
28619 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28620 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28621 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28622 variable.
28623 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28624 of the store merging group is larger than
28625 PARAM_STORE_MERGING_MAX_SIZE parameter.
28626 (split_group): Add bzero_first argument. If set, always emit first
28627 the first store which must be = {} of the whole area and then for the
28628 rest of the stores consider all zero bytes as paddings.
28629 (imm_store_chain_info::output_merged_store): Check if first store
28630 is = {} of the whole area and if yes, determine which setting of
28631 bzero_first for split_group gives smaller number of stores. Adjust
28632 split_group callers.
28633 (lhs_valid_for_store_merging_p): Allow decls.
28634 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28635 no elts.
28636 (pass_store_merging::process_store): Likewise.
28637
28638 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28639
28640 PR target/89424
28641 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28642 handling of V1TImode.
28643
28644 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28645
28646 PR target/89221
28647 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28648 and enable_frame_pointer ...
28649 * configure.ac: ... here. Update help strings for
28650 --enable-frame-pointer.
28651 * configure: Regenerate.
28652 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28653 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28654 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28655 (USE_X86_64_FRAME_POINTER): Ditto.
28656
28657 2019-05-06 Martin Liska <mliska@suse.cz>
28658
28659 * config.gcc: Append to target_gtfiles and fix indentation.
28660
28661 2019-05-06 Richard Biener <rguenther@suse.de>
28662
28663 PR tree-optimization/90358
28664 * tree-vect-stmts.c (get_group_load_store_type): Properly
28665 detect unused upper half of load.
28666 (vectorizable_load): Likewise.
28667
28668 2019-05-06 Richard Biener <rguenther@suse.de>
28669
28670 PR tree-optimization/88828
28671 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28672 (simplify_vector_constructor): ...here. Handle constants in
28673 the constructor.
28674
28675 2019-05-06 Richard Biener <rguenther@suse.de>
28676
28677 PR tree-optimization/90328
28678 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28679 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28680 is valid in the loop nest before using it.
28681 (initialize_data_dependence_relation): Adjust.
28682 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28683 loop as loop-nest to dr_may_alias_p.
28684
28685 2019-05-06 Richard Biener <rguenther@suse.de>
28686
28687 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28688
28689 2019-05-06 Richard Biener <rguenther@suse.de>
28690
28691 PR tree-optimization/90316
28692 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28693 compute target on demand.
28694 (get_continuation_for_phi): Remove code walking stmts to
28695 get to a target virtual operand which could end up being
28696 quadratic.
28697
28698 2019-05-06 Martin Liska <mliska@suse.cz>
28699
28700 PR sanitizer/90312
28701 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28702 when -mabi is selected to a non-default version.
28703
28704 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28705 Martin Liska <mliska@suse.cz>
28706
28707 * Makefile.in: Add lto-dump.texi.
28708 * cgraph.h: Add new functions get_visibility_string and
28709 get_symtab_type_string.
28710 * doc/gcc.texi: Include lto-dump section.
28711 * doc/lto-dump.texi: New file.
28712 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28713 (parse_dump_option): Factor out this function.
28714 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28715 (parse_dump_option): Export the function.
28716 * symtab.c (symtab_node::get_visibility_string): New function.
28717 (symtab_node::get_symtab_type_string): Likewise.
28718
28719 2019-05-06 Martin Liska <mliska@suse.cz>
28720
28721 * config/i386/i386-builtins.c: New file.
28722 * config/i386/i386-builtins.h: New file.
28723 * config/i386/i386-expand.c: New file.
28724 * config/i386/i386-expand.h: New file.
28725 * config/i386/i386-features.c: New file.
28726 * config/i386/i386-features.h: New file.
28727 * config/i386/i386-options.c: New file.
28728 * config/i386/i386-options.h: New file.
28729 * config.gcc: Add new files into extra_objs and
28730 target_gtfiles.
28731 * config/i386/i386.c: Split content of the file
28732 into newly introduced files.
28733 * config/i386/i386.h: Declare common variables
28734 and macros.
28735 * config/i386/t-i386: Define dependencies for new files.
28736
28737 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28738
28739 PR target/89400
28740 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28741 Restrict 'all' variant to 32-bit configurations.
28742 (unaligned_loadhiu): Likewise.
28743 (unaligned_storehi): Likewise.
28744 (unaligned_storesi): Likewise.
28745 (unaligned_loadhis): Disable when compiling for thumb1.
28746
28747 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28748
28749 PR tree-optimization/90269
28750 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28751 Ignore clobbers.
28752
28753 2019-05-03 Martin Liska <mliska@suse.cz>
28754
28755 * hash-map.h: Add is_empty function.
28756 * hash-set.h: Likewise.
28757 * hash-table.h: Likewise.
28758 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28759 elements () == 0 (and similar usages).
28760 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28761 * gimplify.c (gimplify_bind_expr): Likewise.
28762 (gimplify_switch_expr): Likewise.
28763 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28764 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28765 * postreload-gcse.c (dump_hash_table): Likewise.
28766 (gcse_after_reload_main): Likewise.
28767 * predict.c (combine_predictions_for_bb): Likewise.
28768 * tree-parloops.c (reduction_phi): Likewise.
28769 (separate_decls_in_region): Likewise.
28770 (transform_to_exit_first_loop): Likewise.
28771 (gen_parallel_loop): Likewise.
28772 (gather_scalar_reductions): Likewise.
28773 (try_create_reduction_list): Likewise.
28774 * var-tracking.c (dump_vars): Likewise.
28775 (emit_notes_for_changes): Likewise.
28776 (vt_emit_notes): Likewise.
28777
28778 2019-05-03 Richard Biener <rguenther@suse.de>
28779
28780 PR tree-optimization/90316
28781 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28782 before running VN.
28783
28784 2019-05-03 Richard Biener <rguenther@suse.de>
28785
28786 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28787 peeling for gaps by loading only lower halves of vectors
28788 if possible.
28789 (vectorizable_load): Likewise.
28790
28791 2019-05-03 Richard Biener <rguenther@suse.de>
28792
28793 PR middle-end/89518
28794 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28795
28796 2019-05-03 Richard Biener <rguenther@suse.de>
28797
28798 PR middle-end/87314
28799 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28800 Handle STRING_CST vs DECL or STRING_CST.
28801
28802 2019-05-03 Richard Biener <rguenther@suse.de>
28803
28804 PR tree-optimization/88963
28805 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28806 vector loads feeding only BIT_FIELD_REFs to component
28807 loads. Rewrite stores fed by CONSTRUCTORs to component
28808 stores.
28809
28810 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28811
28812 * opts.h (finish_options): Remove lang_mask argument.
28813 (print_help, help_option_argument): Declare.
28814 * opts.c (print_help): Remove forward declaration, no longer static.
28815 (finish_options): Remove lang_mask argument, don't call print_help
28816 here.
28817 * opts-global.c (decode_options): Adjust finish_option caller, call
28818 print_help here.
28819
28820 PR tree-optimization/90303
28821 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28822 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28823
28824 2019-05-03 Richard Biener <rguenther@suse.de>
28825
28826 PR tree-optimization/89698
28827 * gimple-fold.c (canonicalize_constructor_val): Early out
28828 for constants, handle unfolded INTEGER_CSTs as they appear in
28829 C++ virtual table ctors.
28830
28831 2019-05-03 Richard Biener <rguenther@suse.de>
28832
28833 * passes.c (execute_function_todo): Remove dead code.
28834
28835 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28836
28837 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28838 the internal register number, for any "real" register.
28839
28840 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28841
28842 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28843 correct numbers for TFHAR, TFIAR, TEXASR.
28844
28845 2019-05-02 Richard Biener <rguenther@suse.de>
28846
28847 PR tree-optimization/89653
28848 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28849 update-address-taken before the pass.
28850 * passes.def (pass_tree_loop_init): Put comment before it.
28851
28852 2019-05-02 Richard Biener <rguenther@suse.de>
28853
28854 PR tree-optimization/89509
28855 * tree-ssa-structalias.c (compute_dependence_clique): Look
28856 at the first subvar when determining whether it is restrict.
28857
28858 2019-05-02 Richard Biener <rguenther@suse.de>
28859
28860 PR tree-optimization/90273
28861 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28862 useless debug stmts.
28863
28864 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28865
28866 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28867 ACLE branch.
28868 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28869 SVE ACLE branch.
28870 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28871 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28872 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28873 (vectorizable_reduction): Use the functions above to vectorize in a
28874 fully masked loop codes that don't have a conditional internal
28875 function.
28876
28877 2019-05-02 Martin Liska <mliska@suse.cz>
28878
28879 * cgraphclones.c: Call valid_attribute_p with 1 for
28880 target_clone.
28881 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28882 it's for target attribute.
28883 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28884 Add new boolean argument.
28885 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28886 Likewise.
28887 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28888 to ix86_valid_target_attribute_inner_p.
28889 (ix86_valid_target_attribute_p): Pass flags argument to
28890 ix86_valid_target_attribute_inner_p.
28891 (get_builtin_code_for_version): Use 0 as it's target attribute.
28892
28893 2019-05-02 Martin Liska <mliska@suse.cz>
28894
28895 * gcc.c (process_command): Add dummy file only
28896 if n_infiles == 0.
28897 * opts-global.c (decode_options): Pass lang_mask.
28898 * opts.c (print_help): New function.
28899 (finish_options): Print --help if help_option_argument
28900 is set.
28901 (common_handle_option): Factor out content of OPT__help_
28902 into print_help.
28903 * opts.h (finish_options): Add new argument.
28904
28905 2019-05-02 Martin Liska <mliska@suse.cz>
28906
28907 PR target/88809
28908 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28909 With -minline-all-stringops use inline expansion using 4B loop.
28910 * doc/invoke.texi: Document the change of
28911 -minline-all-stringops.
28912
28913 2019-05-01 Jeff Law <law@redhat.com>
28914
28915 PR tree-optimization/88797
28916 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28917 PHI feeds a conditional on the RHS of an assignment.
28918
28919 2019-04-30 Andrew Waterman <andrew@sifive.com>
28920 Jim Wilson <jimw@sifive.com>
28921
28922 * config/riscv/constraints.md (L): New.
28923 * config/riscv/predicates.md (lui_operand): New.
28924 (sfb_alu_operand): New.
28925 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28926 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28927 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28928 * config/riscv/risc.md (type): Add sfb_alu.
28929 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28930 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28931 (branch_zero<mode>): Delete.
28932 (mov<mode>cc): New.
28933 (mov<GPR:mode><X:mode>cc): Likewise.
28934 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28935
28936 2019-04-30 Nathan Sidwell <nathan@acm.org>
28937
28938 * tree.h (MARK_TS_EXP): New.
28939
28940 2019-04-30 Martin Liska <mliska@suse.cz>
28941
28942 * opts.c (enable_warning_as_error): Provide hints
28943 for unknown options.
28944
28945 2019-04-30 Martin Liska <mliska@suse.cz>
28946
28947 PR debug/90288
28948 * doc/invoke.texi: Add missing dash for gas-locview-support
28949 and gno-as-locview-support.
28950
28951 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28952
28953 PR target/89093
28954 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28955 whitespace at the start of target attribute string.
28956
28957 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28958
28959 PR target/86538
28960 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28961 Define __ARM_FEATURE_ATOMICS.
28962
28963 2019-04-30 Martin Liska <mliska@suse.cz>
28964
28965 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28966 into built_in_function enum. Remove code for endp == 2 and
28967 use BUILT_IN_* constants.
28968 (gimple_fold_builtin): Call the function with fcode.
28969
28970 2019-04-30 Martin Liska <mliska@suse.cz>
28971
28972 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28973 DECL_FUNCTION_CODE into ix86_builtins enum before
28974 the switch statement.
28975
28976 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28977
28978 PR tree-optimization/89475
28979 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28980 calls.
28981
28982 2019-04-30 Martin Liska <mliska@suse.cz>
28983
28984 PR translation/90274
28985 * opts.c (print_filtered_help): Wrap string in _(...).
28986
28987 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28988
28989 PR tree-optimization/90240
28990 Revert:
28991 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28992
28993 PR tree-optimization/90078
28994 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28995 checks for infinite_cost overflow.
28996
28997 2019-04-29 Jeff Law <law@redhat.com>
28998
28999 * passes.def: Move -Wrestrict pass after copy propagation.
29000
29001 2019-04-29 Maya Rashish <coypu@sdf.org>
29002
29003 * config.gcc (default_gnu_indirect_function): Default to yes
29004 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
29005 sparc*-*-netbsd*, x86_64-*-netbsd*.
29006
29007 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
29008
29009 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
29010 where cond2 is NE_EXPR.
29011 (is_value_included_in): Update comment.
29012
29013 2019-04-29 Richard Biener <rguenther@suse.de>
29014
29015 PR tree-optimization/90278
29016 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
29017 EH on comparison simplification.
29018
29019 2019-04-29 Jason Merrill <jason@redhat.com>
29020
29021 PR c++/82081 - tail call optimization breaks noexcept
29022 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
29023 nothrow function to a might-throw function into a tail call.
29024
29025 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
29026
29027 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
29028 (DDR_INNER_LOOP): Likewise.
29029 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
29030 (initialize_data_dependence_relation): Likewise.
29031 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
29032
29033 2019-04-29 Jakub Jelinek <jakub@redhat.com>
29034
29035 PR rtl-optimization/90257
29036 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
29037 return value.
29038
29039 Revert the revert:
29040 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29041
29042 PR target/90178
29043 Revert:
29044 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29045
29046 Revert the revert:
29047 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29048
29049 Revert:
29050 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29051
29052 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29053
29054 2019-04-29 Richard Biener <rguenther@suse.de>
29055
29056 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
29057 rhs issue a reset.
29058
29059 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
29060
29061 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
29062 varasm.h, and netbsd-protos.h.
29063
29064 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
29065
29066 PR target/89261
29067 * config/i386/i386-protos.h (ix86_data_alignment): Change
29068 the second argument type to unsigned int.
29069 * config/i386/i386.c (ix86_data_alignment): Change "align"
29070 argument type to unsigned int.
29071
29072 2019-04-27 Martin Liska <mliska@suse.cz>
29073
29074 PR middle-end/90258
29075 * opt-suggestions.c (option_proposer::build_option_suggestions):
29076 When get_valid_option_values returns empty values, add the
29077 misspelling candidate.
29078
29079 2019-04-26 Jim Wilson <jimw@sifive.com>
29080
29081 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
29082 parameter.
29083 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
29084 Pass orig_mode to riscv_build_integer.
29085 (riscv_split_integer): Pass mode to riscv_move_integer.
29086 (riscv_legitimize_const_move): Likewise.
29087 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
29088 promoted_mode. Replace force_reg call with code to load constant into
29089 promoted reg and then subreg it for the store.
29090 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
29091 riscv_move_integer.
29092
29093 2018-04-26 Eugene Sharygin <eush@ispras.ru>
29094
29095 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
29096 corrupt codes.
29097
29098 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
29099
29100 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
29101 commentary about the encoding of precision.
29102
29103 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
29104
29105 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
29106 * config/i386/t-freebsd64: New file.
29107 * config.gcc: Add the t-freebsd64 for multilib support.
29108
29109 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
29110
29111 * doc/extend.texi (vector_size): Add missing comma after @xref.
29112
29113 2019-04-25 Jakub Jelinek <jakub@redhat.com>
29114
29115 * BASE-VER: Set to 10.0.0.
29116
29117 2019-04-25 Richard Biener <rguenther@suse.de>
29118
29119 PR middle-end/89765
29120 * gimplify.c (gimplify_expr): Avoid turning a lvalue
29121 VIEW_CONVERT_EXPR into one operating on an rvalue.
29122
29123 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
29124
29125 PR target/89929
29126 * config/i386/i386.c (feature_priority): Moved to file scope.
29127 (processor_features): Likewise.
29128 (processor_model): Likewise.
29129 (_arch_names_table): Likewise.
29130 (arch_names_table): Likewise.
29131 (_feature_list): Removed.
29132 (feature_list): Likewise.
29133 (_isa_names_table): Moved to file scope. Add priority.
29134 (isa_names_table): Likewise.
29135 (get_builtin_code_for_version): Replace feature_list with
29136 isa_names_table. Update error message for P_ZERO priority.
29137
29138 2019-04-25 Richard Biener <rguenther@suse.de>
29139
29140 * tree-pass.h (make_pass_phi_only_cprop): Remove.
29141 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29142
29143 2019-04-24 Jeff Law <law@redhat.com>
29144
29145 PR tree-optimization/90037
29146 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29147 * passes.def: Replace all instance of phi-only cprop with the
29148 lattice propagator. Move propagation pass from after erroneous
29149 path isolation to before erroneous path isolation.
29150 * tree-ssa-phionlycprop.c: Remove.
29151
29152 2019-04-24 Richard Biener <rguenther@suse.de>
29153
29154 PR middle-end/90213
29155 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29156 by size and BITS_PER_UNIT on poly-wide-ints.
29157
29158 2019-04-25 Richard Biener <rguenther@suse.de>
29159
29160 PR middle-end/90194
29161 * match.pd: Add pattern to simplify view-conversion of an
29162 empty constructor.
29163
29164 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29165
29166 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29167 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29168 for Go on 32 bit AIX.
29169 * config/rs6000/aix72.h: Likewise.
29170
29171 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29172
29173 PR target/90193
29174 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29175 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29176
29177 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29178
29179 PR target/89952
29180 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29181 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29182 for restored hard frame pointer.
29183 (s390_sched_dependencies_evaluation): Implement new target hook.
29184 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29185
29186 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29187
29188 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29189 * config/arc/arc.c (arc_init): Cleanup warning message.
29190 (arc_override_options): Likewise.
29191
29192 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29193
29194 PR target/90187
29195 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29196 a register if both if_true and if_false are MEMs.
29197
29198 PR tree-optimization/90208
29199 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29200 after labels of new_bb, not before them.
29201
29202 PR tree-optimization/90211
29203 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29204 which are not SSA_NAMEs.
29205
29206 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29207
29208 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29209 AArch64.
29210 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29211
29212 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29213
29214 PR rtl-optimization/87979
29215 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29216 not equal zero.
29217
29218 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29219
29220 PR rtl-optimization/84032
29221 * modulo-sched.c (ps_insn_find_column): Change condition so that
29222 branch will always be the last insn in a row inside partial
29223 schedule.
29224
29225 2019-04-23 Richard Biener <rguenther@suse.de>
29226
29227 PR debug/90131
29228 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29229 dest_single_pred_p argument.
29230 (remove_forwarder_block): Adjust.
29231 (remove_forwarder_block_with_phi): Likewise.
29232
29233 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29234 Bernd Edlinger <bernd.edlinger@hotmail.de>
29235 Jakub Jelinek <jakub@redhat.com>
29236
29237 PR target/89093
29238 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29239 if used with general-regs-only.
29240 (arm_conditional_register_usage): Don't add non-general regs if
29241 general-regs-only.
29242 (arm_valid_target_attribute_rec): Handle general-regs-only.
29243 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29244 general-regs-only.
29245 (TARGET_HARD_FLOAT_SUB): Define.
29246 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29247 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29248 (TARGET_REALLY_IWMMXT2): Likewise.
29249 * config/arm/arm.opt: Add -mgeneral-regs-only.
29250 * doc/extend.texi: Document ARM general-regs-only target.
29251 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29252
29253 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29254
29255 PR tree-optimization/90078
29256 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29257 checks for infinite_cost overflow.
29258
29259 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29260
29261 PR tree-optimization/90021
29262 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29263 and check univariate against it.
29264 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29265 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29266
29267 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29268
29269 PR target/90178
29270 Revert:
29271 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29272
29273 Revert the revert:
29274 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29275
29276 Revert:
29277 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29278
29279 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29280
29281 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29282
29283 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29284 names using operand format, rather than hard-wired.
29285 (speculation_barrier): Likewise.
29286
29287 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29288
29289 PR tree-optimization/88055
29290 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29291 (gen_one_condition): Use it if !HONOR_NANS.
29292
29293 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29294
29295 PR middle-end/90139
29296 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29297 assign_temp instead of gen_reg_rtx.
29298
29299 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29300
29301 PR translation/90118
29302 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29303 Add missing space before %<.
29304
29305 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29306
29307 PR rtl-optimization/87871
29308 * ira-lives.c (make_object_dead): Don't add conflicts to
29309 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29310
29311 2019-04-18 Martin Sebor <msebor@redhat.com>
29312
29313 PR middle-end/89797
29314 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29315 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29316 assuming type size fits in SHWI.
29317
29318 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29319
29320 PR ipa/85051
29321 * ipa-inline.c (flatten_function): New parameter UPDATE.
29322 (ipa_inline, early_inliner): Use it.
29323
29324 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29325
29326 * fold-const.c (int_const_binop): Return early on failure.
29327
29328 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29329
29330 PR middle-end/85164
29331 * combine.c (force_int_to_mode): Cast the argument rather than
29332 the result of known_alignment.
29333 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29334
29335 2019-04-18 Richard Biener <rguenther@suse.de>
29336
29337 PR debug/90131
29338 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29339 out from ...
29340 (remove_forwarder_block): ... here.
29341 (remove_forwarder_block_with_phi): Also move debug stmts here.
29342
29343 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29344
29345 PR translation/79183
29346 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29347 inform where appropriate.
29348
29349 2019-04-18 Richard Biener <rguenther@suse.de>
29350
29351 * tree.c (get_qualified_type): Put found type variants at the
29352 head of the variant list.
29353
29354 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29355
29356 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29357
29358 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29359
29360 PR target/90125
29361 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29362 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29363 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29364 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29365 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29366
29367 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29368
29369 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29370 even for allocno's with no conflicts.
29371 (print_conflicts): Print an extra newline.
29372
29373 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29374
29375 * auto-inc-dec.c (attempt_change): Set the alignment of the
29376 temporary memory to that of the original.
29377
29378 2019-04-17 Joao Moreira <jmoreira@suse.de>
29379
29380 * targhooks.c (default_print_patchable_function_entry): Emit
29381 __patchable_function_entries section with writable flags to allow
29382 relocation resolution.
29383
29384 2019-04-17 Jonny Grant <jg@jguk.org>
29385
29386 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29387
29388 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29389
29390 PR middle-end/90095
29391 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29392 on lowpart SUBREGs.
29393
29394 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29395
29396 * config/arc/arc.c (arc_init): Format diagnostic string.
29397 (arc_override_options): Likewise.
29398 (check_if_valid_regno_const): Likewise.
29399 (arc_reorg): Likewise.
29400
29401 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29402
29403 PR target/17108
29404 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29405 name.
29406 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29407 name.
29408 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29409 (*movdi_update1): Use Pmode.
29410 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29411 (movdi_<mode>_update_stack): Rename to ...
29412 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29413 use Pmode.
29414 (*movsi_update1): Use Pmode.
29415 (*movsi_update2): Use Pmode.
29416 (movsi_update): Rename to ...
29417 (movsi_<mode>_update): ... this. Use Pmode.
29418 (movsi_update_stack): Fix condition.
29419 (*movhi_update1): Use Pmode. Fix argument to
29420 avoiding_indexed_address_p.
29421 (*movhi_update2): Ditto.
29422 (*movhi_update3): Ditto.
29423 (*movhi_update4): Ditto.
29424 (*movqi_update1): Ditto.
29425 (*movqi_update2): Ditto.
29426 (*movqi_update3): Ditto.
29427 (*movsf_update1, *movdf_update1): Merge, rename to...
29428 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29429 avoiding_indexed_address_p. Add "size" attribute.
29430 (*movsf_update2, *movdf_update2): Merge, rename to...
29431 (*mov<mode>_update2): This. Ditto.
29432 (*movsf_update3): Use Pmode. Fix argument to
29433 avoiding_indexed_address_p.
29434 (*movsf_update4): Ditto.
29435 (allocate_stack): Simplify condition. Adjust pattern names.
29436
29437 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29438
29439 PR target/89093
29440 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29441 whitespace at the start of target attribute string.
29442
29443 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29444
29445 PR target/84369
29446 * config/rs6000/power9.md: Add store forwarding bypass.
29447
29448 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29449
29450 PR debug/89528
29451 * valtrack.c (dead_debug_insert_temp): Reset debug references
29452 to the return value of a call being removed.
29453
29454 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29455
29456 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29457 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29458 implement target hook.
29459 (arc_memory_move_cost): New function.
29460 (TARGET_REGISTER_MOVE_COST): Define.
29461 (TARGET_MEMORY_MOVE_COST): Likewise.
29462 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29463 (MEMORY_MOVE_COST): Likewise.
29464
29465 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29466
29467 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29468 (sibcall_value_insn): Likewise.
29469 * config/arc/constraints.md (Rs5): Remove.
29470
29471 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29472
29473 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29474 for last two fake registers.
29475 (arc_conditional_register_usage): Make sure fake frame and arg
29476 pointer regs are in general regs class.
29477 (FRAME_POINTER_MASK): Remove.
29478 (RETURN_ADDR_MASK): Remove.
29479 (arc_must_save_register): Use hard frame regnum.
29480 (frame_restore_reg): Use hard_frame_pointer_rtx.
29481 (arc_save_callee_saves): Likewise.
29482 (arc_restore_callee_saves): Likewise.
29483 (arc_save_callee_enter): Likewise.
29484 (arc_restore_callee_leave): Likewise.
29485 (arc_save_callee_milli): Likewise.
29486 (arc_eh_return_address_location): Likewise.
29487 (arc_check_multi): Use hard frame regnum.
29488 (arc_can_eliminate): Likewise.
29489 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29490 for register allocator.
29491 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29492 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29493 (FRAME_POINTER_REGNUM): Change it to a fake register.
29494 (HARD_FRAME_POINTER_REGNUM): Defined.
29495 (ARG_POINTER_REGNUM): Change it to a new fake register.
29496 (ELIMINABLE_REGS): Update.
29497 (REGISTER_NAMES): Update names.
29498 * config/arc/arc.md (LP_START): Remove.
29499 (LP_END): Likewise.
29500 (shift_si3_loop): Update pattern.
29501
29502 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29503
29504 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29505 to avoid delay slot scheduling.
29506 (arc_must_save_register): Don't save SP.
29507 * config/arc/arc.md (stack_tie): Remove.
29508 (UNSPEC_ARC_STKTIE): Likewise.
29509
29510 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29511 Shiva Chen <shiva0217@gmail.com>
29512
29513 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29514 code gen with large shift amount.
29515
29516 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29517
29518 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29519 subreg.
29520
29521 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29522
29523 PR target/90096
29524 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29525 print -m64/-mx32/-m32 if it is true.
29526 (ix86_debug_options, ix86_function_specific_print): Pass true as
29527 ADD_ABI_P to ix86_target_string.
29528 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29529 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29530 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29531
29532 PR rtl-optimization/90082
29533 * dce.c (can_delete_call): New function.
29534 (deletable_insn_p, mark_insn): Use it.
29535
29536 PR tree-optimization/90090
29537 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29538 throw internally.
29539 (is_division_by_square): Likewise. Formatting fix.
29540
29541 2019-04-16 Richard Biener <rguenther@suse.de>
29542
29543 PR tree-optimization/56049
29544 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29545 equality check if alias-set zero will prevail.
29546
29547 2019-04-15 Jeff Law <law@redhat.com>
29548
29549 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29550 size and alignment as unsigned.
29551
29552 2019-04-15 Richard Biener <rguenther@suse.de>
29553
29554 PR debug/90074
29555 * tree-loop-distribution.c (destroy_loop): Preserve correct
29556 debug info.
29557
29558 2019-04-15 Richard Biener <rguenther@suse.de>
29559
29560 PR tree-optimization/90071
29561 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29562 abnormal operands from def stmts.
29563
29564 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29565
29566 PR rtl-optimization/89794
29567 * combine.c (count_auto_inc): New function.
29568 (try_combine): Count how many auto_inc expressions there were in the
29569 original instructions. Ensure we have the same number in the new
29570 instructions. Remove the code that tried to ensure auto_inc side
29571 effects on i1 and i0 are not lost.
29572
29573 2019-04-15 Richard Biener <rguenther@suse.de>
29574
29575 PR ipa/88936
29576 * tree.h (auto_var_p): Declare.
29577 * tree.c (auto_var_p): New function, split out from ...
29578 (auto_var_in_fn_p): ... here.
29579 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29580 member.
29581 (new_var_info): Initialize it.
29582 (set_uids_in_ptset): Also set the shadow variable uid if required.
29583 (ipa_pta_execute): Postprocess points-to solutions assigning
29584 shadow variable uids for locals that may reach their containing
29585 function recursively.
29586 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29587 assert but instead check whether the points-to solution is
29588 a singleton.
29589
29590 2019-04-15 Martin Jambor <mjambor@suse.cz>
29591
29592 PR ipa/pr89693
29593 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29594 the thunk chain.
29595
29596 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29597
29598 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29599
29600 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29601 Kito Cheng <kito.cheng@gmail.com>
29602 Shiva Chen <shiva0217@gmail.com>
29603
29604 * config/nds32/nds32-md-auxiliary.c
29605 (nds32_legitimize_pic_address): Use new PIC pattern.
29606 (nds32_legitimize_tls_address): Use new TLS pattern.
29607 (nds32_output_symrel): New.
29608 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29609 (nds32_alloc_relax_group_id): Ditto.
29610 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29611 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29612 relax_group_id.
29613 (nds32_group_tls_insn): Ditto.
29614 (nds32_group_float_insns): Ditto.
29615 * config/nds32/nds32.md (tls_le): New.
29616 (sym_got): Ditto.
29617
29618 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29619
29620 * configure: Add nds32 target for dwarf2 debug_line checking.
29621 * configure.ac: Regenerated.
29622
29623 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29624
29625 PR lto/89358
29626 * ipa-devirt.c (skip_in_fields_list_p): New.
29627 (odr_types_equivalent_p): Use it.
29628
29629 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29630
29631 PR target/89093
29632 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29633 instead of strncmp when checking for thumb and arm. Formatting fixes.
29634
29635 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29636
29637 * doc/install.texi: Document --with-target-system-zlib.
29638
29639 2019-04-12 Martin Sebor <msebor@redhat.com>
29640
29641 PR c/88383
29642 PR c/89288
29643 PR c/89798
29644 PR c/89797
29645 * targhooks.c (default_vector_alignment): Avoid assuming
29646 argument fits in SHWI.
29647 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29648 a shift expression.
29649 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29650
29651 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29652
29653 PR rtl-optimization/89965
29654 * dce.c: Include rtl-iter.h.
29655 (struct check_argument_load_data): New type.
29656 (check_argument_load): New function.
29657 (find_call_stack_args): Check for loads from stack slots still tracked
29658 in sp_bytes and punt if any is found.
29659
29660 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29661
29662 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29663
29664 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29665 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29666
29667 2019-04-12 Martin Liska <mliska@suse.cz>
29668
29669 PR middle-end/89970
29670 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29671 in error message.
29672 (separate_attrs): Handle multiple 'default's.
29673 (expand_target_clones): Rework error handling code.
29674
29675 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29676
29677 PR target/87532
29678 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29679 mode of vector rather than mode of destination for move instruction.
29680 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29681 Use QI inner mode with V16QI vector mode.
29682
29683 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29684
29685 PR target/52726
29686 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29687 "invalid %%t operand" in output_operand_lossage message.
29688
29689 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29690
29691 * config/s390/predicates.md (permute_pattern_operand): New
29692 predicate.
29693 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29694 operand for the permute pattern.
29695 ("*vec_perm<mode>"): New insn definition.
29696 ("bswap<mode>"): Generate the permute pattern operand in the
29697 expander and perform the operand reloads for pre arch13 level
29698 already.
29699 ("*bswap<mode>_emu"): Rename to ...
29700 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29701 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29702 Add the USE operand for the permute pattern.
29703 ("*vec_set_bswap_vec<mode>"): Likewise.
29704
29705 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29706
29707 PR c/89946
29708 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29709 and gcc_unreachable if it fails, just call tree_to_uhwi which
29710 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29711 Start warning message with a lower-case letter. Formatting fixes.
29712
29713 PR rtl-optimization/90026
29714 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29715 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29716 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29717 in cfglayout mode, use emit_barrier_after_bb.
29718
29719 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29720
29721 PR rtl-optimization/87763
29722 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29723 New Instruction.
29724
29725 2019-04-11 Tom de Vries <tdevries@suse.de>
29726
29727 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29728 max macro using statement expression.
29729
29730 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29731
29732 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29733 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29734 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29735 read_only_private_data_section using xcoff_private_rodata_section_name.
29736 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29737
29738 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29739
29740 PR target/90016
29741 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29742
29743 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29744
29745 PR rtl-optimization/89965
29746 * dce.c (sp_based_mem_offset): New function.
29747 (find_call_stack_args): Use sp_based_mem_offset.
29748
29749 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29750
29751 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29752
29753 2019-04-11 Richard Biener <rguenther@suse.de>
29754
29755 PR tree-optimization/90020
29756 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29757 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29758 * tree-ssa-pre.c (compute_avail): Use it to not put
29759 possibly trapping references after a call that might not
29760 return into EXP_GEN.
29761 * gcse.c (compute_hash_table_work): Do not elide
29762 marking a block containing a call if the call might not
29763 return.
29764
29765 2019-04-11 Richard Biener <rguenther@suse.de>
29766
29767 PR tree-optimization/90018
29768 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29769 Test both SLP and interleaving variants.
29770
29771 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29772
29773 * config/s390/8561.md: New file.
29774 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29775 Add arch13 cpu model.
29776 * config/s390/s390-opts.h (enum processor_type): Likewise.
29777 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29778 (s390_get_unit_mask): Likewise.
29779 (s390_is_fpd): Likewise.
29780 (s390_is_fxd): Likewise.
29781 * config/s390/s390.h (s390_tune_attr): Likewise.
29782 * config/s390/s390.md: Include arch13 pipeline description.
29783 * config/s390/s390.opt: Add arch13.
29784
29785 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29786
29787 PR rtl-optimization/87763
29788 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29789 New prototype.
29790 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29791 New function.
29792 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29793 New instruction.
29794 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29795 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29796 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29797 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29798
29799 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29800
29801 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29802 "Although" in -fipa-icf documentation.
29803
29804 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29805 of using multiple -g options.
29806
29807 2019-04-10 Martin Liska <mliska@suse.cz>
29808
29809 PR gcov-profile/89959
29810 * doc/gcov.texi: Make documentation of -x option
29811 more precise.
29812
29813 2019-04-10 Richard Biener <rguenther@suse.de>
29814
29815 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29816 member.
29817 (DR_GROUP_SAME_DR_STMT): Remove.
29818 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29819 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29820 replace with assert.
29821 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29822 (vect_record_grouped_load_vectors): Remove unreachable code.
29823
29824 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29825
29826 PR target/90016
29827 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29828 obsolete reference to N.
29829
29830 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29831
29832 PR middle-end/90025
29833 * expr.c (store_expr): Set properly size on the MEM passed to
29834 clear_storage.
29835
29836 PR c++/90010
29837 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29838 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29839 translation is needed, and when translation is needed, only append
29840 ... if the string length is hostsz or more bytes long. Avoid using
29841 strncpy or strcat.
29842
29843 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29844
29845 PR target/90024
29846 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29847 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29848 into three.
29849 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29850 differences directly.
29851 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29852
29853 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29854
29855 PR translation/90011
29856 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29857 from diagnostics.
29858 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29859 diagnostics.
29860 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29861 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29862 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29863 trailing space from -gsplit-dwarf diagnostics.
29864
29865 PR tree-optimization/89998
29866 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29867 instead of integer_type_node if possible, don't add ranges if return
29868 type is not compatible with int.
29869 * gimple-fold.c (gimple_fold_builtin_sprintf,
29870 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29871 integer_type_node.
29872
29873 2019-04-09 Martin Liska <mliska@suse.cz>
29874
29875 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29876 * doc/install.texi: Document the new config.
29877
29878 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29879
29880 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29881 use gimple_expr_type for load and store calls. Skip over the
29882 condition argument in a conditional internal function.
29883 Protect use of TREE_INT_CST_LOW.
29884
29885 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29886
29887 PR target/90015
29888 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29889 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29890 trailing period from it too.
29891
29892 2019-04-08 wu yuan <wuyuan5@huawei.com>
29893
29894 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29895 * config/aarch64/aarch64.md: Add "tsv110.md".
29896 * config/aarch64/tsv110.md: New file.
29897
29898 2019-04-08 Richard Biener <rguenther@suse.de>
29899
29900 PR tree-optimization/90006
29901 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29902 calls like lrint.
29903
29904 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29905
29906 PR target/83033
29907 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29908 construction.
29909 (fma_root_node): Likewise.
29910 (func_fma_steering): Likewise.
29911
29912 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29913
29914 PR rtl-optimization/89865
29915 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29916
29917 PR rtl-optimization/89865
29918 * config/i386/i386.md
29919 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29920 numbers not to clash with the additional operands[4].
29921 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29922 with extra register copy in the middle.
29923
29924 2019-04-08 Martin Liska <mliska@suse.cz>
29925
29926 PR gcov-profile/89961
29927 * doc/gcov.texi: Document data_file.
29928 * gcov.c (generate_results): Add data_info into JSON output.
29929
29930 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29931
29932 PR tree-optimization/89725
29933 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29934 loop's chrec as invariant symbol.
29935 * tree-chrec.h (chrec_contains_symbols): New parameter.
29936 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29937 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29938 function of loops not in DDR's loop_nest.
29939 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29940
29941 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29942
29943 PR target/89623
29944 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29945 Mask.
29946
29947 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29948
29949 PR target/89945
29950 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29951 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29952
29953 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29954
29955 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29956 targetm.fixed_condition_code_regs.
29957
29958 2019-04-05 Richard Biener <rguenther@suse.de>
29959
29960 PR debug/89892
29961 PR debug/89905
29962 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29963 debug bind stmts but reset them if they are not valid at the
29964 destination.
29965
29966 2019-04-05 Martin Liska <mliska@suse.cz>
29967
29968 PR translation/89936
29969 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29970 order to wrap keywords or arguments.
29971 * collect2.c (main): Likewise.
29972 (scan_prog_file): Likewise.
29973 (scan_libraries): Likewise.
29974 * common/config/riscv/riscv-common.c
29975 (riscv_subset_list::parsing_subset_version): Likewise.
29976 (riscv_subset_list::parse_std_ext): Likewise.
29977 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29978 Likewise.
29979 * config/arm/arm.c (arm_option_override): Likewise.
29980 * config/cris/cris.c (cris_print_operand): Likewise.
29981 * config/darwin-c.c (darwin_pragma_options): Likewise.
29982 (darwin_pragma_unused): Likewise.
29983 (darwin_pragma_ms_struct): Likewise.
29984 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29985 * config/i386/i386.c (print_reg): Likewise.
29986 (ix86_print_operand): Likewise.
29987 * config/i386/xm-djgpp.h: Likewise.
29988 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29989 * config/m32c/m32c.c (m32c_option_override): Likewise.
29990 * config/msp430/msp430.c (msp430_option_override): Likewise.
29991 * config/nds32/nds32.c (nds32_option_override): Likewise.
29992 * config/nvptx/mkoffload.c (main): Likewise.
29993 * config/rx/rx.c (rx_print_operand): Likewise.
29994 (valid_psw_flag): Likewise.
29995 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29996 (vms_pragma_nomember_alignment): Likewise.
29997 (vms_pragma_extern_model): Likewise.
29998 * lto-wrapper.c (compile_offload_image): Likewise.
29999 * omp-offload.c (oacc_parse_default_dims): Likewise.
30000 * symtab.c (symtab_node::verify_base): Likewise.
30001 * tlink.c (recompile_files): Likewise.
30002 (start_tweaking): Likewise.
30003 * tree-profile.c (parse_profile_filter): Likewise.
30004
30005 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
30006
30007 PR tree-optimization/89956
30008 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
30009 multiple negates of the same value.
30010
30011 2019-04-04 Martin Sebor <msebor@redhat.com>
30012
30013 PR middle-end/89957
30014 PR middle-end/89911
30015 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
30016 have the same precision since the function crashes otherwise.
30017 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
30018 has non-zero arguments.
30019
30020 2019-04-04 Martin Sebor <msebor@redhat.com>
30021
30022 PR middle-end/89934
30023 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
30024 out if the number of arguments is less than expected.
30025
30026 2019-04-04 Jeff Law <law@redhat.com>
30027
30028 PR rtl-optimization/89399
30029 * ree.c (combine_set_extension): Use single_set rather than
30030 digging into PATTERN for items on the candidate list.
30031 (combine_reaching_defs): Likewise.
30032
30033 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
30034
30035 PR rtl-optimization/46590
30036 * loop-invariant.c (find_defs): Move df_remove_problem and
30037 df_process_deferred_rescans to move_invariants.
30038 Move df_live_add_problem and df_live_set_all_dirty calls
30039 to move_invariants.
30040 (move_invariants): Likewise.
30041 (move_loop_invariants): Likewise, making the df_live calls
30042 conditional on -O. Remove the problem again if we added it
30043 locally.
30044
30045 2019-04-03 qing zhao <qing.zhao@oracle.com>
30046
30047 PR tree-optimization/89730
30048 * ipa-inline.c (can_inline_edge_p): Delete the checking for
30049 -flive-patching=inline-only-static.
30050 (can_inline_edge_by_limits_p): Add the checking for
30051 -flive-patching=inline-only-static and grant always_inline
30052 even when -flive-patching=inline-only-static is specified.
30053
30054 2019-04-03 Jeff Law <law@redhat.com>
30055
30056 PR rtl-optimization/81025
30057 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
30058
30059 2019-04-03 Richard Biener <rguenther@suse.de>
30060
30061 PR tree-optimization/84101
30062 * tree-vect-stmts.c: Include explow.h for hard_function_value,
30063 regs.h for hard_regno_nregs.
30064 (cfun_returns): New helper.
30065 (vect_model_store_cost): When vectorizing a store to a decl
30066 we return and the function ABI returns in a multi-reg location
30067 account for the possible spilling that will happen.
30068
30069 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
30070
30071 * config/s390/s390.c (s390_legitimate_address_p): Reject long
30072 displacement addresses for vector mode operands.
30073
30074 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
30075
30076 * config/arc/arc.c (GMASK_LEN): Define.
30077 (arc_restore_callee_saves): Restore first blink when
30078 !optimize_size.
30079
30080 2019-04-03 Sudakshina Das <sudi.das@arm.com>
30081
30082 * doc/extend.texi: Add deprecated comment on sign-return-address
30083 function attribute and add mbranch-protection.
30084 * doc/invoke.texi: Add bti to the options for mbranch-protection.
30085
30086 2019-04-03 Richard Biener <rguenther@suse.de>
30087
30088 PR lto/89896
30089 * lto-wrapper.c (run_gcc): Avoid implicit rules making
30090 the all target phony.
30091
30092 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
30093
30094 PR target/89902
30095 PR target/89903
30096 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
30097 Return false for variable DImode shifts.
30098 (dimode_scalar_chain::compute_convert_gain): Do not handle
30099 register count operand in variable DImode shifts.
30100 (dimode_scalar_chain::make_vector_copies): Remove support to copy
30101 count argument of a variable shift instruction to a vector register.
30102 (dimode_scalar_chain::convert_reg): Remove support to convert
30103 count argument of a variable shift instruction.
30104
30105 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30106
30107 PR rtl-optimization/84206
30108 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
30109 iterating over loop headers.
30110
30111 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
30112
30113 PR rtl-optimization/85876
30114 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
30115 beyond the original fence.
30116
30117 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
30118
30119 * config.gcc: Mark spu* targets as deprecated/obsolete.
30120
30121 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30122
30123 * config/s390/s390-builtin-types.def: New builtin function type
30124 definitions. Remove unused types.
30125 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
30126 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
30127 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
30128 overloaded builtins.
30129 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
30130 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
30131 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
30132 (vec_double, vec_signed, vec_unsigned): Define to use the new
30133 overloaded builtins.
30134 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30135 Remove expanders.
30136
30137 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30138
30139 * config/s390/s390-builtin-types.def: New builtin function type
30140 definitions.
30141 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30142 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30143 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30144 (s390_vstrszh, s390_vstrszf): New low-level builtins.
30145 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30146 constant definitions.
30147 * config/s390/vecintrin.h (vec_search_string_cc)
30148 (vec_search_string_until_zero_cc): New builtin name definitions.
30149 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30150 expanders.
30151 ("vec_vstrs<mode>"): New insn definition.
30152
30153 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30154
30155 * config/s390/s390-builtin-types.def: Add new builtin function
30156 types.
30157 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30158 New overloaded builtins.
30159 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30160 s390_vsrd.
30161 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30162 (UNSPEC_VEC_SLDBYTE): ... this.
30163 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30164 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30165 definitions.
30166 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30167 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30168 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30169
30170 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30171
30172 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30173 New insn definition.
30174 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30175 * config/s390/vector.md (V_HW_HSD): ... here.
30176
30177 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30178
30179 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30180 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30181 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30182 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30183 New insn definitions.
30184
30185 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30186
30187 * config/s390/s390-builtin-types.def: Add new builtin function type.
30188 * config/s390/s390-builtins.def: Add overloaded builtin
30189 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30190 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30191 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30192 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30193 ("eltswap<mode>"): New expander.
30194 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30195 insn definitions.
30196
30197 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30198
30199 * config/s390/s390-builtin-types.def: Add new builtin function types.
30200 * config/s390/s390-builtins.def: Add overloaded builtin
30201 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30202 instructions.
30203 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30204 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30205 ("bswap<mode>"): New expander.
30206 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30207
30208 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30209
30210 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30211 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30212 vector builtin version number in __VEC__.
30213
30214 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30215
30216 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30217 iterators.
30218 (SFSI): New mode attribute.
30219 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30220 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30221 rename to ...
30222 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30223 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30224 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30225 ("floatsi<mode>2"): Add wcefb instruction.
30226
30227 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30228
30229 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30230 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30231 mode iterators.
30232 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30233 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30234 support 32 bit fp-int conversions. Rename to ...
30235 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30236 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30237 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30238 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30239 ... to these.
30240
30241 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30242
30243 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30244 if-then-else constructs if we can use the select instruction.
30245 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30246
30247 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30248
30249 * config/s390/s390.md ("*popcountdi_arch13_cc")
30250 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30251 definition.
30252 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30253 Append _z196 to make it ...
30254 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30255 ("popcounthi2_z196"): ... this.
30256 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30257 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30258
30259 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30260
30261 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30262 certain compares for arch13 in order to make use of the condition
30263 code result produced by the new instructions.
30264 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30265 nxrk, and nxgrk instruction patterns.
30266 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30267 (inv_no): Add new code iterator together with some attributes.
30268 ("*andc_split_<mode>"): Disable splitter for arch13.
30269 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30270 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30271 ("*<ANDOR:bitops_name>c<GPR:mode>")
30272 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30273 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30274 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30275 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30276
30277 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30278
30279 * common/config/s390/s390-common.c (processor_flags_table): New
30280 entry for arch13.
30281 * config.gcc: Support arch13 with the --with-arch= configure flag.
30282 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30283 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30284 * config/s390/s390.c (s390_get_sched_attrmask)
30285 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30286 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30287 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30288 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30289 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30290 definitions.
30291 * config/s390/s390.opt: Support arch13 as processor type in
30292 command line options.
30293
30294 2019-04-02 Martin Liska <mliska@suse.cz>
30295
30296 PR translation/89912
30297 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30298 Fix param description of graphite-max-arrays-per-scop.
30299
30300 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30301
30302 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30303 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30304 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30305
30306 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30307
30308 PR rtl-optimization/85412
30309 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30310 sel_sched_region_1, not after.
30311
30312 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30313
30314 PR rtl-optimization/86928
30315 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30316 compute_live if necessary.
30317 (sel_redirect_edge_and_branch): Likewise.
30318
30319 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30320
30321 PR rtl-optimization/89865
30322 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30323 register if it is a part of small class.
30324
30325 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30326
30327 PR rtl-optimization/87273
30328 * sel-sched-ir.c (merge_fences): Remove assert.
30329
30330 2019-04-01 Richard Biener <rguenther@suse.de>
30331
30332 PR tree-optimization/46590
30333 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30334 (dom_walker::m_reachability): Add in place of...
30335 (dom_walker::m_skip_unreachable_blocks): ...this.
30336 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30337 Move complex initialization ...
30338 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30339 lazily and initialize edge flags on each invocation.
30340 (dom_walker::bb_reachable): Use m_reachability.
30341
30342 2019-04-01 Martin Liska <mliska@suse.cz>
30343
30344 PR driver/89861
30345 * opt-suggestions.c (option_proposer::build_option_suggestions):
30346 Add variant without any argument in order to provide better
30347 hints.
30348
30349 2019-04-01 Richard Biener <rguenther@suse.de>
30350
30351 PR c/71598
30352 * gimple.c: Include langhooks.h.
30353 (gimple_get_alias_set): Treat enumeral types as the underlying
30354 integer type.
30355
30356 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30357 Eric Botcazou <ebotcazou@adacore.com>
30358
30359 PR rtl-optimization/89862
30360 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30361 that operates on the full registers for WORD_REGISTER_OPERATIONS
30362 architectures.
30363
30364 2019-03-29 Jim Wilson <jimw@sifive.com>
30365
30366 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30367 Clear MASK_RVC and then set if C subset supported.
30368
30369 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30370
30371 PR c/89872
30372 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30373 non-addressable complit into its initializer if it is volatile.
30374
30375 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30376
30377 * opts-common.c (integral_argument): Set errno properly in one case.
30378
30379 2019-03-29 Martin Liska <mliska@suse.cz>
30380
30381 * doc/invoke.texi: Remove -Wchkp from documentation.
30382
30383 2019-03-29 Martin Liska <mliska@suse.cz>
30384
30385 * dbgcnt.c (print_limit_reach): New function.
30386 (dbg_cnt): Use it.
30387
30388 2019-03-29 Martin Liska <mliska@suse.cz>
30389
30390 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30391 (dbg_cnt_process_opt): Parse first tokens aas
30392 dbg_cnt_process_single_pair is also using strtok.
30393
30394 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30395
30396 PR rtl-optimization/87485
30397 * function.c (expand_function_end): Move stack_protect_epilogue
30398 before loading of return value into hard register(s).
30399
30400 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30401
30402 PR middle-end/89621
30403 * tree-inline.h (struct copy_body_data): Add
30404 dont_remap_vla_if_no_change flag.
30405 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30406 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30407 and remap_type_2 returns false.
30408 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30409 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30410 only from where it is copied to nested contexts.
30411
30412 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30413
30414 PR target/89865
30415 * config/i386/i386.md (RMW operation with LEA peephole):
30416 Use LEAMODE mode attribute instead of SWI mode iterator for
30417 LEA pattern.
30418
30419 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30420
30421 PR target/89848
30422 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30423 Also process XEXP (src, 0) of a shift insn.
30424
30425 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30426
30427 PR middle-end/89725
30428 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30429 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30430
30431 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30432
30433 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30434 test.
30435 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30436 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30437 immediately after first one with df_analyze in between, but rather
30438 process all bbs, queueing ones that need second pass in a worklist,
30439 df_analyze, process queued debug insn changes and if second pass is
30440 needed, process bbs from worklist, df_analyze, process queued debug
30441 insns again.
30442
30443 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30444 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30445 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30446
30447 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30448
30449 PR c/79022
30450 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30451 definition.
30452
30453 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30454
30455 PR target/85667
30456 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30457 function for 32-bit MS_ABI.
30458 (function_value_ms_32): New function.
30459
30460 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30461
30462 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30463 (movdi): Call gen_movdi_symbol_save_scc.
30464 (gen_movdi_symbol_save_scc): New insn and split.
30465
30466 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30467
30468 PR rtl-optimization/89313
30469 * function.c (matching_constraint_num): New static function.
30470 (match_asm_constraints_1): Use it. Fixup white space and comment.
30471 Don't replace inputs with non-matching constraints which conflict
30472 with early clobber outputs.
30473
30474 2019-03-27 Jeff Law <law@redhat.com>
30475
30476 PR rtl-optimization/87761
30477 PR rtl-optimization/89826
30478 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30479 slightly later.
30480 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30481 note problem to get REG_DEAD/REG_UNUSED notes updated.
30482
30483 2019-03-27 Richard Biener <rguenther@suse.de>
30484
30485 PR tree-optimization/89463
30486 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30487 queue edges to remove.
30488 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30489 dead stmts. Delay edge removal until PHIs are removed to
30490 make debug-stmt creation not confused by seemingly degenerate
30491 PHIs.
30492
30493 2019-03-27 Alan Modra <amodra@gmail.com>
30494
30495 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30496 throughout file.
30497 * config/rs6000/darwin.h: Likewise.
30498 * config/rs6000/rs6000.c: Likewise.
30499
30500 2019-03-27 Alan Modra <amodra@gmail.com>
30501
30502 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30503 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30504
30505 2019-03-26 Andrew Waterman <andrew@sifive.com>
30506 Jim Wilson <jimw@sifive.com>
30507
30508 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30509 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30510 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30511 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30512 (generic_alu): Add auipc to type list.
30513 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30514 (riscv_microarchitecture): Declare.
30515 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30516 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30517 field.
30518 (riscv_microarchitecture): New.
30519 (sifive_7_tune_info): New.
30520 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30521 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30522 entries.
30523 (riscv_store_data_bypass_p): New.
30524 (riscv_option_override): Set riscv_microarchitecture from
30525 cpu->microarchitecture.
30526 * config/riscv/riscv.md: Include sifive-7.md.
30527 (type): Add auipc.
30528 (tune): New.
30529 (auipc<mode>): Change type to auipc.
30530 (restore_stack_nonlocal): New.
30531 * config/riscv/sifive-7.md: New.
30532 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30533
30534 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30535
30536 PR target/89827
30537 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30538 Also process XEXP (src, 0) of a shift insn.
30539
30540 2019-03-26 Richard Biener <rguenther@suse.de>
30541
30542 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30543 (copy_debug_stmt): Likewise.
30544 (expand_call_inline): Likewise.
30545 (copy_bb): Avoid redundant lookup & set of gimple_block.
30546 * gimple-low.c (lower_gimple_return): Likewise.
30547 (lower_builtin_setjmp): Likewise.
30548
30549 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30550
30551 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30552 is constant 0, turn into static const data member initialized to false.
30553 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30554 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30555
30556 2019-03-26 Jason Merrill <jason@redhat.com>
30557 Jakub Jelinek <jakub@redhat.com>
30558
30559 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30560 method.
30561 (mem_alloc_description::release_object_overhead): Fix comment typos.
30562 * hash-table.h (hash_table::~hash_table): Call
30563 release_instance_overhead only if m_entries is non-NULL, otherwise
30564 call unregister_descriptor.
30565
30566 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30567
30568 PR tree-optimization/81740
30569 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30570 In case of outer loop vectorization, check for backward dependence
30571 at the inner loop if outer loop dependence is reversed.
30572
30573 2019-03-26 Alan Modra <amodra@gmail.com>
30574
30575 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30576 rs6000_vector_mem init. Correct wI and wJ comment.
30577
30578 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30579
30580 PR rtl-optimization/88347
30581 PR rtl-optimization/88423
30582 * sched-deps.c (sched_analyze_insn): Take into account that for
30583 tablejumps the barrier appears after a label and a jump_table_data.
30584
30585 2019-03-25 Martin Sebor <msebor@redhat.com>
30586
30587 PR c/89812
30588 * c-common.c (check_user_alignment): Rename local. Correct maximum
30589 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30590 convert it to UHWI when it fits.
30591
30592 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30593
30594 PR debug/86964
30595 * dwarf2out.c (premark_used_variables): New function.
30596 (prune_unused_types_walk): Do not mark not premarked external
30597 variables.
30598 (prune_unused_types): Call premark_used_variables.
30599
30600 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30601
30602 PR rtl-optimization/89676
30603 * lra-constraints.c (curr_insn_transform): Do match reload for
30604 early clobbers when the match was successful only for different
30605 registers.
30606
30607 2019-03-25 Martin Sebor <msebor@redhat.com>
30608
30609 * doc/extend.texi (Common Type Attributes): Document vector_size.
30610 (Common Variable Attributes): Mention size constraint. Correct
30611 quoting and typos.
30612 (Vector Extensions): Use @dfn when defining bas type. Clarify
30613 base type and size constraints.
30614
30615 2019-03-25 Richard Biener <rguenther@suse.de>
30616
30617 PR tree-optimization/89789
30618 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30619 changes from non-undefined back to undefined.
30620
30621 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30622
30623 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30624 heap string and a gc string, but since this variable is unknown to
30625 ggc the gc string might get reused and corrupted. Fixed by always
30626 using a heap string.
30627
30628 2019-03-25 Richard Biener <rguenther@suse.de>
30629
30630 PR tree-optimization/89779
30631 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30632 to remove IV defs, delay actual removal.
30633 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30634 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30635 very end, properly also reset loop control IV information.
30636
30637 2019-03-25 Richard Biener <rguenther@suse.de>
30638
30639 PR tree-optimization/89802
30640 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30641 move EH data to folded stmt.
30642
30643 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30644
30645 * config/s390/s390-builtin-types.def: Remove few unused types and
30646 fix sort order for others.
30647
30648 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30649
30650 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30651 expected and found types with -mdebug during builtin matching.
30652
30653 2019-03-25 Richard Biener <rguenther@suse.de>
30654
30655 PR middle-end/89790
30656 * fold-const.c (operand_equal_p): Revert last change with
30657 updated comment.
30658
30659 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30660
30661 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30662 notes for the result of the __tls_get_addr calls.
30663 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30664
30665 2019-03-24 Jeff Law <law@redhat.com>
30666
30667 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30668
30669 PR rtl-optimization/87761
30670 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30671 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30672 as needed.
30673 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30674 rescans. Reprocess blocks as needed, calling df_analyze before
30675 reprocessing. Always call df_analyze before fixing up debug bind
30676 insns.
30677
30678 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30679
30680 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30681 big endian.
30682
30683 2019-03-22 Andrew Pinski <apinski@marvell.com>
30684
30685 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30686 attrribute for uxtw.
30687
30688 2019-03-26 Jeff Law <law@redhat.com>
30689
30690 PR rtl-optimization/87761
30691 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30692 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30693 (mips_split_move): Accept new INSN argument. Try to forward SRC
30694 into the next instruction.
30695 (mips_split_move_insn): Pass INSN through to mips_split_move.
30696
30697 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30698
30699 PR rtl-optimization/89676
30700 * lra-constraints.c (curr_insn_transform): Do match reload for
30701 early clobbers even if the match was successful.
30702
30703 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30704
30705 PR c++/87481
30706 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30707
30708 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30709
30710 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30711
30712 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30713
30714 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30715 <avx512>_fmsub_<mode>_mask3<round_name>,
30716 <avx512>_fnmadd_<mode>_mask3<round_name>,
30717 <avx512>_fnmsub_<mode>_mask3<round_name>,
30718 avx512f_vmfmadd_<mode>_mask3<round_name>,
30719 avx512f_vmfmsub_<mode>_mask3<round_name>,
30720 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30721 instead of register_operand and %v instead of v for match_operand 1.
30722 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30723 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30724 <round_nimm_predicate> instead of register_operand and %v instead of v
30725 for match_operand 1.
30726
30727 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30728 <avx512>_fmadd_<mode>_mask3<round_name>,
30729 <avx512>_fmsub_<mode>_mask<round_name>,
30730 <avx512>_fmsub_<mode>_mask3<round_name>,
30731 <avx512>_fnmadd_<mode>_mask<round_name>,
30732 <avx512>_fnmadd_<mode>_mask3<round_name>,
30733 <avx512>_fnmsub_<mode>_mask<round_name>,
30734 <avx512>_fnmsub_<mode>_mask3<round_name>,
30735 <avx512>_fmaddsub_<mode>_mask<round_name>,
30736 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30737 <avx512>_fmsubadd_<mode>_mask<round_name>,
30738 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30739 <round_nimm_predicate> instead of nonimmediate_operand.
30740 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30741 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30742 Use register_operand instead of <round_nimm_predicate> for the
30743 operand that needs to match output.
30744 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30745 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30746 Likewise. Formatting fixes.
30747
30748 PR target/89784
30749 * config/i386/i386.c (enum ix86_builtins): Remove
30750 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30751 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30752 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30753 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30754 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30755 __builtin_ia32_vfmsubss3_mask3): New builtins.
30756 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30757 avx512f_vmfmadd_<mode>_mask3<round_name>,
30758 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30759 *avx512f_vmfmsub_<mode>_mask<round_name>,
30760 avx512f_vmfmsub_<mode>_mask3<round_name>,
30761 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30762 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30763 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30764 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30765 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30766 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30767 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30768 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30769 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30770 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30771 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30772 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30773 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30774 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30775 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30776 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30777 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30778 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30779 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30780 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30781 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30782 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30783 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30784 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30785 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30786 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30787 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30788 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30789
30790 2019-03-21 Martin Sebor <msebor@redhat.com>
30791
30792 PR tree-optimization/89350
30793 * builtins.c (compute_objsize): Also ignore offsets whose upper
30794 bound is negative.
30795 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30796 (builtin_memref::builtin_memref): Initialize new member.
30797 Allow EXPR to be null.
30798 (builtin_memref::extend_offset_range): Replace local with a member.
30799 Avoid assuming pointer offsets are unsigned.
30800 (builtin_memref::set_base_and_offset): Determine base object
30801 before computing offset range.
30802 (builtin_access::builtin_access): Handle memset.
30803 (builtin_access::generic_overlap): Replace local with a member.
30804 (builtin_access::strcat_overlap): Same.
30805 (builtin_access::overlap): Same.
30806 (maybe_diag_overlap): Same.
30807 (maybe_diag_access_bounds): Same.
30808 (wrestrict_dom_walker::check_call): Handle memset.
30809 (check_bounds_or_overlap): Same.
30810
30811 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30812 Jakub Jelinek <jakub@redhat.com>
30813
30814 PR lto/89692
30815 * tree.c (fld_type_variant, fld_incomplete_type_of,
30816 fld_process_array_type): Call fld->pset.add and don't call
30817 add_tree_to_fld_list if it returns true.
30818 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30819 non-marked types from TYPE_NEXT_VARIANT list.
30820 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30821
30822 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30823
30824 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30825 to false, if true, don't alloc_entries during construction, but defer
30826 it to the first method that needs m_entries allocated.
30827 (hash_table::hash_table, hash_table::~hash_table,
30828 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30829 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30830 hash_table::clear_slot, hash_table::traverse_noresize,
30831 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30832 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30833 false.
30834 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30835 NO_INSERT instead of find_with_hash.
30836 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30837 hash_set::m_table): Add Lazy to template params of hash_table.
30838 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30839 * attribs.c (test_attribute_exclusions): Likewise.
30840 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30841 hash_set. Add tests for hash_set with Lazy = true.
30842
30843 2019-03-21 Richard Biener <rguenther@suse.de>
30844
30845 PR tree-optimization/89779
30846 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30847 checks with respect to released SSA names now having error_mark_node
30848 type.
30849 * fold-const.c (operand_equal_p): Likewise.
30850
30851 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30852
30853 PR target/89775
30854 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30855 available to ...
30856 (s390_optimize_register_info): Use global_not_special_regno_p to
30857 check for global regs.
30858
30859 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30860
30861 PR target/89752
30862 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30863 update this_alternative nor this_alternative_set.
30864
30865 2019-03-19 Jim Wilson <jimw@sifive.com>
30866
30867 PR target/89411
30868 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30869 align, size, offset. Use them to handle a BLKmode reference. Update
30870 comment.
30871 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30872
30873 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30874
30875 PR rtl-optimization/89768
30876 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30877 instead of GEN_INT.
30878 (unroll_loop_runtime_iterations): Likewise.
30879
30880 2019-03-19 Martin Sebor <msebor@redhat.com>
30881
30882 PR tree-optimization/89644
30883 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30884 rather than endptr as an indicator of nul-termination.
30885
30886 PR tree-optimization/89644
30887 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30888 arrays in determining sequence sizes in strncpy and stpncpy.
30889
30890 2019-03-19 Martin Liska <mliska@suse.cz>
30891
30892 PR middle-end/89737
30893 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30894 unlikely_edges if there's an edge that belongs to both these sets.
30895
30896 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30897
30898 PR target/89746
30899 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30900 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30901 go via a stack temporary.
30902
30903 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30904
30905 PR target/89378
30906 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30907 instead of gen_rtx_SUBREG.
30908 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30909
30910 2019-03-19 Richard Biener <rguenther@suse.de>
30911
30912 PR debug/88389
30913 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30914
30915 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30916
30917 PR lto/87809
30918 PR lto/89335
30919 * tree.c (free_lang_data_in_decl): Do not free context of C++
30920 destrutors.
30921
30922 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30923
30924 PR target/89506
30925 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30926 subs for the first alternative except when operands[3] is 1.
30927
30928 PR target/89752
30929 * gimplify.c (gimplify_asm_expr): For output argument with
30930 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30931 diagnose error.
30932
30933 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30934
30935 PR rtl-optimization/89753
30936 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30937 explicit unrolling factor even more robust.
30938
30939 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30940
30941 PR target/89726
30942 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30943 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30944 signed zeros, do another copysign after the compensation.
30945
30946 2019-03-18 Martin Sebor <msebor@redhat.com>
30947
30948 PR tree-optimization/89720
30949 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30950 more conservatively, the same as anti-range.
30951
30952 2019-03-18 Richard Biener <rguenther@suse.de>
30953
30954 PR middle-end/88945
30955 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30956 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30957 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30958 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30959
30960 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30961
30962 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30963 Extend queue to 1024 entries.
30964 Add "consumed" field.
30965 (gomp_print_output): Remove print_index parameter.
30966 Add final parameter.
30967 Change limit to unsigned.
30968 Use consumed field to implement circular buffer.
30969 Detect interrupted print in final pass.
30970 Flush output at the end.
30971 (run): Update gomp_print_output usage.
30972 (main): Initialize kernargs->output_data.consumed.
30973
30974 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30975
30976 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30977 calculation of the minimum number of scalar iterations for
30978 fully-predicated loops.
30979
30980 2019-03-18 Martin Jambor <mjambor@suse.cz>
30981
30982 PR tree-optimization/89546
30983 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30984 any propagation to its children took place.
30985
30986 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30987
30988 PR target/89627
30989 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30990 parameter, and make use of it.
30991 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30992
30993 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30994
30995 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30996 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30997 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30998 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30999 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
31000 match what the ops is doing.
31001 (push_multi_fp_blink): Likewise.
31002 * config/arc/arc.c (arc_override_options): Enable enter/leave when
31003 compiling for size and elf target.
31004 (arc_save_callee_enter): Adjust note to match what enter/leave
31005 operation does.
31006
31007 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31008
31009 * config/arc/arc.md (tst_movb): Fix constraint.
31010
31011 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31012
31013 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
31014
31015 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
31016
31017 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
31018 * config/arc/arc.c (arc_conditional_register_usage): Remove all
31019 reg_alloc_order references.
31020 (size_alloc_order): Define.
31021 (arc_adjust_reg_alloc_order): New function.
31022 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
31023 order.
31024 (ADJUST_REG_ALLOC_ORDER): Define.
31025 (HONOR_REG_ALLOC_ORDER): Likewise.
31026
31027 2019-03-18 Richard Biener <rguenther@suse.de>
31028
31029 PR target/87561
31030 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
31031 loads and stores a bit more.
31032
31033 2019-03-18 Richard Biener <rguenther@suse.de>
31034
31035 PR target/87561
31036 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
31037 load pessimization to stores as well.
31038
31039 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
31040
31041 PR middle-end/86979
31042 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
31043 successor, use NULL as its av set.
31044
31045 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
31046
31047 PR rtl-optimization/89721
31048 * lra-constraints (invariant_p): Return false if side_effects_p holds.
31049
31050 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
31051
31052 PR target/87532
31053 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31054 When handling vec_extract, use modular arithmetic to allow
31055 constant selectors greater than vector length.
31056 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
31057 V1TImode vectors to have constant selector values greater than 0.
31058 Use modular arithmetic to compute vector index.
31059 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
31060 index for in-memory vectors. Correct code generation for
31061 in-register vectors.
31062 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
31063 compute index.
31064
31065 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
31066
31067 PR c++/88534
31068 PR c++/88537
31069 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
31070 VAR_DECL args.
31071
31072 2019-03-15 Jakub Jelinek <jakub@redhat.com>
31073
31074 PR c++/89709
31075 * tree.c (inchash::add_expr): Strip any location wrappers.
31076 * fold-const.c (operand_equal_p): Move stripping of location wrapper
31077 after hash verification.
31078
31079 PR debug/89704
31080 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
31081 SIGN_EXTEND and ZERO_EXTEND.
31082
31083 2019-03-14 Jason Merrill <jason@redhat.com>
31084 Jakub Jelinek <jakub@redhat.com>
31085
31086 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
31087 than if is_empty (*slot).
31088 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
31089 existing elt and for elt removal.
31090 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
31091 of already removed elt.
31092
31093 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
31094
31095 PR target/89650
31096 * config/i386/i386.c (remove_partial_avx_dependency): Handle
31097 REG_EH_REGION note.
31098
31099 2019-03-14 Martin Liska <mliska@suse.cz>
31100
31101 PR other/89712
31102 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
31103
31104 2019-03-14 Richard Biener <rguenther@suse.de>
31105
31106 PR target/89711
31107 * config/i386/i386.c (make_resolver_func): Properly set
31108 DECL_CONTEXT on the RESULT_DECL.
31109 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
31110
31111 2019-03-14 Richard Biener <rguenther@suse.de>
31112
31113 * gimple-pretty-print.c: Include cfgloop.h.
31114 (dump_gimple_phi): Adjust.
31115 (dump_gimple_bb_header): Dump loop header for GIMPLE.
31116 (pp_cfg_jump): Adjust.
31117 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
31118 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
31119 (lower_phi_internal_fn): Remove.
31120 (verify_gimple_call): Remove IFN_PHI special-casing.
31121 (dump_function_to_file): Dump IL state.
31122 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
31123 done to deal with PHI nodes being present in non-SSA state.
31124
31125 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31126
31127 PR ipa/89684
31128 * multiple_target.c (create_dispatcher_calls): Change
31129 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
31130 In the node->iterate_referring loop, push *ref rather than ref, call
31131 ref->remove_reference () and always pass 0 to iterate_referring.
31132
31133 PR rtl-optimization/89679
31134 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31135 would contain a paradoxical SUBREG.
31136
31137 2019-03-14 Richard Biener <rguenther@suse.de>
31138
31139 PR tree-optimization/89710
31140 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31141 safe_dyn_cast.
31142
31143 2019-03-14 Martin Liska <mliska@suse.cz>
31144
31145 * coverage.c (coverage_begin_function): Stream also
31146 end_column.
31147 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
31148 documentation about function declaration location.
31149 * gcov-dump.c (tag_function): Print whole range
31150 of function declaration.
31151 * gcov.c (struct function_info): Add end_column field.
31152 (function_info::function_info): Initialize it.
31153 (output_json_intermediate_file): Output {start,end}_column
31154 fields.
31155 (read_graph_file): Read end_column.
31156
31157 2019-03-14 Richard Biener <rguenther@suse.de>
31158
31159 PR middle-end/89698
31160 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31161 that the access types are similar.
31162
31163 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31164
31165 PR tree-optimization/89703
31166 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31167 aren't compatible also with builtin_decl_explicit. Check pure
31168 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31169 and BUILT_IN_STPNCPY{,_CHK}.
31170
31171 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31172
31173 PR target/89523
31174 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31175 addr32 prefix to VSIB address for X32.
31176 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31177 "%M2" to opcode.
31178 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31179 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31180 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31181 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31182 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31183 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31184 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31185 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31186 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31187 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31188 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31189 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31190 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31191 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31192 (*avx512f_scatterdi<mode>): Likewise.
31193
31194 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31195
31196 PR target/85860
31197 * lra-constraints.c (inherit_in_ebb): Update
31198 potential_reload_hard_regs along with live_hard_regs.
31199
31200 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31201
31202 PR debug/89498
31203 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31204 DWARF_OFFSET_SIZE.
31205 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31206
31207 2019-03-13 Martin Sebor <msebor@redhat.com>
31208
31209 PR tree-optimization/89662
31210 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31211 has a size.
31212
31213 2019-03-13 Richard Biener <rguenther@suse.de>
31214
31215 PR middle-end/89677
31216 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31217 throw FP expressions at tree-affine.
31218
31219 2019-03-14 Richard Biener <rguenther@suse.de>
31220
31221 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31222 dump negative integer constants using _Literal (type) -num.
31223
31224 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31225
31226 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31227 nonlocal_value member.
31228
31229 PR middle-end/88588
31230 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31231 (ipa_simd_modify_function_body): Handle PHIs.
31232
31233 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31234
31235 * config/s390/s390.c (s390_option_override_internal): Use more
31236 aggressive inlining parameters.
31237
31238 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31239
31240 * config/s390/3906.md: New file.
31241 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31242 (LONGRUNNING_THRESHOLD): Remove.
31243 (MAX_SCHED_MIX_SCORE): Decrease.
31244 (MAX_SCHED_MIX_DISTANCE): Decrease.
31245 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31246 (struct s390_sched_state): New struct to hold scheduling state.
31247 (S390_SCHED_STATE_NORMAL): Remove.
31248 (S390_SCHED_STATE_CRACKED): Remove.
31249 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31250 (s390_get_sched_attrmask): Use new attribute.
31251 (s390_get_unit_mask): Use new units.
31252 (s390_is_fpd): New function.
31253 (s390_is_fxd): New function.
31254 (s390_is_longrunning): New function.
31255 (s390_sched_score): Use new functions.
31256 (s390_sched_reorder): Likewise.
31257 (s390_sched_variable_issue): Rework and use new functions.
31258 (s390_sched_init): Use new functions.
31259 * config/s390/s390.h (s390_tune_attr): Add z14.
31260 * config/s390/s390.md: Add z14.
31261
31262 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31263
31264 * config/s390/2964.md: Update pipeline description.
31265 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31266 (LONGRUNNING_THRESHOLD): Remove.
31267 (LATENCY_FACTOR): Remove.
31268 (s390_get_unit_mask): Add unit.
31269 (s390_sched_score): Use fxd/fpd.
31270 (s390_sched_variable_issue): Use fxd/fpd.
31271
31272 2019-03-12 Martin Liska <mliska@suse.cz>
31273
31274 * config/i386/i386.c: Reword an error message.
31275
31276 2019-03-12 Martin Jambor <mjambor@suse.cz>
31277
31278 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31279 terminate with newline.
31280
31281 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31282
31283 PR target/52726
31284 * config/s390/s390.md (tabort): Use %wd instead of
31285 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31286 letters and periods.
31287 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31288 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31289 's with %< and %>.
31290
31291 PR middle-end/89663
31292 * builtins.c (expand_builtin_int_roundingfn,
31293 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31294 gcc_unreachable if validate_arglist fails.
31295
31296 2019-03-12 Richard Biener <rguenther@suse.de>
31297
31298 PR tree-optimization/89664
31299 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31300 free the occurance tree after the early out.
31301
31302 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31303
31304 PR middle-end/89655
31305 PR bootstrap/89656
31306 * vr-values.c (vr_values::update_value_range): If
31307 old_vr->varying_p (), don't update it, make new_vr also VARYING
31308 and return false.
31309
31310 2019-03-11 Martin Liska <mliska@suse.cz>
31311
31312 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31313 Fix double string quoting.
31314
31315 2019-03-11 Martin Liska <mliska@suse.cz>
31316
31317 * collect-utils.c (collect_wait): Wrap apostrophes
31318 in gcc internal format with %'.
31319 * collect2.c (main): Likewise.
31320 (scan_prog_file): Likewise.
31321 (scan_libraries): Likewise.
31322 * config/i386/i386.c (ix86_expand_call): Likewise.
31323 (ix86_handle_interrupt_attribute): Likewise.
31324 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31325 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31326 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31327 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31328 * symtab.c (symtab_node::verify_base): Likewise.
31329 * tree-cfg.c (verify_gimple_label): Likewise.
31330 * tree.c (verify_type_variant): Likewise.
31331
31332 2019-03-11 Martin Liska <mliska@suse.cz>
31333
31334 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31335 in a string format message and fix GNU coding style.
31336 (expand_builtin_set_thread_pointer): Likewise.
31337 * common/config/aarch64/aarch64-common.c
31338 (aarch64_rewrite_selected_cpu): Likewise.
31339 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31340 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31341 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31342 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31343 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31344 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31345 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31346 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31347 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31348 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31349 Likewise.
31350 * common/config/riscv/riscv-common.c
31351 (riscv_subset_list::parsing_subset_version): Likewise.
31352 (riscv_subset_list::parse_std_ext): Likewise.
31353 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31354 (riscv_subset_list::parse): Likewise.
31355 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31356 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31357 (aarch64_override_options_internal): Likewise.
31358 (aarch64_validate_mcpu): Likewise.
31359 (aarch64_validate_march): Likewise.
31360 (aarch64_validate_mtune): Likewise.
31361 (aarch64_override_options): Likewise.
31362 * config/alpha/alpha.c (alpha_option_override): Likewise.
31363 * config/arc/arc.c (arc_init): Likewise.
31364 (parse_mrgf_banked_regs_option): Likewise.
31365 (arc_override_options): Likewise.
31366 (arc_expand_builtin_aligned): Likewise.
31367 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31368 (arm_expand_builtin): Likewise.
31369 * config/arm/arm.c (arm_option_check_internal): Likewise.
31370 (arm_configure_build_target): Likewise.
31371 (arm_option_override): Likewise.
31372 (arm_options_perform_arch_sanity_checks): Likewise.
31373 (arm_handle_cmse_nonsecure_entry): Likewise.
31374 (arm_handle_cmse_nonsecure_call): Likewise.
31375 (arm_tls_referenced_p): Likewise.
31376 (thumb1_expand_prologue): Likewise.
31377 * config/avr/avr.c (avr_option_override): Likewise.
31378 * config/bfin/bfin.c (bfin_option_override): Likewise.
31379 * config/c6x/c6x.c (c6x_option_override): Likewise.
31380 * config/cr16/cr16.c (cr16_override_options): Likewise.
31381 * config/cris/cris.c (cris_option_override): Likewise.
31382 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31383 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31384 * config/darwin.c (darwin_override_options): Likewise.
31385 * config/frv/frv.c (frv_expand_builtin): Likewise.
31386 * config/h8300/h8300.c (h8300_option_override): Likewise.
31387 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31388 (ix86_option_override_internal): Likewise.
31389 (warn_once_call_ms2sysv_xlogues): Likewise.
31390 (ix86_expand_prologue): Likewise.
31391 (split_stack_prologue_scratch_regno): Likewise.
31392 (ix86_warn_parameter_passing_abi): Likewise.
31393 * config/ia64/ia64.c (fix_range): Likewise.
31394 * config/m68k/m68k.c (m68k_option_override): Likewise.
31395 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31396 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31397 (mips_set_compression_mode): Likewise.
31398 * config/mmix/mmix.c (mmix_option_override): Likewise.
31399 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31400 * config/msp430/msp430.c (msp430_option_override): Likewise.
31401 * config/nds32/nds32.c (nds32_option_override): Likewise.
31402 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31403 (nios2_option_override): Likewise.
31404 (nios2_expand_custom_builtin): Likewise.
31405 * config/nvptx/mkoffload.c (main): Likewise.
31406 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31407 * config/pa/pa.c (fix_range): Likewise.
31408 (pa_option_override): Likewise.
31409 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31410 (riscv_option_override): Likewise.
31411 * config/rl78/rl78.c (rl78_option_override): Likewise.
31412 * config/rs6000/aix61.h: Likewise.
31413 * config/rs6000/aix71.h: Likewise.
31414 * config/rs6000/aix72.h: Likewise.
31415 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31416 * config/rs6000/freebsd64.h: Likewise.
31417 * config/rs6000/linux64.h: Likewise.
31418 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31419 (rs6000_expand_zeroop_builtin): Likewise.
31420 (rs6000_expand_mtfsb_builtin): Likewise.
31421 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31422 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31423 (rs6000_invalid_builtin): Likewise.
31424 (rs6000_expand_split_stack_prologue): Likewise.
31425 * config/rs6000/rtems.h: Likewise.
31426 * config/rx/rx.c (valid_psw_flag): Likewise.
31427 (rx_expand_builtin): Likewise.
31428 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31429 * config/s390/s390.c (s390_expand_builtin): Likewise.
31430 (s390_function_profiler): Likewise.
31431 (s390_option_override_internal): Likewise.
31432 (s390_option_override): Likewise.
31433 * config/sh/sh.c (sh_option_override): Likewise.
31434 (sh_builtin_saveregs): Likewise.
31435 (sh_fix_range): Likewise.
31436 * config/sh/vxworks.h: Likewise.
31437 * config/sparc/sparc.c (sparc_option_override): Likewise.
31438 * config/spu/spu.c (spu_option_override): Likewise.
31439 (fix_range): Likewise.
31440 * config/visium/visium.c (visium_option_override): Likewise.
31441 (visium_handle_interrupt_attr): Likewise.
31442 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31443 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31444 (dbg_cnt_process_opt): Likewise.
31445 * dwarf2out.c (output_dwarf_version): Likewise.
31446 * except.c (expand_eh_return): Likewise.
31447 * gcc.c (defined): Likewise.
31448 (driver_handle_option): Likewise.
31449 (process_command): Likewise.
31450 (compare_files): Likewise.
31451 (driver::prepare_infiles): Likewise.
31452 (driver::do_spec_on_infiles): Likewise.
31453 (driver::maybe_run_linker): Likewise.
31454 * omp-offload.c (oacc_parse_default_dims): Likewise.
31455 * opts-global.c (handle_common_deferred_options): Likewise.
31456 * opts.c (parse_sanitizer_options): Likewise.
31457 (common_handle_option): Likewise.
31458 (enable_warning_as_error): Likewise.
31459 * passes.c (enable_disable_pass): Likewise.
31460 * plugin.c (parse_plugin_arg_opt): Likewise.
31461 (default_plugin_dir_name): Likewise.
31462 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31463 (default_pch_valid_p): Likewise.
31464 * toplev.c (init_asm_output): Likewise.
31465 (process_options): Likewise.
31466 (toplev::run_self_tests): Likewise.
31467 * tree-cfg.c (verify_gimple_call): Likewise.
31468 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31469 (tree_inlinable_function_p): Likewise.
31470 * var-tracking.c (vt_find_locations): Likewise.
31471
31472 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31473
31474 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31475 only on the else branch.
31476
31477 2019-03-11 Martin Liska <mliska@suse.cz>
31478
31479 * gcov.c (output_intermediate_json_line): Print function
31480 name of each line.
31481 (output_json_intermediate_file): Add new argument.
31482 * doc/gcov.texi: Document the change.
31483
31484 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31485
31486 PR rtl-optimization/89588
31487 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31488 explicit unrolling factor more robust.
31489
31490 2019-03-11 Richard Biener <rguenther@suse.de>
31491
31492 PR tree-optimization/89649
31493 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31494 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31495 on the prolog and epilog loops.
31496 (vect_loop_versioning): Return copy of loop.
31497 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31498 on the non-vectorized version of the loop.
31499
31500 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31501
31502 PR target/68924
31503 * config/i386/sse.md (*vec_extractv2di_0_sse):
31504 Add (=r,x) alternative and corresponding splitter.
31505
31506 2019-03-10 Martin Jambor <mjambor@suse.cz>
31507
31508 PR tree-optimization/85762
31509 PR tree-optimization/87008
31510 PR tree-optimization/85459
31511 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31512 it points to if there is a type changing MEM_REF. Adjust all callers.
31513 (build_accesses_from_assign): Disable total scalarization if
31514 contains_vce_or_bfcref_p returns true through the new parameter, for
31515 both rhs and lhs.
31516
31517 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31518
31519 PR c/88568
31520 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31521 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31522
31523 PR target/79645
31524 * common.opt (fdiagnostics-show-labels,
31525 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31526 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31527 gas-locview-support, ginline-points, ginternal-reset-location-views):
31528 Terminate description text with a dot.
31529 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31530 * config/mcore/mcore.opt (m210, m340): Likewise.
31531 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31532 mnops=): Start description text with a capital letter.
31533 * config/arc/arc.opt (msize-level=): Likewise.
31534 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31535 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31536 mnewlib): Likewise.
31537 * config/ft32/ft32.opt (msim): Likewise.
31538 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31539 (mnodiv, mnopm): Terminate description text with a dot.
31540 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31541 a colon.
31542 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31543 Likewise.
31544 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31545 text.
31546
31547 PR rtl-optimization/89634
31548 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31549 are modified in BB_END (e->src) instruction.
31550
31551 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31552
31553 PR target/79926
31554 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31555 messages more amenable to translation, and improve wording.
31556
31557 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31558
31559 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31560 ud- and du-chains between phases.
31561
31562 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31563
31564 PR debug/89631
31565 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31566 instead of POLY_INT_CST.
31567
31568 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31569
31570 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31571 requirement.
31572
31573 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31574
31575 PR target/68924
31576 PR target/78782
31577 PR target/87558
31578 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31579 (_mm_storeu_si64): Ditto.
31580
31581 2019-03-08 Martin Liska <mliska@suse.cz>
31582
31583 PR target/86952
31584 * config/i386/i386.c (ix86_option_override_internal): Disable
31585 jump tables when retpolines are used.
31586
31587 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31588
31589 PR go/63560
31590 * ipa-split.c (execute_split_functions): Do not split
31591 'noinline' or 'section' function.
31592
31593 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31594
31595 PR target/79846
31596 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31597 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31598 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31599
31600 PR ipa/80000
31601 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31602 from diagnostics. Formatting fixes.
31603
31604 PR target/85665
31605 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31606 warn_odr diagnostics.
31607
31608 PR other/80058
31609 * lra-constraints.c (process_alt_operands): Avoid one space before
31610 " at the end of line and another after " on another line in a string
31611 literal.
31612 * attribs.c (handle_dll_attribute): Likewise.
31613 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31614
31615 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31616 warning_at or inform messages in G_() if there is no ?:.
31617
31618 PR tree-optimization/89550
31619 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31620 returned true. Formatting fixes.
31621 (expand_builtin_strnlen): Formatting fixes.
31622 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31623 if warning_at returned true.
31624 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31625
31626 2019-03-08 Richard Biener <rguenther@suse.de>
31627
31628 PR middle-end/89578
31629 * cfgloop.h (struct loop): Add owned_clique field.
31630 * cfgloopmanip.c (copy_loop_info): Copy it.
31631 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31632 cliques.
31633 * tree-inline.c (copy_loops): Remap owned_clique.
31634 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31635 * lto-streamer-out.c (output_cfg): Likewise.
31636
31637 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31638
31639 PR target/80190
31640 * config/darwin.c: Include intl.h.
31641 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31642 composing the message out of two separate parts.
31643
31644 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31645
31646 PR target/80003
31647 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31648 doesn't start with a capital letter and doesn't end with a dot.
31649 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31650 with a capital letter.
31651 (ix86_mangle_function_version_assembler_name): Likewise.
31652 (ix86_generate_version_dispatcher_body): Likewise.
31653 (fold_builtin_cpu): Likewise.
31654 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31655 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31656 translators, wrap full type name in %qs.
31657
31658 PR translation/79999
31659 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31660 depend clause with source (or sink) modifier.
31661 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31662
31663 PR target/89602
31664 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31665 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31666 (avx512f_load<mode>_mask): New define_expand.
31667 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31668 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31669 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31670 __builtin_ia32_movess_mask): New builtins.
31671 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31672 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31673 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31674 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31675
31676 2019-03-07 Martin Jambor <mjambor@suse.cz>
31677
31678 PR lto/87525
31679 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31680 for extern inline functions.
31681
31682 2019-03-07 Martin Jambor <mjambor@suse.cz>
31683
31684 PR ipa/88235
31685 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31686 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31687 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31688 have multiple callees. At the end check if declarations match as
31689 opposed to cgraph_nodes.
31690
31691 2019-03-07 Martin Liska <mliska@suse.cz>
31692
31693 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31694 which is equivalent to searching for this in clones chain.
31695 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31696 names with a neighbour and special case first node in a chain.
31697
31698 2019-01-25 Jason Merrill <jason@redhat.com>
31699
31700 PR c++/80916 - spurious "static but not defined" warning.
31701 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31702 for an internal symbol with DECL_EXTERNAL.
31703
31704 2019-04-07 Richard Biener <rguenther@suse.de>
31705
31706 PR middle-end/89618
31707 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31708 * tree-inline.c (copy_loops): Simplify.
31709
31710 2019-03-07 Martin Liska <mliska@suse.cz>
31711
31712 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31713
31714 2019-03-07 Richard Biener <rguenther@suse.de>
31715
31716 PR tree-optimization/89595
31717 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31718 stmt iterator as reference, take boolean output parameter to
31719 indicate whether the stmt was removed and thus the iterator
31720 already advanced.
31721 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31722 stmts created by folding.
31723
31724 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31725
31726 PR c++/89585
31727 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31728 at toplevel.
31729
31730 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31731
31732 PR rtl-optimization/88845
31733 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31734 LRA.
31735 * lra.c (remove_scratches_1): New function.
31736 (remove_scratches): Use it.
31737 (lra_emit_move): Likewise.
31738
31739 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31740
31741 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31742 unaligned_access variable.
31743 * config/arc/arc.c (arc_override_options): Set unaligned access
31744 default on for HS CPUs.
31745 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31746
31747 2019-03-06 Martin Liska <mliska@suse.cz>
31748
31749 PR gcov-profile/89577
31750 * doc/gcov.texi: Prefer to use --coverage.
31751 * doc/sourcebuild.texi: Likewise.
31752
31753 2019-03-02 Jason Merrill <jason@redhat.com>
31754
31755 PR c++/86485 - -Wmaybe-unused with empty class ?:
31756 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31757
31758 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31759
31760 PR target/89587
31761 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31762 if_multiarch.
31763
31764 PR middle-end/89590
31765 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31766 exactly one argument.
31767
31768 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31769 Richard Sandiford <richard.sandiford@arm.com>
31770
31771 PR tree-optimization/89570
31772 * match.pd (vec_cond into cond_op simplification): Don't use
31773 get_conditional_internal_fn, use as_internal_fn (cond_op).
31774
31775 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31776
31777 PR target/89222
31778 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31779 to decide when to split off a non-zero offset from a symbol.
31780 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31781 in function symbols.
31782
31783 2019-03-05 Richard Biener <rguenther@suse.de>
31784
31785 PR tree-optimization/89594
31786 * tree-if-conv.c (pass_if_conversion::execute): Handle
31787 case where .LOOP_VECTORIZED_FUNCTION was removed.
31788
31789 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31790
31791 PR bootstrap/89560
31792 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31793 instead alloca it only when needed with the needed size.
31794
31795 PR tree-optimization/89570
31796 * match.pd (vec_cond into cond_op simplification): Guard with
31797 vectorized_internal_fn_supported_p test and #if GIMPLE.
31798
31799 PR tree-optimization/89566
31800 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31801 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31802 Punt if get_user_idx_format succeeds, but idx_format argument is
31803 not provided or doesn't have pointer type, or if idx_args is above
31804 number of provided arguments.
31805
31806 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31807
31808 PR tree-optimization/89437
31809 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31810
31811 2019-03-04 Richard Biener <rguenther@suse.de>
31812
31813 PR middle-end/89572
31814 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31815 safe_dyn_cast.
31816
31817 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31818
31819 PR tree-optimization/89487
31820 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31821 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31822 (distribute_loop): Don't do runtime alias check if there is non-
31823 addressable data reference.
31824 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31825 is a register variable.
31826
31827 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31828
31829 PR target/89506
31830 * config/arm/arm.md (cmpsi2_addneg): Use
31831 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31832 If operands[2] is 0 or INT_MIN, force use of subs.
31833 (*compare_scc splitter): Use gen_int_mode.
31834 (*negscc): Likewise.
31835 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31836
31837 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31838 Monk Chiang <sh.chiang04@gmail.com>
31839
31840 * common/config/riscv/riscv-common.c: Include sstream.
31841 (riscv_subset_list::to_string): New.
31842 (riscv_arch_str): Likewise.
31843 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31844 * config.in: Regen.
31845 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31846 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31847 (riscv_emit_attribute): New.
31848 (riscv_file_start): Emit attribute if needed.
31849 (riscv_option_override): Init riscv_emit_attribute_p.
31850 * config/riscv/riscv.opt (mriscv-attribute): New option.
31851 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31852 * configure: Regen.
31853 * doc/install.texi: Document --with-riscv-attribute.
31854 * doc/invoke.texi: Document -mriscv-attribute.
31855
31856 * common/config/riscv/riscv-common.c:
31857 Include config/riscv/riscv-protos.h.
31858 (INCLUDE_STRING): Defined.
31859 (RISCV_DONT_CARE_VERSION): Defined.
31860 (riscv_subset_t): Declare.
31861 (riscv_subset_t::riscv_subset_t): New.
31862 (riscv_subset_list): Declare.
31863 (riscv_subset_list::riscv_subset_list): New.
31864 (riscv_subset_list::~riscv_subset_list): Likewise.
31865 (riscv_subset_list::parsing_subset_version): Likewise.
31866 (riscv_subset_list::parse_std_ext): Likewise.
31867 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31868 (riscv_subset_list::add): Likewise.
31869 (riscv_subset_list::lookup): Likewise.
31870 (riscv_subset_list::xlen): Likewise.
31871 (riscv_subset_list::parse): Likewise.
31872 (riscv_supported_std_ext): Likewise.
31873 (current_subset_list): Likewise.
31874 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31875 parse.
31876
31877 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31878
31879 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31880 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31881 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31882
31883 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31884
31885 PR rtl-optimization/85899
31886 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31887 fallthru edges leading to the exit block.
31888
31889 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31890
31891 PR target/89517
31892 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31893 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31894
31895 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31896
31897 PR tree-optimization/89535
31898 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31899 for each operand. Calculate the fallback choice for mask operands
31900 and pass it to vect_get_vec_def_for_operand.
31901
31902 2019-03-01 Richard Biener <rguenther@suse.de>
31903
31904 PR middle-end/89541
31905 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31906 get virtual operands.
31907 (get_expr_operands): Handle CONST_DECL like other decls.
31908
31909 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31910
31911 PR middle-end/89503
31912 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31913 on DECL_P and EXPR_P.
31914
31915 2019-03-01 Richard Biener <rguenther@suse.de>
31916
31917 PR middle-end/89497
31918 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31919 argument, defaulted to zero.
31920 * passes.c (execute_function_todo): Pass down SSA update flags
31921 to cleanup_tree_cfg.
31922 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31923 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31924 form if requested.
31925 (cleanup_tree_cfg): Get and pass down SSA update flags.
31926
31927 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31928
31929 PR bootstrap/89539
31930 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31931 early_lto_debug argument.
31932
31933 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31934
31935 PR tree-optimization/89536
31936 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31937 only whether bit #0 of the value is 0 instead of the entire value.
31938
31939 2019-02-28 Marek Polacek <polacek@redhat.com>
31940
31941 PR c++/87068 - missing diagnostic with fallthrough statement.
31942 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31943 at the end of a seq, save its location to walk_stmt_info.
31944 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31945 a switch.
31946
31947 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31948
31949 PR lto/88585
31950 * tree.c (find_atomic_core_type): Move ahead in file.
31951 (check_base_type): Correctly compare alignments of atomic types.
31952
31953 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31954
31955 PR target/89455
31956 * config/i386/i386.c (get_builtin_code_for_version): Identify
31957 Westmere from PCLMUL, instead of AES.
31958
31959 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31960
31961 PR target/89434
31962 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31963 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31964 -UINTVAL (...).
31965
31966 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31967
31968 PR target/88530
31969 * config/aarch64/aarch64-option-extensions.def: Document it.
31970 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31971 if empty hwcaps.
31972
31973 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31974
31975 PR c/89520
31976 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31977 builtins if they don't have a single scalar floating point argument.
31978 Formatting fixes.
31979
31980 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31981
31982 PR rtl-optimization/89490
31983 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31984 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31985 block section is not mergeable.
31986
31987 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31988
31989 PR target/70341
31990 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31991 old define_insn to ...
31992 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31993 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31994 Rename old define_insn to ...
31995 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31996 (thumb2_casesi_internal_pic): New define_expand. Rename old
31997 define_insn to ...
31998 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31999 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
32000 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
32001
32002 2019-02-27 Richard Biener <rguenther@suse.de>
32003
32004 PR debug/88878
32005 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
32006
32007 2019-02-27 Richard Biener <rguenther@suse.de>
32008
32009 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
32010 building.
32011
32012 2019-02-27 Richard Biener <rguenther@suse.de>
32013
32014 PR debug/88878
32015 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
32016 parameter, prefix section name with .gnu.debuglto_ if true.
32017 (dwarf2out_finish): Pass false to output_comdat_type_unit.
32018 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
32019
32020 2019-02-27 Richard Biener <rguenther@suse.de>
32021
32022 PR debug/89514
32023 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
32024 rather than on use_debug_types, doing what output_die does.
32025 (value_format): Likewise.
32026
32027 2019-02-27 Martin Jambor <mjambor@suse.cz>
32028 Martin Sebor <msebor@redhat.com>
32029
32030 * doc/invoke.texi (Warning Options): Reword description of
32031 -Wno-absolute-value.
32032
32033 2019-02-27 Jakub Jelinek <jakub@redhat.com>
32034
32035 PR tree-optimization/89280
32036 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
32037 builtin_setjmp_setup_bb): New functions.
32038 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
32039 When visiting __builtin_setjmp_setup block, queue in special
32040 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
32041 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
32042 from visited after the loop if they don't have any visited successor
32043 blocks.
32044
32045 2018-02-26 Steve Ellcey <sellcey@marvell.com>
32046
32047 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
32048 New function.
32049 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
32050
32051 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32052
32053 PR c++/89507
32054 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
32055 with types other than sizetype/ssizetype.
32056
32057 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32058
32059 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
32060 (enum sparc_processor_type): ...this.
32061 (enum sparc_code_model_type): New enumeration type.
32062 (enum sparc_memory_model_type): Tweak comments.
32063 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
32064 (mtune): Likewise.
32065 (mcmodel): Use sparc_code_model enumeration and variable.
32066 (sparc_code_model): New enumeration.
32067 (mdebug): Add Undocumented marker.
32068 * config/sparc/sparc.h (enum cmodel): Delete.
32069 (sparc_cmodel): Likewise.
32070 (TARGET_CM_MEDLOW): Adjust to above renaming.
32071 (TARGET_CM_MEDMID): Likewise.
32072 (TARGET_CM_MEDANY): Likewise.
32073 (TARGET_CM_EMBMEDANY): Likewise.
32074 * config/sparc/sparc.c (sparc_cmodel): Delete.
32075 (sparc_option_override): Remove string/value mapping support for the
32076 code model. Move code and memory model support to after the handling
32077 of target flags. Do private machine setup last.
32078 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
32079 (sparc_legitimize_reload_address): Likewise.
32080 (sparc_output_mi_thunk): Likewise.
32081 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
32082
32083 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32084
32085 PR tree-optimization/89500
32086 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
32087 (handle_builtin_strlen): Remove noncst_bound variable. Always
32088 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
32089 cst if the first cst bytes starting at x are known to be non-zero,
32090 even if the string is not zero terminated. Don't try to modify
32091 *si for strnlen. Update strlen_to_stridx only for strlen or if
32092 we can prove strnlen returns the same value as strlen would.
32093
32094 2019-02-26 Martin Liska <mliska@suse.cz>
32095
32096 * alloc-pool.h (struct pool_usage): Remove extra
32097 print_dash_line.
32098 * bitmap.h (struct bitmap_usage): Likewise.
32099 * ggc-common.c (struct ggc_usage): Likewise.
32100 * mem-stats.h (struct mem_usage): Likewise.
32101 (mem_alloc_description::dump): Print dash lines
32102 here and repeat header at the end of a table report.
32103 It's then more readable.
32104 * tree-phinodes.c (phinodes_print_statistics): Make
32105 horizontal alignment.
32106 * tree-ssanames.c (ssanames_print_statistics): Likewise.
32107 * vec.c (struct vec_usage): Remove extra print_dash_line.
32108 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
32109
32110 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
32111
32112 * doc/extend.texi (__builtin_object_size):
32113 Use @pxref instead of @xref inside parenthesis.
32114 (__builtin_has_attribute): Add missing comma after @xref.
32115 (__builtin_object_size): Ditto.
32116 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
32117
32118 2019-02-26 Jeff Law <law@redhat.com>
32119
32120 PR rtl-optimization/87761
32121 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
32122 detect obviously dead insns and delete them.
32123
32124 2019-02-26 Richard Biener <rguenther@suse.de>
32125
32126 PR tree-optimization/89505
32127 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
32128 to handle restrict pointed-to vars with multiple subvars
32129 correctly.
32130
32131 2019-02-26 Richard Biener <rguenther@suse.de>
32132
32133 PR tree-optimization/89489
32134 * tree-parloops.c (create_loop_fn): Copy over last_clique.
32135
32136 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32137
32138 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32139 and move around comment.
32140 <BIT_AND_EXPR>: Likewise.
32141 <BIT_NOT_EXPR>: Add specific handling for boolean types.
32142
32143 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32144
32145 PR target/89474
32146 * config/i386/i386.c (remove_partial_avx_dependency): Call
32147 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32148 after changing possibly many instructions to use that pseudo. Fix up
32149 insertion of v4sf_const0 setter at the start of bb.
32150
32151 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32152
32153 PR c/80409
32154 * doc/extend.texi (Variadic Pointer Args): New section.
32155
32156 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32157 Martin Sebor <msebor@gmail.com>
32158
32159 * common.opt (Wattribute-alias): Likewise.
32160 * doc/invoke.texi (Option Summary): List general form of
32161 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32162 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32163 Add cross-references.
32164 (-Wattribute-alias): Rewrite and correct default. Mention
32165 considered attributes (same as for -Wmissing-attributes).
32166
32167 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32168
32169 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32170 (_mm_cvtpd_ps): Likewise.
32171 (_mm_cvttpd_epi32): Likewise.
32172
32173 PR target/89338
32174 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32175 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32176
32177 PR target/89339
32178 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32179
32180 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32181
32182 PR target/88530
32183 * common/config/aarch64/aarch64-common.c
32184 (struct aarch64_option_extension): Add is_synthetic.
32185 (all_extensions): Use it.
32186 (TARGET_OPTION_INIT_STRUCT): Define hook.
32187 (struct gcc_targetm_common): Moved to end.
32188 (all_extensions_by_on): New.
32189 (opt_ext_cmp, typedef opt_ext): New.
32190 (aarch64_option_init_struct): New.
32191 (aarch64_contains_opt): New.
32192 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32193 * config/aarch64/aarch64-option-extensions.def
32194 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32195 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32196 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32197 Set is_synthetic to false.
32198 (crypto): Set is_synthetic to true.
32199 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32200 SYNTHETIC.
32201
32202 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32203
32204 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32205 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32206 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32207 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32208 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32209 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32210 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32211 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32212 Rename ...
32213 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32214 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32215 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32216 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32217 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32218 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32219 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32220 vfmlsl_laneq_high_f16): ... To this.
32221 * config/arm/neon.md: Update comments.
32222
32223 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32224
32225 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32226 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32227 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32228 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32229 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32230 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32231 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32232 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32233 Rename ...
32234 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32235 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32236 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32237 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32238 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32239 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32240 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32241 vfmlslq_laneq_high_f16): ... To this.
32242
32243 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32244
32245 PR rtl-optimization/86096
32246 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32247 comparing mw_order values.
32248
32249 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32250
32251 PR target/89434
32252 * config/arm/arm.md (*subsi3_carryin_const): Use
32253 arm_neg_immediate_operand predicate instead of
32254 arm_not_immediate_operand, "L" constraint instead of "K" and
32255 print it using %n2 instead of %B2.
32256 (*subsi3_carryin_const0): New define_insn.
32257 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32258 instead of arm_not_operand and "I" constraint instead of "K" and
32259 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32260 another match_operand and in the condition check that it is negation
32261 of operands[2].
32262 (*subsi3_carryin_compare_const0): New define_ins.
32263 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32264 *subsi3_carryin_const.
32265 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32266 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32267
32268 PR target/89438
32269 * config/arm.vfp.md (*negdf2_vfp): Use
32270 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32271 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32272
32273 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32274
32275 PR rtl-optimization/89445
32276 * simplify-rtx.c (simplify_ternary_operation): Don't use
32277 simplify_merge_mask on operands that may trap.
32278 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32279 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32280 second operand is CONST_VECTOR, check if any element could be zero.
32281 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32282 their operands can trap.
32283
32284 2019-02-23 Martin Sebor <msebor@redhat.com>
32285
32286 * gimple-ssa-sprintf.c (target_strtol): Rename...
32287 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32288 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32289 check for range error.
32290
32291 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32292
32293 PR driver/69471
32294 * opts-common.c (prune_options): Also prune joined switches
32295 with Negative and RejectNegative.
32296 * config/i386/i386.opt (march=): Add Negative(march=).
32297 (mtune=): Add Negative(mtune=).
32298 * doc/options.texi: Document Negative used together with Joined
32299 and RejectNegative.
32300
32301 2019-02-22 Martin Sebor <msebor@redhat.com>
32302
32303 * doc/extend.texi (Other Builtins): Add
32304 __builtin_is_constant_evaluated.
32305
32306 2019-02-22 Richard Biener <rguenther@suse.de>
32307
32308 PR tree-optimization/87609
32309 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32310
32311 2019-02-22 Jeff Law <law@redhat.com>
32312
32313 PR rtl-optimization/87761
32314 * config/mips/mips.md: Add new combiner pattern to recognize
32315 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32316
32317 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32318
32319 PR target/89324
32320 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32321 destination register in peepholes generating patterns for ADDS/SUBS.
32322 (add<mode>3_compare0,
32323 *addsi3_compare0_uxtw, add<mode>3_compareC,
32324 add<mode>3_compareV_imm, add<mode>3_compareV,
32325 *adds_<optab><ALLX:mode>_<GPI:mode>,
32326 *subs_<optab><ALLX:mode>_<GPI:mode>,
32327 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32328 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32329 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32330 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32331 sub<mode>3_compare1): Allow stack pointer for source register.
32332 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32333
32334 2019-02-22 Martin Sebor <msebor@redhat.com>
32335
32336 PR tree-optimization/88993
32337 PR tree-optimization/88853
32338 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32339 New helper.
32340 (sprintf_dom_walker::call_info::is_string_func): New helper.
32341 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32342 for formatted string functions.
32343 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32344
32345 2019-02-22 Martin Sebor <msebor@redhat.com>
32346
32347 PR c/89425
32348 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32349 unreachable subexpressions.
32350
32351 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32352 Hongtao Liu <hongtao.liu@intel.com>
32353 Sunil K Pandey <sunil.k.pandey@intel.com>
32354
32355 PR target/87007
32356 * config/i386/i386-passes.def: Add
32357 pass_remove_partial_avx_dependency.
32358 * config/i386/i386-protos.h
32359 (make_pass_remove_partial_avx_dependency): New.
32360 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32361 New function.
32362 (pass_data_remove_partial_avx_dependency): New.
32363 (pass_remove_partial_avx_dependency): Likewise.
32364 (make_pass_remove_partial_avx_dependency): Likewise.
32365 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32366 (*extendsfdf2): Add avx_partial_xmm_update.
32367 (truncdfsf2): Likewise.
32368 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32369 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32370
32371 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32372
32373 PR middle-end/85598
32374 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32375 analysis for pass.
32376
32377 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32378
32379 PR target/89444
32380 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32381 (PTA_SKYLAKE): Add PTA_AES.
32382 (PTA_GOLDMONT): Likewise.
32383
32384 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32385
32386 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32387 instruction if enabled.
32388 (aarch64_override_options): Remove reference to return address key.
32389
32390 2019-02-22 Richard Biener <rguenther@suse.de>
32391
32392 PR tree-optimization/89440
32393 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32394 not necessary assert.
32395
32396 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32397
32398 PR fortran/72741
32399 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32400 (oacc_replace_fn_attrib_attr): ... this new function.
32401 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32402 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32403
32404 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32405
32406 * config/arm/arm-cpus.in (ares): Rename to...
32407 (neoverse-n1): ... This. Add ares as alias.
32408 * config/arm/arm-tables.opt: Regenerate.
32409 * config/arm/arm-tune.md: Likewise.
32410 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32411
32412 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32413
32414 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32415 * config/aarch64/aarch64-tune.md: Regenerate.
32416 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32417
32418 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32419
32420 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32421 (neoversen1_tunings): ... This.
32422 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32423 (neoverse-n1): New CPU.
32424 * config/aarch64/aarch64-tune.md: Regenerate.
32425 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32426
32427 2019-02-22 Richard Biener <rguenther@suse.de>
32428
32429 PR middle-end/87609
32430 * cfghooks.h (dependence_hash): New typedef.
32431 (struct copy_bb_data): New type.
32432 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32433 (duplicate_block): Likewise.
32434 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32435 (copy_bbs): Create and pass down copy_bb_data.
32436 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32437 (rtl_duplicate_bb): Likewise.
32438 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32439 remap dependence info.
32440
32441 2019-02-22 Richard Biener <rguenther@suse.de>
32442
32443 PR tree-optimization/87609
32444 * tree-core.h (tree_base): Document special clique values.
32445 * tree-inline.c (remap_dependence_clique): Do not use the
32446 special clique value of one.
32447 (maybe_set_dependence_info): Use clique one.
32448 (clear_dependence_clique): New callback.
32449 (compute_dependence_clique): Clear clique one from all refs
32450 before assigning it (again).
32451
32452 2019-02-21 Martin Sebor <msebor@redhat.com>
32453
32454 * doc/extend.texi (__clear_cache): Correct signature.
32455
32456 2019-02-21 Ian Lance Taylor <iant@golang.org>
32457
32458 PR go/89170
32459 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32460 than output_constant_def.
32461 (add_constant_to_table): New static function.
32462 (output_constant_def): Call add_constant_to_table.
32463 (tree_output_constant_def): Likewise.
32464
32465 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32466
32467 PR c++/89285
32468 * builtins.c (fold_builtin_arith_overflow): If first two args are
32469 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32470 to ifn.
32471
32472 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32473
32474 PR target/87412
32475 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32476 error for -mindirect-branch/-mfunction-return with incompatible
32477 -fcf-protection.
32478
32479 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32480
32481 PR bootstrap/88714
32482 * constraints.md (q): Remove.
32483 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32484 instead of q.
32485
32486 2019-02-21 Martin Jambor <mjambor@suse.cz>
32487
32488 PR hsa/89302
32489 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32490 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32491 (omp_adjust_for_condition): ...here. Added necessary parameters.
32492 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32493 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32494 proper values to new parameters of omp_adjust_for_condition.
32495
32496 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32497
32498 PR middle-end/89412
32499 * expr.c (expand_assignment): If result is a MEM, use change_address
32500 instead of simplify_gen_subreg.
32501
32502 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32503 David Malcolm <dmalcolm@redhat.com>
32504
32505 PR middle-end/89091
32506 * fold-const.c (decode_field_reference): Return NULL_TREE if
32507 lang_hooks.types.type_for_size returns NULL. Check it before
32508 overwriting *exp_. Use return NULL_TREE instead of return 0.
32509
32510 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32511
32512 PR middle-end/88074
32513 PR middle-end/89415
32514 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32515 buggy mpc_norm.
32516
32517 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32518
32519 PR target/89397
32520 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32521 TARGET_SSE in addition to TARGET_SSE_MATH.
32522
32523 (ix86_excess_precision): Ditto.
32524 (ix86_float_exceptions_rounding_supported_p): Ditto.
32525 (use_rsqrt_p): Ditto.
32526 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32527
32528 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32529
32530 PR c/89410
32531 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32532 linenum_arith_t when determining if two adjacent line spans are
32533 close enough to merge.
32534 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32535 lines within each line_span.
32536
32537 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32538
32539 PR target/86487
32540 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32541 paradoxical SUBREGS.
32542
32543 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32544
32545 PR target/88100
32546 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32547 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32548 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32549 range checking it.
32550
32551 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32552
32553 * config/gcn/gcn.c (print_operand): Fix typo.
32554
32555 2019-02-19 Richard Biener <rguenther@suse.de>
32556
32557 PR middle-end/88074
32558 * toplev.c (do_compile): Initialize mpfr's exponent range
32559 based on available float modes.
32560
32561 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32562
32563 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32564 as long as the epilogue isn't completed.
32565
32566 2019-02-18 Martin Sebor <msebor@redhat.com>
32567
32568 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32569 __has_cpp_attribute, and __has_include.
32570
32571 2019-02-18 Martin Sebor <msebor@redhat.com>
32572
32573 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32574
32575 2019-02-18 Martin Sebor <msebor@redhat.com>
32576
32577 PR middle-end/89294
32578 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32579 expression.
32580 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32581
32582 2019-02-18 Richard Biener <rguenther@suse.de>
32583
32584 PR tree-optimization/89296
32585 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32586 of no-warning flag to cases that might emit the bogus warning.
32587
32588 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32589
32590 PR bootstrap/88714
32591 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32592 "q" constraint.
32593 * config/arm/vfp.md (*movdi_vfp): Likewise.
32594 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32595 "q" constraint for operands[0].
32596
32597 PR target/89369
32598 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32599 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32600 pattern in a temporary buffer.
32601 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32602 than 64-operands[2].
32603
32604 PR target/89361
32605 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32606 s390_indirect_branch_settings): Define unconditionally.
32607 (s390_set_current_function): Likewise, but guard the whole body except
32608 the s390_indirect_branch_settings call with
32609 #if S390_USE_TARGET_ATTRIBUTE.
32610 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32611
32612 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32613 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32614 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32615 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32616 HOST_WIDE_INT_1U instead of 1ULL.
32617 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32618 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32619 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32620 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32621 instead of 1UL.
32622 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32623 instead of 1ul.
32624
32625 2019-02-18 Martin Jambor <mjambor@suse.cz>
32626
32627 PR tree-optimization/89209
32628 * tree-sra.c (create_access_replacement): New optional parameter
32629 reg_tree. Use it as a type if non-NULL and access type is not of
32630 a register type.
32631 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32632 to create_access_replacement.
32633 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32634 Check lacc is non-NULL before attempting to re-create it on the RHS.
32635
32636 2019-02-18 Martin Liska <mliska@suse.cz>
32637
32638 PR ipa/89306
32639 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32640 by default.
32641 (symbol_table::free_edge): Recycle m_summary_id.
32642 * cgraph.h (get_summary_id): New.
32643 (symbol_table::release_symbol): Set m_summary_id to -1
32644 by default.
32645 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32646 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32647 function_summary to fast_function_summary.
32648 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32649 * ipa-pure-const.c (class funct_state_summary_t):
32650 Switch from function_summary to fast_function_summary.
32651 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32652 (class ipa_ref_opt_summary_t): Switch from function_summary
32653 to fast_function_summary.
32654 * symbol-summary.h (class function_summary_base): New class
32655 that is created from base of former function_summary.
32656 (function_summary_base::unregister_hooks): New.
32657 (class function_summary): Inherit from function_summary_base.
32658 (class call_summary_base): New class
32659 that is created from base of former call_summary.
32660 (class call_summary): Inherit from call_summary_base.
32661 (struct is_same): New.
32662 (class fast_function_summary): New summary class.
32663 (class fast_call_summary): New summary class.
32664 * vec.h (vec_safe_grow_cleared): New function.
32665
32666 2019-02-18 Martin Liska <mliska@suse.cz>
32667
32668 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32669 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32670 * doc/tm.texi: Document new target hook.
32671 * doc/tm.texi.in: Likewise.
32672 * target.def: Add new target macro.
32673 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32674 suffixes.
32675
32676 2019-02-17 Alan Modra <amodra@gmail.com>
32677
32678 PR target/89271
32679 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32680 output reg on add insn.
32681 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32682
32683 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32684
32685 PR target/89372
32686 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32687 (PMULHRSW): Likewise.
32688 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32689 TARGET_AVX2.
32690 (ssse3_pmulhrswv4hi3): New expander.
32691
32692 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32693
32694 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32695 MMX. Add isa attribute.
32696
32697 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32698
32699 PR rtl-optimization/66152
32700 * builtins.h (c_readstr): Declare.
32701 * builtins.c (c_readstr): Remove forward declaration. Add
32702 null_terminated_p argument, if false, read all bytes from the
32703 string instead of stopping after '\0'.
32704 * expr.c (string_cst_read_str): New function.
32705 (store_expr): Use string_cst_read_str instead of
32706 builtin_strncpy_read_str. Try to store by pieces the whole
32707 exp_len first, and only if that fails, split it up into
32708 store by pieces followed by clear_storage. Formatting fix.
32709
32710 * config/i386/i386.md (*movqi_internal): Remove static from
32711 buf variable. Use output_asm_insn (buf, operands); return "";
32712 instead of return buf;.
32713 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32714 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32715 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32716
32717 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32718
32719 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32720 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32721 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32722 (CC1_SPEC): Likewise.
32723 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32724
32725 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32726
32727 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32728 the base address on 64-bit strict-alignment platforms.
32729
32730 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32731
32732 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32733
32734 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32735
32736 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32737
32738 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32739
32740 PR rtl-optimization/88308
32741 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32742 on copied instruction.
32743
32744 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32745
32746 * final.c (insn_current_reference_address): Replace test on JUMP_P
32747 with test on jump_to_label_p.
32748 * config/visium/visium-passes.def: New file.
32749 * config/visium/t-visium (PASSES_EXTRA): Define.
32750 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32751 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32752 (TRAMPOLINE_ALIGNMENT): Define.
32753 * config/visium/visium.c (visium_option_override): Do not register
32754 the machine-specific reorg pass here.
32755 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32756 for the GR6.
32757 (output_branch): Adjust threshold for long branch instruction.
32758 * config/visium/visium.md (cpu): Move around.
32759 (length): Adjust for the GR6.
32760
32761 2019-02-15 Richard Biener <rguenther@suse.de>
32762 Jakub Jelinek <jakub@redhat.com>
32763
32764 PR tree-optimization/89278
32765 * tree-loop-distribution.c: Include tree-eh.h.
32766 (generate_memset_builtin, generate_memcpy_builtin): Call
32767 rewrite_to_non_trapping_overflow on builtin->size before passing it
32768 to force_gimple_operand_gsi.
32769
32770 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32771
32772 PR other/89342
32773 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32774 optimize_debug.
32775 * opth-gen.awk: Likewise.
32776
32777 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32778
32779 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32780 Enable MMX, SSE and SSE2 by default.
32781 * config/i386/i386.c (ix86_option_override_internal): Do not
32782 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32783
32784 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32785
32786 PR rtl-optimization/89354
32787 * combine.c (make_extraction): Punt if extraction_mode is narrower
32788 than len bits.
32789
32790 2019-02-14 Maya Rashish <coypu@sdf.org>
32791
32792 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32793 * config/netbsd-d.c: New file.
32794 * config/t-netbsd: Add netbsd-d.o
32795
32796 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32797
32798 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32799 affects_type_identity to true for aarch64_vector_pcs.
32800 (aarch64_comp_type_attributes): New function.
32801 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32802
32803 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32804
32805 PR target/88850
32806 * config/arm/iterators.md (ANY64): Add V4HF.
32807
32808 2019-02-14 Martin Liska <mliska@suse.cz>
32809
32810 PR rtl-optimization/89242
32811 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32812 process a transformation.
32813
32814 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32815
32816 PR tree-optimization/89314
32817 * fold-const.c (fold_binary_loc): Cast strlen argument to
32818 const char * before dereferencing it. Formatting fixes.
32819
32820 PR middle-end/89284
32821 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32822
32823 2019-02-13 Ian Lance Taylor <iant@golang.org>
32824
32825 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32826 and set current index for other optimizations.
32827
32828 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32829
32830 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32831 nonimmediate_operand as operand 2 predicate.
32832 (vec_set<VF2_512_256:mode>_0): Ditto.
32833 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32834 (*vec_concatv2si): Remove alternative 2.
32835 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32836 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32837 (vec_concatv2di): Split alternatives 4,5,6 to ...
32838 (*vec_concatv2di_0) ... new pattern.
32839
32840 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32841
32842 PR target/89190
32843 * config/arm/arm.c (ldm_stm_operation_p) Set
32844 addr_reg_in_reglist correctly for first register.
32845 (load_multiple_sequence): Remove dead base check.
32846 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32847
32848 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32849
32850 PR target/88847
32851 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32852 Expose as @aarch64_pred_mov.
32853 * config/aarch64/aarch64.c (aarch64_classify_address):
32854 Use expand_insn which legitimizes operands.
32855
32856 2019-02-13 Martin Liska <mliska@suse.cz>
32857
32858 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32859 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32860 and pointer_offset fields.
32861 (initialize_argument_information): Remove usage of dead
32862 fields.
32863 * cgraph.h (struct cgraph_thunk_info): Remove
32864 add_pointer_bounds_args.
32865 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32866 fields.
32867 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32868 fields.
32869 * config/i386/i386.c (ix86_function_arg_advance): Remove
32870 unrelated comment.
32871 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32872 (def_builtin): Remove usage of dead fields.
32873 (ix86_add_new_builtins): Likewise.
32874 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32875 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32876 (sem_function::init): Likewise.
32877 (sem_variable::merge): Likewise.
32878 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32879 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32880 * lto-cgraph.c (lto_output_node): Likewise.
32881 (lto_output_varpool_node): Likewise.
32882 (input_node): Likewise.
32883 (input_varpool_node): Likewise.
32884 * lto-streamer-out.c (lto_output): Likewise.
32885 * tree-inline.c (expand_call_inline): Remove usage of
32886 assign_stmts.
32887 * tree-inline.h (struct copy_body_data): Likewise.
32888 * varpool.c (varpool_node::dump): Likewise.
32889
32890 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32891
32892 PR middle-end/89303
32893 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32894 into pt->vars_contains_escaped_heap instead of setting
32895 pt->vars_contains_escaped_heap to it.
32896
32897 PR middle-end/89281
32898 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32899 INTVAL (size), compare it to GET_MODE_MASK instead of
32900 1 << GET_MODE_BITSIZE.
32901
32902 PR target/89290
32903 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32904 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32905 -mcmodel=large.
32906
32907 2019-02-13 Martin Liska <mliska@suse.cz>
32908
32909 PR lto/88858
32910 * cfgrtl.c (remove_barriers_from_footer): New function.
32911 (try_redirect_by_replacing_jump): Use it.
32912 (cfg_layout_redirect_edge_and_branch): Likewise.
32913
32914 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32915
32916 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32917 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32918 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32919 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32920 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32921 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32922 New BU_CRYPTO_2.
32923 * config/rs6000/rs6000.c (builtin_function_type)
32924 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32925 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32926 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32927 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32928 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32929
32930 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32931
32932 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32933 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32934
32935 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32936
32937 PR target/89229
32938 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32939 268678 and revision 268657.
32940 (*movti_internal): Likewise.
32941
32942 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32943
32944 PR target/89233
32945 * config/s390/s390.c (s390_decompose_address): Update comment.
32946 (s390_check_qrst_address): Reject invalid address forms after
32947 LRA.
32948
32949 2019-02-12 Martin Liska <mliska@suse.cz>
32950
32951 PR lto/88876
32952 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32953 we need default values of funct_state for a function that
32954 is not optimized.
32955
32956 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32957
32958 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32959 the object to pick the size of stores on strict-alignment platforms.
32960
32961 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32962 (*movdi_insn_sp32): Likewise.
32963 (*movdi_insn_sp64): Likewise.
32964
32965 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32966
32967 PR lto/88677
32968 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32969 types that needs constructiong.
32970 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32971
32972 2019-02-12 Richard Biener <rguenther@suse.de>
32973
32974 PR tree-optimization/89253
32975 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32976 duplicate the loop.
32977
32978 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32979
32980 PR lto/88147
32981 * input.c (selftest::test_line_offset_overflow): New selftest.
32982 (selftest::input_c_tests): Call it.
32983
32984 2019-02-11 Martin Sebor <msebor@redhat.com>
32985
32986 PR tree-optimization/88771
32987 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32988 when -Wstringop-overflow is set.
32989 (builtin_memref::builtin_memref): Adjust excessive upper bound
32990 only when lower bound is not excessive.
32991 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32992 -Wstringop-ovefflow.
32993 (maybe_diag_offset_bounds): Rename...
32994 (maybe_diag_access_bounds): ...to this.
32995 (check_bounds_or_overlap): Adjust for name change above.
32996
32997 2019-02-11 Martin Sebor <msebor@redhat.com>
32998
32999 PR c++/87996
33000 * builtins.c (max_object_size): Move from here...
33001 * builtins.h (max_object_size): ...and here...
33002 * tree.c (max_object_size): ...to here...
33003 * tree.h (max_object_size): ...and here.
33004
33005 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
33006
33007 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
33008 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
33009 for correct semantics.
33010
33011 2019-02-11 Alan Modra <amodra@gmail.com>
33012
33013 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
33014 -mlongcall and -mpltseq.
33015 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
33016 (RS/6000 and PowerPC Options <-mpltseq>): Document.
33017 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
33018 * config/rs6000/sysv4.opt (mpltseq): New option.
33019 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
33020 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
33021 support is lacking. Don't allow -mpltseq with -mbss-plt.
33022 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
33023 -mpltseq given for ELFv1.
33024 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
33025 Only use UNSPEC_PLTSEQ for inline PLT calls.
33026 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
33027 use UNSPEC_PLTSEQ for inline PLT calls.
33028 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
33029 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
33030 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
33031 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33032 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33033 (pltseq_mtctr_<mode>): Likewise.
33034
33035 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33036
33037 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
33038 Solaris ld.
33039 * configure: Regenerate.
33040
33041 2019-02-11 Jakub Jelinek <jakub@redhat.com>
33042
33043 PR bootstrap/88714
33044 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
33045 instead of r.
33046
33047 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33048
33049 * function.c (assign_parm_setup_block): Use the stored
33050 size, not the passed size, when allocating stack-space,
33051 also for a parameter with alignment larger than
33052 MAX_SUPPORTED_STACK_ALIGNMENT.
33053
33054 2019-02-11 Martin Liska <mliska@suse.cz>
33055
33056 PR ipa/89009
33057 * ipa-cp.c (build_toporder_info): Remove usage of a param.
33058 * ipa-inline.c (inline_small_functions): Likewise.
33059 * ipa-pure-const.c (propagate_pure_const): Likewise.
33060 (propagate_nothrow): Likewise.
33061 * ipa-reference.c (propagate): Likewise.
33062 * ipa-utils.c (struct searchc_env): Remove unused field.
33063 (searchc): Always search across AVAIL_INTERPOSABLE.
33064 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
33065 the only called IPA pure const can properly not propagate
33066 across interposable boundary.
33067 * ipa-utils.h (ipa_reduced_postorder): Remove param.
33068
33069 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
33070
33071 * config/nds32/nds32.md (call_internal, call_value_internal,
33072 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
33073
33074 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
33075
33076 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
33077 typo.
33078
33079 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
33080
33081 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
33082 in comments
33083
33084 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33085
33086 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
33087
33088 2019-02-10 Jakub Jelinek <jakub@redhat.com>
33089
33090 PR tree-optimization/89268
33091 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
33092 if preds is non-NULL.
33093
33094 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33095
33096 PR lto/89272
33097 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
33098 polymorphic types.
33099
33100 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33101
33102 * config/nds32/nds32.md (trap): New pattern.
33103
33104 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
33105
33106 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
33107 dwarf span.
33108
33109 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
33110
33111 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
33112 to split POST_INC.
33113
33114 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33115
33116 * ipa-visibility.c (localize_node): Also do not localize
33117 LDPR_PREVAILING_DEF_IRONLY_EXP.
33118
33119 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33120
33121 PR lto/87957
33122 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
33123 instead of type_with_linkage.
33124
33125 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
33126
33127 PR ipa/88755
33128 * params.def (uninlined-function-insns, uninlined-function-time,
33129 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
33130 bound so we don't get overflows.
33131
33132 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
33133
33134 * config/rs6000/rs6000-string.c (expand_compare_loop,
33135 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33136 memcmp/strncmp.
33137
33138 2019-02-09 Jakub Jelinek <jakub@redhat.com>
33139
33140 PR middle-end/89246
33141 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33142 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33143 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33144
33145 2019-02-09 Alan Modra <amodra@gmail.com>
33146
33147 PR target/88343
33148 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33149 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
33150 setup.
33151
33152 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
33153
33154 PR middle-end/88560
33155 * lra-constraints.c (process_alt_operands): Don't increase reject
33156 for memory when offset memory is required.
33157
33158 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33159
33160 * config/s390/vector.md: Implement vector copysign.
33161
33162 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33163
33164 * expr.c (expand_constructor): Correct indentations.
33165
33166 2019-02-08 Richard Biener <rguenther@suse.de>
33167
33168 PR tree-optimization/89247
33169 * tree-if-conv.c: Include tree-cfgcleanup.h.
33170 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33171 (tree_if_conversion): Pass through predicate vector.
33172 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33173 inline, see if any if-converted loops we refrece in
33174 LOOP_VECTORIZED calls vanished and fixup.
33175 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33176
33177 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33178
33179 * config/s390/constraints.md (jdd): New constraint.
33180
33181 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33182
33183 PR target/89229
33184 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33185 upper 16 vector registers without TARGET_AVX512VL.
33186 (*movti_internal): Likewise.
33187
33188 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33189
33190 PR rtl-optimization/89234
33191 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33192 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33193 (copy_reg_eh_region_note_backward): Likewise.
33194
33195 2019-02-08 Richard Biener <rguenther@suse.de>
33196
33197 PR middle-end/89223
33198 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33199 doesn't fit in HWI.
33200 (analyze_subscript_affine_affine): Handle failure from
33201 initialize_matrix_A.
33202
33203 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33204
33205 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33206 cfun everywhere.
33207
33208 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33209
33210 PR tree-optimization/86637
33211 PR tree-optimization/89235
33212 * tree-vect-loop.c (optimize_mask_stores): Add an
33213 auto_purge_vect_location sentinel to ensure that vect_location is
33214 purged on exit.
33215 * tree-vectorizer.c
33216 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33217 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33218 to ensure that vect_location is purged on exit.
33219 (pass_slp_vectorize::execute): Likewise, replacing the manual
33220 reset.
33221 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33222
33223 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33224
33225 * config/aarch64/iterators.md (max_opp): New code_attr.
33226 (USMAX): New code iterator.
33227 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33228 (aarch64_smax): Likewise.
33229 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33230 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33231 MINUS (MAX MIN).
33232
33233 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33234
33235 PR target/89229
33236 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33237 for TARGET_AVX512VL.
33238 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33239
33240 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33241
33242 * config/s390/s390-builtin-types.def: Add new types.
33243 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33244 (s390_vec_xlw4): Make the memory operand into a const pointer.
33245 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33246 float.
33247 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33248 a new vector type with the alignment of the scalar memory operand.
33249
33250 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33251 Jakub Jelinek <jakub@redhat.com>
33252
33253 PR bootstrap/88714
33254 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33255 arm_count_ldrdstrd_insns): New declarations.
33256 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33257 MINUS.
33258 (valid_operands_ldrd_strd): New function.
33259 (arm_count_ldrdstrd_insns): New function.
33260 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33261 sets instead of single DImode set and define new insns to match this.
33262
33263 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33264
33265 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33266 Make it a C initializer.
33267
33268 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33269
33270 PR/target 88850
33271 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33272
33273 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33274
33275 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33276 Use neon_dot<q> for type.
33277 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33278
33279 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33280
33281 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33282 Use neon_dot<q> for type.
33283 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33284 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33285
33286 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33287
33288 PR rtl-optimization/89225
33289 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33290 sizes check.
33291
33292 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33293
33294 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33295 after restoring registers saved to allocate the frame on Windows.
33296
33297 2019-02-06 Richard Biener <rguenther@suse.de>
33298
33299 PR tree-optimization/89182
33300 * graphite.h (cached_scalar_evolution_in_region): Declare.
33301 * graphite.c (struct seir_cache_key): New.
33302 (struct sese_scev_hash): Likewise.
33303 (seir_cache): New global.
33304 (cached_scalar_evolution_in_region): New function.
33305 (graphite_transform_loops): Allocate and release seir_cache.
33306 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33307 cached_scalar_evolution_in_region.
33308 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33309 Simplify.
33310 (scop_detection::graphite_can_represent_expr: Use
33311 cached_scalar_evolution_in_region.
33312 (scop_detection::stmt_simple_for_scop_p): Likewise.
33313 (find_params_in_bb): Likewise.
33314 (gather_bbs::before_dom_children): Likewise.
33315 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33316 (add_loop_constraints): Likewise.
33317
33318 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33319
33320 PR middle-end/89210
33321 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33322 operand to new_unary_operation only if both element types are integral
33323 and it isn't a widening conversion. Return NULL_TREE if
33324 new_unary_operation failed.
33325
33326 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33327
33328 PR target/88856
33329 * config/s390/s390.md: Remove load and test FP splitter.
33330
33331 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33332
33333 PR target/89112
33334 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33335 expand_compare_loop, expand_block_compare_gpr,
33336 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33337 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33338 #include "profile-count.h" and "predict.h" for types and functions
33339 needed to work with REG_BR_PROB notes.
33340
33341 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33342
33343 PR target/89112
33344 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33345 for the long branch case.
33346
33347 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33348
33349 PR target/89188
33350 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33351 can throw, non-call exceptions are enabled and we can't delete
33352 dead exceptions or alter cfg. Set must_clean if
33353 delete_insn_and_edges returns true, don't set it blindly for calls.
33354 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33355
33356 PR rtl-optimization/89195
33357 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33358 of the original MEM.
33359
33360 2019-02-05 Martin Liska <mliska@suse.cz>
33361
33362 PR gcov-profile/89000
33363 * gcov.c (function_summary): Remove argument.
33364 (file_summary): New function.
33365 (print_usage): Replace tabs with spaces.
33366 (generate_results): Use new function file_summary.
33367
33368 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33369
33370 PR target/89186
33371 * optabs.c (prepare_cmp_insn): Pass x and y to
33372 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33373
33374 2019-02-05 Richard Biener <rguenther@suse.de>
33375
33376 PR middle-end/89150
33377 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33378 (struct bitmap_element): Drop chain_prev so we properly recurse on
33379 the prev member, supporting tree views.
33380 (struct bitmap_head): GTY skip the obstack member.
33381
33382 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33383
33384 PR c/88698
33385 * doc/extend.texi (Vector Extensions): Add an example of using vector
33386 types together with x86 intrinsics.
33387
33388 2019-02-04 Alan Modra <amodra@gmail.com>
33389
33390 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33391 str[] size to 160, and comment.
33392
33393 2019-02-04 Alan Modra <amodra@gmail.com>
33394
33395 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33396 (rs6000_pltseq_template): Guard output of TLS markers with
33397 TARGET_TLS_MARKERS.
33398 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33399 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33400 to use inline PLT sequences.
33401 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33402 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33403 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33404
33405 2019-02-04 Martin Liska <mliska@suse.cz>
33406
33407 PR ipa/88985
33408 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33409 out when ipa_fn_summaries does not contain entry for callee.
33410
33411 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33412
33413 * config/sparc/sparc.h: Remove superfluous blank lines.
33414 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33415 (got_register_rtx): ...this.
33416 (sparc_got): Adjust to above renaming.
33417 (sparc_tls_got): Likewise.
33418 (sparc_delegitimize_address): Likewise.
33419 (sparc_output_mi_thunk): Likewise.
33420 (sparc_init_pic_reg): Likewise.
33421 (save_local_or_in_reg_p): Fix test on the GOT register.
33422 (USE_HIDDEN_LINKONCE): Move around.
33423 (get_pc_thunk_name): Likewise.
33424 (gen_load_pcrel_sym): Likewise.
33425 (load_got_register): Likewise.
33426
33427 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33428
33429 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33430 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33431
33432 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33433
33434 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33435 into consideration.
33436
33437 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33438
33439 * config.gcc (with_nds32_lib, glibc):
33440 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33441 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33442 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33443
33444 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33445
33446 PR target/89071
33447 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33448 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33449 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33450 (*rcpsf2_sse): Ditto.
33451 (*rsqrtsf2_sse): Ditto.
33452 (sse4_1_round<mode<2): Ditto.
33453
33454 2019-02-03 Richard Biener <rguenther@suse.de>
33455
33456 PR debug/87295
33457 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33458 orig.
33459
33460 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33461
33462 PR middle-end/87887
33463 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33464 Punt with warning on aggregate return or argument types. Ignore
33465 type/mode checking for uniform arguments.
33466
33467 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33468
33469 * combine.c (try_combine): Do not print "Can't combine" messages unless
33470 printing failed combination attempts.
33471
33472 2019-02-01 Martin Jambor <mjambor@suse.cz>
33473
33474 PR hsa/87863
33475 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33476 segment and global segment variables before making them static.
33477
33478 2019-02-01 Martin Jambor <mjambor@suse.cz>
33479
33480 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33481 missed optimization dump with dump_enabled_p.
33482
33483 2019-02-01 Richard Biener <rguenther@suse.de>
33484
33485 PR middle-end/88597
33486 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33487 the instantiate cache.
33488 (instantiate_scev_binary): Elide second operand procesing
33489 if equal to the first.
33490 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33491 (chrec_contains_undetermined): Likewise.
33492 (tree_contains_chrecs): Likewise.
33493
33494 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33495
33496 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33497
33498 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33499
33500 PR tree-optimization/89143
33501 * wide-int-range.h (wide_int_range_absu): Declare.
33502 * wide-int-range.cc (wide_int_range_absu): New function.
33503 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33504
33505 PR tree-optimization/88107
33506 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33507 instead of assertion that eh_region_outermost is non-NULL, if it
33508 is NULL, set *ALL to true and return NULL.
33509 (move_sese_region_to_fn): Adjust caller, if all is set, call
33510 duplicate_eh_regions with NULL region.
33511
33512 2019-02-01 Richard Biener <rguenth@suse.de>
33513
33514 PR rtl-optimization/88593
33515 * mode-switching.c (optimize_mode_switching): Free dominators before
33516 calling cleanup_cfg.
33517
33518 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33519
33520 PR tree-optimization/88932
33521 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33522
33523 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33524
33525 PR middle-end/89137
33526 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33527 bogus clang warning.
33528
33529 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33530
33531 PR target/89071
33532 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33533 alternative to avoid partial SSE register stall for TARGET_AVX.
33534 (truncdfsf2): Ditto.
33535 (sse4_1_round<mode>2): Ditto.
33536
33537 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33538
33539 PR tree-optimization/89008
33540 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33541 process anything of the form X * 0.
33542
33543 2019-01-31 Richard Biener <rguenther@suse.de>
33544
33545 PR tree-optimization/89135
33546 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33547 with abnormal preds.
33548
33549 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33550
33551 PR sanitizer/89124
33552 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33553 always_inline callees into no_sanitize_address callers.
33554
33555 2019-01-31 Richard Biener <rguenther@suse.de>
33556
33557 PR rtl-optimization/89115
33558 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33559
33560 2019-01-30 Martin Sebor <msebor@redhat.com>
33561
33562 PR other/89106
33563 * doc/extend.texi (cast to a union): Correct and expand.
33564
33565 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33566
33567 PR rtl-optimization/87246
33568 * lra-constraints.c (simplify_operand_subreg): Reload memory
33569 in subreg if the address became invalid.
33570
33571 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33572
33573 PR target/87064
33574 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33575 Disable for little-endian.
33576
33577 2019-01-30 Richard Biener <rguenther@suse.de>
33578
33579 PR rtl-optimization/89115
33580 * opts.c (default_options_optimization): Reduce
33581 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33582 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33583 to the default.
33584
33585 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33586
33587 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33588 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33589 type of vector element when vec_extract is implemented by direct
33590 move.
33591
33592 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33593
33594 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33595
33596 2019-01-30 Richard Biener <rguenther@suse.de>
33597
33598 PR tree-optimization/89111
33599 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33600 canonicalization to appropriately sized access types.
33601
33602 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33603
33604 PR c++/89105
33605 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33606 for arguments to functions that are TU-local and shouldn't be
33607 referenced by assembly.
33608
33609 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33610
33611 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33612 after '='.
33613
33614 2019-01-29 Martin Sebor <msebor@redhat.com>
33615
33616 PR c/88956
33617 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33618
33619 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33620
33621 PR c++/66676
33622 PR ipa/89104
33623 * omp-simd-clone.c (simd_clone_clauses_extract)
33624 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33625 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33626
33627 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33628
33629 * config.gcc: Force .init_array for ARC.
33630
33631 2019-01-29 Richard Biener <rguenther@suse.de>
33632
33633 PR debug/87295
33634 * dwarf2out.c (collect_skeleton_dies): New helper.
33635 (copy_decls_for_unworthy_types): Call it.
33636 (build_abbrev_table): Assert we do not try to replace
33637 DW_AT_signature refs with local refs.
33638
33639 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33640
33641 PR middle-end/89002
33642 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33643 for lastprivate/linear IV, push gimplify context around gimplify_assign
33644 and, if it needed any temporaries, pop it into a gimple bind around the
33645 sequence.
33646
33647 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33648
33649 * common.opt (-Wattribute-alias): Remove "no-" from name.
33650 Make -Wattribute-alias command line option and
33651 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33652
33653 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33654
33655 PR target/89073
33656 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33657 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33658 x86 ISA options.
33659 (bmi2): Add missing @opindex.
33660 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33661 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33662 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33663 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33664 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33665 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33666 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33667 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33668 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33669 xsavec, xsaveopt and xsaves options.
33670
33671 2019-01-28 Richard Biener <rguenther@suse.de>
33672
33673 PR debug/89076
33674 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33675 support removal.
33676
33677 2019-01-28 Richard Biener <rguenther@suse.de>
33678
33679 PR tree-optimization/88739
33680 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33681 BIT_FIELD_REFs only are applied to mode-precision operands
33682 when they are integral.
33683 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33684 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33685 BIT_FIELD_REFs of non-mode-precision integral operands.
33686
33687 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33688
33689 PR target/87214
33690 * config/i386/sse.md
33691 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33692 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33693 first constants in pairs are multiples of 2. Formatting fixes.
33694 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33695 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33696 first constants in each quadruple are multiples of 4. Formatting fixes.
33697
33698 2019-01-26 Martin Jambor <mjambor@suse.cz>
33699
33700 PR ipa/88933
33701 * tree-inline.c: Include tree-cfgcleanup.h.
33702 (delete_unreachable_blocks_update_callgraph): Move...
33703 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33704 ...here, make externally visible, make second argument bool, adjust
33705 all callers.
33706 * tree-cfgcleanup.c: Include cgraph.h.
33707 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33708 Declare.
33709 * ipa-prop.c: Include tree-cfgcleanup.h.
33710 (ipcp_transform_function): Call
33711 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33712
33713 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33714
33715 PR rtl-optimization/88846
33716 * ira.c (process_set_for_memref_referenced_p): New.
33717 (memref_referenced_p): Add new param. Use
33718 process_set_for_memref_referenced_p. Add new switch cases.
33719 (memref_used_between_p): Pass new arg to memref_referenced_p.
33720
33721 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33722
33723 PR target/88469
33724 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33725 argument ABI_BREAK. Set to true if the calculated alignment has
33726 changed in gcc-9. Check bit-fields for their base type alignment.
33727 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33728 (aarch64_function_arg_boundary): Likewise.
33729 (aarch64_gimplify_va_arg_expr): Likewise.
33730
33731 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33732
33733 PR middle-end/89037
33734 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33735 instead of accessing TREE_INT_CST_ELT directly.
33736
33737 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33738
33739 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33740 fenv_exceptions description.
33741
33742 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33743
33744 PR rtl-optimization/87763
33745 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33746 Allow SUBREG when matching CC_NZmode compare.
33747
33748 2019-01-25 Richard Biener <rguenther@suse.de>
33749
33750 PR tree-optimization/89049
33751 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33752 Look at the pattern stmt to determine if the stmt is vectorized.
33753
33754 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33755
33756 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33757 (pred_mov<mode>): Handle all-register forms using both a new
33758 alternative and a split.
33759
33760 2019-01-25 Richard Biener <rguenther@suse.de>
33761
33762 PR tree-optimization/86865
33763 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33764 Reject non-do-while loops.
33765
33766 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33767
33768 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33769 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33770 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33771 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33772 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33773 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33774 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33775 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33776 vlogical_operand, gpc_reg_operand, int_reg_operand,
33777 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33778 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33779 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33780 (save_world_operation, restore_world_operation, lmw_operation,
33781 stmw_operation): Use MEM_P and REG_P.
33782 (tie_operand): Use MEM_P.
33783 (vrsave_operation, crsave_operation): Use REG_P.
33784 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33785 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33786 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33787 (call_operand): Use HARD_REGISTER_P.
33788 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33789 Use CONST_INT_P.
33790 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33791 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33792 quad_aligned_load_p, replace_swapped_aligned_store,
33793 recombine_lvx_pattern, replace_swapped_aligned_load,
33794 recombine_stvx_pattern): Use MEM_P.
33795 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33796 Use MEM_P and SYMBOL_REF_P.
33797 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33798 (insn_is_swappable_p): Use REG_P and MEM_P.
33799 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33800 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33801 Use CONST_INT_P.
33802 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33803 Use CONST_DOUBLE_P.
33804 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33805 CONST_WIDE_INT_P.
33806 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33807 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33808 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33809 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33810 reg_or_subregno:
33811 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33812 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33813 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33814 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33815 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33816 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33817 rs6000_split_logical_di): Use CONST_INT_P.
33818 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33819 REG_P and SYMBOL_REF_P.
33820 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33821 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33822 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33823 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33824 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33825 (small_data_operand, print_operand_address): Use CONST_INT_P and
33826 SYMBOL_REF_P.
33827 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33828 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33829 Use HARD_REGISTER_NUM_P.
33830 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33831 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33832 SUBREG_P and SYMBOL_REF_P.
33833 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33834 and HARD_REGISTER_NUM_P.
33835 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33836 reg_or_subregno.
33837 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33838 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33839 MEM_P and REG_P.
33840 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33841 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33842 find_addr_reg): Use REG_P.
33843 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33844 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33845 (offsettable_ok_by_alignment, constant_pool_expr_p,
33846 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33847 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33848 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33849 rs6000_assemble_integer, create_TOC_reference,
33850 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33851 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33852 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33853 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33854 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33855 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33856 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33857 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33858 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33859 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33860 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33861 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33862 and cbranch<mode>4): Use CONST_INT_P.
33863 (multiple define_splits): Use REG_P and SUBREG_P.
33864 (define_expands call, call_value): Use MEM_P.
33865 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33866 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33867 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33868 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33869 and HARD_REGISTER_NUM_P.
33870 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33871
33872 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33873
33874 PR rtl-optimization/88948
33875 * rtl.h (prepare_copy_insn): New prototype.
33876 * gcse.c (prepare_copy_insn): New function, split out from
33877 process_insert_insn.
33878 (process_insert_insn): Use prepare_copy_insn.
33879 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33880 instead of gen_move_insn.
33881
33882 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33883
33884 PR debug/89006
33885 * config/i386/i386.c (ix86_pic_register_p): Return true for
33886 UNSPEC_SET_GOT too.
33887
33888 PR tree-optimization/88964
33889 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33890 punt if HONOR_SNANS (chrec).
33891
33892 PR middle-end/89015
33893 * tree-nested.c (convert_nonlocal_reference_stmt,
33894 convert_local_reference_stmt, convert_tramp_reference_stmt,
33895 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33896 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33897 or GIMPLE_OMP_TASK.
33898
33899 PR tree-optimization/89027
33900 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33901 for "omp simd array" variables.
33902
33903 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33904
33905 PR target/88469
33906 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33907 force the alignment of m_val.
33908
33909 2019-01-24 Richard Biener <rguenther@suse.de>
33910
33911 PR lto/87187
33912 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33913 When in "legacy" debug mode make sure to reset self-origins.
33914
33915 2019-01-24 Martin Liska <mliska@suse.cz>
33916
33917 PR gcov-profile/88994
33918 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33919 result will be always smaller or equal to the original.
33920 * gcov.c (mangle_name): Fix else branch where we should
33921 also copy to PTR and shift the pointer.
33922
33923 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33924
33925 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33926 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33927
33928 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33929
33930 * common/config/i386/i386-common.c
33931 (OPTION_MASK_ISA_ENQCMD_SET,
33932 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33933 (ix86_handle_option): Handle -menqcmd.
33934 * config.gcc (enqcmdintrin.h): New header file.
33935 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33936 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33937 -menqcmd.
33938 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33939 function type.
33940 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33941 __builtin_ia32_enqcmds): New builtins.
33942 * config/i386/i386-c.c (__ENQCMD__): New macro.
33943 * config/i386/i386-option.c (ix86_target_string): Add
33944 -menqcmd.
33945 (ix86_valid_target_attribute_inner_p): Likewise.
33946 * config/i386/i386-expand.c
33947 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33948 IX86_BUILTIN_ENQCMDS.
33949 * config/i386/i386.h (TARGET_ENQCMD): New.
33950 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33951 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33952 (movdir64b_<mode>): Parameterize to enable share expansion code
33953 with ENQCMD in function ix86_expand_builtin.
33954 * config/i386/i386.opt: Add -menqcmd.
33955 * config/i386/immintrin.h: Include enqcmdintrin.h.
33956 * config/i386/enqcmdintrin.h: New intrinsic file.
33957 * doc/invoke.texi: Add -menqcmd.
33958
33959 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33960 Steve Ellcey <sellcey@marvell.com>
33961
33962 PR target/85711
33963 * recog.c (address_operand): Return false on wrong mode for address.
33964 (constrain_operands): Check for mode with 'p' constraint.
33965
33966 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33967
33968 PR target/88998
33969 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33970 Disparage MMX alternative.
33971 (sse2_cvtpd2pi): Ditto.
33972 (sse2_cvttpd2pi): Ditto.
33973
33974 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33975
33976 PR driver/89014
33977 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33978 use-after-free of the result of
33979 aarch64_get_extension_string_for_isa_flags.
33980
33981 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33982
33983 PR c/44715
33984 * doc/extend.texi: Document break and continue behavior in
33985 statement expressions.
33986
33987 2019-01-23 Richard Biener <rguenther@suse.de>
33988
33989 PR tree-optimization/89008
33990 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33991 not leave another stray operand.
33992
33993 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33994
33995 * BASE-VER: Bump to 9.0.1.
33996
33997 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33998
33999 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
34000 thunk that returns by reference, use the type of the return object
34001 of the thunk instead of that of the alias to build the dereference.
34002
34003 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
34004
34005 * config/arc/atomic.md: Add operand to DMB instruction.
34006
34007 2019-01-23 Jakub Jelinek <jakub@redhat.com>
34008
34009 PR tree-optimization/88964
34010 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
34011 build_zero_cst instead of build_int_cst. Return false for loop
34012 invariants which honor signed zeros.
34013
34014 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
34015
34016 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
34017
34018 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34019
34020 PR target/88965
34021 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
34022 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
34023 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
34024
34025 PR middle-end/88968
34026 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
34027 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
34028
34029 PR target/87064
34030 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
34031 Disable for little endian.
34032
34033 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34034
34035 PR target/88469
34036 * config/arm/arm.c (arm_needs_double_word_align): Check
34037 DECL_BIT_FIELD_TYPE.
34038
34039 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
34040 H.J. Lu <hongjiu.lu@intel.com>
34041
34042 PR target/88909
34043 * config/i386/i386-builtin.def: Add mask2 to all builtin
34044 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
34045 SPECIAL_ARGS.
34046 * config/i386/i386.c (BDESC): Add mask2 to the definition.
34047 (BDESC_FIRST): Likewise.
34048 (define_builtin): Add an argument for mask2. Updated to handle
34049 both ix86_isa_flags and ix86_isa_flags2.
34050 (define_builtin_const): Likewise.
34051 (define_builtin_pure): Likewise.
34052 (define_builtin2): Deleted.
34053 (define_builtin_const2): Likewise.
34054 (builtin_description): Add a member, mask2.
34055 (bdesc_*): Add mask2 to builtin initializations.
34056 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
34057 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
34058 support.
34059 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
34060
34061 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
34062
34063 PR target/88954
34064 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
34065 noplt attribute.
34066
34067 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
34068
34069 PR target/88469
34070 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
34071 alignment is dominated by a bitfield with 64-bit aligned base type.
34072 (arm_function_arg): Emit a warning if the alignment has changed since
34073 earlier GCC releases.
34074 (arm_function_arg_boundary): Likewise.
34075 (arm_setup_incoming_varargs): Likewise.
34076
34077 2019-01-22 Richard Biener <rguenther@suse.de>
34078
34079 PR tree-optimization/88862
34080 * graphite-scop-detection.c
34081 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
34082
34083 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
34084
34085 * doc/extend.tex (AMD GCN Function Attributes): New section.
34086 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
34087 * doc/invoke.texi (AMD GCN Options): New section.
34088 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
34089
34090 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
34091
34092 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
34093 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
34094
34095 2019-01-22 Jakub Jelinek <jakub@redhat.com>
34096
34097 PR tree-optimization/88044
34098 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
34099 is false in the first iteration, but !every_iteration, return false
34100 instead of true with niter->niter zero.
34101
34102 PR rtl-optimization/88904
34103 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
34104 any nonequal registers before processing BB_END (b).
34105
34106 PR target/88905
34107 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
34108 GET_MODE (op0).
34109 (expand_binop_directly, expand_doubleword_clz,
34110 expand_doubleword_popcount, expand_ctz, expand_ffs,
34111 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
34112
34113 PR rtl-optimization/49429
34114 PR target/49454
34115 PR rtl-optimization/86334
34116 PR target/88906
34117 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
34118 addressable from here...
34119 (emit_block_op_via_libcall): ... to here.
34120
34121 2019-01-22 Richard Biener <rguenther@suse.de>
34122
34123 * tree-vect-loop.c (vect_analyze_loop_operations): Use
34124 auto_vec for cost vector to fix memleak.
34125 (vectorize_fold_left_reduction): Properly gather SLP defs.
34126 (vectorizable_comparison): Do not swap operands to properly
34127 gather SLP defs.
34128
34129 2019-01-22 Alan Modra <amodra@gmail.com>
34130
34131 PR target/88614
34132 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34133 stays a reg. Allow a const_int.
34134 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34135 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34136 (IS_NOMARK_TLSGETADDR): Define.
34137 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34138 (rs6000_output_tlsargs): New function.
34139 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34140 __tls_get_addr call takes an arg.
34141 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34142 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34143 delete split..
34144 (call_value_nonlocal_sysv): ..or here, delete split.
34145 (tls_gdld_nomark): Delete.
34146 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34147 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
34148 (call_value_nonlocal_sysv): Likewise.
34149 (call_value_nonlocal_sysv_secure): Likewise.
34150 (call_value_nonlocal_aix): Likewise.
34151 (call_value_indirect_aix): Likewise.
34152 (call_value_indirect_elfv2): Likewise.
34153 (call_value_local32, call_value_local64): Disable for no-mark tls.
34154 (call_value_local_aix): Likewise.
34155
34156 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
34157
34158 PR target/88938
34159 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34160 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34161
34162 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34163
34164 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34165 string contents as hash_map keys.
34166
34167 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34168
34169 PR c/88928
34170 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34171 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34172 instead of TYPE_ALIGN.
34173 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34174 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34175 pointer from TYPE_STUB_DECL.
34176
34177 2019-01-21 Richard Biener <rguenther@suse.de>
34178
34179 PR tree-optimization/88934
34180 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34181 at the possibly non-constant operand.
34182 (vect_get_constant_vectors): Adjust.
34183
34184 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34185
34186 PR target/71659
34187 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34188 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34189 instead of _X86INTRIN_H_INCLUDED.
34190 * onfig/i386/clwbintrin.h: Likewise.
34191 * config/i386/pkuintrin.h: Likewise.
34192 * config/i386/prfchwintrin.h: Likewise.
34193 * config/i386/rdseedintrin.h: Likewise.
34194 * config/i386/wbnoinvdintrin.h: Likewise.
34195 * config/i386/xsavecintrin.h: Likewise.
34196 * config/i386/xsavesintrin.h: Likewise.
34197 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34198 * config/i386/xsaveintrin.h: Likewise.
34199 * config/i386/xsaveoptintrin.h: Likewise.
34200 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34201 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34202 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34203 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34204 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34205 * config/i386/immintrin.h: Here.
34206
34207 2019-01-20 Martin Jambor <mjambor@suse.cz>
34208
34209 PR ipa/87615
34210 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34211 with aa_walk_budget.
34212 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34213 aa_walk_budget_p parameter.
34214 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34215 walk. Updated all callers.
34216 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34217 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34218 unmodified_parm.
34219 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34220 parameter info. Extract info from fbi. Pass fbi to recursive calls
34221 and to unmodified_parm.
34222 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34223 info, updated call to will_be_nonconstant_expr_predicate.
34224 (param_change_prob): New parameter fbi, limit AA walking.
34225 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34226 calls to various above functions.
34227 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34228 parameter. Use it to limit AA walking.
34229 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34230 fbi, limit AA walk.
34231 (detect_type_change): New parameter fbi, pass it on to
34232 detect_type_change_from_memory_writes.
34233 (detect_type_change_ssa): Likewise.
34234 (aa_overwalked): Removed.
34235 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34236 accordingly, adjust to the neew AA limiting scheme.
34237 (parm_ref_data_preserved_p): Likewise.
34238 (ipa_compute_jump_functions_for_edge): Adjust call to
34239 get_dynamic_type.
34240 (ipa_analyze_call_uses): Likewise.
34241 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34242 (ipa_analyze_node): Initialize aa_walk_budget.
34243 (ipcp_transform_function): Likewise.
34244 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34245 to get_dynamic_type.
34246
34247 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34248
34249 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34250 outside of #if CHECKING_P code.
34251
34252 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34253
34254 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34255 New function, split out from...
34256 (loop_versioning::analyze_stride): ...here.
34257 (loop_versioning::find_per_loop_multiplication): Use gassign.
34258 (loop_versioning::analyze_term_using_scevs): Return a success code.
34259 (loop_versioning::analyze_arbitrary_term): New function.
34260 (loop_versioning::analyze_address_fragment): Use
34261 analyze_arbitrary_term if all else fails.
34262
34263 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34264
34265 PR target/88892
34266 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34267 operands.
34268
34269 2019-01-18 Richard Biener <rguenther@suse.de>
34270
34271 PR tree-optimization/88903
34272 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34273 scalar stmts a SLP shift amount is composed of when detecting
34274 shifts by scalars.
34275
34276 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34277
34278 PR target/88799
34279 * config/arm/arm-cpus.in (mp): New feature.
34280 (sec): New feature.
34281 (fgroup ARMv7ve): Add mp and sec features.
34282 (arch armv7-a): Add options to allow mp and sec extensions.
34283 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34284 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34285 extenstions to the base architecture.
34286 (cpu cortex-a8): Add sec extension to the base architecture.
34287 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34288 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34289 variants down to the base v7-a varaint.
34290 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34291 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34292 of permitted extensions for -march=armv7-a and for
34293 -mcpu=generic-armv7-a.
34294
34295 2019-01-18 Martin Liska <mliska@suse.cz>
34296
34297 * params.def: Fix comment.
34298 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34299 name.
34300 (gimple_gen_ic_func_profiler): Likewise.
34301
34302 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34303
34304 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34305 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34306 and put in error checks for stack protector guard options.
34307 (aarch64_stack_protect_guard): New.
34308 (TARGET_STACK_PROTECT_GUARD): Define.
34309 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34310 (reg_stack_protect_address<mode>): New.
34311 (stack_protect_set): Adjust for SSP_GLOBAL.
34312 (stack_protect_test): Likewise.
34313 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34314 (-mstack-protector-guard): Likewise.
34315 (-mstack-protector-guard-offset): Likewise.
34316
34317 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34318
34319 PR tree-optimization/86214
34320 * tree-inline.h (struct copy_body_data): Add
34321 add_clobbers_to_eh_landing_pads member.
34322 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34323 (copy_edges_for_bb): Call it if EH edge destination is <
34324 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34325 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34326 if flag_stack_reuse != SR_NONE and clear it afterwards.
34327
34328 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34329
34330 PR target/85596
34331 * doc/install.texi (with-multilib-list): Document for aarch64.
34332
34333 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34334
34335 PR target/88734
34336 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34337 (("..."))) with ("...").
34338
34339 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34340
34341 * doc/extend.texi (Built-in Functions for Memory Model Aware
34342 Atomic Operations): Document atomic fetch and nand.
34343
34344 2019-01-18 Martin Liska <mliska@suse.cz>
34345 Richard Biener <rguenther@suse.de>
34346
34347 PR middle-end/88587
34348 * cgraph.h (create_version_clone_with_body): Add new argument
34349 with attributes.
34350 * cgraphclones.c (cgraph_node::create_version_clone): Add
34351 DECL_ATTRIBUTES to a newly created decl. And call
34352 valid_attribute_p so that proper cl_target_optimization_node
34353 is set for the newly created declaration.
34354 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34355 for declaration.
34356 (expand_target_clones): Do not call valid_attribute_p, it must
34357 be already done.
34358 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34359 vector types.
34360
34361 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34362
34363 PR target/88734
34364 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34365 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34366 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34367
34368 2019-01-17 Martin Sebor <msebor@redhat.com>
34369
34370 PR middle-end/88273
34371 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34372 Handle anti-ranges the same as no range at all.
34373
34374 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34375
34376 * config/aarch64/aarch64.c (cgraph.h): New include.
34377 (intl.h): New include.
34378 (supported_simd_type): New function.
34379 (currently_supported_simd_type): Ditto.
34380 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34381 (aarch64_simd_clone_adjust): Ditto.
34382 (aarch64_simd_clone_usable): Ditto.
34383 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34384 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34385 (TARGET_SIMD_CLONE_USABLE): Ditto.
34386 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34387 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34388 call.
34389
34390 2019-01-17 Martin Sebor <msebor@redhat.com>
34391
34392 PR tree-optimization/88800
34393 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34394 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34395 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34396 redundant argument. Add new argument and issue diagnostics under
34397 its control. Detect out-of-bounds access even with warnings
34398 disabled.
34399 (check_bounds_or_overlap): Change return type. Add argument.
34400 (wrestrict_dom_walker::check_call): Adjust.
34401 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34402 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34403 check_bounds_or_overlap's return value.
34404 (handle_builtin_stxncpy): Same.
34405 (handle_builtin_strcat): Same.
34406
34407 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34408 Kwok Cheung Yeung <kcy@codesourcery.com>
34409 Julian Brown <julian@codesourcery.com>
34410 Tom de Vries <tom@codesourcery.com>
34411
34412 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34413
34414 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34415
34416 * doc/sourcebuild.texi: Document dg-require-effective-target
34417 llvm_binutils and offload_gcn.
34418
34419 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34420 Kwok Cheung Yeung <kcy@codesourcery.com>
34421 Julian Brown <julian@codesourcery.com>
34422 Tom de Vries <tom@codesourcery.com>
34423
34424 * doc/sourcebuild.texi: Document dg-required-effective-target
34425 exceptions.
34426
34427 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34428 Kwok Cheung Yeung <kcy@codesourcery.com>
34429 Julian Brown <julian@codesourcery.com>
34430 Tom de Vries <tom@codesourcery.com>
34431 Jan Hubicka <hubicka@ucw.cz>
34432 Martin Jambor <mjambor@suse.cz>
34433
34434 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34435 * configure.ac: Check for dlopen.
34436 * configure: Regenerate.
34437
34438 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34439 Kwok Cheung Yeung <kcy@codesourcery.com>
34440 Julian Brown <julian@codesourcery.com>
34441 Tom de Vries <tom@codesourcery.com>
34442 Jan Hubicka <hubicka@ucw.cz>
34443 Martin Jambor <mjambor@suse.cz>
34444
34445 * common/config/gcn/gcn-common.c: New file.
34446 * config/gcn/driver-gcn.c: New file.
34447 * config/gcn/gcn-builtins.def: New file.
34448 * config/gcn/gcn-hsa.h: New file.
34449 * config/gcn/gcn-modes.def: New file.
34450 * config/gcn/gcn-opts.h: New file.
34451 * config/gcn/gcn-passes.def: New file.
34452 * config/gcn/gcn-protos.h: New file.
34453 * config/gcn/gcn-run.c: New file.
34454 * config/gcn/gcn-tree.c: New file.
34455 * config/gcn/gcn.c: New file.
34456 * config/gcn/gcn.h: New file.
34457 * config/gcn/gcn.opt: New file.
34458 * config/gcn/t-gcn-hsa: New file.
34459
34460 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34461 Kwok Cheung Yeung <kcy@codesourcery.com>
34462 Julian Brown <julian@codesourcery.com>
34463 Tom de Vries <tom@codesourcery.com>
34464 Jan Hubicka <hubicka@ucw.cz>
34465 Martin Jambor <mjambor@suse.cz>
34466
34467 * config/gcn/constraints.md: New file.
34468 * config/gcn/gcn-valu.md: New file.
34469 * config/gcn/gcn.md: New file.
34470 * config/gcn/predicates.md: New file.
34471
34472 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34473
34474 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34475 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34476 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34477 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34478
34479 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34480
34481 PR target/88851
34482 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34483 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34484 it and document registers.
34485
34486 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34487
34488 * config/aarch64/aarch64.c (ares_tunings): Define.
34489 * config/aarch64/aarch64-cores.def (ares): Use the above.
34490
34491 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34492
34493 PR target/88794
34494 Revert:
34495 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34496
34497 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34498 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34499 (_mm512_maskz_fixupimm_round_pd): Ditto.
34500 (_mm512_fixupimm_round_ps): Ditto.
34501 (_mm512_maskz_fixupimm_round_ps): Ditto.
34502 (_mm_fixupimm_round_sd): Ditto.
34503 (_mm_maskz_fixupimm_round_sd): Ditto.
34504 (_mm_fixupimm_round_ss): Ditto.
34505 (_mm_maskz_fixupimm_round_ss): Ditto.
34506 (_mm512_fixupimm_pd): Ditto.
34507 (_mm512_maskz_fixupimm_pd): Ditto.
34508 (_mm512_fixupimm_ps): Ditto.
34509 (_mm512_maskz_fixupimm_ps): Ditto.
34510 (_mm_fixupimm_sd): Ditto.
34511 (_mm_maskz_fixupimm_sd): Ditto.
34512 (_mm_fixupimm_ss): Ditto.
34513 (_mm_maskz_fixupimm_ss): Ditto.
34514 (_mm512_mask_fixupimm_round_pd): Update builtin.
34515 (_mm512_mask_fixupimm_round_ps): Ditto.
34516 (_mm_mask_fixupimm_round_sd): Ditto.
34517 (_mm_mask_fixupimm_round_ss): Ditto.
34518 (_mm512_mask_fixupimm_pd): Ditto.
34519 (_mm512_mask_fixupimm_ps): Ditto.
34520 (_mm_mask_fixupimm_sd): Ditto.
34521 (_mm_mask_fixupimm_ss): Ditto.
34522 * config/i386/avx512vlintrin.h:
34523 (_mm256_fixupimm_pd): Update parameters and builtin.
34524 (_mm256_maskz_fixupimm_pd): Ditto.
34525 (_mm256_fixupimm_ps): Ditto.
34526 (_mm256_maskz_fixupimm_ps): Ditto.
34527 (_mm_fixupimm_pd): Ditto.
34528 (_mm_maskz_fixupimm_pd): Ditto.
34529 (_mm_fixupimm_ps): Ditto.
34530 (_mm_maskz_fixupimm_ps): Ditto.
34531 (_mm256_mask_fixupimm_pd): Update builtin.
34532 (_mm256_mask_fixupimm_ps): Ditto.
34533 (_mm_mask_fixupimm_pd): Ditto.
34534 (_mm_mask_fixupimm_ps): Ditto.
34535 * config/i386/i386-builtin-types.def: Add new types and remove
34536 useless ones.
34537 * config/i386/i386-builtin.def: Update builtin definitions.
34538 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34539 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34540 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34541 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34542 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34543 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34544 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34545 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34546 * config/i386/subst.md:
34547 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34548 (round_saeonly_sd_mask_op4): Ditto.
34549 (round_saeonly_expand_operand5): Ditto.
34550 (round_saeonly_expand): Update.
34551
34552 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34553
34554 PR target/88794
34555 Revert:
34556 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34557
34558 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34559 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34560 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34561 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34562 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34563 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34564 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34565
34566 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34567
34568 PR target/88794
34569 Revert:
34570 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34571
34572 PR target/88489
34573 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34574 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34575 instead of UNSPEC_FIXUPIMM.
34576
34577 2019-01-17 Richard Biener <rguenther@suse.de>
34578
34579 PR lto/86736
34580 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34581 and friends for the LTO part of debug info.
34582
34583 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34584
34585 PR tree-optimization/86214
34586 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34587 if x == y.
34588
34589 PR rtl-optimization/88870
34590 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34591 throw if we can't alter the cfg or delete dead exceptions.
34592 (mark_insn): Don't call find_call_stack_args for such calls.
34593
34594 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34595
34596 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34597 prototypes for vec_st.
34598 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34599 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34600 mainly on signed/unsigned long long and double.
34601
34602 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34603
34604 PR target/88861
34605 * combine.c (delete_noop_moves): Convert to "bool" return,
34606 returning true if any edges are eliminated.
34607 (combine_instructions): Also return true if delete_noop_moves
34608 returns true.
34609
34610 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34611
34612 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34613 correct max nunits for endian swap.
34614 (aarch64_expand_fcmla_builtin): Correct subreg code.
34615 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34616 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34617 lane endianness.
34618
34619 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34620
34621 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34622 Handle split indirect COMPLEX_TYPE arguments.
34623
34624 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34625
34626 PR target/86891
34627 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34628 bit is set by add and compare.
34629 (CC_ADC): New CC_MODE.
34630 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34631 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34632 comparison. Add detection for CC_ADCmode.
34633 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34634 CC_ADCmode.
34635 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34636 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34637 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34638 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34639 to eliminate the need for zero-extending the operands.
34640 (add<mode>3_compareC_imm): Delete. Merge into ...
34641 (add<mode>3_compareC): ... this. Restructure the comparison to
34642 eliminate the need for zero-extending the operands.
34643 (add<mode>3_carryin): Use LTU for the overflow detection.
34644 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34645 Reexpress comparison for overflow.
34646 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34647 (add<mode>3_carryinC): Likewise.
34648 (add<mode>3_carryinV): Use LTU for carry between partials.
34649 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34650 handling of CC_Cmode and add CC_ADCmode.
34651 (aarch64_borrow_operation): Likewise.
34652
34653 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34654
34655 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34656 Remove patternmode.
34657 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34658 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34659 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34660 Remove endianness conversion.
34661
34662 2019-01-16 Martin Liska <mliska@suse.cz>
34663
34664 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34665 for GCC driver.
34666 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34667 a new argument.
34668 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34669 (path_prefix_reset): Move up in the source file.
34670 (find_fortran_preinclude_file): Make complex search for the
34671 fortran header files.
34672
34673 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34674
34675 * godump.c (go_output_typedef): When outputting a typedef, refer
34676 to the underlying type by its name and not its structure.
34677
34678 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34679
34680 PR c++/88795
34681 * tree.c (build_function_type): Assert that arg_types is not
34682 error_mark_node.
34683
34684 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34685
34686 PR inline-asm/52813
34687 * doc/extend.texi: Document that listing the stack pointer in the
34688 clobber list of an asm is a deprecated feature.
34689 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34690 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34691 warning instead of an error for clobbers of the stack pointer.
34692 Add a note explaining why.
34693
34694 2019-01-15 Richard Biener <rguenther@suse.de>
34695
34696 PR debug/88046
34697 * dwarf2out.c (gen_member_die): Do not generate inheritance
34698 DIEs late.
34699
34700 2019-01-15 Richard Biener <rguenther@suse.de>
34701
34702 PR tree-optimization/88855
34703 * tree-if-conv.c (combine_blocks): Collect
34704 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34705
34706 2019-01-15 Tom de Vries <tdevries@suse.de>
34707
34708 PR target/80547
34709 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34710 lhs == NULL_TREE for gang-level reduction.
34711
34712 2019-01-15 Richard Biener <rguenther@suse.de>
34713 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34714
34715 PR ipa/88788
34716 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34717 return true if SSA_NAME is already marked in visited bitmap.
34718 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34719
34720 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34721
34722 PR tree-optimization/88775
34723 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34724 equal == 0 equality pointer comparisons some more if compared in
34725 integral types and either one points to an automatic var and the
34726 other to a global, or we can prove at least one points to the middle
34727 or both point to start or both point to end.
34728
34729 2019-01-14 Andi Kleen <ak@linux.intel.com>
34730
34731 * Makefile.in: Lower autofdo sampling rate by 10x.
34732 * Makefile.tpl: Dito.
34733
34734 2019-01-14 Tom Honermann <tom@honermann.net>
34735
34736 * defaults.h: Define CHAR8_TYPE.
34737
34738 2019-01-14 Martin Sebor <msebor@redhat.com>
34739
34740 PR target/88638
34741 * doc/extend.texi (Darwin Format Checks): Clarify.
34742
34743 2019-01-14 Richard Biener <rguenther@suse.de>
34744
34745 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34746 whether we are in (simplify ...) or (match ...) context.
34747
34748 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34749
34750 PR rtl-optimization/88796
34751 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34752 * cfgexpand.c (stack_protect_prologue): Initialize
34753 crtl->stack_protect_guard_decl.
34754 * function.c (stack_protect_epilogue): Use it instead of calling
34755 targetm.stack_protect_guard again.
34756 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34757 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34758 crtl->stack_protect_guard_decl.
34759 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34760 on the returned MEM_EXPR.
34761
34762 2019-01-12 Tom de Vries <tdevries@suse.de>
34763
34764 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34765 vector length using -fopenacc-dim.
34766
34767 2019-01-12 Tom de Vries <tdevries@suse.de>
34768
34769 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34770 lengths into account.
34771
34772 2019-01-12 Svante Signell <svante.signell@gmail.com>
34773
34774 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34775 (TARGET_CAN_SPLIT_STACK): Define.
34776 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34777
34778 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34779
34780 * params.def (inline-unit-growth): Set to 40.
34781
34782 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34783
34784 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34785
34786 2019-01-12 Tom de Vries <tdevries@suse.de>
34787
34788 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34789 region calling vector-partitionable routine, set default_vector_length
34790 to WARP_SIZE.
34791
34792 2019-01-12 Tom de Vries <tdevries@suse.de>
34793
34794 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34795 variable default_vector_length.
34796
34797 2019-01-12 Tom de Vries <tdevries@suse.de>
34798
34799 PR middle-end/88703
34800 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34801 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34802 dimensions limits.
34803
34804 2019-01-12 Tom de Vries <tdevries@suse.de>
34805
34806 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34807 (nvptx_goacc_validate_dims): Add used parameter.
34808 * doc/tm.texi: Regenerate.
34809 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34810 argument to call to targetm.goacc.validate_dims.
34811 (default_goacc_validate_dims): Add used
34812 parameter.
34813 * target.def (validate_dims): Add used parameter in DEFHOOK.
34814 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34815
34816 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34817
34818 PR middle-end/85956
34819 PR lto/88733
34820 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34821 field.
34822 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34823 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34824 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34825 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34826
34827 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34828
34829 PR rtl-optimization/87305
34830 * lra-assigns.c
34831 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34832 for little endian pseudos used as paradoxical subreg.
34833
34834 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34835
34836 PR tree-optimization/88693
34837 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34838 for STRING_CSTs that don't contain any NUL characters in the first
34839 TREE_STRING_LENGTH bytes.
34840
34841 2019-01-11 Alan Modra <amodra@gmail.com>
34842
34843 PR 88777
34844 PR 88614
34845 * genattrtab.c (min_fn): Don't translate values.
34846 (min_attr_value): Return INT_MAX when the value can't be calculated.
34847 Return minimum among any values that can be calculated.
34848 (max_attr_value): Adjust.
34849
34850 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34851
34852 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34853
34854 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34855
34856 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34857 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34858 (aarch64_return_call_with_max_clobbers): New function.
34859 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34860 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34861 argument.
34862 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34863 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34864 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34865 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34866 * cselib.c (cselib_process_insn): Add argument to
34867 targetm.hard_regno_call_part_clobbered call.
34868 * ira-conflicts.c (ira_build_conflicts): Ditto.
34869 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34870 * lra-constraints.c (inherit_reload_reg): Ditto.
34871 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34872 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34873 argument. Call targetm.return_call_with_max_clobbers.
34874 Add argument to targetm.hard_regno_call_part_clobbered call.
34875 (calls_have_same_clobbers_p): New function.
34876 (process_bb_lives): Add call_insn and last_call_insn variables.
34877 Pass call_insn to check_pseudos_live_through_calls.
34878 Modify if stmt to check targetm.return_call_with_max_clobbers.
34879 Update setting of flush variable.
34880 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34881 to false.
34882 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34883 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34884 targetm.hard_regno_call_part_clobbered call.
34885 * reginfo.c (choose_hard_reg_mode): Ditto.
34886 * regrename.c (check_new_reg_p): Ditto.
34887 * reload.c (find_equiv_reg): Ditto.
34888 * reload1.c (emit_reload_insns): Ditto.
34889 * sched-deps.c (deps_analyze_insn): Ditto.
34890 * sel-sched.c (init_regs_for_mode): Ditto.
34891 (mark_unavailable_hard_regs): Ditto.
34892 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34893 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34894 (return_call_with_max_clobbers): New target function.
34895 * doc/tm.texi: Regenerate.
34896 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34897 * hooks.c (hook_bool_uint_mode_false): Change to
34898 hook_bool_insn_uint_mode_false.
34899 * hooks.h (hook_bool_uint_mode_false): Ditto.
34900
34901 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34902
34903 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34904 (aarch64_remove_extra_call_preserved_regs): New function.
34905 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34906 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34907 * doc/tm.texi: Regenerate.
34908 * final.c (get_call_reg_set_usage): Call new hook.
34909 * target.def (remove_extra_call_preserved_regs): New hook.
34910 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34911 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34912
34913 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34914
34915 PR bootstrap/88714
34916 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34917 inside of pass_combine_1 dump rather than pass_profile_1.
34918
34919 2019-01-11 Tom de Vries <tdevries@suse.de>
34920
34921 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34922 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34923 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34924 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34925 num_workers 16.
34926
34927 2019-01-11 Tom de Vries <tdevries@suse.de>
34928
34929 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34930
34931 2019-01-11 Jan Beulich <jbeulich@suse.com>
34932
34933 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34934 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34935 sse2_cvtsi2sd): Add {l}.
34936 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34937 syntax.
34938
34939 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34940
34941 PR target/88785
34942 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34943 define_expand.
34944 (*float<floatunssuffix>v2div2sf2): New define_insn.
34945 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34946 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34947 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34948 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34949 match_operands with "const0_operand" "C".
34950
34951 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34952
34953 * config/aarch64/aarch64-builtins.c
34954 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34955 (aarch64_init_simd_builtins): ...Here
34956
34957 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34958
34959 PR rtl-optimization/87305
34960 * lra-assigns.c
34961 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34962 allocation for big endian pseudos used as paradoxical subregs and
34963 spill them if it is wrong.
34964 * lra-constraints.c (lra_constraints): Add a comment.
34965
34966 2019-01-10 Richard Biener <rguenther@suse.de>
34967
34968 PR tree-optimization/88792
34969 * tree-ssa-pre.c (get_representative_for): Do not return a
34970 value-number here.
34971
34972 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34973
34974 PR middle-end/84877
34975 PR bootstrap/88450
34976 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34977 (assign_parm_setup_block): Do the argument slot realignment here
34978 instead.
34979
34980 2019-01-10 Stefan Agner <stefan@agner.ch>
34981
34982 PR target/88648
34983 * config/arm/arm.c (arm_option_override_internal): Force
34984 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34985
34986 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34987
34988 PR c/88568
34989 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34990 DECL_EXTERNAL.
34991
34992 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34993
34994 * config/arm/arm-builtins.c
34995 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34996 (MAC_LANE_PAIR_QUALIFIERS): New.
34997 (arm_expand_builtin_args): Use it.
34998 (arm_expand_builtin_1): Likewise.
34999 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
35000 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
35001 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
35002 * config/arm/arm_neon.h:
35003 (vcadd_rot90_f16): New.
35004 (vcaddq_rot90_f16): New.
35005 (vcadd_rot270_f16): New.
35006 (vcaddq_rot270_f16): New.
35007 (vcmla_f16): New.
35008 (vcmlaq_f16): New.
35009 (vcmla_lane_f16): New.
35010 (vcmla_laneq_f16): New.
35011 (vcmlaq_lane_f16): New.
35012 (vcmlaq_laneq_f16): New.
35013 (vcmla_rot90_f16): New.
35014 (vcmlaq_rot90_f16): New.
35015 (vcmla_rot90_lane_f16): New.
35016 (vcmla_rot90_laneq_f16): New.
35017 (vcmlaq_rot90_lane_f16): New.
35018 (vcmlaq_rot90_laneq_f16): New.
35019 (vcmla_rot180_f16): New.
35020 (vcmlaq_rot180_f16): New.
35021 (vcmla_rot180_lane_f16): New.
35022 (vcmla_rot180_laneq_f16): New.
35023 (vcmlaq_rot180_lane_f16): New.
35024 (vcmlaq_rot180_laneq_f16): New.
35025 (vcmla_rot270_f16): New.
35026 (vcmlaq_rot270_f16): New.
35027 (vcmla_rot270_lane_f16): New.
35028 (vcmla_rot270_laneq_f16): New.
35029 (vcmlaq_rot270_lane_f16): New.
35030 (vcmlaq_rot270_laneq_f16): New.
35031 (vcadd_rot90_f32): New.
35032 (vcaddq_rot90_f32): New.
35033 (vcadd_rot270_f32): New.
35034 (vcaddq_rot270_f32): New.
35035 (vcmla_f32): New.
35036 (vcmlaq_f32): New.
35037 (vcmla_lane_f32): New.
35038 (vcmla_laneq_f32): New.
35039 (vcmlaq_lane_f32): New.
35040 (vcmlaq_laneq_f32): New.
35041 (vcmla_rot90_f32): New.
35042 (vcmlaq_rot90_f32): New.
35043 (vcmla_rot90_lane_f32): New.
35044 (vcmla_rot90_laneq_f32): New.
35045 (vcmlaq_rot90_lane_f32): New.
35046 (vcmlaq_rot90_laneq_f32): New.
35047 (vcmla_rot180_f32): New.
35048 (vcmlaq_rot180_f32): New.
35049 (vcmla_rot180_lane_f32): New.
35050 (vcmla_rot180_laneq_f32): New.
35051 (vcmlaq_rot180_lane_f32): New.
35052 (vcmlaq_rot180_laneq_f32): New.
35053 (vcmla_rot270_f32): New.
35054 (vcmlaq_rot270_f32): New.
35055 (vcmla_rot270_lane_f32): New.
35056 (vcmla_rot270_laneq_f32): New.
35057 (vcmlaq_rot270_lane_f32): New.
35058 (vcmlaq_rot270_laneq_f32): New.
35059 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
35060 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
35061 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
35062 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
35063 vcmlaq_lane270): New.
35064 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
35065 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
35066 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
35067 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
35068 (arm_option_reconfigure_globals): Use them.
35069 * config/arm/iterators.md (VDF, VQ_HSF): New.
35070 (VCADD, VCMLA): New.
35071 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
35072 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
35073 New.
35074 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
35075 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
35076
35077 2019-01-10 Tamar Christina <tamar.christina@arm.com>
35078
35079 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
35080 Add qualifier_lane_pair_index.
35081 (emit-rtl.h): Include.
35082 (TYPES_QUADOP_LANE_PAIR): New.
35083 (aarch64_simd_expand_args): Use it.
35084 (aarch64_simd_expand_builtin): Likewise.
35085 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
35086 New.
35087 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
35088 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
35089 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
35090 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
35091 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
35092 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
35093 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
35094 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
35095 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
35096 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
35097 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
35098 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
35099 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
35100 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
35101 Add __ARM_FEATURE_COMPLEX.
35102 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
35103 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
35104 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
35105 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
35106 fcmlaq_lane270): New.
35107 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
35108 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
35109 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
35110 * config/aarch64/arm_neon.h:
35111 (vcadd_rot90_f16): New.
35112 (vcaddq_rot90_f16): New.
35113 (vcadd_rot270_f16): New.
35114 (vcaddq_rot270_f16): New.
35115 (vcmla_f16): New.
35116 (vcmlaq_f16): New.
35117 (vcmla_lane_f16): New.
35118 (vcmla_laneq_f16): New.
35119 (vcmlaq_lane_f16): New.
35120 (vcmlaq_rot90_lane_f16): New.
35121 (vcmla_rot90_laneq_f16): New.
35122 (vcmla_rot90_lane_f16): New.
35123 (vcmlaq_rot90_f16): New.
35124 (vcmla_rot90_f16): New.
35125 (vcmlaq_laneq_f16): New.
35126 (vcmla_rot180_laneq_f16): New.
35127 (vcmla_rot180_lane_f16): New.
35128 (vcmlaq_rot180_f16): New.
35129 (vcmla_rot180_f16): New.
35130 (vcmlaq_rot90_laneq_f16): New.
35131 (vcmlaq_rot270_laneq_f16): New.
35132 (vcmlaq_rot270_lane_f16): New.
35133 (vcmla_rot270_laneq_f16): New.
35134 (vcmlaq_rot270_f16): New.
35135 (vcmla_rot270_f16): New.
35136 (vcmlaq_rot180_laneq_f16): New.
35137 (vcmlaq_rot180_lane_f16): New.
35138 (vcmla_rot270_lane_f16): New.
35139 (vcadd_rot90_f32): New.
35140 (vcaddq_rot90_f32): New.
35141 (vcaddq_rot90_f64): New.
35142 (vcadd_rot270_f32): New.
35143 (vcaddq_rot270_f32): New.
35144 (vcaddq_rot270_f64): New.
35145 (vcmla_f32): New.
35146 (vcmlaq_f32): New.
35147 (vcmlaq_f64): New.
35148 (vcmla_lane_f32): New.
35149 (vcmla_laneq_f32): New.
35150 (vcmlaq_lane_f32): New.
35151 (vcmlaq_laneq_f32): New.
35152 (vcmla_rot90_f32): New.
35153 (vcmlaq_rot90_f32): New.
35154 (vcmlaq_rot90_f64): New.
35155 (vcmla_rot90_lane_f32): New.
35156 (vcmla_rot90_laneq_f32): New.
35157 (vcmlaq_rot90_lane_f32): New.
35158 (vcmlaq_rot90_laneq_f32): New.
35159 (vcmla_rot180_f32): New.
35160 (vcmlaq_rot180_f32): New.
35161 (vcmlaq_rot180_f64): New.
35162 (vcmla_rot180_lane_f32): New.
35163 (vcmla_rot180_laneq_f32): New.
35164 (vcmlaq_rot180_lane_f32): New.
35165 (vcmlaq_rot180_laneq_f32): New.
35166 (vcmla_rot270_f32): New.
35167 (vcmlaq_rot270_f32): New.
35168 (vcmlaq_rot270_f64): New.
35169 (vcmla_rot270_lane_f32): New.
35170 (vcmla_rot270_laneq_f32): New.
35171 (vcmlaq_rot270_lane_f32): New.
35172 (vcmlaq_rot270_laneq_f32): New.
35173 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35174 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35175 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35176 (FCADD, FCMLA): New.
35177 (rot): New.
35178 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35179
35180 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35181
35182 PR other/16615
35183
35184 * config/pa/pa.c: Change "can not" to "cannot".
35185 * gimple-ssa-evrp-analyze.c: Likewise.
35186 * ipa-icf.c: Likewise.
35187 * ipa-polymorphic-call.c: Likewise.
35188 * ipa-pure-const.c: Likewise.
35189 * lra-constraints.c: Likewise.
35190 * lra-remat.c: Likewise.
35191 * reload1.c: Likewise.
35192 * reorg.c: Likewise.
35193 * tree-ssa-uninit.c: Likewise.
35194
35195 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35196
35197 PR other/16615
35198
35199 * Makefile.in: Mechanically replace "can not" with "cannot".
35200 * alias.c: Likewise.
35201 * builtins.c: Likewise.
35202 * calls.c: Likewise.
35203 * cgraph.c: Likewise.
35204 * cgraph.h: Likewise.
35205 * cgraphclones.c: Likewise.
35206 * cgraphunit.c: Likewise.
35207 * combine-stack-adj.c: Likewise.
35208 * combine.c: Likewise.
35209 * common/config/i386/i386-common.c: Likewise.
35210 * config/aarch64/aarch64.c: Likewise.
35211 * config/alpha/sync.md: Likewise.
35212 * config/arc/arc.c: Likewise.
35213 * config/arc/predicates.md: Likewise.
35214 * config/arm/arm-c.c: Likewise.
35215 * config/arm/arm.c: Likewise.
35216 * config/arm/arm.h: Likewise.
35217 * config/arm/arm.md: Likewise.
35218 * config/arm/cortex-r4f.md: Likewise.
35219 * config/csky/csky.c: Likewise.
35220 * config/csky/csky.h: Likewise.
35221 * config/darwin-f.c: Likewise.
35222 * config/epiphany/epiphany.md: Likewise.
35223 * config/i386/i386.c: Likewise.
35224 * config/i386/sol2.h: Likewise.
35225 * config/m68k/m68k.c: Likewise.
35226 * config/mcore/mcore.h: Likewise.
35227 * config/microblaze/microblaze.md: Likewise.
35228 * config/mips/20kc.md: Likewise.
35229 * config/mips/sb1.md: Likewise.
35230 * config/nds32/nds32.c: Likewise.
35231 * config/nds32/predicates.md: Likewise.
35232 * config/pa/pa.c: Likewise.
35233 * config/rs6000/e300c2c3.md: Likewise.
35234 * config/rs6000/rs6000.c: Likewise.
35235 * config/s390/s390.h: Likewise.
35236 * config/sh/sh.c: Likewise.
35237 * config/sh/sh.md: Likewise.
35238 * config/spu/vmx2spu.h: Likewise.
35239 * cprop.c: Likewise.
35240 * dbxout.c: Likewise.
35241 * df-scan.c: Likewise.
35242 * doc/cfg.texi: Likewise.
35243 * doc/extend.texi: Likewise.
35244 * doc/fragments.texi: Likewise.
35245 * doc/gty.texi: Likewise.
35246 * doc/invoke.texi: Likewise.
35247 * doc/lto.texi: Likewise.
35248 * doc/md.texi: Likewise.
35249 * doc/objc.texi: Likewise.
35250 * doc/rtl.texi: Likewise.
35251 * doc/tm.texi: Likewise.
35252 * dse.c: Likewise.
35253 * emit-rtl.c: Likewise.
35254 * emit-rtl.h: Likewise.
35255 * except.c: Likewise.
35256 * expmed.c: Likewise.
35257 * expr.c: Likewise.
35258 * fold-const.c: Likewise.
35259 * genautomata.c: Likewise.
35260 * gimple-fold.c: Likewise.
35261 * hard-reg-set.h: Likewise.
35262 * ifcvt.c: Likewise.
35263 * ipa-comdats.c: Likewise.
35264 * ipa-cp.c: Likewise.
35265 * ipa-devirt.c: Likewise.
35266 * ipa-fnsummary.c: Likewise.
35267 * ipa-icf.c: Likewise.
35268 * ipa-inline-transform.c: Likewise.
35269 * ipa-inline.c: Likewise.
35270 * ipa-polymorphic-call.c: Likewise.
35271 * ipa-profile.c: Likewise.
35272 * ipa-prop.c: Likewise.
35273 * ipa-pure-const.c: Likewise.
35274 * ipa-reference.c: Likewise.
35275 * ipa-split.c: Likewise.
35276 * ipa-visibility.c: Likewise.
35277 * ipa.c: Likewise.
35278 * ira-build.c: Likewise.
35279 * ira-color.c: Likewise.
35280 * ira-conflicts.c: Likewise.
35281 * ira-costs.c: Likewise.
35282 * ira-int.h: Likewise.
35283 * ira-lives.c: Likewise.
35284 * ira.c: Likewise.
35285 * ira.h: Likewise.
35286 * loop-invariant.c: Likewise.
35287 * loop-unroll.c: Likewise.
35288 * lower-subreg.c: Likewise.
35289 * lra-assigns.c: Likewise.
35290 * lra-constraints.c: Likewise.
35291 * lra-eliminations.c: Likewise.
35292 * lra-lives.c: Likewise.
35293 * lra-remat.c: Likewise.
35294 * lra-spills.c: Likewise.
35295 * lra.c: Likewise.
35296 * lto-cgraph.c: Likewise.
35297 * lto-streamer-out.c: Likewise.
35298 * postreload-gcse.c: Likewise.
35299 * predict.c: Likewise.
35300 * profile-count.h: Likewise.
35301 * profile.c: Likewise.
35302 * recog.c: Likewise.
35303 * ree.c: Likewise.
35304 * reload.c: Likewise.
35305 * reload1.c: Likewise.
35306 * reorg.c: Likewise.
35307 * resource.c: Likewise.
35308 * rtl.def: Likewise.
35309 * rtl.h: Likewise.
35310 * rtlanal.c: Likewise.
35311 * sched-deps.c: Likewise.
35312 * sched-ebb.c: Likewise.
35313 * sched-rgn.c: Likewise.
35314 * sel-sched-ir.c: Likewise.
35315 * sel-sched.c: Likewise.
35316 * shrink-wrap.c: Likewise.
35317 * simplify-rtx.c: Likewise.
35318 * symtab.c: Likewise.
35319 * target.def: Likewise.
35320 * toplev.c: Likewise.
35321 * tree-call-cdce.c: Likewise.
35322 * tree-cfg.c: Likewise.
35323 * tree-complex.c: Likewise.
35324 * tree-core.h: Likewise.
35325 * tree-eh.c: Likewise.
35326 * tree-inline.c: Likewise.
35327 * tree-loop-distribution.c: Likewise.
35328 * tree-nrv.c: Likewise.
35329 * tree-profile.c: Likewise.
35330 * tree-sra.c: Likewise.
35331 * tree-ssa-alias.c: Likewise.
35332 * tree-ssa-dce.c: Likewise.
35333 * tree-ssa-dom.c: Likewise.
35334 * tree-ssa-forwprop.c: Likewise.
35335 * tree-ssa-loop-im.c: Likewise.
35336 * tree-ssa-loop-ivcanon.c: Likewise.
35337 * tree-ssa-loop-ivopts.c: Likewise.
35338 * tree-ssa-loop-niter.c: Likewise.
35339 * tree-ssa-phionlycprop.c: Likewise.
35340 * tree-ssa-phiopt.c: Likewise.
35341 * tree-ssa-propagate.c: Likewise.
35342 * tree-ssa-threadedge.c: Likewise.
35343 * tree-ssa-threadupdate.c: Likewise.
35344 * tree-ssa-uninit.c: Likewise.
35345 * tree-ssanames.c: Likewise.
35346 * tree-streamer-out.c: Likewise.
35347 * tree.c: Likewise.
35348 * tree.h: Likewise.
35349 * vr-values.c: Likewise.
35350
35351 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35352
35353 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35354 (ix86_split_xorsign): Ditto.
35355 * config/i386/i386.c (ix86_expand_xorsign): New function.
35356 (ix86_split_xorsign): Ditto.
35357 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35358 (xorsign<mode>3): New expander.
35359 (xorsign<mode>3_1): New insn_and_split pattern.
35360 * config/i386/sse.md (xorsign<mode>3): New expander.
35361
35362 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35363
35364 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35365 (*tablejump_sp64): Likewise.
35366 (*tablejump<P:mode>): ...this.
35367 (*call_address_sp32): Merge into...
35368 (*call_address_sp64): Likewise.
35369 (*call_address<P:mode>): ...this.
35370 (*call_symbolic_sp32): Merge into...
35371 (*call_symbolic_sp64): Likewise.
35372 (*call_symbolic<P:mode>): ...this.
35373 (call_value): Remove constraint and add predicate.
35374 (*call_value_address_sp32): Merge into...
35375 (*call_value_address_sp64): Likewise.
35376 (*call_value_address<P:mode>): ...this.
35377 (*call_value_symbolic_sp32): Merge into...
35378 (*call_value_symbolic_sp64): Likewise.
35379 (*call_value_symbolic<P:mode>): ...this.
35380 (*sibcall_symbolic_sp32): Merge into...
35381 (*sibcall_symbolic_sp64): Likewise.
35382 (*sibcall_symbolic<P:mode>): ...this.
35383 (sibcall_value): Remove constraint and add predicate.
35384 (*sibcall_value_symbolic_sp32): Merge into...
35385 (*sibcall_value_symbolic_sp64): Likewise.
35386 (*sibcall_value_symbolic<P:mode>): ...this.
35387 (window_save): Minor tweak.
35388 (*branch_sp32): Merge into...
35389 (*branch_sp64): Likewise.
35390 (*branch<P:mode>): ...this.
35391
35392 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35393 James Clarke <jrtc27@jrtc27.com>
35394
35395 PR target/84010
35396 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35397 consistently in TLS address generation and adjust code to the renaming
35398 of patterns. Mark calls to __tls_get_addr as const.
35399 * config/sparc/sparc.md (tgd_hi22): Turn into...
35400 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35401 (tgd_lo10): Turn into...
35402 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35403 (tgd_add32): Merge into...
35404 (tgd_add64): Likewise.
35405 (tgd_add<P:mode>): ...this and use Pmode throughout.
35406 (tldm_hi22): Turn into...
35407 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35408 (tldm_lo10): Turn into...
35409 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35410 (tldm_add32): Merge into...
35411 (tldm_add64): Likewise.
35412 (tldm_add<P:mode>): ...this and use Pmode throughout.
35413 (tldm_call32): Merge into...
35414 (tldm_call64): Likewise.
35415 (tldm_call<P:mode>): ...this and use Pmode throughout.
35416 (tldo_hix22): Turn into...
35417 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35418 (tldo_lox10): Turn into...
35419 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35420 (tldo_add32): Merge into...
35421 (tldo_add64): Likewise.
35422 (tldo_add<P:mode>): ...this and use Pmode throughout.
35423 (tie_hi22): Turn into...
35424 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35425 (tie_lo10): Turn into...
35426 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35427 (tie_ld64): Use DImode throughout.
35428 (tie_add32): Merge into...
35429 (tie_add64): Likewise.
35430 (tie_add<P:mode>): ...this and use Pmode throughout.
35431 (tle_hix22_sp32): Merge into...
35432 (tle_hix22_sp64): Likewise.
35433 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35434 (tle_lox22_sp32): Merge into...
35435 (tle_lox22_sp64): Likewise.
35436 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35437 (*tldo_ldub_sp32): Merge into...
35438 (*tldo_ldub_sp64): Likewise.
35439 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35440 (*tldo_ldub1_sp32): Merge into...
35441 (*tldo_ldub1_sp64): Likewise.
35442 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35443 (*tldo_ldub2_sp32): Merge into...
35444 (*tldo_ldub2_sp64): Likewise.
35445 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35446 (*tldo_ldsb1_sp32): Merge into...
35447 (*tldo_ldsb1_sp64): Likewise.
35448 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35449 (*tldo_ldsb2_sp32): Merge into...
35450 (*tldo_ldsb2_sp64): Likewise.
35451 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35452 (*tldo_ldub3_sp64): Use DImode throughout.
35453 (*tldo_ldsb3_sp64): Likewise.
35454 (*tldo_lduh_sp32): Merge into...
35455 (*tldo_lduh_sp64): Likewise.
35456 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35457 (*tldo_lduh1_sp32): Merge into...
35458 (*tldo_lduh1_sp64): Likewise.
35459 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35460 (*tldo_ldsh1_sp32): Merge into...
35461 (*tldo_ldsh1_sp64): Likewise.
35462 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35463 (*tldo_lduh2_sp64): Use DImode throughout.
35464 (*tldo_ldsh2_sp64): Likewise.
35465 (*tldo_lduw_sp32): Merge into...
35466 (*tldo_lduw_sp64): Likewise.
35467 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35468 (*tldo_lduw1_sp64): Use DImode throughout.
35469 (*tldo_ldsw1_sp64): Likewise.
35470 (*tldo_ldx_sp64): Likewise.
35471 (*tldo_stb_sp32): Merge into...
35472 (*tldo_stb_sp64): Likewise.
35473 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35474 (*tldo_sth_sp32): Merge into...
35475 (*tldo_sth_sp64): Likewise.
35476 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35477 (*tldo_stw_sp32): Merge into...
35478 (*tldo_stw_sp64): Likewise.
35479 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35480 (*tldo_stx_sp64): Use DImode throughout.
35481
35482 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35483
35484 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35485 check configure option to set BTI and Return Address Signing.
35486 * configure.ac: Add --enable-standard-branch-protection and
35487 --disable-standard-branch-protection.
35488 * configure: Regenerated.
35489 * doc/install.texi: Document the same.
35490
35491 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35492 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35493
35494 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35495 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35496 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35497 if bti is enabled.
35498 * config/aarch64/aarch64-bti-insert.c: New file.
35499 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35500 pass.
35501 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35502 new bti pass.
35503 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35504 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35505 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35506 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35507
35508 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35509
35510 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35511 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35512 Disable bti for -mbranch-protection=none.
35513 (aarch64_handle_standard_branch_protection): Enable bti for
35514 -mbranch-protection=standard.
35515 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35516 -mbranch-protection.
35517 (aarch64_bti_enabled): Check if bti is enabled.
35518 * config/aarch64/aarch64.opt: Declare target variable.
35519 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35520
35521 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35522
35523 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35524 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35525 (aarch64_expand_epilogue): Likewise.
35526 (aarch64_output_mi_thunk): Likewise.
35527 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35528 TAILCALL_ADDR_REGS to x16 and x17.
35529 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35530
35531 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35532
35533 * config/aarch64/aarch64-option-extensions.def: Define
35534 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35535 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35536 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35537 (AARCH64_FL_PREDRES): New.
35538 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35539 AARCH64_FL_PREDRES by default.
35540 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35541
35542 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35543
35544 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35545 ARMv8.5-A.
35546 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35547 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35548 * doc/invoke.texi: Document ARMv8.5-A.
35549
35550 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35551
35552 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35553 (xorsign<mode>3): Likewise.
35554
35555 2019-01-09 Jelinek <jakub@redhat.com>
35556
35557 PR middle-end/88758
35558 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35559 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35560
35561 PR rtl-optimization/88331
35562 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35563 not currently_expanding_to_rtl.
35564
35565 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35566
35567 * doc/invoke.texi (-Os): Remove trailing spaces.
35568 (-finline-functions): Remove reference to -O2.
35569
35570 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35571
35572 PR rtl-optimization/79593
35573 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35574
35575 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35576 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35577
35578 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35579
35580 PR bootstrap/88721
35581 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35582 to -1 on entry.
35583
35584 PR debug/88723
35585 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35586 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35587
35588 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35589
35590 PR target/88717
35591 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35592 ix86_avx_u128_mode_entry.
35593
35594 2019-01-08 Martin Liska <mliska@suse.cz>
35595
35596 PR tree-optimization/88753
35597 * tree-switch-conversion.c (switch_conversion::build_one_array):
35598 Come up with local variable constructor. Convert first to
35599 type of constructor values.
35600
35601 2019-01-08 Richard Biener <rguenther@suse.de>
35602
35603 PR tree-optimization/86554
35604 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35605 rpo_avail): Move earlier.
35606 (visit_nary_op): When value-numbering to expressions
35607 with different overflow behavior make sure there's an
35608 available expression on the path.
35609
35610 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35611
35612 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35613 aarch64_parse_branch_protection,
35614 struct aarch64_branch_protect_type,
35615 aarch64_handle_no_branch_protection,
35616 aarch64_handle_standard_branch_protection,
35617 aarch64_validate_mbranch_protection,
35618 aarch64_handle_pac_ret_protection,
35619 aarch64_handle_attr_branch_protection,
35620 accepted_branch_protection_string,
35621 aarch64_pac_ret_subtypes,
35622 aarch64_branch_protect_types,
35623 aarch64_handle_pac_ret_leaf): Define.
35624 (aarch64_override_options_after_change_1, aarch64_override_options):
35625 Add check for accepted_branch_protection_string.
35626 (aarch64_option_save): Save accepted_branch_protection_string.
35627 (aarch64_option_restore): Save accepted_branch_protection_string.
35628 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35629 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35630 msign-return-address.
35631 * doc/invoke.texi: Add mbranch-protection.
35632
35633 2019-01-08 Alan Modra <amodra@gmail.com>
35634
35635 PR target/88614
35636 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35637 Delete "unknownp" parameter. Adjust callers. Handle
35638 CONST_INT, PLUS, MINUS, and MULT.
35639 (attr_value_aligned): Renamed from or_attr_value.
35640 (min_attr_value): Return INT_MIN for unhandled rtl case..
35641 (min_fn): ..and translate to INT_MAX here.
35642 (write_length_unit_log): Modify to cope without "unknown".
35643 (write_attr_value): Handle IF_THEN_ELSE.
35644
35645 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35646
35647 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35648 optimization for masked stores.
35649
35650 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35651
35652 PR middle-end/88567
35653 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35654 output vector directly to duplicate_and_interleave instead of
35655 going through a temporary. Postpone insertion of ctor_seq to
35656 the end of the loop.
35657
35658 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35659
35660 PR target/86891
35661 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35662 unsigned_p. Handle signed and unsigned overflow correction as
35663 required.
35664 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35665 prototype.
35666 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35667 for operand 2.
35668 (add<mode>3_compareV_imm): Make this callable for expanding.
35669 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35670 aarch64_plus_operand for operand 2.
35671 (subv<GPI:mode>_insn): New insn pattern.
35672 (subv<GPI:mode>_imm): Likewise.
35673 (negv<GPI:mode>3): New expand pattern.
35674 (negv<GPI:mode>_insn): New insn pattern.
35675 (negv<GPI:mode>_cmp_only): Likewise.
35676 (cmpv<GPI:mode>_insn): Likewise.
35677 (subvti4): Use register_operand for operand 1. Update call to
35678 aarch64_expand_subvti.
35679 (usubvti4): Likewise.
35680 (negvti3): New expand pattern.
35681 (negdi_carryout): New insn pattern.
35682 (negvdi_carryinV): New insn pattern.
35683 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35684 version the named version.
35685 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35686 operands.
35687 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35688 patterns.
35689 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35690 patterns.
35691 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35692 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35693 (sub<mode>3_carryinCV): Delete.
35694 (sub<GPI:mode>3_carryinV): New expand pattern.
35695 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35696
35697 2019-01-07 Richard Biener <rguenther@suse.de>
35698
35699 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35700 of tree_operand_hash.
35701
35702 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35703
35704 PR tree-optimization/88598
35705 * tree.h (single_nonzero_element): Declare.
35706 * tree.c (single_nonzero_element): New function.
35707 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35708 if I is the only nonzero element of CST.
35709
35710 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35711
35712 PR tree-optimization/88598
35713 * tree.h (initializer_each_zero_or_onep): Declare.
35714 * tree.c (initializer_each_zero_or_onep): New function.
35715 (signed_or_unsigned_type_for): Handle float types too.
35716 (unsigned_type_for, signed_type_for): Update comments accordingly.
35717 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35718 x & { 0 or -1, 0 or -1, ... }.
35719
35720 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35721
35722 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35723 with x86_64-pc-linux-gnu.
35724
35725 2019-01-07 Tom de Vries <tdevries@suse.de>
35726
35727 PR target/85486
35728 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35729 function.
35730 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35731 routines.
35732
35733 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35734
35735 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35736 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35737 TARGET_AVX512F as condition.
35738
35739 PR debug/88723
35740 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35741 const_not_ok_for_debug_p target hook.
35742 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35743 on UNSPEC and subexpressions thereof if all subexpressions of the
35744 UNSPEC are CONSTANT_P.
35745
35746 PR tree-optimization/88676
35747 * tree-ssa-phiopt.c (two_value_replacement): New function.
35748 (tree_ssa_phiopt_worker): Call it.
35749
35750 PR sanitizer/88619
35751 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35752 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35753
35754 PR c++/85052
35755 * tree-vect-generic.c: Include insn-config.h and recog.h.
35756 (expand_vector_piecewise): Add defaulted ret_type argument,
35757 if non-NULL, use that in preference to type for the result type.
35758 (expand_vector_parallel): Formatting fix.
35759 (do_vec_conversion, do_vec_narrowing_conversion,
35760 expand_vector_conversion): New functions.
35761 (expand_vector_operations_1): Call expand_vector_conversion
35762 for VEC_CONVERT ifn calls.
35763 * internal-fn.def (VEC_CONVERT): New internal function.
35764 * internal-fn.c (expand_VEC_CONVERT): New function.
35765 * fold-const-call.c (fold_const_vec_convert): New function.
35766 (fold_const_call): Use it for CFN_VEC_CONVERT.
35767 * doc/extend.texi (__builtin_convertvector): Document.
35768
35769 2019-01-07 Tom de Vries <tdevries@suse.de>
35770
35771 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35772 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35773 vector_red_partition, vector_red_sym): New global variables.
35774 (nvptx_option_override): Initialize vector_red_sym.
35775 (nvptx_declare_function_name): Restore red_partition register.
35776 (nvptx_file_end): Emit code to declare the vector reduction variables.
35777 (nvptx_output_red_partition): New function.
35778 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35779 large vector reductions.
35780 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35781 (nvptx_init_builtins): Add VECTOR_ADDR.
35782 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35783 Handle nvptx_expand_shared_addr.
35784 (nvptx_get_shared_red_addr): Add vector argument and handle large
35785 vectors.
35786 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35787 large vectors.
35788 (nvptx_goacc_reduction_init): Likewise.
35789 (nvptx_goacc_reduction_fini): Likewise.
35790 (nvptx_goacc_reduction_teardown): Likewise.
35791 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35792 init,fini,teardown}.
35793 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35794 (nvptx_set_current_function): Init vector_red_partition.
35795 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35796 (nvptx_red_partition): New insn.
35797 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35798
35799 2019-01-07 Tom de Vries <tdevries@suse.de>
35800
35801 PR target/85381
35802 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35803 empty loops.
35804
35805 2019-01-07 Tom de Vries <tdevries@suse.de>
35806
35807 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35808 (nvptx_option_override): Init oacc_bcast_partition.
35809 (nvptx_init_oacc_workers): New function.
35810 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35811 (nvptx_needs_shared_bcast): New function.
35812 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35813 to propagate state.
35814 (nvptx_shared_propagate): Initialize vector bcast partition and
35815 synchronization state.
35816 (nvptx_single): Generalize to enable vectors to use shared-memory
35817 to propagate state.
35818 (nvptx_process_pars): Likewise.
35819 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35820 * config/nvptx/nvptx.h (struct machine_function): Add
35821 bcast_partition and sync_bar members.
35822
35823 2019-01-07 Tom de Vries <tdevries@suse.de>
35824
35825 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35826 (nvptx_apply_dim_limits): New function.
35827 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35828 PTX_WARP_SIZE.
35829
35830 2019-01-07 Tom de Vries <tdevries@suse.de>
35831
35832 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35833 as late as possible.
35834
35835 2019-01-07 Tom de Vries <tdevries@suse.de>
35836
35837 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35838 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35839 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35840 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35841 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35842
35843 2019-01-07 Tom de Vries <tdevries@suse.de>
35844
35845 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35846
35847 2019-01-07 Tom de Vries <tdevries@suse.de>
35848
35849 * omp-offload.c (oacc_get_min_dim): New function.
35850 * omp-offload.h (oacc_get_min_dim): Declare.
35851
35852 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35853
35854 PR target/88521
35855 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35856 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35857
35858 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35859
35860 PR tree-opt/86020
35861 Revert:
35862 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35863
35864 * ipa-inline.c (edge_badness): Use inlined_time instead of
35865 inline_summaries->get.
35866
35867 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35868
35869 * opts.c (enable_fdo_optimizations): Enable
35870 version-loops-for-strides, loop-interchange, unrol-and-jam
35871 and tree-loop-distribution.
35872 * invoke.texi: Document newly enabled options.
35873
35874 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35875
35876 * doc/invoke.texi (max-inline-insns-small): New parameters.
35877 * ipa-inline.c (want_early_inline_function_p): simplify.
35878 (want_inline_small_function_p): Fix pasto from previous patch;
35879 use max-inline-insns-small bound.
35880 * params.def (max-inline-insns-small): New param.
35881 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35882 variables correctly.
35883
35884 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35885
35886 * doc/invoke.texi: Document max-inline-insns-size,
35887 uninlined-function-insns, uninlined-function-time,
35888 uninlined-thunk-insns and uninlined-thunk-time.
35889 * params.def: Add max-inline-insns-size,
35890 uninlined-function-insns, uninlined-function-time,
35891 uninlined-thunk-insns and uninlined-thunk-time.
35892 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35893 new parameters.
35894 * ipa-inline.c (can_inline_edge_by_limits_p,
35895 want_inline_small_function_p): Use new parameters.
35896
35897 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35898
35899 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35900
35901 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35902
35903 PR middle-end/82564
35904 PR target/88620
35905 * expr.c (expand_assignment): For calls returning VLA structures
35906 if to_rtx is not a MEM, force it into a stack temporary.
35907
35908 PR debug/88635
35909 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35910 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35911 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35912 subexpressions of both operands.
35913 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35914 subrtxes are CONSTANT_P.
35915 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35916 2018-11-09 changes.
35917
35918 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35919
35920 * params.def (hot-bb-count-ws-permille): Set to 990.
35921
35922 2019-01-04 Martin Sebor <msebor@redhat.com>
35923
35924 PR c/88546
35925 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35926 leaf.
35927
35928 2019-01-04 Martin Sebor <msebor@redhat.com>
35929
35930 PR c/88363
35931 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35932
35933 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35934
35935 * gdbinit.in: Turn off pagination for the skip commands, restore
35936 it to previous state afterwards.
35937
35938 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35939
35940 PR target/88594
35941 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35942 of GET_MODE (opN) as modes of the libcall arguments.
35943
35944 2019-01-04 Jan Beulich <jbeulich@suse.com>
35945
35946 * config/i386/sse.md
35947 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35948 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35949 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35950 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35951 avx512f_vmcmp<mode>3<round_saeonly_name>,
35952 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35953 avx512f_maskcmp<mode>3,
35954 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35955 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35956 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35957 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35958 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35959 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35960 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35961 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35962 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35963 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35964 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35965 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35966 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35967 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35968 avx512cd_maskb_vec_dup<mode>,
35969 avx512cd_maskw_vec_dup<mode>,
35970 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35971 avx512dq_vmfpclass<mode>,
35972 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35973 instead of =Yk.
35974
35975 2019-01-03 Martin Sebor <msebor@redhat.com>
35976
35977 PR tree-optimization/88659
35978 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35979
35980 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35981
35982 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35983 unaligned vsx and avoid lxvd2x/stxvd2x.
35984 (gen_lvx_v4si_move): New function.
35985
35986 2019-01-03 Tom de Vries <tdevries@suse.de>
35987
35988 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35989 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35990 function.
35991 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35992
35993 2019-01-03 Tom de Vries <tdevries@suse.de>
35994
35995 * config/nvptx/nvptx.c (struct offload_attrs): New.
35996 (populate_offload_attrs): New function. Factor mask extraction out of
35997 nvptx_reorg. Add extraction of dimensions.
35998 (nvptx_reorg): Use populate_offload_attrs.
35999
36000 2019-01-03 Tom de Vries <tdevries@suse.de>
36001
36002 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
36003 cases for oacc_min_dims_p and routine_p. Add asserts for
36004 oacc_default_dims_p and offload_region_p.
36005
36006 2019-01-03 Tom de Vries <tdevries@suse.de>
36007
36008 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
36009 factored out of ...
36010 (nvptx_goacc_validate_dims): ... here.
36011
36012 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36013
36014 PR tree-optimization/85574
36015 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
36016 structure.
36017 (struct ssa_equip_hash_traits): Declare.
36018 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
36019
36020 2019-01-03 Jakub Jelinek <jakub@redhat.com>
36021
36022 PR debug/88644
36023 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
36024 change it to qualified_type.
36025
36026 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
36027
36028 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
36029 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
36030
36031 2019-01-02 Martin Sebor <msebor@redhat.com>
36032 Jeff Law <law@redhat.com>
36033
36034 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
36035 (get_range_strlen_tree): Update appropriately.
36036 (get_range_strlen)
36037 * gimple-fold.h (get_range_strlen): Drop unused last argument.
36038
36039 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
36040 rather than set_range_info.
36041 * tree-ssa-strlen.c (set_strlen_range): Extracted from
36042 maybe_set_strlen_range. Handle potentially boundary crossing
36043 cases more conservatively.
36044 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
36045 Call set_strlen_range.
36046 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
36047
36048 PR middle-end/88663
36049 * gimple-fold.c (get_range_strlen): Update prototype to no longer
36050 need the flexp argument.
36051 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
36052 from calls to get_range_strlen. Update comments. Just update
36053 VAL for an unterminated const char array and let the reset of the
36054 code handle it normally. No longer try to set *flexp. Adjust
36055 return value.
36056 (get_range_strlen): Update for the new get_range_strlen API.
36057 (get_maxval_strlen): Similarly.
36058 (gimple_fold_builtin_strlen): Handle update meaning of return value
36059 from get_range_strlen.
36060 * gimple-ssa-sprintf.c (get_string_length): Update for the new
36061 get_range_strlen API.
36062
36063 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
36064
36065 PR lto/88130
36066 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
36067 false at WPA time when body was removed.
36068
36069 2019-01-02 Martin Liska <mliska@suse.cz>
36070
36071 PR tree-optimization/88650
36072 * predict.c (set_even_probabilities): Calculate probability
36073 remainer only when really used.
36074
36075 2019-01-02 Richard Biener <rguenther@suse.de>
36076
36077 PR middle-end/88651
36078 * tree-data-ref.c (analyze_subscript_affine_affine): Use
36079 widest_ints when mangling max_stmt_execution results.
36080
36081 2019-01-02 Richard Biener <rguenther@suse.de>
36082
36083 PR tree-optimization/88621
36084 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
36085 bitfields when canoncalizing.
36086
36087 2019-01-02 Richard Biener <rguenther@suse.de>
36088
36089 PR target/87545
36090 * config/i386/x86-tune-costs.h (intel_cost): Adjust
36091 cost of cheap SSE instruction.
36092
36093 2019-01-02 Richard Biener <rguenther@suse.de>
36094
36095 PR ipa/85574
36096 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
36097 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
36098 function.
36099 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
36100 set after UIDs before splitting them.
36101
36102 2019-01-01 Martin Sebor <msebor@redhat.com>
36103 Jeff Law <law@redhat.com>
36104
36105 * gimple-fold.c (get_range_strlen_tree): Record if the computed
36106 length is optimistic. If it is, then arrange to compute the
36107 conservative length as well.
36108
36109 * gimple-fold.h (get_range_strlen): Update prototype.
36110 * builtins.c (check_access): Update call to get_range_strlen to use
36111 c_strlen_data pointer. Change various variable accesses to instead
36112 pull data from the c_strlen_data structure.
36113 (check_strncat_sizes, expand_builtin_strncat): Likewise.
36114 * calls.c (maybe_warn_nonstring_arg): Likewise.
36115 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
36116 minimum length if maximum lengh is unknown.
36117 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
36118 that used c_strlen, it's no longer needed. Restructure slightly.
36119 (format_string): Set unlikely range appropriately.
36120 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
36121 formatting issues.
36122 (get_range_strlen): Accept c_strlen_data pointer for external
36123 call sites as well. Pass through to call to internal get_range_strlen.
36124 Adjust minlen, maxlen and maxbound as needed.
36125 (get_maxval_strlen): Update comments.
36126 (gimple_fold_builtin_strlen): Update call to get_range_strlen
36127 to use c_strlen_data pointer. Change variable accesses to instead
36128 use c_strlen_data data members.
36129
36130 * gimple-fold.c (get_range_strlen): Update prototype.
36131 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
36132 local variables. Use pdata to return information to caller.
36133 Update calls to get_range_strlen. Update pdata->maxbound.
36134 (get_range_strlen -- static version): Similarly.
36135 (get_range_strlen -- extern version): Update for internal
36136 get_range_strlen API change. Convert to external data format.
36137 (get_maxval_strlen): Similarly.
36138
36139 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
36140
36141 * coverage.c (get_coverage_counts): Use current_function_decl.
36142 * profile.c (read_thunk_profile): New function.
36143 (branch_prob): Add THUNK parameter.
36144 * tree-profile.c (tree_profiling): Handle thunks.
36145 * value-prof.c (init_node_map): Handle thunks.
36146 * value-prof.h (branch_prob): Upate prototype.
36147 (read_thunk_profile): Declare.
36148
36149 2019-01-01 Jakub Jelinek <jakub@redhat.com>
36150
36151 Update copyright years.
36152
36153 * gcc.c (process_command): Update copyright notice dates.
36154 * gcov-dump.c (print_version): Ditto.
36155 * gcov.c (print_version): Ditto.
36156 * gcov-tool.c (print_version): Ditto.
36157 * gengtype.c (create_file): Ditto.
36158 * doc/cpp.texi: Bump @copying's copyright year.
36159 * doc/cppinternals.texi: Ditto.
36160 * doc/gcc.texi: Ditto.
36161 * doc/gccint.texi: Ditto.
36162 * doc/gcov.texi: Ditto.
36163 * doc/install.texi: Ditto.
36164 * doc/invoke.texi: Ditto.
36165 \f
36166 Copyright (C) 2019 Free Software Foundation, Inc.
36167
36168 Copying and distribution of this file, with or without modification,
36169 are permitted in any medium without royalty provided the copyright
36170 notice and this notice are preserved.