1 2019-12-09 David Malcolm <dmalcolm@redhat.com>
3 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
5 (selftest::test_diagnostic_show_locus_unknown_location): Remove
6 initial newline from expected outputs.
7 (selftest::test_one_liner_simple_caret): Likewise.
8 (selftest::test_one_liner_caret_and_range): Likewise.
9 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
10 (selftest::test_one_liner_fixit_insert_before): Likewise.
11 (selftest::test_one_liner_fixit_insert_after): Likewise.
12 (selftest::test_one_liner_fixit_remove): Likewise.
13 (selftest::test_one_liner_fixit_replace): Likewise.
14 (selftest::test_one_liner_fixit_replace_non_equal_range):
16 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
18 (selftest::test_one_liner_fixit_validation_adhoc_locations):
20 (selftest::test_one_liner_many_fixits_1): Likewise.
21 (selftest::test_one_liner_many_fixits_2): Likewise.
22 (selftest::test_one_liner_labels): Likewise.
23 (selftest::test_one_liner_simple_caret_utf8): Likewise.
24 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
25 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
27 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
28 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
29 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
30 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
31 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
33 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
35 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
37 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
38 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
39 (selftest::test_one_liner_labels_utf8): Likewise.
40 (selftest::test_add_location_if_nearby): Likewise.
41 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
42 (selftest::test_overlapped_fixit_printing): Likewise.
43 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
44 (selftest::test_overlapped_fixit_printing_2): Likewise.
45 (selftest::test_fixit_insert_containing_newline): Likewise.
46 (selftest::test_fixit_insert_containing_newline_2): Likewise.
47 (selftest::test_fixit_replace_containing_newline): Likewise.
48 (selftest::test_fixit_deletion_affecting_newline): Likewise.
49 (selftest::test_line_numbers_multiline_range): Likewise.
50 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
51 before call to diagnostic_show_locus.
52 (diagnostic_append_note): Likewise.
54 2019-12-09 Martin Sebor <msebor@redhat.com>
58 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
60 * hash-table.h (hash_table::expand): Use placement new to copy
61 construct objects in uninitialized storage.
62 (hash_table::empty_slow): Avoid invoking copy assignment on
63 uninitialized objects.
65 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
68 * input.c (location_compute_display_column): New function to help with
69 multibyte awareness in diagnostics.
70 (test_cpp_utf8): New self-test.
71 (input_c_tests): Call the new test.
72 * input.h (location_compute_display_column): Declare.
73 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
74 to all classes and functions.
75 (enum column_unit): New enum.
76 (class exploc_with_display_col): New class.
77 (class layout_point): Convert m_column member to array m_columns[2].
78 (layout_range::contains_point): Add col_unit argument.
79 (test_layout_range_for_single_point): Pass new argument.
80 (test_layout_range_for_single_line): Likewise.
81 (test_layout_range_for_multiple_lines): Likewise.
82 (line_bounds::convert_to_display_cols): New function.
83 (layout::get_state_at_point): Add col_unit argument.
84 (make_range): Use empty filename rather than dummy filename.
85 (get_line_width_without_trailing_whitespace): Rename to...
86 (get_line_bytes_without_trailing_whitespace): ...this.
87 (test_get_line_width_without_trailing_whitespace): Rename to...
88 (test_get_line_bytes_without_trailing_whitespace): ...this.
89 (class layout): m_exploc changed to exploc_with_display_col from
90 plain expanded_location.
91 (layout::get_linenum_width): New accessor member function.
92 (layout::get_x_offset_display): Likewise.
93 (layout::calculate_linenum_width): New subroutine for the constuctor.
94 (layout::calculate_x_offset_display): Likewise.
95 (layout::layout): Use the new subroutines. Add multibyte awareness.
96 (layout::print_source_line): Add multibyte awareness.
97 (layout::print_line): Likewise.
98 (layout::print_annotation_line): Likewise.
99 (line_label::line_label): Likewise.
100 (layout::print_any_labels): Likewise.
101 (layout::annotation_line_showed_range_p): Likewise.
102 (get_printed_columns): Likewise.
103 (class line_label): Rename m_length to m_display_width.
104 (get_affected_columns): Rename to...
105 (get_affected_range): ...this; add col_unit argument and multibyte
107 (class correction): Add m_affected_bytes and m_display_cols
108 members. Rename m_len to m_byte_length for clarity. Add multibyte
109 awareness throughout.
110 (correction::insertion_p): Add multibyte awareness.
111 (correction::compute_display_cols): New function.
112 (correction::ensure_terminated): Use new member name m_byte_length.
113 (line_corrections::add_hint): Add multibyte awareness.
114 (layout::print_trailing_fixits): Likewise.
115 (layout::get_x_bound_for_row): Likewise.
116 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
117 with _utf8 suffix removed, testing multibyte awareness.
118 (test_one_liner_caret_and_range_utf8): Likewise.
119 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
120 (test_one_liner_fixit_insert_before_utf8): Likewise.
121 (test_one_liner_fixit_insert_after_utf8): Likewise.
122 (test_one_liner_fixit_remove_utf8): Likewise.
123 (test_one_liner_fixit_replace_utf8): Likewise.
124 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
125 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
126 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
127 (test_one_liner_many_fixits_1_utf8): Likewise.
128 (test_one_liner_many_fixits_2_utf8): Likewise.
129 (test_one_liner_labels_utf8): Likewise.
130 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
131 (test_overlapped_fixit_printing_utf8): Likewise.
132 (test_overlapped_fixit_printing): Adapt for changes to
133 get_affected_columns, get_printed_columns and class corrections.
134 (test_overlapped_fixit_printing_2): Likewise.
135 (test_linenum_sep): New constant.
136 (test_left_margin): Likewise.
137 (test_offset_impl): Helper function for new test.
138 (test_layout_x_offset_display_utf8): New test.
139 (diagnostic_show_locus_c_tests): Call new tests.
141 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
143 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
144 TYPE_CANONICAL from the element type only if it is true. Remove a few
145 obsolete lines and adjust recursive call.
146 (fld_process_array_type): Adjust call to build_array_type_1.
147 (build_array_type): Likewise.
148 (build_nonshared_array_type): Likewise.
150 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
152 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
153 %s to %o in asm output.
154 (gather<mode>_insn_2offsets<exec>): Likewise.
156 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
158 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
161 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
163 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
165 (unnamed define_insn_and_split): Delete.
166 (unnamed define_insn): Delete.
167 (unnamed define_insn): Delete.
168 (unnamed define_split): Delete.
170 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
172 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
175 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
178 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
179 dataflow luids once basic blocks have been reordered.
180 * haifa-sched.c (reemit_notes): Create df insn record for each
182 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
183 insn has an insn record before trying to use it.
185 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
187 * common/config/i386/i386-common.c
188 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
189 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
190 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
191 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
192 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
193 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
194 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
195 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
196 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
197 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
198 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
199 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
200 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
201 OPTION_MASK_ISA_AVX512BF16_UNSET,
202 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
203 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
204 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
205 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
206 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
207 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
208 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
209 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
210 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
211 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
212 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
213 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
214 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
215 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
216 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
217 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
218 OPTION_MASK_ISA_ENQCMD): Ditto.
219 * config/i386/i386-builtin.def
220 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
221 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
222 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
223 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
224 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
225 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
226 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
227 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
228 * config/i386/i386-c.c
229 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
230 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
231 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
232 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
233 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
234 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
235 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
236 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
237 OPTION_MASK_ISA_ENQCMD): Ditto.
238 * config/i386/i386-option.c: Ditto
239 * config/i386/i386.opt: Ditto..
240 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
241 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
242 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
243 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
244 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
245 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
246 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
247 TARGET_ISA_ENQCMD): Ditto.
249 2019-12-09 Sudakshina Das <sudi.das@arm.com>
250 Richard Sandiford <richard.sandiford@arm.com>
252 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
253 vect_model_simple_cost call on scalar_shift_arg.
255 2019-12-09 Jakub Jelinek <jakub@redhat.com>
257 PR tree-optimization/92834
258 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
259 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
261 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
263 PR tree-optimization/89007
264 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
265 target support available, generate code to distribute rshift over plus
268 2019-12-09 Martin Liska <mliska@suse.cz>
271 * cgraph.c (symbol_table_test::symbol_table_test): Fix
273 * cgraph.h (symtab_node::symtab_node): New constructor.
274 (cgraph_node::cgraph_node): Likewise.
275 (varpool_node::varpool_node): Likewise.
276 (symbol_table::allocate_cgraph_symbol): Use newly
278 (symbol_table::allocate_cgraph_symbol): Remove.
279 * cgraphunit.c (symtab_terminator): Likewise.
280 * varpool.c (varpool_node::create_empty): Use newly
283 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
287 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
288 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
289 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
290 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
291 * config/i386/i386.c (ix86_print_operand): New operand substitution.
292 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
294 (ix86_expand_sse_cmp): Relax condition for integer mask from
295 512-bit vector to all 128/256/512-bit vector. Delete code gen
296 for avx512f compare patterns since we have generic pattern now.
297 (ix86_expand_sse_movcc): Adjust condition and codegen for
299 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
300 when corresponding vector compare is available.
302 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
305 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
307 * config/nios2/linux.h (LINK_EH_SPEC): Define.
309 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
311 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
312 * cgraph.h (cgrpah_node): Likewise.
313 (tp_first_run_node_cmp): Deeclare.
314 * cgraphunit.c (node_cmp): Rename to ...
315 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
316 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
317 (expand_all_functions): Collect tp_first_run and normal functions to
318 two vectors so the other functions remain sorted. Do not check for
319 flag_profile_reorder_functions it is function local flag.
320 * profile.c (compute_value_histograms): Update tp_first_run printing.
322 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
324 * opts.c (common_handle_option): Do not clear ipa_reference for
327 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
329 * ipa-split.c (split_function): Preserve 0 tp_first_run.
331 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
333 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
336 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
338 PR tree-optimization/92860
339 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
342 2019-12-07 Marek Polacek <polacek@redhat.com>
344 PR c++/91678 - wrong error with decltype and location wrapper.
345 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
347 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
350 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
351 sure to pass a valid inner mode in calls to simplify_gen_subreg.
353 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
354 David Malcolm <dmalcolm@redhat.com>
355 Jakub Jelinek <jakub@redhat.com>
358 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
359 instead of ST sequence to terminate OSC 8 strings.
361 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
362 Vladimir Makarov <vmakarov@redhat.com>
364 PR rtl-optimization/92176
365 * lra.c (simplify_subreg_regno): Don't permit unconditional
366 changing mode for LRA too.
368 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
370 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
371 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
372 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
375 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
377 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
380 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
382 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
383 (VEC_1REG_ALT): Likewise.
384 (VEC_ALL1REG_MODE): New mode iterator.
385 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
386 (VEC_1REG_INT_ALT): Likewise.
387 (VEC_ALL1REG_INT_MODE): New mode interator.
388 (VEC_ALL1REG_INT_ALT): Likewise.
389 (VEC_REG_MODE): Remove V64QI and V64HI.
390 (VEC_ALLREG_MODE): New mode interator.
391 (vec_merge): Change to VEC_ALLREG_MODE.
392 (vec_merge_with_clobber): Likewise.
393 (vec_merge_with_vcc): Likewise.
394 (mov<mode>): Likewise.
395 (mov<mode>_unspec): Likewise.
396 (*mov<mode>): Change to VEC_ALL1REG_MODE.
397 (mov<mode>_exec): Likewise.
398 (*mov<mode>_exec_match): Likewise.
399 (mov<mode>_sgprbase): Likewise.
400 (reload_in<mode>): Change to VEC_ALLREG_MODE.
401 (reload_out<mode>): Likewise.
402 (scalar address splits): Likewise.
403 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
404 (vec_set<mode>): Change to VEC_ALLREG_MODE.
405 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
406 (vec_duplicate<mode><exec>): Likewise.
407 (vec_extract<mode><scalar_mode>): Likewise.
408 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
409 (gather_load<mode>): Likewise.
410 (gather<mode>_exec): Likewise.
411 (gather<mode>_expr<exec>): Likewise.
412 (gather<mode>_insn_1offset<exec>): Likewise.
413 (gather<mode>_insn_1offset_ds<exec>): Likewise.
414 (gather<mode>_insn_2offsets<exec>): Likewise.
415 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
416 (VEC_INT_MODE): Remove V64QI and V64HI.
417 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
418 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
420 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
421 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
422 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
423 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
424 (maskstore<mode>di): Likewise.
425 (mask_gather_load<mode>): Likewise.
426 (mov_from_lane63_<mode>): Likewise.
427 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
428 and V64HImode vectorization.
429 (gcn_related_vector_mode): New function.
430 (TARGET_VECTORIZE_RELATED_MODE): New define.
432 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
433 Kwok Cheung Yeung <kcy@codesourcery.com>
435 * omp-low.c (lower_omp_target): For optional arguments, deref once
436 more to obtain the type.
438 2019-12-06 Richard Biener <rguenther@suse.de>
440 * match.pd (nop_convert): Remove empty match. Use nop_convert?
443 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
445 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
446 for empty vectors. Avoid using ordered_remove and instead
447 shuffle the vector as we go.
449 2019-12-06 Richard Biener <rguenther@suse.de>
451 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
453 (expr::opt_grp): Add and initialize.
454 (lower_opt_convert): Rename to ...
455 (lower_opt): ... and work on opt_grp, simply switching operations
456 from being optional to being present or not.
457 (has_opt_convert): Rename to ...
458 (has_opt): ... and adjust.
459 (parser::parse_operation): Return the optional opt_grp,
460 remove special-casing of conditional operations and more generally
462 (parser::parse_expr): Stick on the parsed opt_grp and perform
464 (parser::parse_for): Remove now unnecessary code.
466 * doc/match-and-simplify.texi: Mention ? now works on all
467 unary operations and also match predicates.
469 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
471 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
472 functions, not inline clones.
474 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
476 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
478 2019-12-06 Richard Biener <rguenther@suse.de>
480 * genmatch.c (c_expr::gen_transform): Emit newlines from line
481 number changes rather than after every semicolon.
483 2019-12-06 Richard Biener <rguenther@suse.de>
485 PR tree-optimization/92819
486 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
487 into the last lane. For two-element vectors try inserting
488 into the last lane when inserting into the first fails.
490 2019-12-06 Jakub Jelinek <jakub@redhat.com>
492 * common.opt (fprofile-partial-training): Terminate description with
495 2019-12-05 Martin Sebor <msebor@redhat.com>
498 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
499 left uninitialized by get_addr_base_and_unit_offset on failure.
501 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
503 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
504 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
505 (detect_type_change): Likewise.
506 (detect_type_change_ssa): Likewise.
507 (ipa_analyze_virtual_call_uses): Update.
509 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
511 * config/nios2/linux.h (LINK_EH_SPEC): Define.
513 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
515 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
517 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
519 * cgraphclones.c (localize_profile): New function.
520 (cgraph_node::create_clone): Use it for partial profiles.
521 * common.opt (fprofile-partial-training): New flag.
522 * doc/invoke.texi (-fprofile-partial-training): Document.
523 * ipa-cp.c (update_profiling_info): For partial profiles do not
524 set function profile to zero.
525 * profile.c (compute_branch_probabilities): With partial profile
526 watch if edge count is zero and turn all probabilities to guessed.
527 (compute_branch_probabilities): For partial profiles do not apply
528 profile when entry count is zero.
529 * tree-profile.c (tree_profiling): Only do value_profile_transformations
530 when profile is read.
532 2019-12-05 Sudakshina Das <sudi.das@arm.com>
534 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
535 check from if condition.
537 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
539 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
540 and Fortran's optional arguments, unconditionally add the is-present
541 condition before the libgomp call.
543 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
546 * tree-core.h (OEP_BITWISE): New flag.
547 * fold-const.c (operand_compare::operand_equal_p): Handle it.
548 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
550 2019-12-05 Richard Biener <rguenther@suse.de>
553 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
554 heuristics on what don't care element to choose.
555 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
557 2019-12-05 Martin Liska <mliska@suse.cz>
559 PR gcov-profile/92817
560 * coverage.c (build_gcov_exit_decl): Remove superfluous
563 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
565 * config/msp430/msp430.md (cbranch<mode>4): Use
566 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
567 dest operand of CMP instruction.
568 (cbranchpsi4_real): Likewise.
569 (cbranchqi4_real): Likewise.
570 (cbranchhi4_real): Likewise.
571 (cbranchpsi4_reversed): Likewise.
572 (cbranchqi4_reversed): Likewise.
573 (cbranchhi4_reversed): Likewise.
575 2019-12-05 Richard Biener <rguenther@suse.de>
577 PR tree-optimization/92803
578 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
579 invariant vector construction.
581 2019-12-05 Martin Liska <mliska@suse.cz>
583 PR gcov-profile/91971
584 * coverage.c (coverage_init): Mangle full path
585 only when -fprofile-dir is used.
587 2019-12-05 Jakub Jelinek <jakub@redhat.com>
590 * config/i386/i386.md (movstrict<mode>): Move test for
591 TARGET_PARTIAL_REG_STALL and not optimizing for size from
592 expander's condition to the body - FAIL; in that case.
594 2019-12-03 Martin Sebor <msebor@redhat.com>
597 * builtins.c (gimple_call_alloc_size): New function.
598 (compute_objsize): Add argument. Call gimple_call_alloc_size.
599 Handle variable offsets and indices.
600 * builtins.h (gimple_call_alloc_size): Declare.
601 (compute_objsize): Add argument.
602 * gimple-ssa-warn-restrict.c: Remove assertions.
603 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
605 2019-12-04 Julian Brown <julian@codesourcery.com>
607 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
609 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
612 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
614 (altivec_overloaded_builtins): Move to rs6000-call.c.
615 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
617 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
618 (altivec_overloaded_builtins): Moved from rs6000-c.c.
619 (rs6000_common_init_builtins): Do no define builtins that overload
620 builtins that have been disabled.
622 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
624 * config/arm/arm.c (arm_option_override_internal):
625 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
627 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
629 * config/aarch64/aarch64.c
630 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
631 (thunderx_tunings): Likewise.
632 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
633 (thunderx2t99_tunings): Likewise.
634 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
635 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
637 2019-12-04 Richard Biener <rguenther@suse.de>
639 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
640 empty CTOR and memset partial-def registering. Take advantage
641 of fancy offset analysis in memset handling.
643 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
645 * fold-const.c (native_encode_vector_part): Handle
646 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
647 (native_decode_vector_tree): Delete, moving the bulk of the code to...
648 (native_interpret_vector_part): ...this new function. Use a pointer
649 and length instead of a vec<> and start index.
650 (native_interpret_vector): Use native_interpret_vector_part.
651 (fold_view_convert_vector_encoding): Likewise.
653 2019-12-04 Richard Biener <rguenther@suse.de>
655 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
656 non-constant defs in the most trivial way.
657 (vn_reference_lookup_3): Also push down SSA partial defs.
659 2019-12-04 Martin Liska <mliska@suse.cz>
661 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
662 Initialize count of newly created BB.
664 2019-12-04 Jakub Jelinek <jakub@redhat.com>
666 PR tree-optimization/92734
667 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
668 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
670 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
673 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
674 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
676 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
678 * ipa-fnsummary.c: Include tree-into-ssa.h.
679 (compute_fn_summary): Call update_ssa.
681 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
683 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
684 is set only for symbol in comdat group.
685 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
687 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
689 * cgraph.c: Include tree-into-ssa.h
690 (cgraph_node::get_body): Call update_ssa.
691 * cgraphunit.c (cgraph_node::expand): Likewise.
692 * lto-streamer-in.c (input_function): Do not call update_ssa.
694 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
696 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
697 an array element size if array_element_size is already an invariant.
698 Similarly don't gimplify and install a field offset if
699 component_ref_field_offset is already an invariant.
701 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
703 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
704 with POLY_INT_CST size is made to a fixed-size object, force the
705 object to live in memory.
707 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
709 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
712 2019-12-03 Richard Biener <rguenther@suse.de>
714 PR tree-optimization/92758
715 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
716 operation on uniform vectors.
718 2019-12-03 Richard Biener <rguenther@suse.de>
720 PR tree-optimization/92645
721 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
722 from or to a properly aligned register variable.
724 2019-12-03 Matthias Klose <doko@ubuntu.com>
726 * Makefile.in (SOURCES): Add doc/lto-dump.1.
727 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
728 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
730 2019-12-03 Richard Biener <rguenther@suse.de>
732 PR tree-optimization/92751
733 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
734 when a clobber ends up in the partial-def vector.
735 (vn_reference_lookup_3): Let clobbers be handled by the
736 assignment from CTOR handling.
738 2019-12-03 Jakub Jelinek <jakub@redhat.com>
740 PR tree-optimization/92734
741 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
742 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
745 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
746 Jakub Jelinek <jakub@redhat.com>
749 * config/i386/i386.md (peephole2 for *swap<mode>): Use
750 general_reg_operand predicates instead of register_operand.
752 2019-12-03 Richard Biener <rguenther@suse.de>
754 PR tree-optimization/92645
755 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
756 a full def of a vector via a BIT_INSERT_EXPR.
758 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
760 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
762 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
765 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
768 * fold-const.c (fold_convertible_p): Check vector types more
771 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
773 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
774 (aarch64_expand_mov_immediate): Use it when attempting to measure
775 the length of an SVE vector.
776 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
779 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
781 * config/aarch64/aarch64-sve-builtins.h
782 (gimple_folder::force_vector): Declare.
783 * config/aarch64/aarch64-sve-builtins.cc
784 (gimple_folder::force_vector): New function.
785 * config/aarch64/aarch64-sve-builtins-base.cc
786 (svcmp_impl::fold): Likewise.
787 (svdup_impl::fold): Handle svdup_z too.
789 2019-12-02 Martin Liska <mliska@suse.cz>
791 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
793 (debug_tree_odr_name): New.
794 * ipa-utils.h (get_odr_name_for_type): New.
796 2019-12-02 Richard Biener <rguenther@suse.de>
798 PR tree-optimization/92742
799 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
800 touch the def-type but verify it is consistent with the
803 2019-12-02 Jakub Jelinek <jakub@redhat.com>
805 PR tree-optimization/92712
806 * match.pd ((A * B) +- A -> (B +- 1) * A,
807 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
808 even when we don't know anything about range of A, but do know
809 something about range of B and the simplification won't introduce
812 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
815 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
816 (ipa-cp-min-recursive-probability): Likewise.
817 * params.opt (ipa-cp-max-recursive-depth): New.
818 (ipa-cp-min-recursive-probability): Likewise.
819 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
821 (self_recursively_generated_p): New function.
822 (get_val_across_arith_op): Likewise.
823 (propagate_vals_across_arith_jfunc): Add constant propagation for
824 self-recursive function.
825 (incorporate_penalties): Do not penalize pure self-recursive function.
826 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
827 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
828 (get_info_about_necessary_edges): Relax hotness check for edge to
829 self-recursive function.
830 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
832 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
836 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
837 objects of flexible types to be small if they have internal linkage
838 or are declared extern.
839 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
840 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
841 instead of the size of the object initializer.
842 * tree.c (flexible_array_type_p): Move from C front end, and
843 generalize to handle fields in non-C structures.
844 * tree.h (flexible_array_type_p): Declare.
846 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
848 * profile-count.h (profile_count::operator<): Use IPA value for
850 (profile_count::operator>): Likewise.
851 (profile_count::operator<=): Likewise.
852 (profile_count::operator>=): Likewise.
853 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
855 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
857 * ipa-inline.c (compute_max_insns): Return int64_t.
858 (inline_small_functions): Simplify.
860 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
862 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
865 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
867 * cgraph.h (symtab_node): Add symver flag.
868 * cgraphunit.c (process_symver_attribute): New.
869 (process_common_attributes): Use process_symver_attribute.
870 * lto-cgraph.c (lto_output_node): Stream symver.
871 (lto_output_varpool_node): Stream symver.
872 (input_overwrite_node): Stream symver.
873 (input_varpool_node): Stream symver.
874 * output.h (do_assemble_symver): Decalre.
875 * symtab.c (symtab_node::dump_base): Dump symver.
876 (symtab_node::verify_base): Verify symver.
877 (symtab_node::resolve_alias): Handle symver.
878 * varasm.c (do_assemble_symver): New function.
879 * varpool.c (varpool_node::assemble_aliases): Use it.
880 * doc/extend.texi: (symver attribute): Document.
881 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
883 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
885 * target.h (type_context_kind): New enum.
886 (verify_type_context): Declare.
887 * target.def (verify_type_context): New target hook.
888 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
889 * doc/tm.texi: Regenerate.
890 * tree.c (verify_type_context): New function.
891 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
893 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
895 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
896 (TARGET_VERIFY_TYPE_CONTEXT): Define.
898 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
900 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
901 * cgraph.h (cgraph_node): Add unit_id and
902 merged_extern_inline.
903 (symbol_table): Add max_unit.
904 (symbol_table::symbol_table): Initialize it.
905 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
906 merged_comdat, merged_extern_inline.
907 (cgraph_node::create_clone): Likewise.
908 (cgraph_node::create_version_clone): Likewise.
909 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
911 * ipa-fnsummary.h (cross_module_call_p): New inline function.
912 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
913 * ipa-inline.c (inline_small_functions): Likewise.
914 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
915 copy merged_comdat and merged_extern_inline.
916 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
917 merged_extern_inline and unit_id.
918 (input_overwrite_node): Stream in these.
919 (input_cgraph_1): Set unit_base.
920 * lto-streamer.h (lto_file_decl_data): Add unit_base.
921 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
923 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
925 * gcc.c (process_command): Only warn about an ineffective `-x'
926 option if any input files have actually been supplied.
928 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
930 * doc/install.texi (Options specification): Remove the list of
931 target library subdirectories supporting
932 `--enable-version-specific-runtime-libs'. Document defaults for
935 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
937 PR rtl-optimization/92283
938 * lra.c (lra): Update reg notes after inheritance sub-pass and
939 before constraint sub-pass.
941 2019-11-29 Richard Biener <rguenther@suse.de>
943 PR tree-optimization/91003
944 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
945 operand number, avoid handling the non-condition operands of
946 COND_EXPRs as comparisons.
947 (vect_get_constant_vectors): Pass down the operand number.
948 (vect_get_slp_defs): Likewise.
950 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
952 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
953 generic_expr_could_trap_p to check if the condition of COND_EXPR or
954 VEC_COND_EXPR can trap.
956 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
958 PR tree-optimization/92677
959 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
960 to zero when dissolving a group of strided accesses.
962 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
964 PR tree-optimization/92596
965 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
967 (vectorizable_operation): Likewise, instead of relying on
968 vect_get_mask_type_for_stmt to do this.
969 (vect_get_vector_types_for_stmt): Always return a vector type
970 immediately, rather than deferring the choice for boolean results.
971 Use a vector mask type instead of a normal vector if
972 vect_use_mask_type_p.
973 (vect_get_mask_type_for_stmt): Delete.
974 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
975 mask_producers argument and special boolean_type_node handling.
976 (vect_determine_vf_for_stmt): Remove mask_producers argument and
977 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
978 (vect_determine_vectorization_factor): Update call accordingly.
979 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
980 boolean_type_node handling.
981 (vect_slp_analyze_node_operations_1): Likewise.
983 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
985 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
986 (vect_use_mask_type_p): New function.
987 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
988 mask precision to the pattern statement.
989 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
990 and use it to initialize the new stmt's mask precision.
991 (search_type_for_mask_1): Delete.
992 (search_type_for_mask): Replace with...
993 (integer_type_for_mask): ...this new function. Use the information
994 cached in the stmt_vec_info.
995 (vect_recog_bool_pattern): Update accordingly.
996 (build_mask_conversion): Pass the scalar type associated with the
997 mask type to append_pattern_def_seq.
998 (vect_recog_mask_conversion_pattern): Likewise. Call
999 integer_type_for_mask instead of search_type_for_mask.
1000 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1001 of search_type_for_mask.
1002 (possible_vector_mask_operation_p): New function.
1003 (vect_determine_mask_precision): Likewise.
1004 (vect_determine_stmt_precisions): Call it.
1006 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1008 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1009 the slp_tree parameter with a group size parameter.
1010 (vect_get_mask_type_for_stmt): Likewise.
1011 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1012 (vect_get_mask_type_for_stmt): Likewise.
1013 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1016 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1018 * tree-vect-stmts.c (vectorizable_operation): Punt early
1019 on codes that are handled elsewhere.
1021 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1023 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1024 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1025 operand to a boolean comparison is a natural vector mask,
1026 handle both operands like normal integers instead.
1028 2019-11-29 Richard Biener <rguenther@suse.de>
1030 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1031 out early for too large objects.
1033 2019-11-29 Martin Jambor <mjambor@suse.cz>
1036 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1037 the summary only if the summary exists.
1038 (find_more_scalar_values_for_callers_subset): Check node_dead in
1039 the summary only if the summary exists.
1040 (ipcp_store_bits_results): Ignore nodes without lattices.
1041 (ipcp_store_vr_results): Likewise.
1042 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1043 header files required by them.
1044 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1046 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1048 PR tree-optimization/92710
1049 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1050 vector mask arguments.
1052 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1054 * profile-count.c (profile_count::to_cgraph_frequency,
1055 profile_count::to_sreal_scale): Check for compaibility of counts.
1056 * profile-count.h (compatible_p): Make public; add checking for
1057 global0 versus global types.
1058 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1060 2019-11-29 Richard Biener <rguenther@suse.de>
1062 PR tree-optimization/92715
1063 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1064 out for uniform vectors and source vectors with less elements
1065 than the destination.
1067 2019-11-29 Martin Liska <mliska@suse.cz>
1070 * ipa-devirt.c (types_same_for_odr): Check for existence
1071 of TYPE_NAMEs first.
1073 2019-11-29 Richard Biener <rguenther@suse.de>
1075 PR tree-optimization/92704
1076 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1077 in loops performing only loads.
1079 2019-11-29 Julian Brown <julian@codesourcery.com>
1081 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1082 BT_DFLOAT128_PTR) Remove.
1083 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1084 TI_DFLOAT128_PTR_TYPE): Remove.
1085 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1086 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1087 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1088 dfloat128_ptr_type_node): Remove macros.
1090 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1092 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1094 (*movdi_internal64): Ditto.
1096 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1099 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1100 indexed_or_indirect_operand to be memory_operand.
1101 (bswap<mode>2_store for HSI): Ditto.
1102 (bswapdi2_load): Ditto.
1103 (bswapdi2_store): Ditto.
1105 2019-11-28 Martin Liska <mliska@suse.cz>
1108 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1109 headers for translation.
1111 2019-11-28 Martin Liska <mliska@suse.cz>
1114 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1117 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1119 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1122 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1124 * profile-count.c (profile_count::combine_with_ipa_count): Return
1125 uninitialized count if called on ininitialized count.
1127 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1129 * ipa-inline-transform.c (inline_transform): Scale profile before
1132 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1134 * profile-count.h (profile_count::max): Work on profiles of different
1136 (profile_count::apply_scale): Be sure that ret is not local or global0
1137 type if num is global.
1139 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1141 * profile-count.h (profile_count::max): Work on profiles of different
1143 (profile_count::apply_scale): Be sure that ret is not local or global0
1144 type if num is global.
1146 2019-11-28 Martin Jambor <mjambor@suse.cz>
1149 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1151 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1152 Removed trailig whitespace.
1154 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1156 * profile-count.h (profile_count::combine_with_ipa_count_within):
1158 * profile-count.c (profile_count::combine_with_ipa_count_within):
1160 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1163 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1165 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1166 of counters are done same way.
1168 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1170 * ipa-cp.c (update_profiling_info): Fix scaling.
1172 2019-11-28 Richard Biener <rguenther@suse.de>
1174 PR tree-optimization/92645
1175 * tree-inline.c (remap_gimple_stmt): When the return value
1176 is not wanted, elide GIMPLE_RETURN.
1178 2019-11-28 Richard Biener <rguenther@suse.de>
1180 PR tree-optimization/92645
1181 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1182 conversions inside a mode class. Remove restriction on
1183 preserving the element size.
1184 (simplify_vector_constructor): Deal with the above and for
1185 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1186 and VEC_PACK_TRUNC_EXPR.
1188 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1190 Must use push insn to pass varargs arguments of DFmode because
1191 otherwise the middle-end generates wrong code.
1194 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1196 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1198 PR tree-optimization/92691
1199 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1200 in function comment.
1201 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1202 calls, return !handle_printf_call rather than always returning true.
1203 (check_and_optimize_stmt): Describe return value meaning in function
1204 comment. Formatting fix.
1206 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1208 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1209 combination of globa0 and global counters..
1211 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1214 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1215 by VECTOR_UNIT_NONE_P instead.
1217 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1219 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1220 Refine VF to VF_AVX512VL.
1222 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1224 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1225 (movdi_internal64): Reformat.
1227 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1230 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1231 builtin if we don't have an actual type.
1232 (builtin_function_type): If the builtin function uses a DFP type
1233 and decimal float has been disabled, then return NULL_TREE.
1235 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1237 PR rtl-optimization/92510
1238 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1239 of comparison into a comparison with different mode if both imode and
1240 omode are scalar integral modes.
1242 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1244 PR rtl-optimization/90007
1245 * recog.c (constrain_operands): Permit hard registers too for
1246 memory when LRA is used.
1248 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1250 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1251 between Coldfire and regular m68k.
1252 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1254 2019-11-27 Richard Biener <rguenther@suse.de>
1256 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1257 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1258 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1259 * optabs-tree.c (supportable_convert_operation): Do not call
1260 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1261 * optabs-tree.h (supportable_convert_operation): Adjust.
1262 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1263 * doc/tm.texi: Regenerate.
1264 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1265 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1266 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1267 unused decl parameter and adjust.
1268 (vect_create_vectorized_promotion_stmts): Likewise.
1269 (vectorizable_conversion): Adjust.
1271 2019-11-27 Richard Biener <rguenther@suse.de>
1273 PR tree-optimization/92690
1274 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1275 converting elements not originally converted.
1277 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1280 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1281 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1282 mpfr_rnd_t instead of mp_rnd_t.
1283 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1284 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1285 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1286 Use mpfr_exp_t instead of mp_exp_t.
1287 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1288 MPFR_RNDx instead of GMP_RNDx.
1289 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1290 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1291 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1292 of mp_rnd_t and remove MPFR_RNDx poisoning.
1293 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1295 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1297 PR tree-optimization/91790
1298 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1299 DR for vect_setup_realignment when first_stmt_info is different
1300 from first_stmt_info_for_drptr.
1302 2019-11-27 Richard Biener <rguenther@suse.de>
1304 PR tree-optimization/92645
1305 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1306 CTORs with just a subset of the original vectors.
1308 2019-11-27 Richard Biener <rguenther@suse.de>
1311 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1312 edges and instead record blocks in bitmap.
1313 (gimple_expand_calls_inline): Adjust.
1314 (fold_marked_statements): Delay EH cleanup until all folding is
1316 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1319 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1321 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1323 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1326 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1329 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1331 2019-11-26 Martin Sebor <msebor@redhat.com>
1333 PR tree-optimization/92683
1334 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1335 inadvertently removed in a previous change. Rename local variable
1338 2019-11-26 Richard Biener <rguenther@suse.de>
1341 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1344 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1346 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1348 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1350 PR tree-optimization/92644
1351 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1352 next to INTEGER_CST checks.
1354 2019-11-26 Richard Biener <rguenther@suse.de>
1356 PR tree-optimization/92645
1357 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1358 do not build the operation from scalars if the operand is.
1360 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1362 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1363 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1366 2019-11-25 Martin Liska <mliska@suse.cz>
1368 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1369 up used dump message.
1371 2019-11-25 Martin Liska <mliska@suse.cz>
1374 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1375 too strict checking assert.
1377 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1380 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1381 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1382 error_mark_node if corresponding global tree node is NULL.
1383 * tree.c (build_common_tree_nodes): Do not initialize
1384 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1385 decimal floating-point not supported.
1387 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1389 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1392 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1394 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1395 Replace code for non-CONST_INT constants with gcc_unreachable.
1396 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1398 (CMPMODE): New mode_iterator.
1399 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1401 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1403 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1405 (bit test insns patterns): Use nonimmediate_operand, not
1406 register_operand, for source operands that allow memory in
1408 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1409 Use register_operand, not nonimmediate_operand, for the
1411 (DBCC): New mode_iterator.
1412 (dbcc peepholes): Use it to reduce duplication.
1413 (trap): Use const_true_rtx, not const1_rtx.
1414 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1415 from m68k_subword_comparison_operand and changed to handle
1419 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1421 (m68k_init_cc): New declaration.
1422 (m68k_output_compare_di, m68k_output_compare_si)
1423 (m68k_output_compare_hi, m68k_output_compare_qi)
1424 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1425 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1426 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1427 m68k_output_branch_float, m68k_output_branch_float_rev):
1429 (valid_dbcc_comparison_p_2, flags_in_68881)
1430 (output_btst): Remove declaration.
1431 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1432 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1433 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1434 (flags_compare_op0, flags_compare_op1, flags_operand1,
1435 flags_operand2, flags_valid): New static variables.
1436 (m68k_find_flags_value, m68k_init_cc): New functions.
1437 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1438 remember_compare_flags): New static functions.
1439 (output_dbcc_and_branch): New argument CODE. Use it, and add
1440 PLUS and MINUS to the possible codes. All callers changed.
1441 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1442 and INSN arguments, add CODE arg. Return the comparison code
1443 to use. All callers changed. Use CODE instead of
1444 next_insn_tests_no_inequality, and replace cc_status management
1445 with changing the return code.
1446 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1447 RTX_COMPARE or RTX_COMM_COMPARE.
1448 (output_move_simode, output_move_qimode): Call
1449 handle_flags_for_move.
1450 (notice_update_cc): Delete function.
1451 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1452 m68k_output_compare_hi, m68k_output_compare_qi,
1453 m68k_output_compare_fp, m68k_output_branch_integer,
1454 m68k_output_branch_integer_rev, m68k_output_scc,
1455 m68k_output_branch_float, m68k_output_branch_float_rev,
1456 m68k_output_scc_float): New functions.
1457 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1458 once at the start, and set flags_valid and flags_operand1 if the
1460 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1461 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1463 (CC_STATUS_INIT): Define.
1464 * config/m68k/m68k.md (flags_valid): New define_attr.
1465 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1466 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1467 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1468 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1469 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1470 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1471 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1472 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1473 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1474 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1475 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1476 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1477 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1478 ctrapqi4, conditional_trap): Delete patterns.
1479 (cbranchdi4_insn): New pattern.
1480 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1481 test high part only. When testing EQ or NE, generate beq0_di
1482 and bne0_di patterns directly.
1483 (cstoredi4): When testing LT or GE, test high part only.
1484 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1486 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1487 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1488 cmp2_cf_predicate): New define_mode_attrs.
1489 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1490 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1491 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1493 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1494 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1495 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1497 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1498 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1500 (BTST): New define_mode_iterator.
1501 (btst_predicate, btst_constraint, btst_range): New
1503 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1505 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1506 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1507 patterns): Set attr "flags_valid".
1508 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1509 management. Set attr "flags_valid".
1510 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1511 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1512 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1513 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1514 manual CC_STATUS management.
1515 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1516 unnamed strict_lowpart subhi and subqi patterns): Set attr
1518 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1519 Remove code to operate on address regs and assert the case
1521 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1522 manual CC_STATUS_INIT.
1523 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1524 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1525 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1526 one_cmplqi2, unnamed strict_lowpart patterns
1527 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1528 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1529 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1530 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1532 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1533 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1534 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1535 unnamed strict_low_part patterns for HI and
1536 QI versions): Set attr "flags_valid".
1537 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1538 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1539 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1540 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1541 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1542 (various unnamed peepholes): Adjust compare/branch sequences
1543 for new cbranch patterns.
1544 (dbcc peepholes): Likewise, and output the comparison here
1546 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1547 (fp_src_operand): Allow constant zero.
1548 (address_reg_operand): New predicate.
1550 * rtl.h (inequality_comparisons_p): Remove declaration.
1551 * recog.h (next_insn_tests_no_inequality): Likewise.
1552 * rtlanal.c (inequality_comparisons_p): Delete function.
1553 * recog.c (next_insn_tests_no_inequality): Likewise.
1555 2019-11-25 Richard Biener <rguenther@suse.de>
1557 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1558 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1559 properly re-building the visited hash-map for each lane.
1561 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1563 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1564 gcn_md_reorg): Remove unused variables.
1565 (gcn_emutls_var_init): Add missing (but unreachable) return
1567 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1568 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1569 an uninitialized variable.
1571 2019-11-25 Martin Jambor <mjambor@suse.cz>
1574 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1575 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1576 (cgraph_materialize_clone): Move removel from clone tree to the
1577 the new method and use it instead.
1578 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1579 bodies of clones, also remove it from the clone tree.
1581 2019-11-25 Martin Jambor <mjambor@suse.cz>
1584 * ipa-sra.c (process_isra_node_results): Put the new node to the
1585 same comdat group as the original node.
1587 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1589 Build double32 / long-double32 multilibs if needed.
1593 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1594 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1595 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1596 tm_defines and pass to genmultilib.awk.
1597 * config/avr/genmultilib.awk: Use these variables to add double32
1598 and / or long-double32 multilib(s) as needed.
1599 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1601 2019-11-25 Richard Biener <rguenther@suse.de>
1603 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1604 loop body, defaulted to NULL.
1605 (single_likely_exit): Add exit vector argument
1606 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1607 (number_of_iterations_exit): Likewise.
1608 (number_of_iterations_exit_assumptions): Likewise.
1609 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1611 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1612 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1613 Compute exit vector around call to single_likely_exit.
1614 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1615 loop body to loop_only_exit_p.
1616 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1618 (number_of_iterations_exit_assumptions): Get loop body from caller
1620 (number_of_iterations_exit): Pass through new loop body arg.
1621 (infer_loop_bounds_from_undefined): Get loop body from caller.
1622 (estimate_numbers_of_iterations): Compute loop body once.
1624 2019-11-25 Richard Biener <rguenther@suse.de>
1626 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1627 auto_bb_flag instead of an sbitmap for visited handling.
1629 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1631 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1633 (vector_fp_comparison_complex): Likewise.
1634 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1636 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1638 (vector_lt<mode> for VEC_F): Refactor with
1639 vector_fp_comparison_simple.
1640 (vector_le<mode> for VEC_F): Likewise.
1641 (vector_unge<mode> for VEC_F): Likewise.
1642 (vector_unle<mode> for VEC_F): Likewise.
1643 (vector_ne<mode> for VEC_F): Likewise.
1644 (vector_ungt<mode> for VEC_F): Likewise.
1645 (vector_unlt<mode> for VEC_F): Likewise.
1646 (vector_ltgt<mode> for VEC_F): Refactor with
1647 vector_fp_comparison_complex.
1648 (vector_ordered<mode> for VEC_F): Likewise.
1649 (vector_uneq<mode> for VEC_F): Likewise.
1650 (vector_unordered<mode> for VEC_F): Likewise.
1652 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1654 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1655 COMPARE, representing an overflow detection.
1657 * combine.c (combine_instructions): Record costs for jumps.
1659 * combine.c (can_combine_p): Allow autoinc in jumps.
1661 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1663 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1664 * doc/invoke.texi (max-inline-insns-single-O2,
1665 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1666 early-inlining-insns-O2): Remove documentation.
1667 * ipa-fnsummary.c (analyze_function_body,
1668 compute_fn_summary): Use opt_for_fn when accessing parameters.
1669 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1670 inline_insns_auto, can_inline_edge_by_limits_p,
1671 want_early_inline_function_p, big_speedup_p,
1672 want_inline_small_function_p, want_inline_self_recursive_call_p,
1673 recursive_inlining, compute_max_insns, inline_small_functions):
1675 * opts.c (default_options): Add -O3 defaults for
1676 OPT__param_early_inlining_insns_,
1677 OPT__param_inline_heuristics_hint_percent_,
1678 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1679 * params.opt (-param=early-inlining-insns-O2=,
1680 -param=inline-heuristics-hint-percent-O2=,
1681 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1682 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1683 -param=inline-min-speedup=, -param=inline-unit-growth=,
1684 -param=large-function-growth=, -param=large-stack-frame=,
1685 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1686 -param=max-inline-insns-recursive=,
1687 -param=max-inline-insns-recursive-auto=,
1688 -param=max-inline-insns-single=,
1689 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1690 -param=max-inline-recursive-depth=,
1691 -param=max-inline-recursive-depth-auto=,
1692 -param=min-inline-recursive-probability=,
1693 -param=partial-inlining-entry-probability=,
1694 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1695 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1698 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1700 * ipa-fnsummary.c: Fix comment typos.
1701 * ipa-ref.h: Likewise.
1702 * ipa-predicate.h: Likewise.
1703 * ipa-split.c: Likewise.
1704 * ipa-inline-analysis.c: Likewise.
1705 * ipa-predicate.c: Likewise.
1706 * ipa-devirt.c: Likewise.
1707 * ipa-icf.h: Likewise.
1708 * profile-count.c: Likewise.
1709 * ipa-icf.c: Likewise.
1710 (sem_function::equals_wpa): Fix typos in dump messages.
1711 * ipa-icf-gimple.h: Fix comment typos.
1712 * ipa-inline-transform.c: Likewise.
1713 * ipa-polymorphic-call.c: Likewise.
1714 * ipa-fnsummary.h: Likewise.
1715 * ipa-inline.c: Likewise.
1716 (dump_inline_stats): Fix typo in debug dump message.
1717 * profile-count.h: Fix comment typos.
1720 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1721 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1722 register_operand, force x into register before storing it into dest.
1726 * doc/extend.texi (attribute access): Fix a typo.
1728 PR rtl-optimization/92610
1729 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1730 cse_cfg_altered is set, even when tem is 0.
1731 (rest_of_handle_cse_after_global_opts): Likewise.
1733 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1736 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1737 tree_hash): Move to ...
1738 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1739 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1741 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1743 PR tree-optimization/92618
1744 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1745 containing the auto_vec and a tree.
1746 (undistribute_bitref_for_vector): Handle the case when element type
1747 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1750 2019-11-22 Martin Sebor <msebor@redhat.com>
1753 * attribs.h (struct attr_access): New.
1754 * attribs.c (decl_attributes): Add an informational note.
1755 * builtins.c (check_access): Make extern. Consistently set no-warning
1756 after issuing a warning. Handle calls through function pointers. Set
1758 * builtins.h (check_access): Declare.
1759 * calls.c (rdwr_access_hash): New type.
1761 (init_attr_rdwr_indices): New function.
1762 (maybe_warn_rdwr_sizes): Same.
1763 (initialize_argument_information): Call init_attr_rdwr_indices.
1764 Call maybe_warn_rdwr_sizes.
1765 (get_size_range): Avoid null argument.
1766 * doc/extend.texi (attribute access): Document new attribute.
1768 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1770 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1771 (ACC_LDS_SIZE): Define.
1772 (OTHER_LDS_SIZE): Define.
1773 (LDS_SIZE): Redefine using above.
1774 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1776 2019-11-22 Martin Sebor <msebor@redhat.com>
1779 * builtins.c (check_nul_terminated_array): New function.
1780 (fold_builtin_0): Remove declaration.
1781 (fold_builtin_1): Same.
1782 (fold_builtin_2): Same.
1783 (fold_builtin_3): Same.
1784 (fold_builtin_strpbrk): Add argument.
1785 (fold_builtin_strspn): Same.
1786 (fold_builtin_strcspn): Same.
1787 (expand_builtin_strcat): Call it. Remove unused argument.
1788 (expand_builtin_stpncpy): Same.
1789 (expand_builtin_strncat): Same.
1790 (expand_builtin_strncpy): Same. Adjust indentation.
1791 (expand_builtin_strcmp): Same.
1792 (expand_builtin_strncmp): Same.
1793 (expand_builtin_fork_or_exec): Same.
1794 (expand_builtin): Handle more built-ins.
1795 (fold_builtin_2): Add argument.
1796 (fold_builtin_n): Make static. Add argument.
1797 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1798 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1799 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1800 (fold_call_stmt): Pass new argument to fold_builtin_n.
1801 * builtins.h: Correct a comment.
1802 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1803 check_nul_terminated_array.
1804 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1805 check_nul_terminated_array.
1806 (handle_builtin_strchr): Same.
1807 (handle_builtin_string_cmp): Same.
1809 2019-11-22 Martin Sebor <msebor@redhat.com>
1811 PR tree-optimization/92501
1812 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1813 handle unterminated arrays. Rename local variables for clarity.
1815 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1817 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1818 granulated_sgprs according to architecture.
1820 2019-11-22 Jan Hubicka <jh@suse.cz>
1822 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1823 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1824 (memory_block_pool::reduce_free_list): ... this one.
1825 (memory_block_pool::trim): New static function.
1826 * memory-block.h (memory_block_pool::freelist_size): New constant
1827 (memory_block_pool::clear_free_list): Rename to ...
1828 (memory_block_pool::reduce_free_list): ... this one.
1829 (memory_block_pool::trim): Declare.
1831 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1833 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1835 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1837 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1839 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1841 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1842 (bic_cmp0_noout): New pattern.
1843 (bic_cmp0): Likewise.
1844 (neg_scc_insn): Remove pattern.
1845 (not_scc_insn): Likewise.
1847 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1849 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1851 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1853 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1854 pedwarn instead of warning_at for fallthrough not preceding a case
1857 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1859 PR tree-optimization/92608
1860 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1863 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1865 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1867 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1868 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1869 special for FP comparisons that need a cror instruction eventually.
1870 (rs6000_emit_fp_cror): New function.
1871 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1872 instruction, for normal FP modes, with HONOR_NANS.
1873 (rs6000_emit_cbranch): Reformat.
1874 * config/rs6000/rs6000.md (fp_rev): New iterator.
1875 (fp_two): New iterator.
1876 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1877 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1878 *cbranch_2insn: New define_insn_and_split.
1880 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1882 PR tree-optimization/92526
1883 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1884 versioning for alignment if the accesses do not have a consistent
1885 mask, rather than asserting that the masks are consistent.
1887 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1889 PR tree-optimization/92595
1890 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1892 (vectorizable_store, vectorizable_load): Likewise.
1894 2019-11-21 Jan Hubicka <jh@suse.cz>
1896 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1897 (resolve_noninline_speculation, inline_small_functions): Avoid
1900 2019-11-21 Richard Biener <rguenther@suse.de>
1902 * lra.c (lra_insn_recog_data_pool): New.
1903 (free_insn_recog_data): Adjust.
1904 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1905 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1907 2019-11-21 Richard Biener <rguenther@suse.de>
1909 PR tree-optimization/92596
1910 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1912 2019-11-21 Jan Hubicka <jh@suse.cz>
1914 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1915 ready for some vectors to not be allocated.
1916 (evaluate_properties_for_edge): Document better; make
1917 known_vals and known_aggs caller allocated; avoid determining
1918 values of parameters which are not used.
1919 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1921 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1922 (do_estimate_edge_size): Likewise.
1923 (do_estimate_edge_hints): Likewise.
1924 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1925 values are not known.
1926 (ipa_release_agg_values): Add option to not release vector itself.
1927 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1929 2019-11-21 Richard Biener <rguenther@suse.de>
1931 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1932 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1933 (loop_iterator::loop_iterator): Adjust.
1934 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1935 (compute_dominance_frontiers): ... this. Hoist invariant
1936 get_immediate_dominator call.
1937 (compute_idf): Use a work-set instead of a work-list for more
1938 optimal iteration order and duplicate avoidance.
1939 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1940 the vector all the time, instead pre-allocate the vector only
1942 (delete_update_ssa): Simplify.
1943 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1945 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1947 PR tree-optimization/91355
1948 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1949 for early_bb scaled count with best_bb count comparison.
1951 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1953 * ipa-inline.c (edge_badness): Likewise.
1954 * lto-streamer.h (class lto_location_cache): Likewise.
1955 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1956 gratutious -> gratuitous.
1958 2019-11-21 Richard Biener <rguenther@suse.de>
1961 2019-09-17 Richard Biener <rguenther@suse.de>
1963 PR tree-optimization/91790
1964 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1965 use the correct DR for setting up realignment.
1967 2019-11-21 Richard Biener <rguenther@suse.de>
1969 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1970 (equiv_class_obstack): New.
1971 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1972 (perform_var_substitution): Initialize equiv_class_obstack.
1973 (free_var_substitution_info): Free equiv_class_obstack.
1975 2019-11-20 Jan Hubicka <jh@suse.cz>
1977 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1978 edge growth when callee function is very large.
1979 * ipa-inline.h (estimate_min_edge_growth): New.
1981 2019-11-20 Jan Hubicka <jh@suse.cz>
1983 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1984 negative time in calls summary; correct roundoff errors
1985 leading to negative times.
1986 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1988 (ipa_update_overall_fn_summary): Add RESET parameter.
1989 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1990 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1992 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1994 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1995 def types for two-operation SLP.
1997 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2000 * doc/sourcebuild.texi (vect_char_add): Document.
2002 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2004 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2005 * function.c (record_final_call): Record even calls that might
2006 have been in the cgraph.
2007 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2010 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2012 * configure.ac: Use https for gcc.gnu.org
2013 * configure: Regenerated.
2014 * doc/install.texi: Use https for gcc.gnu.org.
2015 * doc/sourcebuild.texi: Likewise.
2017 2019-11-20 Julian Brown <julian@codesourcery.com>
2019 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2021 2019-11-20 Jan Hubicka <jh@suse.cz>
2023 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2024 parameter and update call_size_time_table.
2025 (ipa_fn_summary::max_size_time_table_size): New constant.
2026 (estimate_calls_size_and_time_1): Break out from ...
2027 (estimate_calls_size_and_time): ... here; implement summary production.
2028 (summarize_calls_size_and_time): New function.
2029 (ipa_call_context::estimate_size_and_time): Bypass
2030 estimate_calls_size_and_time for leaf functions.
2031 (ipa_update_overall_fn_summary): Likewise.
2032 * ipa-fnsummary.h (call_size_time_table): New.
2033 (ipa_fn_summary::account_size_time): Update prototype.
2035 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2037 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2039 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2042 * common.opt (fcommon): Change init to 1.
2043 * doc/invoke.texi (-fcommon): Update documentation.
2045 2019-11-20 Jan Hubicka <jh@suse.cz>
2047 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2050 2019-11-20 Jan Hubicka <jh@suse.cz>
2052 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2053 Add allocator parameter.
2054 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2055 (fibonacci_heap<K,V>::m_allocator): New.
2056 (fibonacci_heap<K,V>::m_own_allocator): New.
2057 (fibonacci_heap<K,V>::insert): Use allocator.
2058 (fibonacci_heap<K,V>::extract_min): Likewise.
2059 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2061 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2063 * fibonacci_heap.c: Include alloc-pool
2064 (test_empty_heap): Initialize allocator.
2065 (test_union): Likewise.
2066 * bb-reorder.c: Include alloc-pool.h.
2067 * tracer.c: Inlclude alloc-pool.h.
2069 2019-11-20 Jan Hubicka <jh@suse.cz>
2071 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2072 Preallocate for 32 entries.
2073 (DFS::worklist): Likewise.
2074 (DFS::DFS): Do not initialize sccstack and worklist.
2075 (DFS::~DFS): Do not release sccstack.
2077 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2080 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2081 Handle UNORDERED if !HONOR_NANS.
2083 2019-11-20 Jan Hubicka <jh@suse.cz>
2085 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2086 (edge_badness): ... here.
2087 (inline_small_functions): Use monotonicity of badness calculation
2088 to avoid redundant updates.
2090 2019-11-20 Richard Biener <rguenther@suse.de>
2092 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2093 constructors we are actually analyzing.
2094 (vect_slp_check_for_constructors): Do not vectorize uniform
2095 constuctors, do not dump here.
2097 2019-11-20 Richard Biener <rguenther@suse.de>
2099 PR tree-optimization/92537
2100 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2101 vectorization validity check...
2102 (vect_slp_analyze_operations): ... here.
2104 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2106 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2107 (make_pass_arc_predicate_delay_insns): Likewise.
2108 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2109 method, remove clone.
2110 (class pass_arc_predicate_delay_insns): Likewise.
2111 (arc_init): Remove registering of ARC specific passes.
2112 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2113 * config/arc/arc-passes.def: New file.
2115 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2118 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2119 and has a mode that doesn't have corresponding integral type.
2122 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2123 clear opts->x_ix86_isa_flags{,2} here...
2124 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2125 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2128 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2130 (insert_clobbers_for_var): Fix a typo in function comment.
2132 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2133 Jakub Jelinek <jakub@redhat.com>
2136 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2137 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2140 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2142 Make 0-series device specs work with older versions of avr-gcc.
2145 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2146 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2147 <*link_pm_base_address>: Don't write spec.
2148 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2150 2019-11-20 Richard Biener <rguenther@suse.de>
2153 * builtins.c (compute_objsize): Deal with VLAs.
2155 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2157 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2159 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2161 (power9_sched_reorder2): Call new function.
2162 (rs6000_sched_reorder2): Likewise.
2164 2019-11-18 Jan Hubicka <jh@suse.cz>
2166 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2167 (estimate_calls_size_and_time): Update.
2169 2019-11-18 Jan Hubicka <jh@suse.cz>
2171 * ipa-inline.c (inlining_speedup): New function.
2172 (edge_badness): Use it.
2174 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2175 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2177 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2178 Mark as not having "likely" version.
2179 * config/mips/mips.md (insn_count): The simd_div instruction with
2180 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2181 (can_delay): Exclude simd_branch.
2182 (defile_delay *): Add simd_branch instructions.
2183 They have one regular delay slot.
2185 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2188 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2190 * cse.c (cse_insn): Delete no-op register moves too.
2191 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2192 Take a second comparison to control the value for NE.
2193 (mask_to_comparison): Handle unsigned comparisons.
2194 (simplify_logical_relational_operation): Likewise. Update call
2195 to comparison_to_mask. Handle AND if !HONOR_NANs.
2196 (simplify_binary_operation_1): Call the above for AND too.
2198 2019-11-19 Martin Liska <mliska@suse.cz>
2200 * toplev.c (general_init): Move the call...
2201 (toplev::main): ... here as we need init_options_struct
2204 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2207 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2210 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2212 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2213 (armv7-a): Likewise.
2214 (armv7ve): Likewise.
2216 2019-11-19 Richard Biener <rguenther@suse.de>
2218 PR tree-optimization/92581
2219 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2220 condition reduction chains gather all conditions involved
2221 for computing the index reduction vector.
2223 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2225 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2226 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2227 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2228 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2229 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2230 (aarch64_init_memtag_builtins): New.
2231 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2232 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2233 (aarch64_expand_builtin_memtag): New.
2234 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2235 (AARCH64_BUILTIN_SUBCODE): New macro.
2236 (aarch64_resolve_overloaded_memtag): New.
2237 (aarch64_resolve_overloaded_builtin_general): New. Call
2238 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2239 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2240 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2241 (aarch64_resolve_overloaded_builtin): Call
2242 aarch64_resolve_overloaded_builtin_general.
2243 * config/aarch64/aarch64-protos.h
2244 (aarch64_resolve_overloaded_builtin_general): New declaration.
2245 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2246 (TARGET_MEMTAG): Likewise.
2247 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2248 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2249 (irg, gmi, subp, addg, ldg, stg): New instructions.
2250 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2251 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2252 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2253 (__arm_mte_get_tag): Likewise.
2254 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2255 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2256 * config/arm/types.md (memtag): New.
2257 * doc/invoke.texi (-memtag): Update description.
2259 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2261 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2262 to define __GCC_ASM_FLAG_OUTPUTS__.
2263 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2264 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2265 depending on TARGET_THUMB1.
2266 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2268 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2271 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2274 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2275 operand is negative and one non-negative, compare the non-negative
2276 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2277 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2278 and s2 == 0, unless one of them is known to be negative. Remove
2279 tem2 variable, use tem where tem2 has been used before.
2281 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2283 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2285 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2287 PR tree-optimization/92557
2288 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2289 vmode rather than asserting it always is.
2291 2019-11-19 Richard Biener <rguenther@suse.de>
2293 PR tree-optimization/92554
2294 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2295 for the actual condition stmt and deal with sign-changes.
2297 2019-11-19 Richard Biener <rguenther@suse.de>
2299 PR tree-optimization/92555
2300 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2303 2019-11-19 Martin Liska <mliska@suse.cz>
2306 * config/riscv/riscv.c (riscv_address_insns): Initialize
2307 addr in order to remove boostrap -Wmaybe-uninitialized
2310 2019-11-18 Martin Sebor <msebor@redhat.com>
2312 PR tree-optimization/92493
2313 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2316 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2318 * cfgloop.c (get_loop_body_in_custom_order): New.
2319 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2320 * tree-loop-distribution.c (class loop_distribution): New.
2321 (bb_top_order_cmp): Remove.
2322 (bb_top_order_cmp_r): New.
2323 (create_rdg_vertices): Move into class loop_distribution.
2324 (stmts_from_loop): Same as above.
2325 (update_for_merge): Same as above.
2326 (partition_merge_into): Same as above.
2327 (get_data_dependence): Same as above.
2328 (data_dep_in_cycle_p): Same as above.
2329 (update_type_for_merge): Same as above.
2330 (build_rdg_partition_for-vertex): Same as above.
2331 (classify_builtin_ldst): Same as above.
2332 (classify_partition): Same as above.
2333 (share_memory_accesses): Same as above.
2334 (rdg_build_partitions): Same as above.
2335 (pg_add_dependence_edges): Same as above.
2336 (build_partition_graph): Same as above.
2337 (merge_dep_scc_partitions): Same as above.
2338 (break_alias_scc_partitions): Same as above.
2339 (finalize_partitions): Same as above.
2340 (distribute_loop): Same as above.
2341 (bb_top_order_init): New method
2342 (bb_top_order_destroy): New method.
2343 (get_bb_top_order_index_size): New method.
2344 (get_bb_top_order_index_index): New method.
2345 (get_bb_top_order_index_index): New method.
2346 (loop_distribution::execute): New method.
2347 (pass_loop_distribution::execute): Instantiate loop_distribution.
2349 2019-11-18 Jan Hubicka <jh@suse.cz>
2352 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2354 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2356 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2358 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2359 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2360 * doc/md.texi: Document them.
2361 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2363 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2364 * internal-fn.c (check_ptrs_direct): New macro.
2365 (expand_check_ptrs_optab_fn): Likewise.
2366 (direct_check_ptrs_optab_supported_p): Likewise.
2367 (internal_check_ptrs_fn_supported_p): New fuction.
2368 * tree-data-ref.c: Include internal-fn.h.
2369 (create_ifn_alias_checks): New function.
2370 (create_intersect_range_checks): Use it.
2371 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2372 (optab, cmp_op): Handle it.
2373 (raw_war, unspec): New int attributes.
2374 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2376 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2378 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2380 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2383 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2385 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2388 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2390 * cse.c (cse_insn): Delete no-op register moves too.
2391 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2392 Take a second comparison to control the value for NE.
2393 (mask_to_comparison): Handle unsigned comparisons.
2394 (simplify_logical_relational_operation): Likewise. Update call
2395 to comparison_to_mask. Handle AND if !HONOR_NANs.
2396 (simplify_binary_operation_1): Call the above for AND too.
2398 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2400 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2401 splitting the main code out into...
2402 (native_encode_vector_part): ...this new function.
2403 (native_decode_vector_tree): New function.
2404 (fold_view_convert_vector_encoding): Likewise.
2405 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2408 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2410 * tree-data-ref.c (create_intersect_range_checks_index): If the
2411 alias pair describes simple WAW and WAR dependencies, just check
2412 whether the first B access overlaps later A accesses.
2413 (create_waw_or_war_checks): New function that performs the same
2414 optimization on addresses.
2415 (create_intersect_range_checks): Call it.
2417 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2419 * lra-constraints.c (valid_address_p): Take the operand and a
2420 constraint as argument. If the operand is a MEM and the constraint
2421 is a memory constraint, check whether the eliminated form of the
2422 MEM already satisfies the constraint.
2423 (process_address_1): Update calls accordingly.
2425 2019-11-18 Tom Tromey <tromey@adacore.com>
2427 * doc/tm.texi: Rebuild.
2428 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2429 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2431 2019-11-18 Richard Biener <rguenther@suse.de>
2433 PR tree-optimization/92516
2434 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2435 argument, hoist bst_map creation/destruction to ...
2436 (vect_analyze_slp): ... here, forming a true graph with
2437 SLP instances being the entries.
2438 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2439 (vect_detect_hybrid_slp): Use one visited set for all
2441 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2442 to hash-sets of slp_tree.
2443 (vect_slp_analyze_operations): Likewise.
2444 (vect_bb_slp_scalar_cost): Remove wrapper.
2445 (vect_bb_vectorization_profitable_p): Use one visited set for
2447 (vect_schedule_slp_instance): Elide bst_map use.
2448 (vect_schedule_slp): Likewise.
2450 2019-11-18 Richard Biener <rguenther@suse.de>
2452 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2453 was vectorized with just external refs fail.
2455 2019-11-18 Martin Liska <mliska@suse.cz>
2458 * ipa-icf.c (sem_function::init): Unset m_checker
2459 at the end of the function.
2461 2019-11-18 Richard Biener <rguenther@suse.de>
2463 PR tree-optimization/92558
2464 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2465 reducting the width of a reduction vector def update new_phis.
2467 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2469 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2470 and s390*-*-linux-musl* targets.
2471 * configure: Regenerate.
2473 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2475 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2476 (MUSL_DYNAMIC_LINKER64): Define.
2478 2019-11-18 Martin Liska <mliska@suse.cz>
2480 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2481 message for an unknown counter.
2482 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2483 (dbg_cnt_process_opt): Remove unreachable code.
2485 2019-11-18 Martin Liska <mliska@suse.cz>
2488 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2489 Compare LHS types of NOP_EXPR.
2491 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2493 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2494 "initial_pass_name" argument -- by running "*clean_state" pass.
2495 Also free the "initial_pass_name" when done.
2497 2019-11-18 Richard Biener <rguenther@suse.de>
2499 PR rtl-optimization/92462
2500 * alias.c (find_base_term): Restrict the look through ANDs.
2501 (find_base_value): Likewise.
2503 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2505 Add support for AVR devices from the 0-series.
2508 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2509 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2510 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2511 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2512 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2513 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2514 for spec definitions.
2515 * doc/avr-mmcu.texi: Regenerate.
2517 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2520 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2521 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2522 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2523 (ix86_reassociation_width): Ditto.
2524 * config/i386/i386-options.c (ix86_option_override_internal):
2525 Replace TARGET_AVX128_OPTIAML with
2526 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2527 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2528 (TARGET_AVX128_OPTIMAL): Deleted.
2529 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2532 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2534 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2535 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2537 (cceq_rev_compare): Rename to...
2538 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2540 (define_split for <bd>tf_<mode>): Add SImode first argument to
2541 gen_cceq_ior_compare.
2543 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2545 * common/config/powerpcspe: Delete.
2547 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2549 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2550 output in UNSPEC_WRFFR.
2552 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2554 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2555 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2557 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2559 * tree-data-ref.c (create_intersect_range_checks_index)
2560 (create_intersect_range_checks): Print dump messages.
2562 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2564 * tree-data-ref.c (dump_alias_pair): New function.
2565 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2567 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2569 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2570 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2571 merging data references with different steps.
2572 (create_intersect_range_checks_index): Take a
2573 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2574 Bail out if DR_ALIAS_MIXED_STEPS is set.
2575 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2576 instead of two dr_with_seg_lens. Update call to
2577 create_intersect_range_checks_index.
2578 (create_runtime_alias_checks): Update call accordingly.
2580 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2582 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2583 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2584 (dr_with_seg_len_pair_t::sequencing): New enum.
2585 (dr_with_seg_len_pair_t::flags): New member variable.
2586 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2587 parameter and initialize the flags member variable.
2588 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2590 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2591 Ensure the two data references in an alias pair are in statement
2592 order, if there is a defined order.
2593 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2594 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2595 swapped the references in a dr_with_seg_len_pair_t. OR together
2596 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2597 try to restore the original dr_with_seg_len order, updating the
2598 flags if that fails.
2600 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2602 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2603 swapping the dr_as based on init values until we've decided
2604 whether to merge them.
2606 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2608 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2609 two accesses in each dr_with_seg_len_pair_t before trying to
2610 combine separate dr_with_seg_len_pair_ts.
2611 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2613 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2615 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2617 * config/aarch64/aarch64-sve.md
2618 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2619 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2620 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2621 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2622 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2623 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2624 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2626 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2627 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2628 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2629 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2631 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2633 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2634 (SVE_4HSI): New mode iterators.
2635 (ANY_EXTEND2): New code iterator.
2636 * config/aarch64/aarch64-sve.md
2637 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2639 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2640 ...this, handling extension to partial modes as well as full modes.
2641 Describe the extension as a predicated rather than unpredicated
2643 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2644 Likewise extend to...
2645 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2646 ...this, making the same adjustments.
2647 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2648 Likewise extend to...
2649 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2650 ...this, making the same adjustments.
2651 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2652 Likewise extend to...
2653 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2654 ...this, making the same adjustments.
2655 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2657 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2658 extension predicate.
2659 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2660 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2661 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2662 Describe the extension as a predicated rather than unpredicated
2664 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2665 Likewise. Canonicalize to a constant extension predicate.
2666 * config/aarch64/aarch64-sve-builtins-base.cc
2667 (svld1_gather_extend_impl::expand): Add an extra predicate for
2669 (svldff1_gather_extend_impl::expand): Likewise.
2671 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2673 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2675 * config/aarch64/aarch64-sve.md
2676 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2677 (gather_load<SVE_24:mode><v_int_container>): ...this.
2678 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2679 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2680 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2681 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2682 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2684 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2685 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2686 Allow the nominal extension predicate to be different from the
2688 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2689 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2691 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2693 * config/aarch64/aarch64-sve.md
2694 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2695 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2697 (aarch64_sve_adjust_stmt_cost): Call it.
2699 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2701 * config/aarch64/aarch64-sve.md
2702 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2703 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2704 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2706 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2707 ...this new pattern, handling extension to partial modes as well
2708 as full modes. Describe the extension as a predicated rather than
2709 unpredicated extension.
2710 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2711 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2712 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2714 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2715 ...this new pattern, handling extension to partial modes as well
2716 as full modes. Describe the extension as a predicated rather than
2717 unpredicated extension.
2718 * config/aarch64/aarch64-sve-builtins.cc
2719 (function_expander::use_contiguous_load_insn): Add an extra
2720 predicate for extending loads.
2721 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2722 (aarch64_sve_adjust_stmt_cost): Likewise.
2723 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2724 the cost of SVE vector stmts.
2726 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2728 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2729 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2730 * config/aarch64/aarch64-sve.md
2731 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2732 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2733 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2734 comment. Avoid new narrower_mask ambiguity.
2735 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2736 (*cond_uxt<mode>_2): Update comment.
2737 (*cond_uxt<mode>_any): Likewise.
2739 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2741 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2743 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2745 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2746 new vector float modes.
2747 (aarch64_sve_container_bits): New function.
2748 (aarch64_sve_pred_mode): Likewise.
2749 (aarch64_get_mask_mode): Use it.
2750 (aarch64_sve_element_int_mode): Handle structure modes and partial
2752 (aarch64_sve_container_int_mode): New function.
2753 (aarch64_vectorize_related_mode): Return SVE modes when given
2754 SVE modes. Handle partial modes, taking the preferred number
2755 of units from the size of the given mode.
2756 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2758 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2759 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2760 (aarch64_split_sve_subreg_move): Use the mode form of
2761 aarch64_sve_pred_mode.
2762 (aarch64_secondary_reload): Handle partial modes in the same way
2763 as full big-endian vectors.
2764 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2765 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2766 merging with the Advanced SIMD modes. If two modes have the
2767 same size, try the Advanced SIMD mode first.
2768 (aarch64_simd_valid_immediate): Use the container rather than
2769 the element mode for INDEX constants.
2770 (aarch64_simd_vector_alignment): Make the alignment of partial
2771 SVE vector modes the same as their minimum size.
2772 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2773 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2774 (mov<SVE_ALL:mode>): ...this.
2775 (movmisalign<SVE_FULL:mode>): Extend to...
2776 (movmisalign<SVE_ALL:mode>): ...this.
2777 (*aarch64_sve_mov<mode>_le): Rename to...
2778 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2779 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2780 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2781 partial modes regardless of endianness.
2782 (aarch64_sve_reload_be): Rename to...
2783 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2784 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2785 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2786 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2787 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2788 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2789 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2790 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2791 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2792 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2793 (maskload<SVE_FULL:mode><vpred>): Extend to...
2794 (maskload<SVE_ALL:mode><vpred>): ...this.
2795 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2796 (maskstore<SVE_ALL:mode><vpred>): ...this.
2797 (vec_duplicate<SVE_FULL:mode>): Extend to...
2798 (vec_duplicate<SVE_ALL:mode>): ...this.
2799 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2800 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2801 (sve_ld1r<SVE_FULL:mode>): Extend to...
2802 (sve_ld1r<SVE_ALL:mode>): ...this.
2803 (vec_series<SVE_FULL_I:mode>): Extend to...
2804 (vec_series<SVE_I:mode>): ...this.
2805 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2806 (*vec_series<SVE_I:mode>_plus): ...this.
2807 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2808 new VPRED ambiguity.
2809 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2810 (add<SVE_FULL_I:mode>3): Extend to...
2811 (add<SVE_I:mode>3): ...this.
2812 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2813 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2814 (VPRED, vpred): Likewise.
2815 (Vctype): New iterator.
2816 (vw): Remove SVE modes.
2818 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2820 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2821 (SVE_PARTIAL_I): ...this.
2822 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2824 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2826 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2827 (SVE_FULL): ...this.
2828 (SVE_I): Rename to...
2829 (SVE_FULL_I): ...this.
2830 (SVE_F): Rename to...
2831 (SVE_FULL_F): ...this.
2832 (SVE_BHSI): Rename to...
2833 (SVE_FULL_BHSI): ...this.
2834 (SVE_HSD): Rename to...
2835 (SVE_FULL_HSD): ...this.
2836 (SVE_HSDI): Rename to...
2837 (SVE_FULL_HSDI): ...this.
2838 (SVE_HSF): Rename to...
2839 (SVE_FULL_HSF): ...this.
2840 (SVE_SD): Rename to...
2841 (SVE_FULL_SD): ...this.
2842 (SVE_SDI): Rename to...
2843 (SVE_FULL_SDI): ...this.
2844 (SVE_SDF): Rename to...
2845 (SVE_FULL_SDF): ...this.
2846 (SVE_S): Rename to...
2847 (SVE_FULL_S): ...this.
2848 (SVE_D): Rename to...
2849 (SVE_FULL_D): ...this.
2850 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2851 * config/aarch64/aarch64-sve2.md: Likewise.
2853 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2855 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2857 * doc/invoke.texi: Document it.
2858 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2859 By default, return VECT_COMPARE_COSTS for SVE.
2861 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2863 * target.h (VECT_COMPARE_COSTS): New constant.
2864 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2865 * doc/tm.texi: Regenerate.
2866 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2867 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2868 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2870 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2871 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2872 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2873 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2874 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2875 (_loop_vec_info::vec_inside_cost): New member variables.
2876 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2877 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2878 (vect_analyze_loop): When autovectorize_vector_modes returns
2879 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2880 vector mode and picking the one with the lowest cost.
2881 (vect_estimate_min_profitable_iters): Record the computed costs
2882 in the loop_vec_info.
2884 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2886 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2887 element type rather than an element mode.
2888 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2889 Use get_vectype_for_scalar_type to query the natural types
2890 for a given element type rather than basing everything on
2891 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2892 query to MAX_FIXED_MODE_SIZE.
2893 (duplicate_and_interleave): Update call accordingly.
2894 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2896 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2898 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2899 optional maximum nunits.
2900 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2902 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2903 (vect_get_mask_type_for_stmt): Likewise.
2904 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2905 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2906 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2907 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2908 to get an assumed vector type for data references.
2909 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2910 (vect_update_all_shared_vectypes): Likewise.
2911 (vect_build_slp_tree_1): Pass the group size to
2912 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2913 for BB vectorization.
2914 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2915 before building the vectof from scalars.
2916 (vect_analyze_slp_instance): Pass the group size to
2917 get_vectype_for_scalar_type.
2918 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2919 types for BB vectorization here; just handle the case in which
2920 we deferred the choice for booleans.
2921 (vect_get_constant_vectors): Pass the slp_tree to
2922 get_vectype_for_scalar_type.
2923 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2924 (vectorizable_call): Likewise.
2925 (vectorizable_simd_clone_call): Likewise.
2926 (vectorizable_conversion): Likewise.
2927 (vectorizable_shift): Likewise.
2928 (vectorizable_operation): Likewise.
2929 (vectorizable_comparison): Likewise.
2930 (vect_is_simple_cond): Take the slp_tree as argument and
2931 pass it to get_vectype_for_scalar_type.
2932 (vectorizable_condition): Update call accordingly.
2933 (get_vectype_for_scalar_type): Take a group_size argument.
2934 For BB vectorization, limit the the vector to that number
2935 of elements. Also define an overload that takes an slp_tree.
2936 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2937 pass it to get_vectype_for_scalar_type.
2938 (vect_get_vector_types_for_stmt): Add a group_size argument
2939 and pass it to get_vectype_for_scalar_type. Don't use the
2940 cached vector type for BB vectorization if a group size is given.
2941 Handle data references in that case.
2942 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2943 pass it to get_mask_type_for_scalar_type.
2945 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2947 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2949 (estimate_edge_time): Use it.
2950 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2951 ret_nonspec_time parameter.
2953 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2955 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2957 2019-11-15 Nick Clifton <nickc@redhat.com>
2958 Szabolcs Nagy <szabolcs.nagy@arm.com>
2961 * config/microblaze/microblaze.c (print_operand): Print value as long.
2963 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2965 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2968 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2970 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2971 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2973 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2975 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2976 (gcn_conditional_register_usage): Use constants in place of hard-coded
2978 (gcn_hsa_declare_function_name): Set lower bound for number of
2979 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2980 MAX_NORMAL_VGPR_COUNT.
2982 2019-11-15 Martin Jambor <mjambor@suse.cz>
2984 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2987 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2989 * config/gcn/gcn.c (default_requested_args): New.
2990 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2991 set with default_requested_args.
2992 (gcn_conditional_register_usage): Limit register usage of non-kernel
2993 functions. Reassign fixed registers if a non-standard set of args is
2995 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2997 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3000 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3001 aggregate jump function when inlined-to caller has no edge summary.
3003 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3005 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3007 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3009 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3011 (print_operand_address): Use v1 for zero vector offset.
3013 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3015 PR tree-optimization/92515
3016 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3017 types when converting a vector/scalar shift into a vector/vector one,
3018 using tree_nop_conversion_p instead of useless_type_conversion_p.
3019 Move the conversion code to the transform block.
3021 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3023 * read-rtl-function.c
3024 (function_reader::add_fixup_source_location): Take additional
3025 parameter of a column.
3026 (function_reader::maybe_read_location): Optionally parse column
3027 information and pass to add_fixup_source_location.
3029 2019-11-15 Richard Biener <rguenther@suse.de>
3031 PR tree-optimization/92512
3032 * tree-vect-loop.c (check_reduction_path): Fix operand index
3033 computability check. Add check for second use in COND_EXPRs.
3035 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3038 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3039 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3041 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3043 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3044 register class for VCC_LO and VCC_HI.
3045 (gcn_spill_class): Use SGPR_REGS to spill registers in
3046 VCC_CONDITIONAL_REG.
3048 2019-11-15 Richard Biener <rguenther@suse.de>
3050 PR tree-optimization/92324
3051 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3052 singedness of SLP reduction epilouge operations. Also reduce
3053 the vector width for SLP reductions before doing elementwise
3054 operations if possible.
3056 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3058 * passes.c (skip_pass): Set epilogue_completed if skipping the
3059 pro_and_epilogue pass.
3061 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3063 * passes.c (should_skip_pass_p): Always run "dfinish".
3065 2019-11-15 Richard Biener <rguenther@suse.de>
3067 * ipa-inline.c (inline_small_functions): Move assignment
3068 to next before call destroying edge.
3070 2019-11-15 Richard Biener <rguenther@suse.de>
3072 PR tree-optimization/92039
3073 PR tree-optimization/91975
3074 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3075 previous change, treat invariants consistently as non-constant.
3076 (tree_estimate_loop_size): Ternary ops with just the first op
3077 constant are not optimized away.
3079 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3081 * gimplify.c (gimplify_call_expr): Don't call
3082 omp_resolve_declare_variant after gimplification.
3083 * omp-general.c (omp_context_selector_matches): For isa that might
3084 match in some other function, defer if in declare simd function.
3085 (omp_context_compute_score): Don't look for " score" in construct
3086 trait set. Set *score to -1 if it can't ever match.
3087 (omp_resolve_declare_variant): If any variants need to be deferred,
3088 don't punt immediately, but compute scores of all variants and if
3089 ther eis a score winner that doesn't need to be deferred, return that.
3091 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3093 * ipa-comdats.c: Fix comments typo.
3094 * ipa-profile.c: Fix comments typo.
3095 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3096 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3097 (gimple_gen_ic_func_profiler): Likewise.
3098 (pass_ipa_tree_profile::gate): Fix comments typo.
3100 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3102 * ipa-inline.c (inline_small_functions): Update iterator of next.
3104 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3106 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3107 register is suitable for the mode.
3109 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3111 * range-op.h (range_operator::fold_range): Return a bool.
3112 * range-op.cc (range_operator::wi_fold): Assert supported type.
3113 (range_operator::fold_range): Assert supported type and return true.
3114 (operator_equal::fold_range): Return true.
3115 (operator_not_equal::fold_range): Same.
3116 (operator_lt::fold_range): Same.
3117 (operator_le::fold_range): Same.
3118 (operator_gt::fold_range): Same.
3119 (operator_ge::fold_range): Same.
3120 (operator_plus::op1_range): Adjust call to fold_range.
3121 (operator_plus::op2_range): Same.
3122 (operator_minus::op1_range): Same.
3123 (operator_minus::op2_range): Same.
3124 (operator_exact_divide::op1_range): Same.
3125 (operator_lshift::fold_range): Return true and adjust fold_range call.
3126 (operator_rshift::fold_range): Same.
3127 (operator_cast::fold_range): Return true.
3128 (operator_logical_and::fold_range): Same.
3129 (operator_logical_or::fold_range): Same.
3130 (operator_logical_not::fold_range): Same.
3131 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3132 (operator_bitwise_not::op1_range): Same.
3133 (operator_cst::fold_range): Return true.
3134 (operator_identity::fold_range): Return true.
3135 (operator_negate::fold_range): Return true and adjust fold_range call.
3136 (operator_addr_expr::fold_range): Return true.
3137 (operator_addr_expr::op1_range): Adjust call to fold_range.
3139 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3140 (range_fold_unary_symbolics_p): Same.
3142 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3144 PR tree-optimization/92506
3145 * range-op.cc (range_operator::fold_range): Start with range undefined.
3146 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3147 overflow is varying.
3149 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3151 * range-op.cc (*operator*::*range): Remove calls to
3152 range_intersect, range_invert, and range_union in favor of calling
3153 the in-place API methods.
3154 (range_tests): Same.
3155 * range.cc (range_intersect): Remove.
3156 (range_union): Remove.
3157 (range_invert): Remove.
3158 * range.h (range_intersect): Remove.
3159 (range_union): Remove.
3160 (range_intersect): Remove.
3162 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3164 PR rtl-optimization/92430
3165 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3166 (pass_jump_after_combine::execute): Perform jump threading
3169 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3170 Doug Rupp <rupp@adacore.com>
3171 Olivier Hainque <hainque@adacore.com>
3173 * config.gcc: Collapse the arm-vxworks entries into
3174 a single arm-wrs-vxworks7* one, bpabi based. Update
3175 the default cpu from arm8 to armv7-a
3176 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3177 we always use ARM_UNWIND_INFO.
3178 (DWARF2_UNWIND_INFO): Remove redefinition.
3179 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3180 (VXWORKS_PERSONALITY): Define, to "llvm".
3181 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3183 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3185 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3186 _VX_CPU instead of CPU and handle arm_arch8.
3188 2019-11-14 Doug Rupp <rupp@adacore.com>
3189 Olivier Hainque <hainque@adacore.com>
3190 Jerome Lambourg <lambourg@adacore.com>
3192 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3193 * config/aarch64/aarch64-vxworks.h: New file.
3194 * config/aarch64/t-aarch64-vxworks: New file.
3196 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3197 Olivier Hainque <hainque@adacore.com>
3199 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3200 definition, pointless with a VxWorks specific version
3202 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3203 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3204 New local macros, controlling the addition of vxworks specific
3205 crtstuff objects depending on the EH mechanism and kind of
3206 module being linked.
3207 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3209 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3210 Jerome Lambourg <lambourg@adacore.com>
3211 Olivier Hainque <hainque@adacore.com>
3213 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3214 common macro definitions, conveying VXWORKS7 or 64bit general
3215 variations. Add a block to set gcc_cv_initfini_array
3216 unconditionally to "yes" for VxWorks7.
3217 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3218 by default. Update some comments.
3219 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3220 default, to be added the end of VXWORKS_LIBS_RTP.
3221 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3222 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3224 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3225 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3226 to account for the now available TLS abilities.
3227 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3228 (VXWORKS_HAVE_TLS): Likewise.
3230 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3232 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3233 (vect_slp_convert_to_external): Likewise.
3234 (vect_slp_analyze_node_operations): If analysis fails, try building
3235 the node from scalars instead.
3237 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3239 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3240 between vector types.
3241 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3242 non-widening and non-narrowing path to handle standard
3243 conversion codes, if the target supports them.
3244 * expr.c (convert_move): Try using the extend and truncate optabs
3246 * optabs-tree.c (supportable_convert_operation): Likewise.
3247 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3248 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3249 (trunc<mode><Vnarrowq>2): New patterns.
3251 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3253 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3254 require vectype and nunits_vectype to have the same size;
3255 instead assert that nunits_vectype has at least as many
3256 elements as vectype. Don't compute a separate nunits_vectype
3257 if the scalar type is obviously the same as vectype's.
3258 Tweak dump messages.
3260 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3262 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3264 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3265 (TARGET_VECTORIZE_RELATED_MODE): Define.
3267 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3269 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3270 (vec_info::used_vector_mode): New member variable.
3271 (vect_chooses_same_modes_p): Declare.
3272 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3273 chosen vector mode in vec_info::used_vector_mode.
3274 (vect_chooses_same_modes_p): New function.
3275 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3276 the same vector statements multiple times.
3277 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3279 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3281 * machmode.h (opt_machine_mode::operator==): New function.
3282 (opt_machine_mode::operator!=): Likewise.
3283 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3284 (get_related_vectype_for_scalar_type): Delete.
3285 (get_vectype_for_scalar_type_and_size): Declare.
3286 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3287 whether analysis passed or failed, and with what vector modes.
3288 Use related_vector_mode to check whether trying a particular
3289 vector mode would be redundant with the autodetected mode,
3290 and print a dump message if we decide to skip it.
3291 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3292 (vect_create_epilog_for_reduction): Use
3293 get_related_vectype_for_scalar_type instead of
3294 get_vectype_for_scalar_type_and_size.
3295 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3297 (get_related_vectype_for_scalar_type): ...this new function.
3298 Take a starting/"prevailing" vector mode rather than a vector size.
3299 Take an optional nunits argument, with the same meaning as for
3300 related_vector_mode. Use related_vector_mode when not
3301 auto-detecting a mode, falling back to mode_for_vector if no
3303 (get_vectype_for_scalar_type): Update accordingly.
3304 (get_same_sized_vectype): Likewise.
3305 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3307 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3309 * tree-vect-stmts.c (vectorizable_call): Require the types
3310 to have the same size.
3312 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3314 * tree-vect-stmts.c (vectorizable_call): If an operand is
3315 constant or external, use get_vectype_for_scalar_type
3316 rather than get_same_sized_vectype to get its vector type.
3317 (vectorizable_conversion, vectorizable_shift): Likewise.
3318 (vectorizable_operation): Likewise.
3320 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3322 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3323 (vec_info::vector_mode): ...this new field.
3324 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3325 (vect_analyze_loop, vect_transform_loop): Likewise.
3326 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3327 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3328 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3329 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3330 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3332 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3334 * target.h (vector_sizes, auto_vector_sizes): Delete.
3335 (vector_modes, auto_vector_modes): New typedefs.
3336 * target.def (autovectorize_vector_sizes): Replace with...
3337 (autovectorize_vector_modes): ...this new hook.
3338 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3340 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3341 * doc/tm.texi: Regenerate.
3342 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3343 (default_autovectorize_vector_modes): New function.
3344 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3345 (default_autovectorize_vector_modes): New function.
3346 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3347 of autovectorize_vector_sizes. Use the number of units in the mode
3348 to calculate the maximum VF.
3349 * omp-low.c (omp_clause_aligned_alignment): Use
3350 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3351 Use a loop based on related_mode to iterate through all supported
3352 vector modes for a given scalar mode.
3353 * optabs-query.c (can_vec_mask_load_store_p): Use
3354 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3355 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3356 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3357 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3359 (aarch64_autovectorize_vector_modes): ...this new function.
3360 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3361 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3362 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3363 (arc_autovectorize_vector_modes): ...this new function.
3364 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3365 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3366 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3367 (arm_autovectorize_vector_modes): ...this new function.
3368 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3369 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3370 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3371 (ix86_autovectorize_vector_modes): ...this new function.
3372 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3373 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3374 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3375 (mips_autovectorize_vector_modes): ...this new function.
3376 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3377 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3379 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3381 * tree-vect-stmts.c (vectorizable_shift): Check the number
3382 of vector elements as well as the type mode when deciding
3383 whether an op1_vectype is compatible. Reuse the result of
3384 this check when generating vector statements.
3386 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3388 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3389 targetm.vectorize.preferred_simd_mode returns an integer mode,
3390 use mode_for_vector to decide what the vector type's mode
3391 should actually be. Use build_vector_type_for_mode instead
3392 of build_vector_type.
3394 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3396 * target.def (get_mask_mode): Take a vector mode itself as argument,
3397 instead of properties about the vector mode.
3398 * doc/tm.texi: Regenerate.
3399 * targhooks.h (default_get_mask_mode): Update to reflect new
3400 get_mode_mask interface.
3401 * targhooks.c (default_get_mask_mode): Likewise. Use
3402 related_int_vector_mode.
3403 * optabs-query.c (can_vec_mask_load_store_p): Update call
3405 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3406 first that the original mode really is a vector.
3407 * tree.c (build_truth_vector_type_for): Likewise.
3408 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3409 get_mode_mask interface.
3410 (aarch64_expand_sve_vcond): Update call accordingly.
3411 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3412 get_mode_mask interface.
3413 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3415 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3417 * tree.h (build_truth_vector_type): Delete.
3418 (build_same_sized_truth_vector_type): Likewise.
3419 * tree.c (build_truth_vector_type): Rename to...
3420 (build_truth_vector_type_for): ...this. Make static and take
3421 a vector type as argument.
3422 (truth_type_for): Update accordingly.
3423 (build_same_sized_truth_vector_type): Delete.
3424 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3425 instead of build_same_sized_truth_vector_type.
3426 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3427 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3428 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3429 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3430 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3431 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3432 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3433 (vectorizable_store, vectorizable_condition): Likewise.
3434 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3435 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3436 build_truth_vector_type.
3437 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3438 Use truth_type_for instead of build_same_sized_truth_vector_type.
3439 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3441 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3443 * tree.h (build_truth_vector_type_for_mode): Declare.
3444 * tree.c (build_truth_vector_type_for_mode): New function,
3446 (build_truth_vector_type): ...here.
3447 (build_opaque_vector_type): Fix head comment.
3448 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3450 (vect_halve_mask_nunits): Replace vec_info parameter with the
3451 mode of the new vector.
3452 (vect_double_mask_nunits): Likewise.
3453 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3454 (vect_double_mask_nunits): Likewise.
3455 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3456 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3457 to vect_halve_mask_nunits, getting the required mode from the unpack
3459 (vect_set_loop_condition_masked): Update call accordingly.
3460 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3461 parameter and update call to vect_double_mask_nunits.
3462 (vectorizable_conversion): Update call accordingly.
3463 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3464 (vectorizable_call): Update call accordingly.
3465 (supportable_widening_operation): Update call to
3466 vect_halve_mask_nunits.
3467 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3468 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3470 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3472 * machmode.h (mode_for_int_vector): Delete.
3473 (related_int_vector_mode): Declare.
3474 * stor-layout.c (mode_for_int_vector): Delete.
3475 (related_int_vector_mode): New function.
3476 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3477 instead of mode_for_int_vector.
3478 (expand_vec_perm_const): Likewise.
3479 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3480 (aarch64_evpc_sve_tbl): Likewise.
3481 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3482 (s390_expand_vcond): Likewise.
3484 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3486 * target.def (related_mode): New hook.
3487 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3488 * doc/tm.texi: Regenerate.
3489 * targhooks.h (default_vectorize_related_mode): Declare.
3490 * targhooks.c (default_vectorize_related_mode): New function.
3491 * machmode.h (related_vector_mode): Declare.
3492 * stor-layout.c (related_vector_mode): New function.
3493 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3494 * optabs-query.c (qimode_for_vec_perm): Likewise.
3495 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3496 (vectorizable_store, vectorizable_load): Likewise
3498 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3500 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3501 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3502 * config/arm/arm-c.c (arm_cpu_builtins): Define
3503 __GCC_ASM_FLAG_OUTPUTS__.
3504 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3505 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3506 Define __GCC_ASM_FLAG_OUTPUTS__.
3507 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3508 * doc/extend.texi (FlagOutputOperands): Add documentation
3509 for ARM and AArch64.
3511 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3512 * config/arm/predicates.md (nz_comparison_operator): Rename
3513 from noov_comparison_operator.
3514 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3515 (arm_gen_dicompare_reg): Likewise.
3516 (maybe_get_arm_condition_code): Likewise.
3517 (thumb1_final_prescan_insn): Likewise.
3518 (arm_emit_coreregs_64bit_shift): Likewise.
3519 * config/arm/arm.md (addsi3_compare0): Likewise.
3520 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3521 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3522 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3523 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3524 (*mulsi3addsi_compare0_scratch): Likewise.
3525 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3526 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3527 (*zeroextractsi_compare0_scratch): Likewise.
3528 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3529 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3530 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3531 (andsi_not_shiftsi_si_scc): Likewise.
3532 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3533 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3534 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3535 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3536 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3537 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3538 (return_addr_mask, *check_arch2): Likewise.
3539 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3540 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3541 (compare_scc splitters): Likewise.
3542 (movcond_addsi): Likewise.
3543 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3544 (*thumb2_addsi3_compare0_scratch): Likewise.
3545 (*thumb2_mulsi_short_compare0): Likewise.
3546 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3547 (compare peephole2s): Likewise.
3548 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3549 nz_comparison_operator names.
3550 (cbranchsi4_insn): Likewise.
3552 * config/arm/constraints.md (c): Use cc_register predicate.
3554 * config/aarch64/constraints.md (c): New constraint.
3556 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3558 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3559 ipa_merge_fn_summary_after_inlining): Micro optimize.
3561 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3563 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3565 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3567 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3568 (ipa_value_range_from_jfunc): New function.
3569 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3570 known_value_ranges parameter; use it to evalulate conditions.
3571 (evaluate_properties_for_edge): Compute known value ranges.
3572 (ipa_fn_summary_t::duplicate): Update use of
3573 evaluate_conditions_for_known_args.
3574 (estimate_ipcp_clone_size_and_time): Likewise.
3575 (ipa_merge_fn_summary_after_inlining): Likewise.
3576 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3578 2019-11-14 Martin Liska <mliska@suse.cz>
3580 * ipa-inline.c (want_inline_small_function_p): Use
3581 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3582 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3584 2019-11-14 Martin Liska <mliska@suse.cz>
3586 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3587 of a callee to get value of the param.
3588 * ipa-inline.c (inline_insns_auto): Use proper
3590 * opts.c (maybe_default_option): Do not overwrite param
3591 value if optimization level does not match. Note that
3592 params usually have default value set via Init() keyword.
3593 * params.opt: Remove -param=max-inline-insns-auto-O2.
3594 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3595 * doc/invoke.texi: Remove documentation of
3596 max-inline-insns-auto-O2.
3598 2019-11-14 Martin Liska <mliska@suse.cz>
3600 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3601 Do not initialize m_other_count.
3602 (switch_conversion::collect): Do not count m_default_count and
3603 m_other_count as we use frequencies for edges.
3604 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3606 2019-11-14 Martin Liska <mliska@suse.cz>
3609 * doc/invoke.texi: Document -fallocation-dce.
3611 2019-11-14 Martin Liska <mliska@suse.cz>
3614 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3615 PTA_ICELAKE_CLIENT which is later interited by
3616 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3618 2019-11-14 Martin Liska <mliska@suse.cz>
3620 * ipa-icf.c (sem_item_optimizer::execute): Save
3622 (sem_item_optimizer::parse_nonsingleton_classes):
3623 Return number of loaded symbols.
3624 (sem_item_optimizer::merge_classes): Print
3625 statistics about totally needed symbols.
3626 * ipa-icf.h (parse_nonsingleton_classes): Change return
3628 (merge_classes): Add one argument.
3630 2019-11-14 Martin Liska <mliska@suse.cz>
3632 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3633 func_checker::hash_operand by handling of FIELD_DECLs.
3635 2019-11-14 Martin Liska <mliska@suse.cz>
3637 * ipa-icf-gimple.h (func_checker::func_checker): Add
3638 default constructor.
3639 * ipa-icf.c (sem_function::init): Make operand_equal_p
3640 and hash_operand public.
3641 (sem_item::add_expr): Remove.
3642 (sem_item::add_type): Remove.
3643 (sem_function::hash_stmt): Use m_checker for hashing
3644 of GIMPLE statements.
3645 (sem_function::parse): Init with checker.
3646 (sem_variable::parse): Pass NULL as checker.
3647 (sem_item_optimizer::parse_funcs_and_vars):
3648 Pass checker to ::parse function.
3649 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3650 (sem_variable::parse): New function.
3651 (sem_variable::get_hash): Only return computed hash value.
3652 (sem_variable::init): Initialize hash of a variable.
3653 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3654 to couple of functions as a new argument.
3656 2019-11-14 Martin Liska <mliska@suse.cz>
3658 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3660 (func_checker::compare_gimple_assign): Likewise.
3662 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3664 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3665 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3666 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3668 * omp-general.c (omp_context_name_list_prop): New function.
3669 (omp_context_selector_matches): Use it. Return 0 if it returns
3671 (omp_context_selector_props_compare): Allow equivalency of an
3672 identifier and a string literal containing no embedded zeros.
3674 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3676 * range-op.cc (RANGE3): Remove.
3677 (range_tests): Remove all selftest that check for multi-ranges.
3678 Put tests in namespace selftest.
3679 * selftest.h: Move range_tests into namespace selftest.
3680 * value-range.h (class value_range): Unfriend range_tests.
3682 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3684 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3685 normalize_symbolics and normalize_addresses working in place.
3686 (range_fold_unary_symbolics_p): Same.
3687 (range_fold_unary_symbolics_p): Same.
3688 * value-range.cc (num_pairs): Same.
3689 (lower_bound): Same.
3690 (upper_bound): Same.
3692 (normalize_addresses): Same.
3693 (normalize_symbolics): Same.
3694 * value-range.h (normalize_symbolics): Same.
3695 (normalize_addresses): Same.
3697 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3700 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3701 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3702 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3703 (ipa_agg_jump_function): Remove member function equal_to.
3704 (ipa_agg_jump_function_p): Remove typedef.
3705 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3706 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3707 information for aggregate jump function.
3708 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3709 record last definition statement.
3710 (load_from_unmodified_param_or_agg): New function.
3711 (ipa_known_agg_contents_list): Add new field type and value, remove
3713 (build_agg_jump_func_from_list): Rename parameter const_count to
3714 value_count, build aggregate jump function from ipa_load_agg_data.
3715 (analyze_agg_content_value): New function.
3716 (extract_mem_content): Analyze memory store assignment to prepare
3717 information for aggregate jump function generation.
3718 (determine_known_aggregate_parts): Add new parameter fbi, remove
3719 parameter aa_walk_budeget_p.
3720 (update_jump_functions_after_inlining): Update aggregate jump function.
3721 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3722 (try_make_edge_direct_simple_call): Add new parameter new_root.
3723 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3725 (update_indirect_edges_after_inlining): Pass new argument to
3726 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3727 (ipa_write_jump_function): Write aggregate jump function to file.
3728 (ipa_read_jump_function): Read aggregate jump function from file.
3729 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3730 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3731 (ipa_agg_value_from_node): Likewise.
3732 (ipa_agg_value_set_from_jfunc): Likewise.
3733 (propagate_vals_across_arith_jfunc): Likewise.
3734 (propagate_aggregate_lattice): Likewise.
3735 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3736 (propagate_vals_across_pass_through): Call
3737 propagate_vals_across_arith_jfunc.
3738 (get_clone_agg_value): Move forward.
3739 (propagate_aggs_across_jump_function): Handle value propagation for
3740 aggregate jump function.
3741 (agg_jmp_p_vec_for_t_vec): Remove.
3742 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3743 with vec<ipa_agg_value>.
3744 (copy_plats_to_inter, intersect_with_plats): Likewise.
3745 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3746 (intersect_aggregate_with_edge): Likewise.
3747 (find_aggregate_values_for_callers_subset): Likewise.
3748 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3749 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3750 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3751 (gather_context_independent_values): Likewise.
3752 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3753 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3754 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3755 (evaluate_properties_for_edge): Likewise.
3756 (estimate_edge_devirt_benefit): Likewise.
3757 (estimate_edge_size_and_time): Likewise.
3758 (estimate_calls_size_and_time): Likewise.
3759 (ipa_call_context::ipa_call_context): Likewise.
3760 (estimate_ipcp_clone_size_and_time): Likewise.
3761 * ipa-fnsummary.h (ipa_call_context): Replace
3762 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3763 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3764 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3765 (do_estimate_edge_size): Likewise.
3766 (do_estimate_edge_hints): Likewise.
3768 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3770 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3773 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3775 * ipa-profile.c (check_argument_count): Check properly that e_info
3776 is non-NULL; do not check descriptors.
3778 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3780 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3781 check for ipa profiles.
3783 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3786 * ipa-prop.c (update_indirect_edges_after_inlining):
3787 Mark parameter as used.
3788 * ipa-inline.c (recursive_inlining): Reset node cache
3790 (inline_small_functions): Remove checking ifdef.
3791 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3794 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3797 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3799 (ipa_profile): Fix reversed test.
3801 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3803 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3804 (propagate_constants_topo): Fix typo.
3806 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3808 * Makefile.in (OBJS): Add value-range.o.
3809 (GTFILES): Add value-range.h.
3810 * gengtype.c (open_base_files): Add value-range.h to list of
3812 * tree-vrp.c: Move the following value_range related functions:
3813 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3814 constant_p, set_undefined, set_varying, may_contain_p,
3815 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3816 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3817 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3818 value_inside_range, ranges_from_anti_range, union_ranges,
3819 intersect_ranges, intersect_helper, union_helper, union_,
3820 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3821 upper_bound, contains_p, invert, intersect...
3822 * value-range.cc: ...to here.
3823 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3824 associated inline methods from here...
3825 * value-range.h: ...to here.
3827 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3829 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3830 instead of asserting its value.
3832 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3834 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3835 constructors and set methods so value_range_kind is the last
3836 argument and defaults to VR_RANGE.
3837 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3838 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3839 * ipa-prop.c (ipa_get_value_range): Same.
3840 (ipa_compute_jump_functions_for_edge): Same.
3841 * range-op.cc (value_range_from_overflowed_bounds): Same.
3842 (operator_cast::op1_range): Same.
3843 (range_tests): Same.
3844 * range.cc (range_nonzero): Same.
3845 * tree-ssanames.c (get_range_info): Same.
3846 * tree-vrp.c (value_range_equiv::set): Same.
3847 (value_range::value_range): Same.
3848 (value_range_equiv::value_range_equiv): Same.
3849 (value_range_equiv::update): Same.
3850 (value_range_equiv::deep_copy): Same.
3851 (value_range_equiv::move): Same.
3852 (value_range_equiv::set_undefined): Same.
3853 (value_range::set): Same.
3854 (value_range::set_nonzero): Same.
3855 (ranges_from_anti_range): Same.
3856 (extract_range_from_plus_minus_expr): Same.
3857 (value_range::intersect_helper): Same.
3858 (value_range_equiv::intersect): Same.
3859 (value_range::union_helper): Same.
3860 (value_range_equiv::union_): Same.
3861 (value_range::normalize_symbolics): Same.
3862 (value_range::invert): Same.
3863 (determine_value_range_1): Same.
3864 * tree-vrp.h (class value_range): Same.
3865 (class value_range_equiv): Same.
3866 * vr-values.c (set_value_range_to_nonnegative): Same.
3867 (set_value_range_to_truthvalue): Same.
3868 (vr_values::update_value_range): Same.
3869 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3870 (vr_values::extract_range_from_binary_expr): Same.
3871 (vr_values::extract_range_from_comparison): Same.
3872 (vr_values::extract_range_basic): Same.
3873 (vr_values::adjust_range_with_scev): Same.
3874 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3875 (vr_values::extract_range_from_phi_node): Same.
3877 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3879 * tree-dump.c (dequeue_and_dump): Print first tree operand
3880 for VIEW_CONVERT_EXPR.
3882 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3884 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3885 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3886 * real.c (get_max_float): Add norm_max argument.
3887 * real.h (get_max_float): Update prototype.
3888 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3891 2019-11-13 Martin Liska <mliska@suse.cz>
3893 * dbgcnt.c (test_sorted_dbg_counters): New.
3894 (dbgcnt_c_tests): Likewise.
3895 * selftest-run-tests.c (selftest::run_tests): Likewise.
3896 * selftest.h (dbgcnt_c_tests): Likewise.
3898 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3899 Martin Jambor <mjambor@suse.cz>
3902 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3903 (identify_dead_nodes): Likewise.
3905 2019-11-13 Martin Liska <mliska@suse.cz>
3907 * ipa-icf.c (sem_function::equals_private): Do not overuse
3908 push/pop_cfun functions.
3910 2019-11-13 Martin Liska <mliska@suse.cz>
3912 * common.opt: Document change of -fdbg-cnt option.
3913 * dbgcnt.c (DEBUG_COUNTER): Remove.
3914 (dbg_cnt_is_enabled): Remove.
3915 (dbg_cnt): Work with new intervals.
3916 (dbg_cnt_set_limit_by_index): Set to new
3918 (dbg_cnt_set_limit_by_name): Likewise.
3919 (dbg_cnt_process_single_pair): Process new format.
3920 (dbg_cnt_process_opt): Likewise.
3921 (dbg_cnt_list_all_counters): Likewise.
3922 * doc/invoke.texi: Document change of -fdbg-cnt option.
3925 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3927 * ipa-inline.c (ipa_inline): Check that function is defined before
3930 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3931 Julian Brown <julian@codesourcery.com>
3933 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3934 flag_worker_partitioning is not set.
3935 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3936 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3938 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3940 * config/gcn/gcn-run.c (heap_region): New global variable.
3941 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3942 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3943 (get_kernarg_region): Move contents to ....
3944 (get_memory_region): .... here.
3945 (get_heap_region): New function.
3946 (init_device): Initialize the heap_region.
3947 (device_malloc): Add region parameter.
3948 (struct kernargs): Move heap ....
3949 (heap): ... to global scope.
3950 (main): Allocate heap separate to kernargs.
3952 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3954 * ipa-prop.c (ipa_print_node_jump_functions,
3955 ipa_print_node_params): Print info about missing summaries.
3957 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3959 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3960 the cost of generating loop masks.
3962 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3964 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3966 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3967 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3968 (vect_transform_loop): Likewise.
3969 (vect_analyze_loop_costing): Don't take the cost of versioning
3970 into account for the static profitability threshold if it turns
3971 out that no versioning is needed.
3973 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3975 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3976 and target_option_default_node to get -fprofile-generate ctors working
3979 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3981 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3982 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3983 (vectorizable_assignment): Don't add a cost for nop conversions.
3984 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3986 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3988 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3990 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3991 number of ncopies as an additional argument.
3992 (vectorizable_conversion): Update call accordingly. Use "modifier"
3993 to check whether a conversion is between vectors with the same
3996 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3998 * config/aarch64/aarch64-sve-builtins-functions.h
3999 (unary_count::expand): Use aarch64_sve_int_mode instead of
4000 mode_for_int_vector.
4002 2019-11-13 Martin Liska <mliska@suse.cz>
4004 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4006 2019-11-13 Martin Liska <mliska@suse.cz>
4008 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4009 Remove call to finalize_options_struct.
4011 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4014 * config/avr/t-avr (avr-mcus): Do not depend on
4015 $(srcdir)/config/avr/t-multilib.
4017 2019-11-13 Richard Biener <rguenther@suse.de>
4019 PR tree-optimization/92473
4020 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4021 direct optab reduction in the correct type.
4023 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4025 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4026 hexadecimal literal.
4028 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4030 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4031 UNORDERED if !HONOR_NANS (DFmode).
4032 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4033 if !HONOR_NANS (<MODE>mode).
4035 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4037 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4038 (ipcp_verify_propagated_values): Likewise.
4039 (propagate_constants_across_call): Likewise.
4040 (propagate_constants_topo): Likewise.
4041 (ipcp_propagate_stage): Likewise.
4043 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4046 * ipa-profile.c (check_argument_count): Break out from ...;
4047 watch for missing summaries.
4048 (ipa_profile): Here.
4050 2019-11-12 Martin Sebor <msebor@redhat.com>
4052 PR tree-optimization/92412
4053 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4056 2019-11-12 Martin Sebor <msebor@redhat.com>
4059 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4060 (directive::argno): New member.
4061 (format_result::aliases, format_result::alias_count): New data members.
4062 (format_result::append_alias): New member function.
4063 (fmtresult::dst_offset): New data member.
4064 (pass_sprintf_length::call_info::dst_origin): New data member.
4065 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4066 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4067 (get_origin_and_offset): Same.
4068 (format_string): Call it.
4069 (format_directive): Call append_alias and set directive argument
4071 (maybe_warn_overlap): New function.
4072 (pass_sprintf_length::compute_format_length): Call it.
4073 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4074 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4076 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4078 PR rtl-optimization/92430
4079 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4080 dominance info at the beginning.
4082 2019-11-12 Richard Biener <rguenther@suse.de>
4084 PR tree-optimization/92460
4085 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4086 expression before gimplifying.
4088 2019-11-12 Richard Biener <rguenther@suse.de>
4090 PR tree-optimization/92461
4091 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4092 stmt after propagation.
4094 2019-11-12 Martin Liska <mliska@suse.cz>
4096 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4097 Use SET_OPTION_IF_UNSET.
4098 (ix86_option_override_internal): Likewise.
4099 * opts.c (default_options_optimization): Likewise.
4100 (finish_options): Likewise.
4101 (enable_fdo_optimizations): Likewise.
4102 (common_handle_option): Likewise.
4104 2019-11-12 Martin Liska <mliska@suse.cz>
4106 * common/common-target.def: Remove option_validate_param and
4107 option_default_params.
4108 * common/common-targhooks.c (default_option_validate_param):
4110 * common/common-targhooks.h (default_option_validate_param):
4112 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4113 Remove usage of this.
4114 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4115 (aarch64_option_validate_param): Likewise.
4116 (aarch64_option_default_params): Likewise
4117 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4118 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4119 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4120 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4121 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4122 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4123 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4124 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4125 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4126 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4127 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4129 * doc/tm.texi: Remove option_default_params and option_validate_param.
4130 * doc/tm.texi.in: Likewise.
4132 2019-11-12 Martin Liska <mliska@suse.cz>
4134 * common/common-target.def:
4135 Do not mention set_default_param_value
4136 and set_param_value.
4137 * doc/tm.texi: Likewise.
4139 2019-11-12 Martin Liska <mliska@suse.cz>
4141 * common.opt: Remove param_values.
4142 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4143 Remove finalize_options_struct.
4144 * gcc.c (driver::decode_argv): Do not call global_init_params
4146 (driver::finalize): Do not call params_c_finalize
4147 and finalize_options_struct.
4148 * opt-suggestions.c (option_proposer::get_completions): Remove
4149 special casing of params.
4150 (option_proposer::find_param_completions): Remove.
4151 (test_completion_partial_match): Update expected output.
4152 * opt-suggestions.h: Remove find_param_completions.
4153 * opts-common.c (add_misspelling_candidates): Add
4154 --param with a space.
4155 * opts.c (handle_param): Remove.
4156 (init_options_struct):. Remove init_options_struct and
4158 (finalize_options_struct): Remove.
4159 (common_handle_option): Use SET_OPTION_IF_UNSET.
4160 * opts.h (finalize_options_struct): Remove.
4161 * toplev.c (general_init): Do not call global_init_params.
4162 (toplev::finalize): Do not call params_c_finalize and
4163 finalize_options_struct.
4165 2019-11-12 Martin Liska <mliska@suse.cz>
4167 * Makefile.in: Remove PARAMS_H and params.list
4169 * params-enum.h: Remove.
4170 * params-list.h: Remove.
4171 * params-options.h: Remove.
4173 * params.def: Remove.
4175 * asan.c: Do not include params.h.
4176 * auto-profile.c: Likewise.
4177 * bb-reorder.c: Likewise.
4178 * builtins.c: Likewise.
4179 * cfgcleanup.c: Likewise.
4180 * cfgexpand.c: Likewise.
4181 * cfgloopanal.c: Likewise.
4182 * cgraph.c: Likewise.
4183 * combine.c: Likewise.
4184 * common/config/aarch64/aarch64-common.c: Likewise.
4185 * common/config/gcn/gcn-common.c: Likewise.
4186 * common/config/ia64/ia64-common.c: Likewise.
4187 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4188 * common/config/rs6000/rs6000-common.c: Likewise.
4189 * common/config/sh/sh-common.c: Likewise.
4190 * config/aarch64/aarch64.c: Likewise.
4191 * config/alpha/alpha.c: Likewise.
4192 * config/arm/arm.c: Likewise.
4193 * config/avr/avr.c: Likewise.
4194 * config/csky/csky.c: Likewise.
4195 * config/i386/i386-builtins.c: Likewise.
4196 * config/i386/i386-expand.c: Likewise.
4197 * config/i386/i386-features.c: Likewise.
4198 * config/i386/i386-options.c: Likewise.
4199 * config/i386/i386.c: Likewise.
4200 * config/ia64/ia64.c: Likewise.
4201 * config/rs6000/rs6000-logue.c: Likewise.
4202 * config/rs6000/rs6000.c: Likewise.
4203 * config/s390/s390.c: Likewise.
4204 * config/sparc/sparc.c: Likewise.
4205 * config/visium/visium.c: Likewise.
4206 * coverage.c: Likewise.
4207 * cprop.c: Likewise.
4209 * cselib.c: Likewise.
4211 * emit-rtl.c: Likewise.
4212 * explow.c: Likewise.
4213 * final.c: Likewise.
4214 * fold-const.c: Likewise.
4217 * ggc-common.c: Likewise.
4218 * ggc-page.c: Likewise.
4219 * gimple-loop-interchange.cc: Likewise.
4220 * gimple-loop-jam.c: Likewise.
4221 * gimple-loop-versioning.cc: Likewise.
4222 * gimple-ssa-split-paths.c: Likewise.
4223 * gimple-ssa-sprintf.c: Likewise.
4224 * gimple-ssa-store-merging.c: Likewise.
4225 * gimple-ssa-strength-reduction.c: Likewise.
4226 * gimple-ssa-warn-alloca.c: Likewise.
4227 * gimple-ssa-warn-restrict.c: Likewise.
4228 * graphite-isl-ast-to-gimple.c: Likewise.
4229 * graphite-optimize-isl.c: Likewise.
4230 * graphite-scop-detection.c: Likewise.
4231 * graphite-sese-to-poly.c: Likewise.
4232 * graphite.c: Likewise.
4233 * haifa-sched.c: Likewise.
4234 * hsa-gen.c: Likewise.
4235 * ifcvt.c: Likewise.
4236 * ipa-cp.c: Likewise.
4237 * ipa-fnsummary.c: Likewise.
4238 * ipa-inline-analysis.c: Likewise.
4239 * ipa-inline.c: Likewise.
4240 * ipa-polymorphic-call.c: Likewise.
4241 * ipa-profile.c: Likewise.
4242 * ipa-prop.c: Likewise.
4243 * ipa-split.c: Likewise.
4244 * ipa-sra.c: Likewise.
4245 * ira-build.c: Likewise.
4246 * ira-conflicts.c: Likewise.
4247 * loop-doloop.c: Likewise.
4248 * loop-invariant.c: Likewise.
4249 * loop-unroll.c: Likewise.
4250 * lra-assigns.c: Likewise.
4251 * lra-constraints.c: Likewise.
4252 * modulo-sched.c: Likewise.
4253 * opt-suggestions.c: Likewise.
4255 * postreload-gcse.c: Likewise.
4256 * predict.c: Likewise.
4257 * reload.c: Likewise.
4258 * reorg.c: Likewise.
4259 * resource.c: Likewise.
4260 * sanopt.c: Likewise.
4261 * sched-deps.c: Likewise.
4262 * sched-ebb.c: Likewise.
4263 * sched-rgn.c: Likewise.
4264 * sel-sched-ir.c: Likewise.
4265 * sel-sched.c: Likewise.
4266 * shrink-wrap.c: Likewise.
4268 * targhooks.c: Likewise.
4269 * toplev.c: Likewise.
4270 * tracer.c: Likewise.
4271 * trans-mem.c: Likewise.
4272 * tree-chrec.c: Likewise.
4273 * tree-data-ref.c: Likewise.
4274 * tree-if-conv.c: Likewise.
4275 * tree-inline.c: Likewise.
4276 * tree-loop-distribution.c: Likewise.
4277 * tree-parloops.c: Likewise.
4278 * tree-predcom.c: Likewise.
4279 * tree-profile.c: Likewise.
4280 * tree-scalar-evolution.c: Likewise.
4281 * tree-sra.c: Likewise.
4282 * tree-ssa-ccp.c: Likewise.
4283 * tree-ssa-dom.c: Likewise.
4284 * tree-ssa-dse.c: Likewise.
4285 * tree-ssa-ifcombine.c: Likewise.
4286 * tree-ssa-loop-ch.c: Likewise.
4287 * tree-ssa-loop-im.c: Likewise.
4288 * tree-ssa-loop-ivcanon.c: Likewise.
4289 * tree-ssa-loop-ivopts.c: Likewise.
4290 * tree-ssa-loop-manip.c: Likewise.
4291 * tree-ssa-loop-niter.c: Likewise.
4292 * tree-ssa-loop-prefetch.c: Likewise.
4293 * tree-ssa-loop-unswitch.c: Likewise.
4294 * tree-ssa-math-opts.c: Likewise.
4295 * tree-ssa-phiopt.c: Likewise.
4296 * tree-ssa-pre.c: Likewise.
4297 * tree-ssa-reassoc.c: Likewise.
4298 * tree-ssa-sccvn.c: Likewise.
4299 * tree-ssa-scopedtables.c: Likewise.
4300 * tree-ssa-sink.c: Likewise.
4301 * tree-ssa-strlen.c: Likewise.
4302 * tree-ssa-structalias.c: Likewise.
4303 * tree-ssa-tail-merge.c: Likewise.
4304 * tree-ssa-threadbackward.c: Likewise.
4305 * tree-ssa-threadedge.c: Likewise.
4306 * tree-ssa-uninit.c: Likewise.
4307 * tree-switch-conversion.c: Likewise.
4308 * tree-vect-data-refs.c: Likewise.
4309 * tree-vect-loop.c: Likewise.
4310 * tree-vect-slp.c: Likewise.
4311 * tree-vrp.c: Likewise.
4313 * value-prof.c: Likewise.
4314 * var-tracking.c: Likewise.
4316 2019-11-12 Martin Liska <mliska@suse.cz>
4318 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4319 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4321 (asan_sanitize_allocas_p): Likewise.
4322 (asan_emit_stack_protection): Likewise.
4323 (asan_protect_global): Likewise.
4324 (instrument_derefs): Likewise.
4325 (instrument_builtin_call): Likewise.
4326 (asan_expand_mark_ifn): Likewise.
4327 * auto-profile.c (auto_profile): Likewise.
4328 * bb-reorder.c (copy_bb_p): Likewise.
4329 (duplicate_computed_gotos): Likewise.
4330 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4331 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4332 (try_crossjump_bb): Likewise.
4333 * cfgexpand.c (defer_stack_allocation): Likewise.
4334 (stack_protect_classify_type): Likewise.
4335 (pass_expand::execute): Likewise.
4336 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4337 (estimate_reg_pressure_cost): Likewise.
4338 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4339 * combine.c (combine_instructions): Likewise.
4340 (record_value_for_reg): Likewise.
4341 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4342 (aarch64_option_default_params): Likewise.
4343 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4344 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4345 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4346 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4347 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4348 (aarch64_allocate_and_probe_stack_space): Likewise.
4349 (aarch64_expand_epilogue): Likewise.
4350 (aarch64_override_options_internal): Likewise.
4351 * config/alpha/alpha.c (alpha_option_override): Likewise.
4352 * config/arm/arm.c (arm_option_override): Likewise.
4353 (arm_valid_target_attribute_p): Likewise.
4354 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4355 * config/i386/i386.c (get_probe_interval): Likewise.
4356 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4357 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4358 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4359 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4360 (get_stack_clash_protection_guard_size): Likewise.
4361 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4362 * config/s390/s390.c (allocate_stack_space): Likewise.
4363 (s390_emit_prologue): Likewise.
4364 (s390_option_override_internal): Likewise.
4365 * config/sparc/sparc.c (sparc_option_override): Likewise.
4366 * config/visium/visium.c (visium_option_override): Likewise.
4367 * coverage.c (get_coverage_counts): Likewise.
4368 (coverage_compute_profile_id): Likewise.
4369 (coverage_begin_function): Likewise.
4370 (coverage_end_function): Likewise.
4371 * cse.c (cse_find_path): Likewise.
4372 (cse_extended_basic_block): Likewise.
4373 (cse_main): Likewise.
4374 * cselib.c (cselib_invalidate_mem): Likewise.
4375 * dse.c (dse_step1): Likewise.
4376 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4377 (get_max_insn_count): Likewise.
4378 (make_debug_insn_raw): Likewise.
4379 (init_emit): Likewise.
4380 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4381 * final.c (compute_alignments): Likewise.
4382 * fold-const.c (fold_range_test): Likewise.
4383 (fold_truth_andor): Likewise.
4384 (tree_single_nonnegative_warnv_p): Likewise.
4385 (integer_valued_real_single_p): Likewise.
4386 * gcse.c (want_to_gcse_p): Likewise.
4387 (prune_insertions_deletions): Likewise.
4388 (hoist_code): Likewise.
4389 (gcse_or_cprop_is_too_expensive): Likewise.
4390 * ggc-common.c: Likewise.
4391 * ggc-page.c (ggc_collect): Likewise.
4392 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4393 (MAX_DATAREFS): Likewise.
4394 (OUTER_STRIDE_RATIO): Likewise.
4395 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4396 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4397 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4398 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4399 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4400 (imm_store_chain_info::output_merged_store): Likewise.
4401 (pass_store_merging::process_store): Likewise.
4402 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4403 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4404 (scop_to_isl_ast): Likewise.
4405 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4406 (optimize_isl): Likewise.
4407 * graphite-scop-detection.c (build_scops): Likewise.
4408 * haifa-sched.c (set_modulo_params): Likewise.
4409 (rank_for_schedule): Likewise.
4410 (model_add_to_worklist): Likewise.
4411 (model_promote_insn): Likewise.
4412 (model_choose_insn): Likewise.
4413 (queue_to_ready): Likewise.
4414 (autopref_multipass_dfa_lookahead_guard): Likewise.
4415 (schedule_block): Likewise.
4416 (sched_init): Likewise.
4417 * hsa-gen.c (init_prologue): Likewise.
4418 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4419 (cond_move_process_if_block): Likewise.
4420 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4421 (merge_agg_lats_step): Likewise.
4422 (devirtualization_time_bonus): Likewise.
4423 (hint_time_bonus): Likewise.
4424 (incorporate_penalties): Likewise.
4425 (good_cloning_opportunity_p): Likewise.
4426 (ipcp_propagate_stage): Likewise.
4427 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4428 (set_switch_stmt_execution_predicate): Likewise.
4429 (analyze_function_body): Likewise.
4430 (compute_fn_summary): Likewise.
4431 * ipa-inline-analysis.c (estimate_growth): Likewise.
4432 * ipa-inline.c (caller_growth_limits): Likewise.
4433 (inline_insns_single): Likewise.
4434 (inline_insns_auto): Likewise.
4435 (can_inline_edge_by_limits_p): Likewise.
4436 (want_early_inline_function_p): Likewise.
4437 (big_speedup_p): Likewise.
4438 (want_inline_small_function_p): Likewise.
4439 (want_inline_self_recursive_call_p): Likewise.
4440 (edge_badness): Likewise.
4441 (recursive_inlining): Likewise.
4442 (compute_max_insns): Likewise.
4443 (early_inliner): Likewise.
4444 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4445 * ipa-profile.c (ipa_profile): Likewise.
4446 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4447 (ipa_analyze_node): Likewise.
4448 (ipcp_transform_function): Likewise.
4449 * ipa-split.c (consider_split): Likewise.
4450 * ipa-sra.c (allocate_access): Likewise.
4451 (process_scan_results): Likewise.
4452 (ipa_sra_summarize_function): Likewise.
4453 (pull_accesses_from_callee): Likewise.
4454 * ira-build.c (loop_compare_func): Likewise.
4455 (mark_loops_for_removal): Likewise.
4456 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4457 * loop-doloop.c (doloop_optimize): Likewise.
4458 * loop-invariant.c (gain_for_invariant): Likewise.
4459 (move_loop_invariants): Likewise.
4460 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4461 (decide_unroll_runtime_iterations): Likewise.
4462 (decide_unroll_stupid): Likewise.
4463 (expand_var_during_unrolling): Likewise.
4464 * lra-assigns.c (spill_for): Likewise.
4465 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4466 * modulo-sched.c (sms_schedule): Likewise.
4467 (DFA_HISTORY): Likewise.
4468 * opts.c (default_options_optimization): Likewise.
4469 (finish_options): Likewise.
4470 (common_handle_option): Likewise.
4471 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4473 * predict.c (get_hot_bb_threshold): Likewise.
4474 (maybe_hot_count_p): Likewise.
4475 (probably_never_executed): Likewise.
4476 (predictable_edge_p): Likewise.
4477 (predict_loops): Likewise.
4478 (expr_expected_value_1): Likewise.
4479 (tree_predict_by_opcode): Likewise.
4480 (handle_missing_profiles): Likewise.
4481 * reload.c (find_equiv_reg): Likewise.
4482 * reorg.c (redundant_insn): Likewise.
4483 * resource.c (mark_target_live_regs): Likewise.
4484 (incr_ticks_for_insn): Likewise.
4485 * sanopt.c (pass_sanopt::execute): Likewise.
4486 * sched-deps.c (sched_analyze_1): Likewise.
4487 (sched_analyze_2): Likewise.
4488 (sched_analyze_insn): Likewise.
4489 (deps_analyze_insn): Likewise.
4490 * sched-ebb.c (schedule_ebbs): Likewise.
4491 * sched-rgn.c (find_single_block_region): Likewise.
4492 (too_large): Likewise.
4493 (haifa_find_rgns): Likewise.
4494 (extend_rgns): Likewise.
4495 (new_ready): Likewise.
4496 (schedule_region): Likewise.
4497 (sched_rgn_init): Likewise.
4498 * sel-sched-ir.c (make_region_from_loop): Likewise.
4499 * sel-sched-ir.h (MAX_WS): Likewise.
4500 * sel-sched.c (process_pipelined_exprs): Likewise.
4501 (sel_setup_region_sched_flags): Likewise.
4502 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4503 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4504 * toplev.c (print_version): Likewise.
4505 (process_options): Likewise.
4506 * tracer.c (tail_duplicate): Likewise.
4507 * trans-mem.c (tm_log_add): Likewise.
4508 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4509 * tree-data-ref.c (split_constant_offset): Likewise.
4510 (compute_all_dependences): Likewise.
4511 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4512 * tree-inline.c (remap_gimple_stmt): Likewise.
4513 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4514 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4515 (create_parallel_loop): Likewise.
4516 * tree-predcom.c (determine_unroll_factor): Likewise.
4517 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4518 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4519 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4520 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4521 (dse_optimize_redundant_stores): Likewise.
4522 (dse_classify_store): Likewise.
4523 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4524 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4525 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4526 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4527 (try_peel_loop): Likewise.
4528 (tree_unroll_loops_completely): Likewise.
4529 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4530 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4531 (MAX_CONSIDERED_GROUPS): Likewise.
4532 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4533 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4534 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4535 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4536 (L1_CACHE_SIZE_BYTES): Likewise.
4537 (L2_CACHE_SIZE_BYTES): Likewise.
4538 (should_issue_prefetch_p): Likewise.
4539 (schedule_prefetches): Likewise.
4540 (determine_unroll_factor): Likewise.
4541 (volume_of_references): Likewise.
4542 (add_subscript_strides): Likewise.
4543 (self_reuse_distance): Likewise.
4544 (mem_ref_count_reasonable_p): Likewise.
4545 (insn_to_prefetch_ratio_too_small_p): Likewise.
4546 (loop_prefetch_arrays): Likewise.
4547 (tree_ssa_prefetch_arrays): Likewise.
4548 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4549 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4550 (convert_mult_to_fma): Likewise.
4551 (math_opts_dom_walker::after_dom_children): Likewise.
4552 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4553 (hoist_adjacent_loads): Likewise.
4554 (gate_hoist_loads): Likewise.
4555 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4556 (compute_partial_antic_aux): Likewise.
4557 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4558 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4559 (vn_reference_lookup): Likewise.
4560 (do_rpo_vn): Likewise.
4561 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4562 * tree-ssa-sink.c (select_best_block): Likewise.
4563 * tree-ssa-strlen.c (new_stridx): Likewise.
4564 (new_addr_stridx): Likewise.
4565 (get_range_strlen_dynamic): Likewise.
4566 (class ssa_name_limit_t): Likewise.
4567 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4568 (create_variable_info_for_1): Likewise.
4569 (init_alias_vars): Likewise.
4570 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4571 (tail_merge_optimize): Likewise.
4572 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4573 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4574 (thread_jumps::find_jump_threads_backwards): Likewise.
4575 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4576 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4577 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4578 (jump_table_cluster::can_be_handled): Likewise.
4579 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4580 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4581 (param_switch_conversion_branch_ratio): Likewise.
4582 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4583 (vect_enhance_data_refs_alignment): Likewise.
4584 (vect_prune_runtime_alias_test_list): Likewise.
4585 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4586 (vect_get_datarefs_in_loop): Likewise.
4587 (vect_analyze_loop): Likewise.
4588 * tree-vect-slp.c (vect_slp_bb): Likewise.
4589 * tree-vectorizer.h: Likewise.
4590 * tree-vrp.c (find_switch_asserts): Likewise.
4591 (vrp_prop::check_mem_ref): Likewise.
4592 * tree.c (wide_int_to_tree_1): Likewise.
4593 (cache_integer_cst): Likewise.
4594 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4595 (reverse_op): Likewise.
4596 (vt_find_locations): Likewise.
4598 2019-11-12 Martin Liska <mliska@suse.cz>
4600 * Makefile.in: Include params.opt.
4601 * flag-types.h (enum parloops_schedule_type): Add
4602 parloops_schedule_type used in params.opt.
4603 * params.opt: New file.
4605 2019-11-12 Martin Liska <mliska@suse.cz>
4607 * common.opt: Remove --param and --param= options.
4608 * opt-functions.awk: Mark CL_PARAMS for options
4609 that have Param keyword.
4610 * opts-common.c (decode_cmdline_options_to_array):
4611 Replace --param key=value with --param=key=value.
4612 * opts.c (print_filtered_help): Remove special
4614 (print_specific_help): Update title for params.
4615 (common_handle_option): Do not handle OPT__param.
4616 opts.h (SET_OPTION_IF_UNSET): New macro.
4617 * doc/options.texi: Document Param keyword.
4619 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4620 Frederik Harwath <frederik@codesourcery.com>
4621 Thomas Schwinge <thomas@codesourcery.com>
4623 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4624 enumeration constant.
4625 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4626 (is_gimple_omp_offloaded): Likewise.
4627 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4628 constant. Adjust the value of ORT_NONE accordingly.
4629 (is_gimple_stmt): Handle OACC_SERIAL.
4630 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4631 (gomp_needs_data_present): Likewise.
4632 (gimplify_adjust_omp_clauses): Likewise.
4633 (gimplify_omp_workshare): Handle OACC_SERIAL.
4634 (gimplify_expr): Likewise.
4635 * omp-expand.c (expand_omp_target):
4636 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4637 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4638 * omp-low.c (is_oacc_parallel): Rename function to...
4639 (is_oacc_parallel_or_serial): ... this.
4640 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4641 (scan_sharing_clauses): Adjust accordingly.
4642 (scan_omp_for): Likewise.
4643 (lower_oacc_head_mark): Likewise.
4644 (convert_from_firstprivate_int): Likewise.
4645 (lower_omp_target): Likewise.
4646 (check_omp_nesting_restrictions): Handle
4647 GF_OMP_TARGET_KIND_OACC_SERIAL.
4648 (lower_oacc_reductions): Likewise.
4649 (lower_omp_target): Likewise.
4650 * tree.def (OACC_SERIAL): New tree code.
4651 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4653 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4655 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4658 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4659 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4661 PR tree-optimization/92452
4662 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4663 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4666 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4668 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4671 2019-11-12 Alan Modra <amodra@gmail.com>
4673 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4674 element of unspec vec.
4675 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4677 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4678 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4679 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4680 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4682 2019-11-12 Alan Modra <amodra@gmail.com>
4684 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4685 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4686 (IS_NOMARK_TLSGETADDR): Likewise.
4687 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4688 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4689 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4690 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4691 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4692 (rs6000_indirect_call_template_1): Likewise.
4693 (rs6000_pltseq_template): Likewise.
4694 (rs6000_opt_vars): Remove "tls-markers" entry.
4695 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4697 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4698 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4699 (pltseq_plt_pcrel<mode>): Likewise.
4700 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4701 (call_value_local64): Likewise.
4702 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4703 output and length attribute sub-expression.
4704 (call_value_nonlocal_sysv<mode>),
4705 (call_value_nonlocal_sysv_secure<mode>),
4706 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4707 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4708 (call_value_indirect_pcrel<mode>): Likewise.
4709 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4710 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4711 * configure: Regenerate.
4712 * config.in: Regenerate.
4714 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4716 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4717 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4718 address being a prefixed load/store.
4719 (stack_protect_testdi): Deal with either address being a prefixed
4722 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4725 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4726 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4729 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4731 PR tree-optimization/92420
4732 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4734 (get_group_load_store_type): Use it for reversed SLP accesses.
4736 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4738 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4740 (ipcp_transformation_t::duplicate): Break out from ...
4741 (ipa_node_params_t::duplicate): ... here; add copying of agg
4743 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4744 (ipcp_transformation_t): Add duplicate.
4746 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4749 * doc/install.texi: Document that the minimum MPFR version is
4752 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4754 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4755 use new register constraint letters.
4757 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4759 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4760 as well, if interesting recover the symbol and re-legitimize the
4763 2019-11-11 Martin Liska <mliska@suse.cz>
4765 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4768 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4770 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4771 account when checking if there are enough iterations to vectorize
4774 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4775 Kwok Cheung Yeung <kcy@codesourcery.com>
4777 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4778 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4779 (LANG_HOOKS_DECLS): Rename also here.
4780 * langhooks.h (lang_hooks_for_decls): Rename
4781 omp_is_optional_argument to omp_check_optional_argument; take
4782 additional bool argument.
4783 * omp-general.h (omp_check_optional_argument): Likewise.
4784 * omp-general.h (omp_check_optional_argument): Likewise.
4785 * omp-low.c (lower_omp_target): Update calls; handle absent
4786 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4788 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4791 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4792 -fPIC and -shared the last to create offload image.
4794 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4796 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4799 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4800 (config.status): Use/depend on it.
4801 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4802 * configure: Regenerate.
4804 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4806 PR tree-optimization/88760
4807 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4808 * common/config/rs6000/rs6000-common.c
4809 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4810 Turn on -funroll-loops and -munroll-only-small-loops.
4811 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4812 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4813 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4814 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4815 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4816 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4818 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4820 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4821 Make scalar_load, vector_load, unaligned_load and
4822 vector_gather_load cost more to conform hardware latency and
4825 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4827 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4828 (MACHO_SYMBOL_LINKER_VIS_P): New.
4830 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4832 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4833 registers in eliminable_regset.
4835 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4837 * ipa-inline.c (compute_uninlined_call_time,
4838 compute_inlined_call_time): Take edge frequency as
4839 parameter rather than computing it by itself.
4840 (big_speedup_p, edge_badness): Manually CSE sreal
4841 frequency calculations.
4843 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4845 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4846 case where profiles are same.
4848 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4850 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4852 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4854 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4855 args summaries of inlined edge unless it holds info about
4856 described reference.
4858 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4860 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4861 (*movcc_internal1): Rename to...
4862 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4864 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4866 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4867 (cgraph_node::create_virtual_clone): Copy it.
4868 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4870 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4871 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4873 (propagate_constants_across_call): If callee is not analyzed, give up.
4874 (propagate_constants_topo): Lower to bottom latties of all callees of
4875 functions with ipa-cp disabled.
4876 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4877 (cgraph_edge_brings_value_p): Check for availability first.
4878 (create_specialized_node): Set ipcp_clone.
4879 (ipcp_store_bits_results): Check that info is present.
4880 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4882 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4883 conservative when callee summary is missing.
4884 (remap_edge_summaries): Lookup call summary only when needed.
4885 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4886 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4888 (ipa_analyze_node): Use get_create.
4889 (propagate_controlled_uses): Do not propagate when function is not
4891 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4892 (ipa_read_node_info): Use get_create.
4893 * ipa-prop.h (IPA_NODE_REF): Use get.
4894 (IPA_NODE_REF_GET_CREATE): New.
4896 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4898 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4901 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4903 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4904 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4905 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4906 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4908 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4910 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4911 capping the growth cumulated.
4912 (offline_size): Break out from ...
4913 (estimate_growth): ... here.
4914 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4916 (growth_likely_positive): Turn to ...
4917 (growth_positive_p): Re-implement.
4918 * ipa-inline.h (growth_likely_positive): Remove.
4919 (growth_positive_p): Declare.
4920 * ipa-inline.c (want_inline_small_function_p): Use
4922 (want_inline_function_to_all_callers_p): Likewise.
4924 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4926 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4927 calculation of min_size.
4928 (ipa_update_overall_fn_summary): Likewise.
4930 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4932 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4933 estimate_edge_devirt_benefit when not computing hints;
4934 do not compute time when not asked for.
4935 (estimate_calls_size_and_time): Pass NULL hints and time when
4936 these are not computed; do not evaluate hint predicates when these are
4938 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4941 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4943 PR tree-optimization/92401
4944 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4945 if res_op->code is an expression with code length 1.
4946 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4947 if res_op->code is an expression with code length 2.
4948 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4949 if res_op->code is an expression with code length 3.
4951 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4953 * config/darwin.c (machopic_mcount_stub_name): Validate the
4954 symbol stub name when it is created.
4955 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4958 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4960 * symtab.c: Fix comment typos.
4961 * cgraphunit.c: Likewise.
4962 * cgraph.h: Likewise.
4963 * cgraphclones.c: Likewise.
4964 * cgraph.c: Likewise.
4965 * varpool.c: Likewise.
4966 * tree-ssa-strlen.c: Likewise.
4967 * ipa-sra.c: Likewise.
4968 (scan_expr_access, check_all_callers_for_issues): Fix typo
4971 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4973 * config/darwin-protos.h: Add include quard.
4975 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4977 * range-op.h (range_operator::fold_range): Return result in a
4978 reference parameter instead of by value.
4979 (range_operator::wi_fold): Same.
4980 * range-op.cc (range_operator::wi_fold): Return result in a reference
4981 parameter instead of by value.
4982 (range_operator::fold_range): Same.
4983 (value_range_from_overflowed_bounds): Same.
4984 (value_range_with_overflow): Same
4985 (create_possibly_reversed_range): Same.
4986 (operator_equal::fold_range): Same.
4987 (operator_not_equal::fold_range): Same.
4988 (operator_lt::fold_range): Same.
4989 (operator_le::fold_range): Same.
4990 (operator_gt::fold_range): Same.
4991 (operator_ge::fold_range): Same.
4992 (operator_plus::wi_fold): Same.
4993 (operator_plus::op1_range): Change call to fold_range.
4994 (operator_plus::op2_range): Change call to fold_range.
4995 (operator_minus::wi_fold): Return result via reference parameter.
4996 (operator_minus::op1_range): Change call to fold_range.
4997 (operator_minus::op2_range): Change call to fold_range.
4998 (operator_min::wi_fold): Return result via reference parameter.
4999 (operator_max::wi_fold): Same.
5000 (cross_product_operator::wi_cross_product): Same.
5001 (operator_mult::wi_fold): Same.
5002 (operator_div::wi_fold): Same.
5003 (operator_div op_floor_div): Fix whitespace.
5004 (operator_exact_divide::op1_range): Change call to fold_range.
5005 (operator_lshift::fold_range): Return result via reference parameter.
5006 (operator_lshift::wi_fold): Same.
5007 (operator_rshift::fold_range): Same.
5008 (operator_rshift::wi_fold): Same.
5009 (operator_cast::fold_range): Same.
5010 (operator_cast::op1_range): Change calls to fold_range.
5011 (operator_logical_and::fold_range): Return result via reference.
5012 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5013 (operator_bitwise_and::wi_fold): Return result via reference.
5014 (operator_logical_or::fold_range): Same.
5015 (operator_bitwise_or::wi_fold): Same.
5016 (operator_bitwise_xor::wi_fold): Same.
5017 (operator_trunc_mod::wi_fold): Same.
5018 (operator_logical_not::fold_range): Same.
5019 (operator_bitwise_not::fold_range): Same.
5020 (operator_bitwise_not::op1_range): Change call to fold_range.
5021 (operator_cst::fold_range): Return result via reference.
5022 (operator_identity::fold_range): Same.
5023 (operator_abs::wi_fold): Same.
5024 (operator_absu::wi_fold): Same.
5025 (operator_negate::fold_range): Same.
5026 (operator_negate::op1_range): Change call to fold_range.
5027 (operator_addr_expr::fold_range): Return result via reference.
5028 (operator_addr_expr::op1_range): Change call to fold_range.
5029 (operator_pointer_plus::wi_fold): Return result via reference.
5030 (operator_pointer_min_max::wi_fold): Same.
5031 (operator_pointer_and::wi_fold): Same.
5032 (operator_pointer_or::wi_fold): Same.
5033 (range_op_handler): Change call to fold_range.
5035 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5037 (range_fold_unary_symbolics_p): Same.
5038 (range_fold_binary_expr): Same.
5039 (range_fold_unary_expr): Same.
5041 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5043 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5044 vector type as an argument rather than reading it from the
5046 (vect_create_epilog_for_reduction): Update accordingly.
5047 (vectorizable_reduction): Likewise.
5048 (vect_transform_cycle_phi): Likewise.
5050 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5052 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5053 the comparison codes that make sense for the mode used, and only the
5054 codes that can be done with a single branch instruction.
5056 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5058 PR tree-optimization/92351
5059 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5060 peeling the main loop for alignment, make sure to set the misalignment
5061 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5063 2019-11-08 Richard Biener <rguenther@suse.de>
5065 * dbgcnt.def (ivopts_loop): Add.
5066 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5067 ivopts_loop before optimizing a loop.
5069 2019-11-08 Richard Biener <rguenther@suse.de>
5072 * tree-inline.c (declare_return_variable): Properly handle
5073 type mismatches for the return slot.
5075 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5078 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5079 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5081 (got_helper_needed): New static variable.
5082 (output_load_pcrel_sym): New function.
5083 (get_pc_thunk_name): Remove after inlining...
5084 (load_got_register): ...here. Rework the initialization of the GOT
5085 register and of the GOT helper.
5086 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5087 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5088 helper must be emitted. Use output_asm_insn instead of fprintf.
5089 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5090 if optimization is enabled.
5091 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5092 by calling output_load_pcrel_sym.
5094 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5096 * tree-sra.c (create_access): Delay disqualifying the base
5097 for poly_int values until we know we have a base.
5099 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5101 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5102 for loops with SIMDUID set. Enable epilogue vectorization for loops
5103 with SIMDLEN set after finding a main loop with a VF that matches it.
5105 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5108 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5109 value only, return non-NULL if there is a single non-clobber
5110 constituent store even if there are constituent clobbers and return
5111 one of clobber constituent stores if all constituent stores are
5113 (split_group): Handle clobbers.
5114 (imm_store_chain_info::output_merged_store): When computing
5115 bzero_first, look after all clobbers at the start. Don't count
5116 clobber stmts in orig_num_stmts, except if the first orig store is
5117 a clobber covering the whole area and split_stores cover the whole
5118 area, consider equal number of stmts ok. Punt if split_stores
5119 contains only ->orig stores and their number plus number of original
5120 clobbers is equal to original number of stmts. For ->orig, look past
5121 clobbers in the constituent stores.
5122 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5124 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5126 (store_valid_for_store_merging_p): Allow clobber stmts.
5127 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5130 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5131 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5133 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5134 force creation of a unique data.stack_parm slot.
5136 2019-11-08 Richard Biener <rguenther@suse.de>
5138 * genmatch.c (expr::gen_transform): Use the resimplify
5139 member function instead of hard-coding the gimple_resimplifyN variant.
5140 (dt_simplify::gen_1): Likewise.
5142 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5144 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5147 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5149 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5150 instead of INTEGER_CST.
5152 2019-11-08 Richard Biener <rguenther@suse.de>
5154 PR tree-optimization/92324
5155 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5156 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5157 sign-conversions as necessary.
5158 (vectorizable_reduction): Reject conversions in the chain
5159 that are not sign-conversions, base analysis on a non-converting
5160 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5161 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5163 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5164 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5166 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5169 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5170 Fix a missing '-' when displaying these options in the
5173 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5175 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5177 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5179 * config/aarch64/aarch64-builtins.c
5180 (aarch64_builtin_vectorized_function): Remove bswap handling.
5182 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5184 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5185 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5186 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5187 Treat the vector types as indivisible.
5189 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5191 * optabs.def (gather_load_optab, mask_gather_load_optab)
5192 (scatter_store_optab, mask_scatter_store_optab): Turn into
5193 conversion optabs, with the offset mode given explicitly.
5194 * doc/md.texi: Update accordingly.
5195 * config/aarch64/aarch64-sve-builtins-base.cc
5196 (svld1_gather_impl::expand): Likewise.
5197 (svst1_scatter_impl::expand): Likewise.
5198 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5199 (expand_scatter_store_optab_fn): Likewise.
5200 (direct_gather_load_optab_supported_p): Likewise.
5201 (direct_scatter_store_optab_supported_p): Likewise.
5202 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5204 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5205 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5206 argument with the offset vector type. Require the two vector
5207 types to have the same number of elements but allow their element
5208 sizes to be different. Treat the optabs as conversion optabs.
5209 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5210 prototype accordingly.
5211 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5212 (supports_vec_convert_optab_p): ...this new function.
5213 (supports_vec_gather_load_p): Update accordingly.
5214 (supports_vec_scatter_store_p): Likewise.
5215 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5216 Replace the offset sign and bits parameters with a scalar type tree.
5217 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5218 Pass back the offset vector type instead of the scalar element type.
5219 Allow the offset to be wider than the memory elements. Search for
5220 an offset type that the target supports, stopping once we've
5221 reached the maximum of the element size and pointer size.
5222 Update call to internal_gather_scatter_fn_supported_p.
5223 (vect_check_gather_scatter): Update calls accordingly.
5224 When testing a new scale before knowing the final offset type,
5225 check whether the scale is supported for any signed or unsigned
5226 offset type. Check whether the target supports the source and
5227 target types of a conversion before deciding whether to look
5228 through the conversion. Record the chosen offset_vectype.
5229 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5230 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5231 directly from the gs_info's offset_vectype instead. Pass a zero
5232 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5233 * tree-vect-stmts.c (check_load_store_masking): Update call to
5234 internal_gather_scatter_fn_supported_p, passing the offset vector
5235 type recorded in the gs_info.
5236 (vect_truncate_gather_scatter_offset): Update call to
5237 vect_check_gather_scatter, leaving it to search for a valid
5239 (vect_use_strided_gather_scatters_p): Convert the offset to the
5240 element type of the gs_info's offset_vectype.
5241 (vect_get_gather_scatter_ops): Get the offset vector type directly
5243 (vect_get_strided_load_store_ops): Likewise.
5244 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5245 and IFN_MASK_GATHER_LOAD.
5246 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5247 (gather_load<mode><v_int_equiv>): ...this.
5248 (mask_gather_load<mode>): Rename to...
5249 (mask_gather_load<mode><v_int_equiv>): ...this.
5250 (scatter_store<mode>): Rename to...
5251 (scatter_store<mode><v_int_equiv>): ...this.
5252 (mask_scatter_store<mode>): Rename to...
5253 (mask_scatter_store<mode><v_int_equiv>): ...this.
5255 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5258 * config/rs6000/predicates.md
5259 (signed_or_equality_comparison_operator): New predicate.
5260 (unsigned_or_equality_comparison_operator): Likewise.
5261 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5262 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5263 * config/rs6000/vector.md
5264 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5265 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5266 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5267 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5268 vector modes and same-size integer vector modes.
5269 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5270 (vector_lt<mode> for VEC_F): New expand.
5271 (vector_le<mode> for VEC_F): Likewise.
5272 (vector_ne<mode> for VEC_F): Likewise.
5273 (vector_unge<mode> for VEC_F): Likewise.
5274 (vector_ungt<mode> for VEC_F): Likewise.
5275 (vector_unle<mode> for VEC_F): Likewise.
5276 (vector_unlt<mode> for VEC_F): Likewise.
5277 (vector_uneq<mode>): Expose name.
5278 (vector_ltgt<mode>): Likewise.
5279 (vector_unordered<mode>): Likewise.
5280 (vector_ordered<mode>): Likewise.
5282 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5285 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5286 Enhance ix86_expand_vector_init_concat.
5288 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5290 * doc/invoke.texi (-Wold-style-definition): Document () not being
5291 considered an old-style definition for C2x.
5293 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5295 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5297 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5298 insn patterns using ldcw instruction.
5299 (memory_barrier): Remove insn pattern using sync instruction.
5300 * config/pa/pa.opt (coherent-ldcw): New option.
5301 (ordered): New option.
5303 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5305 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5308 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5310 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5311 typo - mistmatch -> mismatch.
5312 * ipa-profile.c (ipa_profile): Likewise.
5313 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5314 - mistmatch -> mismatch.
5316 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5318 * simplify-rtx.c (comparison_to_mask): New function.
5319 (mask_to_comparison): New function.
5320 (simplify_logical_relational_operation): New function.
5321 (simplify_binary_operation_1): Call
5322 simplify_logical_relational_operation.
5324 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5327 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5328 modes for integer constants.
5330 2019-11-07 Jan Hubicka <jh@suse.cz>
5333 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5336 2019-11-07 Jan Hubicka <jh@suse.cz>
5338 * optc-save-gen.awk: Generate cl_target_option_free
5339 and cl_optimization_option_free.
5340 * opth-en.awk: Declare cl_target_option_free
5341 and cl_optimization_option_free.
5342 * tree.c (free_node): Use it.
5344 2019-11-06 Jan Hubicka <jh@suse.cz>
5346 * lto-streamer-in.c: Include alloc-pool.h.
5347 (freeing_string_slot_hasher): Remove.
5348 (string_slot_allocator): New object allocator.
5349 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5350 (file_name_obstack): New obstack.
5351 (canon_file_name): Allocate in obstack and allocator.
5352 (lto_reader_init): Initialize obstack and allocator.
5353 (lto_free_file_name_hash): New function.
5354 * lto-streamer.h (lto_free_file_name_hash): New.
5356 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5358 PR tree-optimization/89134
5359 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5360 * params.def: Add min-loop-cond-split-prob.
5361 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5362 outside checks on loop into the function.
5363 (split_info): New class.
5364 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5365 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5366 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5367 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5368 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5369 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5370 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5371 (split_loop_on_cond): Likewise.
5372 (tree_ssa_split_loops): Add loop split on conditional statement.
5374 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5376 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5379 2019-11-07 Richard Biener <rguenther@suse.de>
5381 PR tree-optimization/92405
5382 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5383 restrict lane-reducing ops to single stmt chains.
5385 2019-11-07 Martin Jambor <mjambor@suse.cz>
5388 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5389 * cgraph.h (gimple_check_call_matching_types): Remove
5390 * cgraph.c (gimple_check_call_args): Likewise.
5391 (gimple_check_call_matching_types): Likewise.
5392 (symbol_table::create_edge): Do not call
5393 gimple_check_call_matching_types.
5394 (cgraph_edge::make_direct): Likewise.
5395 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5396 * value-prof.h (check_ic_target): Remove.
5397 * value-prof.c (check_ic_target): Remove.
5398 (gimple_ic_transform): Do nat call check_ic_target.
5399 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5400 (afdo_indirect_call): Likewise.
5401 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5402 gimple_check_call_matching_types.
5403 * ipa-inline.c (early_inliner): Likewise.
5405 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5407 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5408 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5409 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5410 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5411 * config/arm/iterators.md (USSAT16): New int_iterator.
5412 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5414 * config/arm/predicates.md (ssat16_imm): New predicate.
5415 (usat16_imm): Likewise.
5416 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5418 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5420 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5422 (arm_<simd32_op>): New define_expands.
5423 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5424 __smuad, __smuadx): Define.
5425 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5426 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5427 (SIMD32_BINOP_Q): Likewise.
5428 (simd32_op): Handle the above.
5429 * config/arm/unspecs.md: Define unspecs for the above.
5431 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5433 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5434 * config/arm/arm.md (APSRGE_REGNUM): Define.
5435 (arm_<simd32_op>): New define_insn.
5436 (arm_sel): Likewise.
5437 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5438 (CALL_USED_REGISTERS): Likewise.
5439 (REG_ALLOC_ORDER): Likewise.
5440 (FIRST_PSEUDO_REGISTER): Update value.
5441 (ARM_GE_BITS_READ): Define.
5442 * config/arm/arm.c (arm_conditional_register_usage): Clear
5443 APSRGE_REGNUM from operand_reg_set.
5444 (arm_ge_bits_access): Define.
5445 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5447 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5448 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5449 FAIL if ARM_GE_BITS_READ.
5450 (*arm_add<mode>3): New define_insn.
5451 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5452 (*arm_sub<mode>3): New define_insn.
5453 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5454 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5456 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5457 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5458 (simd32_op): Handle the above.
5459 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5460 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5461 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5462 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5464 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5466 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5467 (arm_smlabb): New define_expand.
5468 (*maddhisi4tb): Rename to...
5469 (maddhisi4tb): ... This.
5470 (*maddhisi4tt): Rename to...
5471 (maddhisi4tt): ... This.
5472 (arm_smlatb_setq): New define_insn.
5473 (arm_smlatb): New define_expand.
5474 (arm_smlatt_setq): New define_insn.
5475 (arm_smlatt): New define_expand.
5476 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5477 (arm_<smlaw_op>): New define_expand.
5478 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5479 __smlawb, __smlawt): Define.
5480 * config/arm_acle_builtins.def: Define builtins for the above.
5481 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5482 (slaw_op): New int_attribute.
5483 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5485 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5487 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5488 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5489 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5490 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5491 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5492 (ss_op): New code_attr.
5494 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5496 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5497 * config/arm/arm.md (APSRQ_REGNUM): Define.
5498 (add_setq): New define_subst.
5499 (add_clobber_q_name): New define_subst_attr.
5500 (add_clobber_q_pred): Likewise.
5501 (maddhisi4): Change to define_expand. Split into mult and add if
5503 (arm_maddhisi4): New define_insn.
5504 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5505 (*maddhisi4tt): Likewise.
5506 (arm_ssat): New define_expand.
5507 (arm_usat): Likewise.
5508 (arm_get_apsr): New define_insn.
5509 (arm_set_apsr): Likewise.
5510 (arm_saturation_occurred): New define_expand.
5511 (arm_set_saturation): Likewise.
5512 (*satsi_<SAT:code>): Rename to...
5513 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5514 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5515 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5516 (CALL_USED_REGISTERS): Mark apsrq.
5517 (FIRST_PSEUDO_REGISTER): Update value.
5518 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5519 (machine_function): Add q_bit_access.
5520 (ARM_Q_BIT_READ): Define.
5521 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5522 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5524 (arm_q_bit_access): Define.
5525 * config/arm/arm-builtins.c: Include stringpool.h.
5526 (arm_sat_binop_imm_qualifiers,
5527 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5528 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5529 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5530 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5531 SET_SAT_QUALIFIERS): Likewise.
5532 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5533 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5534 Handle 0 argument expander.
5535 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5536 (arm_check_builtin_call): Define.
5537 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5538 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5539 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5540 (arm_q_bit_access): Likewise.
5541 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5542 __saturation_occurred, __set_saturation_occurred): Define.
5543 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5544 saturation_occurred, set_saturation_occurred.
5545 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5546 (UNSPEC_APSR_READ): Likewise.
5547 (VUNSPEC_APSR_WRITE): Likewise.
5548 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5549 (*arm_ssadd<mode>3): New define_insn.
5550 (sssub<mode>3): Convert to define_expand.
5551 (*arm_sssub<mode>3): New define_insn.
5552 (ssmulsa3): Convert to define_expand.
5553 (*arm_ssmulsa3): New define_insn.
5554 (usmulusa3): Convert to define_expand.
5555 (*arm_usmulusa3): New define_insn.
5556 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5557 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5558 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5560 2019-11-07 Martin Liska <mliska@suse.cz>
5563 * cgraph.c (delete_function_version): Clear global
5564 variable version_info_node if equal to deleted
5567 2019-11-07 Martin Liska <mliska@suse.cz>
5569 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5570 of CONSTRUCTOR_NO_CLEARING.
5571 (operand_compare::hash_operand): Likewise.
5573 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5575 Support 64-bit double and 64-bit long double configurations.
5578 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5579 --with-long-double=.
5580 * config/avr/t-multilib: Remove.
5581 * config/avr/t-avr: Output of genmultilib.awk is now fully
5582 dynamically generated and no more part of the repo.
5583 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5584 Pass them down to...
5585 * config/avr/genmultilib.awk: ...here and handle them.
5586 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5587 (-mlong-double=, avr_long_double). New option and var.
5588 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5589 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5590 Set default as requested by --with-double=
5591 (TARGET_HANDLE_OPTION): Define to this...
5592 (avr_handle_option): ...new hook worker.
5593 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5594 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5595 (avr_double_lib): New proto for spec function.
5596 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5597 (DRIVER_SELF_SPECS): Call %:double-lib.
5598 * config/avr/avr.c (avr_option_override): Assert
5599 sizeof(long double) >= sizeof(double) for the target.
5600 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5601 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5602 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5603 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5604 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5605 New built-in define depending on --with-double=, --with-long-double=.
5606 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5607 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5608 * doc/install.texi (Cross-Compiler-Specific Options)
5609 <--with-double=, --with-long-double=>: Doc.
5611 2019-11-07 Richard Biener <rguenther@suse.de>
5613 * dbgcnt.def (gimple_unroll): New.
5614 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5615 gimple_unroll debug counter before applying transform.
5616 (try_peel_loop): Likewise.
5618 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5620 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5621 frame pointer in multiple registers.
5622 (ira_setup_eliminable_regset): Setup eliminable_regset,
5623 ira_no_alloc_regs and regs_ever_live for frame pointer in
5626 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5628 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5631 2019-11-06 Jan Hubicka <jh@suse.cz>
5633 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5635 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5636 Do not silently ignore summary corruptions.
5638 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5640 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5641 the epilogue if there are peeled iterations for it to handle.
5643 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5645 * config/arc/arc.c (arc_split_ior): Add asserts.
5646 (arc_split_mov_const): Likewise.
5647 (arc_check_ior_const): Do not match known short immediate values.
5648 * config/arc/arc.md (movsi): Don't split predicated instructions
5651 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5653 * config/arc/arc.opt (mea): Update help string.
5654 * doc/invoke.texi(ARC): Update mea option info.
5656 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5658 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5659 (zero_extendqisi2_ac): Likewise.
5660 (zero_extendhisi2_i): Likewise.
5661 (extendqihi2_i): Likewise.
5662 (extendqisi2_ac): Likewise.
5663 (extendhisi2_i): Likewise.
5665 2019-11-06 Richard Biener <rguenther@suse.de>
5667 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5668 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5669 Simplify single_defuse_cycle condition.
5671 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5673 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5674 epilogue loop, make sure that the VF is small enough or that
5675 the epilogue loop can be fully-masked.
5677 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5679 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5680 loop when we've finished, rather than returning directly from
5681 the loop. Use a local variable to track whether we're still
5682 searching for the preferred simdlen. Make vect_epilogues
5683 record whether the next iteration should try to treat the
5684 loop as an epilogue.
5686 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5688 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5689 __arc_hard_float__, __ARC_HARD_FLOAT__,
5690 __arc_soft_float__, __ARC_SOFT_FLOAT__
5692 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5694 PR tree-optimization/92317
5695 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5696 update phi's with constant phi arguments.
5698 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5699 Alexandre Oliva <oliva@adacore.com>
5701 * common.opt (-fcallgraph-info[=]): New option.
5702 * doc/invoke.texi (Developer options): Document it.
5703 * opts.c (common_handle_option): Handle it.
5704 * builtins.c (expand_builtin_alloca): Record allocation if
5705 -fcallgraph-info=da.
5706 * calls.c (expand_call): If -fcallgraph-info, record the call.
5707 (emit_library_call_value_1): Likewise.
5708 * flag-types.h (enum callgraph_info_type): New type.
5709 * explow.c: Include stringpool.h.
5710 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5711 * function.c (allocate_stack_usage_info): New.
5712 (allocate_struct_function): Call it for -fcallgraph-info.
5713 (prepare_function_start): Call it otherwise.
5714 (record_final_call, record_dynamic_alloc): New.
5715 * function.h (struct callinfo_callee): New.
5716 (CALLEE_FROM_CGRAPH_P): New.
5717 (struct callinfo_dalloc): New.
5718 (struct stack_usage): Add callees and dallocs.
5719 (record_final_call, record_dynamic_alloc): Declare.
5720 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5721 object if -fcallgraph-info=da.
5722 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5723 * print-tree.h (print_decl_identifier): Declare.
5724 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5725 * print-tree.c: Include print-tree.h.
5726 (print_decl_identifier): New function.
5727 * toplev.c: Include print-tree.h.
5728 (callgraph_info_file): New global variable.
5729 (callgraph_info_external_printed): Likewise.
5730 (output_stack_usage): Rename to...
5731 (output_stack_usage_1): ... this. Make it static, add cf
5732 parameter. If -fcallgraph-info=su, print stack usage to cf.
5733 If -fstack-usage, use print_decl_identifier for
5735 (INDIRECT_CALL_NAME): New.
5736 (dump_final_node_vcg_start): New.
5737 (dump_final_callee_vcg, dump_final_node_vcg): New.
5738 (output_stack_usage): New.
5739 (lang_dependent_init): Open and start file if
5740 -fcallgraph-info. Allocated callgraph_info_external_printed.
5741 (finalize): If callgraph_info_file is not null, finish it,
5742 close it, and release callgraph_info_external_printed.
5744 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5745 Frederik Harwath <frederik@codesourcery.com>
5746 Thomas Schwinge <thomas@codesourcery.com>
5748 * omp-low.c (struct omp_context): New fields
5749 local_reduction_clauses, outer_reduction_clauses.
5750 (new_omp_context): Initialize these.
5751 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5752 (scan_omp_for): Check reduction clauses for incorrect nesting.
5754 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5757 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5758 operands with non-memory constraints.
5760 2019-11-05 Martin Sebor <msebor@redhat.com>
5762 PR tree-optimization/92373
5763 * tree.c (component_ref_size): Only consider initializers of objects
5764 of matching struct types.
5765 Return null for instances of interior zero-length arrays.
5767 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5769 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5771 2019-11-05 Jason Merrill <jason@redhat.com>
5773 PR tree-optimization/91825
5774 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5776 2019-11-05 Jim Wilson <jimw@sifive.com>
5779 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5780 optimize_insn_for_speed_p is true.
5782 2019-11-05 Martin Sebor <msebor@redhat.com>
5786 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5788 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5789 name and location for a temporary variable.
5791 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5793 * tree-vrp.c (value_range::value_range): Fix whitespace.
5794 (defined_ranges_p): Same.
5795 (range_fold_binary_symbolics_p): Same.
5796 (value_range::intersect_helper): Same.
5797 (value_range::union_helper): Same.
5798 * tree-vrp.h (range_fold_binary_expr): Same.
5800 2019-11-04 Martin Sebor <msebor@redhat.com>
5804 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5805 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5806 of message printed in a warning for empty arrays.
5807 (vrp_prop::check_mem_ref): Also handle function parameters and
5810 2019-11-05 Richard Biener <rguenther@suse.de>
5812 PR tree-optimization/92371
5813 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5814 on the original stmt of live stmts in the chain.
5815 (vectorizable_live_operation): Look at the original stmt when
5816 checking STMT_VINFO_REDUC_DEF.
5818 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5820 * gimple-fold.c, gimple-loop-versioning.cc,
5821 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5822 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5823 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5824 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5825 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5826 value_range_equiv, and value_range_base to value_range.
5828 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5830 * expr.c (build_personality_function): Fix generated type to
5831 match actual personality functions.
5833 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5835 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5836 enough bytes for the NULL character.
5838 2019-11-05 Richard Biener <rguenther@suse.de>
5840 PR tree-optimization/92280
5841 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5842 had a single use do not create a new CTOR.
5843 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5844 BIT_FIELD_REF of a CTOR via GENERIC.
5846 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5848 * config/s390/s390.c (s390_vector_alignment): Check if the value
5849 fits into uhwi before using it.
5851 2019-11-05 Martin Liska <mliska@suse.cz>
5853 * symbol-summary.h: Use ggc_delete.
5855 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5857 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5858 Change vec_perm field to 10.
5860 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5862 * doc/install.texi: Further fix syntax for html generation.
5864 2019-11-05 Martin Liska <mliska@suse.cz>
5866 * symbol-summary.h: Rename allocator to m_allocator and
5869 2019-11-05 Richard Biener <rguenther@suse.de>
5871 PR tree-optimization/92324
5872 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5873 all signed or unsigned operations.
5875 2019-11-05 Jan Hubicka <jh@suse.cz>
5877 * hsa-brig.c: Include alloc-pool.h
5878 * hsa-dump.c: Likewise.
5879 * hsa-gen.c: Likewise.
5880 * hse-regalloc.c: Likewise.
5881 * ipa-hsa.c: Likewise.
5882 * ipa-predicate.c: Likewise.
5883 * ipa-reference.c: Likewise.
5884 * ipa-sra.c: Likewise.
5885 * omp-expand.c: Likewise.
5886 * omp-general.c: Likewise.
5887 * omp-low.c: Likewise.
5888 * sumbol-summary.h (function_summary_base): Add allocator.
5889 (function_summary<T *>::function_summary): Update construction.
5890 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5891 (call_summary_base): Add allcator.
5892 (call_summary<T *>::call_summary): Update construction.
5893 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5895 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5897 PR tree-optimization/91945
5898 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5899 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5902 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5904 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5905 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5906 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5907 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5908 (vrp_set_zero_nonzero_bits): Move to...
5909 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5910 (vr_values::simplify_bit_ops_using_ranges): Rename
5911 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5913 2019-11-05 Martin Liska <mliska@suse.cz>
5916 * fold-const.c (operand_compare::hash_operand): Remove
5917 FIELD_DECL handling.
5919 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5921 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5922 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5925 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5927 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5928 properly handle symbolics.
5929 (range_compatible_p): Remove.
5931 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5933 * common.opt (-fabi-version): Document =14.
5934 * doc/invoke.texi (C++ Dialect Options): Likewise.
5936 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5938 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5940 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5942 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5943 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5944 gcn_omp_device_kind_arch_isa.
5945 * config/gcn/t-omp-device: New file.
5946 * configure.ac: Support gcn for omp_device_property.
5947 * configure: Regenerate.
5949 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5951 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5952 (vrp_val_max): Same.
5953 (vrp_val_is_min): Same.
5954 (vrp_val_is_max): Same.
5955 (value_range_base::nonzero_p): Remove last argument to
5957 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5958 (vrp_val_max): Same.
5959 (vrp_val_is_min): Same.
5960 (vrp_val_is_max): Same.
5961 (value_range_base::set_varying): Remove last argument to vrp_val*.
5962 (value_range_base::dump): Same.
5963 (value_range_base::set): Same.
5964 (value_range_base::normalize_symbolics): Same.
5965 (value_range_base::num_pairs): Same.
5966 (value_range_base::lower_bound): Same.
5967 (value_range_base::upper_bound): Same.
5968 (ranges_from_anti_range): Remove handle_pointers argument.
5969 (value_range_base::singleton_p): Remove last argument to
5970 ranges_from_anti_range.
5972 2019-11-04 Jan Hubicka <jh@suse.cz>
5974 * ipa-reference.c (init_function_info): Initialize
5975 info->global.statics_read.
5977 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5979 * tree-vrp.c (value_range_base::invert): Use constructors to build
5982 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5984 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5985 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5987 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5989 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5992 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5994 * tree-vrp.c (dump_assert_info): New.
5995 (dump_asserts_info): New.
5997 2019-11-04 Jan Hubicka <jh@suse.cz>
5999 * ipa-inline-transform.c: Include ipa-utils.h
6000 (inline_call): Set thunk_expansion flag.
6001 * ipa-utils.h (thunk_expansion): Declare.
6002 * ipa-devirt.c (thunk_expansion): New global var.
6003 (devirt_node_removal_hook): Do not invalidate cache while
6004 doing thunk expansion.
6006 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6008 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6010 2019-11-04 Martin Sebor <msebor@redhat.com>
6012 PR tree-optimization/92349
6013 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6014 memebers have constant sizes.
6016 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6018 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6020 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6021 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6024 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6026 * expr.c (store_constructor): Modify to handle single element vectors.
6027 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6029 (vect_slp_check_for_constructors): New function.
6030 (vect_slp_analyze_bb_1): Call new function to check for vector
6032 (vectorize_slp_instance_root_stmt): New function.
6033 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6035 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6037 2019-11-04 Richard Biener <rguenther@suse.de>
6039 PR tree-optimization/92345
6040 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6041 we produced a reduction chain.
6042 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6043 LOOP_VINFO_REDUCTIONS.
6045 2019-11-04 Jan Hubicka <jh@suse.cz>
6047 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6048 duplicate summaries.
6049 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6051 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6052 access call summaries.
6053 (dump_ipa_call_summary): Be ready for missing edge summaries.
6054 (analyze_function_body): Use get instead of get_create to access
6056 (estimate_calls_size_and_time): Do not access summaries of
6057 inlined edges; sanity check they are missing.
6058 (ipa_call_context::estimate_size_and_time): Use get instead
6059 of get_create to access node summary.
6060 (inline_update_callee_summaries): Do not update depth of
6062 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6064 (ipa_merge_fn_summary_after_inlining): Use get instead
6066 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6067 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6069 (initialize_growth_caches): Update.
6070 (do_estimate_edge_time): Remove redundant copy of context.
6071 (ipa_remove_from_growth_caches): New function.
6072 * ipa-inline.c (flatten_function): Update overall summary
6073 only when optimizing.
6074 (inline_to_all_callers): Update overall summary of function
6076 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6077 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6080 2019-11-04 Richard Biener <rguenther@suse.de>
6082 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6083 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6085 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6087 * ggc-common.c: Include system.h before malloc.h.
6089 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6091 * configure.ac: Pass --enable-obsolete=* and
6092 --enable-option-checking=* down to build configure, and fail
6093 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6094 * configure: Rebuild.
6095 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6096 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6098 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6100 * config.in: Regenerate.
6101 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6102 -mtiny-printf is used without GCC being configured with
6103 --enable-newlib-nano-formatted-io.
6104 * config/msp430/msp430.h (LINK_SPEC): Pass
6105 "--wrap puts --wrap printf" when -mtiny-printf is used.
6106 * config/msp430/msp430.opt: Document -mtiny-printf.
6107 * configure: Regenerate.
6108 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6109 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6110 --enable-newlib-nano-formatted-io is passed.
6111 * doc/invoke.texi: Document -mtiny-printf.
6113 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6115 * configure: Regenerate.
6117 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6119 * config/msp430/driver-msp430.c
6120 (msp430_get_linker_devices_include_path): New spec function.
6121 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6122 (extract_devices_dir_from_exec_prefix): New function.
6123 (extract_devices_dir_from_collect_gcc): New function.
6124 (msp430_check_env_var_for_devices): New function.
6125 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6126 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6127 devices.csv was not found using other methods.
6128 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6130 (msp430_dirname): Likewise.
6131 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6132 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6133 msp430_get_linker_devices_include_path.
6134 (TARGET_EXTRA_PRE_INCLUDES): Define.
6135 * doc/invoke.texi: Document new ways of searching for support files.
6137 2019-11-04 Richard Biener <rguenther@suse.de>
6139 PR tree-optimization/92301
6140 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6141 as required by epilogue generation
6143 2019-11-04 Martin Liska <mliska@suse.cz>
6146 * fold-const.c (operand_compare::hash_operand): Fix field
6147 hashing of CONSTRUCTOR.
6149 2019-11-04 Martin Liska <mliska@suse.cz>
6151 * ggc.h (ggc_delete): New function.
6152 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6153 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6154 (ipa_free_all_node_params): Likewise.
6155 * ipa-sra.c (ipa_sra_analysis): Likewise.
6157 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6159 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6160 set_switch_stmt_execution_predicate, compute_bb_predicates,
6161 will_be_nonconstant_expr_predicate,
6162 phi_result_unknown_predicate,
6163 analyze_function_body): Pass arround params summary.
6164 (ipa_call_context::duplicate_from): New comment;
6165 only duplicate useful values.
6166 (ipa_call_context::equal_to): Only compare useful values.
6167 (remap_edge_summaries): Pass params_summary.
6168 (remap_hint_predicate): Likewise.
6169 (ipa_merge_fn_summary_after_inlining): Likewise.
6170 (inline_read_section): Initialize params summary used flags.
6171 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6172 around param_summary.
6173 (add_condition): Initialized used params summary flags.
6174 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6175 (inline_param_summary::useless_p): New predicate.
6176 (remap_after_inlining, add_condition): Update prototype
6177 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6179 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6181 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6182 (ipa_analyze_virtual_call_uses): Likewise.
6183 (update_indirect_edges_after_inlining): Update param summaries.
6184 (ipa_print_node_params): Print used flags.
6185 (ipa_read_indirect_edge_info): Update param summareis.
6186 * ipa-prop.h (ipa_param_descriptor): Add
6187 used_by_ipa_predicates, used_by_indirect_call
6188 and used_by_polymorphic_call.
6189 (ipa_set_param_used_by_ipa_predicates,
6190 ipa_set_param_used_by_indirect_call,
6191 ipa_set_param_used_by_polymorphic_call,
6192 ipa_is_param_used_by_ipa_predicates,
6193 ipa_is_param_used_by_indirect_call,
6194 ipa_is_param_used_by_polymorphic_call): New inline functions.
6196 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6198 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6200 (ipa_call_context::release): Add ALL parameter.
6201 (ipa_call_context::equal_to): New member function.
6202 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6203 duplicate_form, release, equal_to and exists_p member functoins.
6204 * ipa-inline-analysis.c (node_context_cache_entry): New
6206 (node_context_summary): Likewise.
6207 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6208 node_context_clear): New static vars.
6209 (initialize_growth_caches): New function.
6210 (free_growth_caches): Also delete node_context_cache; output stats.
6211 (do_estimate_edge_time): Cache contexts.
6212 (reset_node_cache): New function.
6213 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6214 (inline_small_functions): Initialize growth caches.
6215 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6217 * ipa-predicate.h (inline_param_summary::equal_to): New.
6218 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6219 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6220 (ipa_agg_jump_function): Implement equal_to member function.
6222 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6224 * ipa-fnsummary.c (inline_read_section): Set vector size
6227 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6229 * ipa-fnsummary.c (ipa_call_context): New constructor.
6230 (estimate_node_size_and_time): Turn to ...
6231 (ipa_call_context::estimate_size_and_time): ... this one.
6232 (ipa_call_context::release): New.
6233 * ipa-fnsummary.h (ipa_call_context): New class.
6234 (estimate_node_size_and_time): Remove.
6235 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6236 do_estimate_edge_hints): Update.
6238 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6240 * config.in: Regenerate.
6241 * configure: Regenerate.
6242 * configure.ac: Check for mallinfo.
6243 * ggc-common.c: Include malloc.h if available;
6245 (report_heap_memory_use): New functoin.
6246 * ggc-page.c (ggc_grow): Do not print "start".
6247 * ggc.h (report_heap_memory_use): Declare.
6248 * pases.c (execute_one_pass): Report memory after IPA passes.
6249 (ipa_read_summaries_1): Likewise.
6250 (ipa_read_optimization_summaries_1): Likewise.
6252 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6254 * gimplify.h (omp_construct_selector_matches): Change return
6255 type to int, add a new SCORES argument.
6256 * gimplify.c (omp_construct_selector_matches): Likewise. If
6257 SCORES is non-NULL, compute scores of each construct.
6258 * omp-general.h (omp_get_context_selector): Declare.
6259 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6260 Adjust omp_construct_selector_matches callers.
6261 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6262 (omp_context_compute_score): New function.
6263 (omp_resolve_declare_variant): Compute scores and decide based on
6267 * configure.ac: Don't look for omp-device-properties files from
6268 installed offloading compilers. Instead add tmake_file snippets
6269 for configured offloading targets and use files they generate.
6270 * Makefile.in (install): Don't depend on
6271 install-omp-device-properties.
6272 (install-omp-device-properties): Remove goal.
6273 * config/i386/t-omp-device: New file.
6274 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6275 * config/nvptx/t-omp-device: New file.
6276 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6277 * configure: Regenerated.
6279 * omp-general.h (omp_context_selector_set_compare): Declare.
6280 * omp-general.c (omp_construct_simd_compare,
6281 omp_context_selector_props_compare, omp_context_selector_set_compare,
6282 omp_context_selector_compare): New functions.
6283 (omp_resolve_declare_variant): Prune variants that are strict subset
6286 2019-11-01 Martin Sebor <msebor@redhat.com>
6292 * doc/invoke.texi (-Wzero-length-bounds): Document.
6293 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6294 instead of a hand-rolled loop to avoid PR 92323.
6295 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6297 (vrp_prop::check_mem_ref): Handle declared struct objects.
6298 * tree.c (last_field): New function.
6299 (array_at_struct_end_p): Handle MEM_REF.
6300 (get_initializer_for): New helper.
6301 (component_ref_size): Add argument. Rename locals. Call
6302 get_initializer_for instead of fold_ctor_reference. Correct handling
6303 of flexible array members.
6304 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6306 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6308 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6309 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6310 UNSPEC_VSX_CVSPUXDS): Remove.
6311 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6312 (vsx_xvcvspdp_be): ... this. New. And...
6313 (vsx_xvcvspdp_le): ... this. New.
6314 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6315 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6316 (vsx_xvcv<su>xwdp_le): ... this. New.
6317 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6318 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6319 (vsx_xvcvsp<su>xds_le): ... this. New.
6321 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6323 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6324 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6325 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6326 UNSPEC_VSX_XVCVSPSXWS): Remove.
6327 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6328 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6330 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6332 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6333 (UNSPEC_VSX_XVCDPSP): Remove.
6334 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6335 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6337 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6339 * hooks.c (hook_tree_tree_bool_null): New.
6340 * hooks.h (hook_tree_tree_bool_null): Declare.
6341 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6342 (LANG_HOOKS_DECLS): Add it.
6343 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6344 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6345 (lower_omp_target): Handle Fortran array with descriptor in
6346 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6348 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6350 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6351 Assert that the type we store in abi_vector_types is its own
6353 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6355 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6357 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6358 from a CONST_INT address when TARGET_THUMB2.
6360 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6362 * config/arm/arm.md (add_not_cin): New insn.
6363 (add_not_shift_cin): Likewise.
6365 2019-10-31 Martin Liska <mliska@suse.cz>
6367 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6368 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6369 and compare_memory_operand.
6371 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6373 * configure.ac: Compute and substitute omp_device_properties and
6374 omp_device_property_deps.
6375 * Makefile.in (generated_files): Add omp-device-properties.h.
6376 (omp-general.o): Depend on omp-device-properties.h.
6377 (omp_device_properties): New make variable.
6378 (omp-device-properties.h, s-omp-device-properties-h,
6379 install-omp-device-properties): New goals.
6380 (install): Depend on install-omp-device-properties for accelerators.
6381 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6382 * target.h (enum omp_device_kind_arch_isa): New enum.
6383 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6385 * omp-general.c: Include omp-device-properties.h.
6386 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6387 colon instead of comma.
6388 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6390 (omp_context_selector_matches): Implement device set arch/isa
6391 selectors, improve device set kind selector handling.
6392 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6393 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6394 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6395 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6396 ix86_omp_device_kind_arch_isa.
6397 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6398 definition from ix86_target_string to file scope.
6399 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6401 (ix86_omp_device_kind_arch_isa): New function.
6402 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6403 isa_opts definitions to file scope.
6404 * config/i386/t-intelmic (omp-device-properties): New goal.
6405 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6406 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6407 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6408 nvptx_omp_device_kind_arch_isa.
6409 * configure: Regenerate.
6410 * doc/tm.texi: Regenerate.
6413 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6414 DECL_BUILT_IN in comment. Remove redundant ()s around return
6416 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6417 before calling fndecl_built_in_p.
6418 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6419 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6420 fndecl_built_in_p on it.
6422 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6424 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6426 2019-10-31 Martin Liska <mliska@suse.cz>
6428 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6429 of cgraph_local_info and use local_info_node instead.
6430 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6431 (bfin_function_ok_for_sibcall): Likewise.
6432 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6433 (must_reload_pic_reg_p): Likewise.
6435 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6438 * tree.h (type_initializer_zero_p): Remove.
6439 * tree.c (type_initializer_zero_p): Remove.
6441 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6443 * doc/invoke.texi (-Wshadow, -Wshadow=global
6444 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6446 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6448 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6449 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6450 and 'target exit data'.
6452 2019-10-30 Martin Jambor <mjambor@suse.cz>
6455 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6456 availability comparison.
6458 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6460 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6461 calls to __mspabi_mpy* functions.
6462 * config/msp430/msp430.md (mulhisi3): New define_expand.
6463 (umulhisi3): New define_expand.
6464 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6465 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6467 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6469 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6470 (msp430_check_plus_not_high_mem): New.
6471 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6472 might be in low memory.
6473 Indicate that a 16-bit absolute address is in lower memory.
6475 2019-10-30 Martin Jambor <mjambor@suse.cz>
6477 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6478 ultimate_alias_target.
6480 2019-10-30 Richard Biener <rguenther@suse.de>
6482 PR tree-optimization/92275
6483 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6484 Copy all loop-closed PHIs.
6486 2019-10-30 Martin Liska <mliska@suse.cz>
6488 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6489 const_tree as function argument.
6490 (func_checker::compare_decl): Likewise.
6491 (func_checker::operand_equal_p): Likewise.
6492 (func_checker::compare_variable_decl): Likewise.
6493 (func_checker::parse_labels): Likewise.
6494 * ipa-icf-gimple.h: Likewise.
6496 2019-10-30 Martin Liska <mliska@suse.cz>
6498 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6499 Do not compare alias sets. It's handled by operand_equal_p.
6501 2019-10-30 Martin Liska <mliska@suse.cz>
6503 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6504 initialize m_compare_polymorphic.
6505 (func_checker::compare_decl): Do not compare polymorphic types.
6506 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6507 * ipa-icf.c (sem_function::equals_private): Do not call
6508 compare_polymorphic_p.
6510 2019-10-30 Martin Liska <mliska@suse.cz>
6512 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6514 (func_checker::compare_memory_operand): Remove.
6515 (func_checker::compare_cst_or_decl): Remove.
6516 (func_checker::operand_equal_valueize): Do not handle
6518 (func_checker::compare_gimple_call): Call compare_operand.
6519 (func_checker::compare_gimple_assign): Likewise.
6520 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6521 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6522 * ipa-icf.h (icf_handled_component_p): Remove.
6524 2019-10-30 Martin Liska <mliska@suse.cz>
6526 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6527 (func_checker::compare_cst_or_decl): Remove handling
6529 (func_checker::compare_operand): Transform to ...
6530 (func_checker::operand_equal_p): ... this.
6531 * ipa-icf-gimple.h (class func_checker): Add
6532 operand_equal_p and hash_operand.
6533 * ipa-icf.c (sem_function::equals_private): Fix
6534 pushing and popping of cfun.
6536 2019-10-30 Martin Liska <mliska@suse.cz>
6538 * fold-const.c (operand_equal_p): Move to ...
6539 (operand_compare::operand_equal_p): ... here.
6540 (operand_compare::verify_hash_value): New.
6541 (add_expr): Move to ...
6542 (operand_compare::hash_operand): ... here.
6543 * fold-const.h (operand_equal_p): Move to the class.
6544 (class operand_compare): New.
6545 * tree.c (add_expr): Remove.
6547 2019-10-30 Martin Liska <mliska@suse.cz>
6549 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6550 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6552 2019-10-30 Martin Liska <mliska@suse.cz>
6556 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6557 from a first_clone in order to get proper LTO section
6559 (cgraph_node::get_untransformed_body):
6560 Use lto_get_section_data where symtab_node::order
6562 * cgraphclones.c (cgraph_node::find_replacement):
6563 Update also symbol order.
6564 * ipa-fnsummary.c (ipa_fn_summary_read):
6565 Use new function lto_get_summary_section_data.
6566 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6567 * ipa-icf.c (sem_item_optimizer::read_summary):
6569 * ipa-prop.c (ipa_prop_read_jump_functions):
6571 (ipcp_read_transformation_summaries): Likewise.
6572 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6573 * lto-cgraph.c (input_node): Add also order_base.
6574 (input_varpool_node): Likewise.
6575 (input_cgraph_1): Assign the order_base.
6576 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6577 * lto-opts.c (lto_write_options): Pass new argument.
6578 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6579 (lto_get_summary_section_data): New.
6580 (lto_get_raw_section_data): Add order argument.
6581 (lto_create_simple_input_block): Likewise.
6582 * lto-section-out.c (lto_destroy_simple_output_block):
6584 * lto-streamer-in.c (lto_input_toplevel_asms):
6585 Use lto_get_summary_section_data.
6586 (lto_input_mode_table): Likewise.
6587 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6588 (lto_output_toplevel_asms): Pass new argument.
6589 (copy_function_or_variable): Likewise.
6590 (produce_lto_section):Likewise.
6591 (produce_symtab): Likewise.
6592 (lto_write_mode_table): Likewise.
6593 (produce_asm_for_decls): Likewise.
6594 * lto-streamer.c (lto_get_section_name): Concat symbol name
6596 * lto-streamer.h (lto_get_section_data): Add order argument.
6597 (lto_get_summary_section_data): New.
6598 (lto_get_raw_section_data): Add order argument.
6599 (lto_get_section_name): Likewise.
6600 * varpool.c (varpool_node::get_constructor): Pass order argument.
6602 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6604 PR tree-optimization/92262
6605 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6606 ubase or cbase here.
6607 (remove_unused_ivs): Unshare comp before using it.
6609 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6611 * ipa-prop.c (update_jump_functions_after_inlining):
6612 Watch for missing summaries.
6614 2019-10-30 Richard Biener <rguenther@suse.de>
6616 PR tree-optimization/65930
6617 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6618 chains also allow a leading and trailing conversion.
6619 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6620 intermediate reduction chains.
6621 (vect_analyze_slp_instance): Likewise. Build a SLP
6622 node for a trailing conversion manually.
6624 2019-10-30 Martin Liska <mliska@suse.cz>
6626 * cgraph.c (cgraph_node::local_info): Transform to ...
6627 (cgraph_node::local_info_node): ... this.
6628 (cgraph_node::dump): Remove cgraph_local_info and
6629 put its fields directly into cgraph_node.
6630 (cgraph_node::get_availability): Likewise.
6631 (cgraph_node::make_local): Likewise.
6632 (cgraph_node::verify_node): Likewise.
6633 * cgraph.h (struct GTY): Likewise.
6634 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6635 (duplicate_thunk_for_node): Likewise.
6636 (cgraph_node::create_clone): Likewise.
6637 (cgraph_node::create_virtual_clone): Likewise.
6638 (cgraph_node::create_version_clone): Likewise.
6639 * cgraphunit.c (cgraph_node::reset): Likewise.
6640 (cgraph_node::finalize_function): Likewise.
6641 (cgraph_node::add_new_function): Likewise.
6642 (analyze_functions): Likewise.
6643 * combine.c (setup_incoming_promotions): Likewise.
6644 * config/i386/i386.c (ix86_function_regparm): Likewise.
6645 (ix86_function_sseregparm): Likewise.
6646 (init_cumulative_args): Likewise.
6647 * ipa-cp.c (determine_versionability): Likewise.
6648 (count_callers): Likewise.
6649 (set_single_call_flag): Likewise.
6650 (initialize_node_lattices): Likewise.
6651 (estimate_local_effects): Likewise.
6652 (create_specialized_node): Likewise.
6653 (identify_dead_nodes): Likewise.
6654 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6655 (ipa_fn_summary_generate): Likewise.
6656 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6657 (process_hsa_functions): Likewise.
6658 * ipa-icf.c (set_local): Likewise.
6659 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6660 * ipa-inline.c (speculation_useful_p): Likewise.
6661 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6662 (ipa_profile): Likewise.
6663 * ipa-split.c (split_function): Likewise.
6664 (execute_split_functions): Likewise.
6665 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6666 (ipa_sra_ipa_function_checks): Likewise.
6667 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6668 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6669 * lto-cgraph.c (lto_output_node): Likewise.
6670 (input_overwrite_node): Likewise.
6671 * multiple_target.c (expand_target_clones): Likewise.
6672 * omp-simd-clone.c (simd_clone_create): Likewise.
6673 * trans-mem.c (expand_call_tm): Likewise.
6674 (ipa_tm_mayenterirr_function): Likewise.
6675 (ipa_tm_diagnose_tm_safe): Likewise.
6676 (ipa_tm_diagnose_transaction): Likewise.
6677 (ipa_tm_create_version): Likewise.
6678 (ipa_tm_transform_calls_redirect): Likewise.
6679 (ipa_tm_execute): Likewise.
6680 * tree-inline.c (expand_call_inline): Likewise.
6682 2019-10-29 Martin Liska <mliska@suse.cz>
6684 * symbol-summary.h (function_summary): Pass memory location
6685 to underlaying hash_map (or vec).
6686 (V>::fast_function_summary): Likewise.
6688 2019-10-29 Martin Liska <mliska@suse.cz>
6690 * ggc.h (ggc_alloc_no_dtor): New function.
6691 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6692 destructor and ggc_free.
6693 (ipa_free_size_summary): Call delete instead
6695 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6696 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6697 (ipa_free_all_edge_args): Call destructor and ggc_free.
6698 (ipa_free_all_node_params): Likewise.
6699 (ipcp_free_transformation_sum): Likewise.
6700 * ipa-prop.h (ipa_check_create_node_params):
6701 Call new ggc_alloc_no_dtor.
6702 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6703 (ipa_sra_analysis): Call destructor and ggc_free.
6704 Replace release with delete operator.
6705 * symbol-summary.h (release): Remove ..
6706 (V>::~fast_function_summary): and move logic here.
6707 Likewise for other classes.
6709 2019-10-29 Richard Biener <rguenther@suse.de>
6711 PR tree-optimization/92260
6712 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6715 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6717 PR tree-optimization/88915
6718 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6719 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6720 and make the valueize function pointer also take a void pointer.
6721 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6722 around vn_valueize, to call it without a context.
6723 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6724 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6725 (~_loop_vec_info): Release epilogue_vinfos.
6726 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6727 number of iterations of epilogue.
6728 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6729 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6730 versioning threshold needed for main loop.
6731 (vect_analyze_loop): Likewise.
6732 (find_in_mapping): New helper function.
6733 (update_epilogue_loop_vinfo): New function.
6734 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6735 on main loop and call update_epilogue_loop_vinfo to update it.
6736 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6737 stmts on loop preheader edge.
6738 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6739 we decided to vectorize epilogues. Update epilogues NITERS and
6740 construct ADVANCE to update epilogues data references where needed.
6741 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6742 (vect_do_peeling, vect_update_inits_of_drs,
6743 determine_peel_for_niter, vect_analyze_loop): Add or update
6745 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6746 created loop_vec_info's for epilogues when available. Otherwise analyse
6747 epilogue separately.
6749 2019-10-29 Richard Biener <rguenther@suse.de>
6751 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6754 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6756 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6757 index for the COND_EXPR from stmt_info rather than reduc_info.
6759 2019-10-29 Richard Biener <rguenther@suse.de>
6761 PR tree-optimization/65930
6762 * tree-vect-loop.c (check_reduction_path): Relax single-use
6763 check allowing out-of-loop uses.
6764 (vect_is_simple_reduction): SLP reduction chains cannot have
6765 intermediate stmts used outside of the loop.
6766 (vect_create_epilog_for_reduction): The adjustment might need
6768 (vectorizable_reduction): Annotate live stmts of the reduction
6769 chain with STMT_VINFO_REDUC_DEF.
6770 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6772 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6774 * calls.c (pass_by_reference): Leave the target to decide whether
6775 POLY_INT_CST-sized arguments should be passed by value or reference,
6776 rather than forcing them to be passed by reference.
6777 (must_pass_in_stack_var_size): Likewise.
6778 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6779 V31_REGNUM to P15_REGNUM.
6780 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6781 Take an extra "silent_p" parameter, defaulting to false.
6782 (aarch64_sve::svbool_type_p): Declare.
6783 (aarch64_sve::nvectors_if_data_type): Likewise.
6784 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6785 (aarch64_frame::reg_offset): Turn into poly_int64s.
6786 (aarch64_frame::save_regs_size): Likewise.
6787 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6788 (aarch64_frame::sve_callee_adjust): Likewise.
6789 (aarch64_frame::spare_reg_reg): Likewise.
6790 (ARM_PCS_SVE): New arm_pcs value.
6791 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6792 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6793 (CUMULATIVE_ARGS::silent_p): Likewise.
6794 (BITS_PER_SVE_PRED): New macro.
6795 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6796 function. Reject aarch64_vector_pcs attributes on SVE functions.
6797 (aarch64_attribute_table): Use the above handler.
6798 (aarch64_sve_abi): New function.
6799 (aarch64_sve_argument_p): Likewise.
6800 (aarch64_returns_value_in_sve_regs_p): Likewise.
6801 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6802 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6803 descriptor for them.
6804 (aarch64_simd_decl_p): Delete.
6805 (aarch64_emit_cfi_for_reg_p): New function.
6806 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6807 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6808 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6809 as partly clobbered for the SVE PCS.
6810 (aarch64_function_ok_for_sibcall): Check whether the two functions
6811 use the same ABI, rather than checking specifically for whether
6812 they're aarch64_vector_pcs functions.
6813 (aarch64_pass_by_reference): Raise an error for attempts to pass
6814 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6815 if there are not enough free registers left, or if the argument is
6817 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6818 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6820 (aarch64_layout_arg): Take a function_arg_info rather than
6821 individual properties. Handle SVE predicates, vectors and tuples.
6822 Raise an error if they are passed to unprototyped functions.
6823 (aarch64_function_arg): If the silent_p flag is set, suppress the
6824 usual error about using float registers without TARGET_FLOAT.
6825 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6826 it in the cumulative_args structure. Initialize aapcs_nprn and
6827 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6828 error about using float registers without TARGET_FLOAT.
6829 If the silent_p flag is not set, also raise an error about
6830 using SVE functions when SVE is disabled.
6831 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6832 and call it for SVE functions too. Update aapcs_nprn similarly
6833 to the other register counts.
6834 (aarch64_layout_frame): If a big-endian function needs to save
6835 and restore Z8-Z15, search for a spare predicate that it can use.
6836 Store SVE predicates at the bottom of the register save area,
6837 followed by SVE vectors, then followed by the normal slots.
6838 Keep pointing the hard frame pointer at the base of the normal slots,
6839 above the SVE vectors. Update the various frame creation and
6840 tear-down strategies for the new layout, initializing the new
6841 sve_callee_adjust field. Add an additional layout for frames
6842 whose saved registers are all SVE registers.
6843 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6844 (aarch64_return_address_signing_enabled): Likewise.
6845 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6846 aarch64_reg_save_mode.
6847 (aarch64_adjust_sve_callee_save_base): New function.
6848 (aarch64_add_cfa_expression): Move earlier in file. Take the
6849 saved register as an rtx rather than a register number and use
6850 its mode for the MEM slot.
6851 (aarch64_save_callee_saves): Remove the mode argument and instead
6852 use aarch64_reg_save_mode to get the mode of each save slot.
6853 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6854 offsets. Allow GP offsets to be saved at a VL-based offset from
6855 the stack, handling this case using the frame pointer if available
6856 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6857 big-endian SVE functions; use normal moves for other SVE saves.
6858 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6859 returns true. Add explicit CFA notes when not storing via the
6860 stack pointer. Do not try to pair SVE saves.
6861 (aarch64_restore_callee_saves): Cope with poly_int64 register
6862 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6863 use normal moves for other SVE restores. Only add CFA restore notes
6864 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6866 (aarch64_get_separate_components): Always keep the first SVE save
6867 in the prologue if we need to use it as a stack probe. Don't allow
6868 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6869 Likewise the spare predicate register that they need. Update the
6870 offset calculation to account for the SVE save area. Use the
6871 appropriate range check for SVE LDR and STR instructions.
6872 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6873 (aarch64_process_components): Likewise. Update the offset
6874 calculation to account for the SVE save area. Only mark the
6875 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6876 Do not try to pair SVE saves.
6877 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6878 reg_offsets. When handling the final allocation, expect the
6879 first SVE register save to be part of the initial allocation
6880 and for it to act as a probe at SP. Account for the SVE callee
6881 save area in the dump information.
6882 (aarch64_expand_prologue): Update the frame diagram. Fold the
6883 SVE callee allocation into the initial allocation if stack clash
6884 protection is enabled. Use new variables to track the offset
6885 of the frame chain (and hard frame pointer) from the current
6886 stack pointer, and likewise the offset of the bottom of the
6887 register save area. Update calls to aarch64_save_callee_saves
6888 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6889 saving the FP&SIMD registers. Save the predicate registers.
6890 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6891 into account when setting the stack pointer from the frame pointer,
6892 and when deciding whether we can inherit the initial adjustment
6893 amount from the prologue. Restore the predicate registers after
6894 the vector registers, then apply sve_callee_adjust, then restore
6895 the general registers.
6896 (aarch64_secondary_reload): Don't use secondary SVE reloads
6898 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6899 (aarch64_short_vector_p): Return false for SVE types.
6900 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6901 at the start of the function. Return false for SVE types.
6902 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6904 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6905 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6906 to big-endian targets for bytewise moves.
6907 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6909 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6910 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6911 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6913 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6914 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6915 aarch64-sve-builtins-base.o to extra_objs. Add
6916 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6917 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6918 (aarch64-sve-builtins-shapes.o): Likewise.
6919 (aarch64-sve-builtins-base.o): New rules.
6920 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6921 (aarch64_resolve_overloaded_builtin): Likewise.
6922 (aarch64_check_builtin_call): Likewise.
6923 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6924 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6926 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6927 (aarch64_svprfop): New enum.
6928 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6929 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6930 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6931 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6932 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6933 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6934 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6935 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6936 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6937 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6938 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6939 (aarch64_sve::mangle_builtin_type): Likewise.
6940 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6941 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6942 (aarch64_sve::expand_builtin): Likewise.
6943 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6944 (aarch64_sve_int_mode): Likewise.
6945 (aarch64_ptrue_all_mode): New function.
6946 (aarch64_convert_sve_data_to_pred): Make public.
6947 (svprfop_token): New function.
6948 (aarch64_output_sve_prefetch): Likewise.
6949 (aarch64_fold_sve_cnt_pat): Likewise.
6950 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6951 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6952 instead of gen_while_ult.
6953 (aarch64_replace_reg_mode): Make public.
6954 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6955 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6956 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6957 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6958 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6959 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6960 (aarch64_sve_ptrue_svpattern_p): Likewise.
6961 (aarch64_sve_pred_valid_immediate): Check
6962 aarch64_sve_ptrue_svpattern_p.
6963 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6964 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6966 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6967 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6968 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6969 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6970 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6971 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6973 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6974 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6975 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6976 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6977 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6978 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6979 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6980 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6981 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6982 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6983 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6984 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6985 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6986 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6987 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6988 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6989 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6990 (Vesize): Handle partial vector modes.
6991 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6993 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6995 (s, paired_extend, inc_dec): New code attributes.
6996 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6997 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6998 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6999 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7000 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7001 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7003 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7004 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7005 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7006 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7007 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7008 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7009 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7010 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7011 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7012 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7013 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7014 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7015 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7016 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7017 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7018 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7020 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7021 (binqops_op, binqops_op_rev, last_op): New int attributes.
7022 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7023 (fn, ab): New int attributes.
7024 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7025 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7026 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7027 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7029 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7030 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7031 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7032 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7033 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7035 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7036 (brk_reg_con, brk_reg_opno): New int attributes.
7037 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7038 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7039 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7041 (max_elem_bits): New int attribute.
7042 (min_elem_bits): Handle UNSPEC_RBIT.
7043 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7044 TRUNCATE as well as SUBREG.
7045 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7046 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7047 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7048 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7049 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7050 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7051 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7052 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7053 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7054 (aarch64_gather_scale_operand_h): New predicates.
7055 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7056 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7057 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7058 (*aarch64_sve_reinterpret<mode>): Allow any source register
7059 instead of requiring an exact match.
7060 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7061 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7062 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7063 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7064 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7065 (aarch64_update_ffrt): New patterns.
7066 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7067 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7068 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7069 (@aarch64_ld<fn>f1<mode>): New patterns.
7070 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7071 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7072 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7073 (@aarch64_ldnt1<mode>): New patterns.
7074 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7075 the scalar part of the address.
7076 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7077 scalar part of the addresse and add an alternative for handling
7079 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7080 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7081 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7082 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7083 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7084 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7085 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7086 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7087 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7088 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7089 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7090 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7091 (@aarch64_sve_prefetch<mode>): New patterns.
7092 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7093 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7094 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7095 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7096 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7097 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7098 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7099 (@aarch64_stnt1<mode>): New patterns.
7100 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7101 the scalar part of the address.
7102 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7103 the scalar part of the addresse and add an alternative for handling
7105 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7106 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7107 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7108 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7109 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7110 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7112 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7113 (extract_last_<mode>): Generalize to...
7114 (@extract_<LAST:last_op>_<mode>): ...this.
7115 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7116 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7117 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7118 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7119 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7120 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7121 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7122 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7123 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7124 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7125 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7126 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7127 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7128 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7129 (*aarch64_adr_uxtw_unspec): Likewise.
7130 (*aarch64_adr_uxtw): Rename to...
7131 (*aarch64_adr_uxtw_and): ...this.
7132 (@aarch64_adr<mode>_shift): New expander.
7133 (*aarch64_adr_shift_sxtw): New pattern.
7134 (aarch64_<su>abd<mode>_3): Rename to...
7135 (@aarch64_pred_<su>abd<mode>): ...this.
7136 (<su>abd<mode>_3): Update accordingly.
7137 (@aarch64_cond_<su>abd<mode>): New expander.
7138 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7139 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7140 (*<su>mul<mode>3_highpart): Rename to...
7141 (@aarch64_pred_<optab><mode>): ...this.
7142 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7143 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7144 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7145 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7146 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7147 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7148 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7149 (*v<ASHIFT:optab><mode>3): Rename to...
7150 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7151 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7152 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7153 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7154 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7155 (@cond_asrd<mode>): New expander.
7156 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7157 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7158 (*sdiv_pow2<mode>3): Delete.
7159 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7160 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7161 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7162 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7163 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7164 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7165 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7166 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7167 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7168 (*add<SVE_F:mode>3): Rename to...
7169 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7171 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7172 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7173 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7174 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7175 (*sub<SVE_F:mode>3): Rename to...
7176 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7178 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7179 (*fabd<SVE_F:mode>3): Rename to...
7180 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7181 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7182 (*mul<SVE_F:mode>3): Rename to...
7183 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7185 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7186 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7188 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7189 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7190 (*<nlogical><PRED_ALL:mode>3): Rename to...
7191 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7192 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7193 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7194 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7195 (aarch64_pred_<logical_nn><mode>_z): ...this.
7196 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7197 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7198 (*fma<SVE_I:mode>4): Rename to...
7199 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7200 (*fnma<SVE_I:mode>4): Rename to...
7201 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7202 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7203 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7204 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7205 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7206 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7207 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7208 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7209 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7210 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7211 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7212 (@aarch64_sve_tmad<mode>): Likewise.
7213 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7214 (*aarch64_sel_dup<mode>): Rename to...
7215 (@aarch64_sel_dup<mode>): ...this.
7216 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7217 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7218 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7219 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7220 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7221 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7222 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7223 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7224 (*fcm<cmp_op><mode>): Rename to...
7225 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7226 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7227 (*fcmuo<mode>): Rename to...
7228 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7229 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7230 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7231 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7232 (fold_extract_last_<mode>): Generalize to...
7233 (@fold_extract_<last_op>_<mode>): ...this.
7234 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7235 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7236 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7237 DImode result explicit.
7238 (reduc_plus_scal_<mode>): Update accordingly.
7239 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7240 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7241 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7242 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7243 (*aarch64_sve_tbl<mode>): Rename to...
7244 (@aarch64_sve_tbl<mode>): ...this.
7245 (@aarch64_sve_compact<mode>): New pattern.
7246 (*aarch64_sve_dup_lane<mode>): Rename to...
7247 (@aarch64_sve_dup_lane<mode>): ...this.
7248 (@aarch64_sve_dupq_lane<mode>): New pattern.
7249 (@aarch64_sve_splice<mode>): Likewise.
7250 (aarch64_sve_<perm_insn><mode>): Rename to...
7251 (@aarch64_sve_<perm_insn><mode>): ...this.
7252 (*aarch64_sve_ext<mode>): Rename to...
7253 (@aarch64_sve_ext<mode>): ...this.
7254 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7255 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7257 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7258 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7260 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7262 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7263 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7264 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7265 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7267 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7268 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7270 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7271 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7272 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7274 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7275 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7276 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7277 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7278 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7280 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7281 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7282 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7283 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7284 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7285 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7286 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7287 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7288 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7289 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7290 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7291 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7292 (aarch64_sve_cnt_pat): Likewise.
7293 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7294 (*aarch64_sve_incsi_pat): Likewise.
7295 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7296 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7297 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7298 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7299 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7300 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7301 (*aarch64_sve_decsi_pat): Likewise.
7302 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7303 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7304 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7305 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7306 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7307 (@aarch64_pred_cntp<mode>): Likewise.
7308 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7310 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7311 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7312 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7314 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7316 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7317 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7318 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7319 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7320 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7321 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7322 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7324 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7325 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7326 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7328 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7330 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7332 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7333 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7335 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7336 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7338 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7339 * config/aarch64/arm_sve.h: New file.
7340 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7341 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7342 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7343 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7344 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7345 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7346 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7347 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7348 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7350 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7352 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7354 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7357 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7359 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7360 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7362 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7363 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7364 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7365 (aarch64_hard_regno_nregs): Handle the new register classes.
7366 (aarch64_hard_regno_mode_ok): Likewise.
7367 (aarch64_regno_regclass): Likewise.
7368 (aarch64_class_max_nregs): Likewise.
7369 (aarch64_register_move_cost): Likewise.
7370 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7371 as general register_operands.
7373 2019-10-29 Martin Liska <mliska@suse.cz>
7375 * ggc-common.c: One can't subtract unsigned types
7376 in compare function.
7378 2019-10-29 Martin Liska <mliska@suse.cz>
7380 * cgraphunit.c (symbol_table::compile): Pass
7381 title as dump_memory_report argument.
7382 * toplev.c (dump_memory_report): New argument.
7383 (finalize): Pass new argument.
7384 * toplev.h (dump_memory_report): Add argument.
7386 2019-10-29 Martin Liska <mliska@suse.cz>
7388 * ggc-common.c: Move Leak to the first column.
7390 2019-10-29 Martin Liska <mliska@suse.cz>
7392 * cgraphunit.c (symbol_table::compile): Remove argument
7393 for dump_memory_report.
7394 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7395 (compare_final): Remove in order to make report
7397 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7398 * mem-stats.h (mem_alloc_description::get_list):
7400 (mem_alloc_description::dump): Likewise here.
7401 * toplev.c (dump_memory_report): Remove final
7403 (finalize): Likewise.
7404 * toplev.h (dump_memory_report): Remove argument.
7406 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7408 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7409 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7410 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7411 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7414 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7416 * coretypes.h (string_int_pair): New typedef.
7417 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7418 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7419 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7421 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7423 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7424 (simulate_builtin_function_decl): Declare.
7425 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7426 (LANG_HOOKS_INITIALIZER): Include it.
7427 * langhooks.c (add_builtin_function_common): Rename to...
7428 (build_builtin_function): ...this. Add a location parameter and use
7429 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7431 (add_builtin_function): Update accordingly, passing the returned
7432 decl to the lang hook.
7433 (add_builtin_function_ext_scope): Likewise
7434 (simulate_builtin_function_decl): New function.
7436 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7438 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7439 example, use actual names of supported offload targets.
7442 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7444 2019-10-28 Martin Sebor <msebor@redhat.com>
7446 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7447 (handle_store): Pass argument to get_addr_stridx.
7449 2019-10-28 Martin Sebor <msebor@redhat.com>
7451 PR tree-optimization/92226
7452 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7453 the offset is in the open range outlined by SI's length.
7455 2019-10-28 Martin Sebor <msebor@redhat.com>
7458 * doc/cpp.texi (__has_builtin): Document.
7459 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7461 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7464 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7465 doubleword and low doubleword result of multiplication on
7468 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7469 pure qualifier to the built-in.
7470 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7472 (struct mips_builtin_description): Add is_pure flag.
7473 (mips_init_builtins): Mark built-in as pure if the flag in the
7474 corresponding mips_builtin_description struct is set.
7476 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7477 alternative which covers the floating-point input value. Also
7478 forbid the split of insert.d pattern for floating-point values.
7480 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7482 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7483 * config/riscv/riscv-sr.c: New file.
7484 * config/riscv/riscv.c (riscv_reorg): New function.
7485 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7486 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7487 (riscv_remove_unneeded_save_restore_calls): Declare.
7488 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7490 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7492 PR tree-optimization/92163
7493 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7494 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7495 before calling bitmap_set_bit.
7496 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7497 delete_dead_or_redundant_assignment.
7498 (dse_dom_walker::dse_optimize_stmt): Likewise.
7499 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7501 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7504 * tree-vect-stmts.c (vectorizable_condition): Support
7505 EXTRACT_LAST_REDUCTION with fully-masked loops.
7507 2019-10-28 Richard Biener <rguenther@suse.de>
7509 PR tree-optimization/92252
7510 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7511 STMT_VINFO_REDUC_IDX when swapping operands.
7513 2019-10-28 Richard Biener <rguenther@suse.de>
7515 PR tree-optimization/92241
7516 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7517 we failed to update the reduction index do not use the pattern
7518 stmts for the reduction chain.
7519 (vectorizable_reduction): When the reduction chain is corrupt,
7521 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7522 fail to update the reduction chain.
7524 2019-10-28 Richard Biener <rguenther@suse.de>
7526 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7527 STMT_VINFO_REDUC_IDX from the actual stmt.
7528 (vect_transform_reduction): Likewise.
7529 (vectorizable_reduction): Compute the reduction chain length,
7530 do not recompute the reduction operand index. Remove no longer
7531 necessary restriction for condition reduction chains.
7533 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7536 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7537 condition for V2DImode.
7539 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7541 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7542 Remove %k operand modifier.
7543 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7545 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7547 PR rtl-optimization/92007
7548 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7549 call it after reload if hot/cold partitioning has been done.
7550 (class pass_postreload_jump): Rename to
7551 pass_jump_after_combine.
7552 (make_pass_postreload_jump): Rename to
7553 make_pass_jump_after_combine.
7554 * passes.def(pass_postreload_jump): Move before reload, rename
7555 to pass_jump_after_combine.
7556 * tree-pass.h (make_pass_postreload_jump): Rename to
7557 make_pass_jump_after_combine.
7559 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7562 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7563 for missing EDGE_REF
7564 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7566 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7568 PR tree-optimization/88760
7569 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7570 Enable -funroll-loops for -O2 and above.
7571 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7572 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7573 do not turn on web and rngreg implicitly, if the unroller is not
7576 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7578 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7581 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7583 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7584 * cgraph.h (cgraph_node::rtl_info): Likewise.
7586 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7588 * ipa-cp.c (propagate_constants_across_call): If args are not available
7589 just drop everything to varying.
7590 (find_aggregate_values_for_callers_subset): Watch for missing
7592 (find_more_scalar_values_for_callers_subs): Likewise.
7593 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7594 update_jump_functions_after_inlining, propagate_controlled_uses):
7595 Watch for missing summaries.
7596 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7598 (ipa_write_node_info): Watch for missing summaries.
7599 (ipa_read_edge_info): Create new ref.
7600 (ipa_edge_args_sum_t): Add remove.
7601 (IPA_EDGE_REF_GET_CREATE): New macro.
7602 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7604 (remap_edge_change_prob): Likewise.
7606 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7608 * ipa-inline-transform.c (inline_call): update function summaries
7609 after expanidng thunk.
7611 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7613 * ipa-icf.c (sem_function::merge): Update function summaries.
7614 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7616 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7618 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7619 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7620 operand already has scalar mode.
7621 (iptr): Remove SF/DF.
7623 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7626 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7627 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7630 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7632 * config/i386/sse.md
7633 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7634 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7635 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7636 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7637 <sse>_vmmaskcmp<mode>3):
7638 Change predicates from vector_operand to nonimmediate_operand,
7639 constraints xBm to xm, since scalar operations don't need
7640 memory address alignment.
7641 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7642 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7643 round_saeonly_nimm_predicate with
7644 round_saeonly_nimm_scalar_predicate.
7645 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7646 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7647 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7648 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7649 avx512f_vmfmadd_<mode>_mask3<round_name>,
7650 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7651 *avx512f_vmfmsub_<mode>_mask<round_name>,
7652 avx512f_vmfmsub_<mode>_mask3<round_name>,
7653 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7654 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7655 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7656 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7657 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7658 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7659 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7660 cvtusi2<ssescalarmodesuffix>32<round_name>,
7661 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7662 round_nimm_predicate with round_nimm_scalr_predicate.
7663 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7664 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7665 avx512er_vmrcp28<mode><round_saeonly_name>,
7666 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7667 ): Replace round_saeonly_nimm_predicate with
7668 round_saeonly_nimm_scalar_predicate.
7669 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7670 vector_operand with nonimmediate_operand.
7671 * config/i386/subst.md (round_scalar_nimm_predicate,
7672 round_saeonly_scalar_nimm_predicate): Replace
7673 vector_operand with nonimmediate_operand.
7675 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7678 * config/i386/i386.md (*rcpsf2_sse): Add
7679 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7680 (*rsqrtsf2_sse): Ditto.
7681 (*sqrt<mode>2_sse): Ditto.
7682 (sse4_1_round<mode>2): separate constraint vm, add
7683 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7684 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7686 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7688 (*sse_vmrsqrtv4sf2): Ditto.
7689 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7690 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7691 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7692 <iptr> pointer size modifier since vround support memory operand.
7694 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7697 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7700 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7701 Tobias Burnus <tobias@codesourcery.com>
7703 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7704 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7707 2019-10-25 Richard Biener <rguenther@suse.de>
7709 PR tree-optimization/92222
7710 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7711 (_slp_oprnd_info::second_pattern): Likewise.
7712 (_slp_oprnd_info::any_pattern): New.
7713 (vect_create_oprnd_info): Adjust.
7714 (vect_get_and_check_slp_defs): Compute whether any stmt is
7716 (vect_build_slp_tree_2): Avoid building up a node from scalars
7717 if any of the operand defs, not just the first, is in a pattern.
7719 2019-10-25 Richard Biener <rguenther@suse.de>
7721 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7722 swapping if we actually have to modify the IL on a shared stmt.
7723 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7724 because we no longer modify the IL.
7726 2019-10-25 Martin Liska <mliska@suse.cz>
7728 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7730 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7732 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7733 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7734 handled by vect_transform_reduction. Allow fully-masked loops
7735 to be used with reduction chains.
7736 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7737 operations in fully-masked loops.
7738 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7739 operations in fully-masked loops.
7741 2019-10-25 Richard Biener <rguenther@suse.de>
7743 * tree-vect-loop.c (vectorizable_reduction): Verify
7744 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7746 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7747 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7750 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7752 * gimplify.h (omp_construct_selector_matches): Declare.
7753 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7754 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7755 called function if needed for flag_openmp.
7756 (gimplify_scan_omp_clauses): Set ctx->code.
7757 (omp_construct_selector_matches): New function.
7758 * omp-general.h (omp_constructor_traits_to_codes,
7759 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7760 * omp-general.c (omp_constructor_traits_to_codes,
7761 omp_context_selector_matches, omp_resolve_declare_variant): New
7764 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7766 * config/rx/rx.c (rx_print_operand): Likewise.
7767 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7768 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7769 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7771 * genemit.c (emit_c_code): Likewise.
7772 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7774 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7776 * symbols-summary.h (fast_function_summary<T *, V>::release,
7777 fast_call_summary<T *, V>::release): Free m_vector.
7779 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7781 * cgraphunit.c (symbol_table::process_new_functions): Call
7782 ipa_free_size_summary.
7783 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7784 (devirtualization_time_bonus): Update.
7785 (ipcp_propagate_stage): Update.
7786 * ipa-fnsummary.c (ipa_size_summaries): New.
7787 (ipa_fn_summary_alloc): Alloc size summary.
7788 (dump_ipa_call_summary): Update.
7789 (ipa_dump_fn_summary): Update.
7790 (analyze_function_body): Update.
7791 (compute_fn_summary): Likewise.
7792 (ipa_get_stack_frame_offset): New function.
7793 (inline_update_callee_summaries): Do not update frame offsets.
7794 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7795 remove call and function summary.
7796 (ipa_update_overall_fn_summary): Update.
7797 (inline_read_section): Update.
7798 (ipa_fn_summary_write): Update.
7799 (ipa_free_fn_summary): Do not remove summaries.
7800 (ipa_free_size_summary): New.
7801 (release summary pass): Also run at WPA.
7802 * ipa-fnsummary.h (ipa_size_summary): Declare.
7803 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7804 estimated_self_stack_size.
7805 (ipa_size_summary_t): New type.
7806 (ipa_size_summaries): Declare.
7807 (ipa_free_size_summary): Declare.
7808 (ipa_get_stack_frame_offset): Declare.
7809 * ipa-icf.c (sem_function::merge): Update.
7810 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7811 (estimate_growth): Update.
7812 (growth_likely_positive): Update.
7813 (clone_inlined_nodes): Update.
7814 (inline_call): Update.
7815 * ipa-inline.c (caller_growth_limits): Update.
7816 (edge_badness): Update.
7817 (recursive_inlining): Update.
7818 (inline_small_functions): Update.
7819 (inline_to_all_callers_1): Update.
7820 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7822 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7824 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7825 (uavg<mode>3_ceil): ... This.
7826 (altivec_vavgs<VI_char>): Rename to...
7827 (avg<mode>3_ceil): ... This.
7828 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7829 VAVGUW, VAVGSW): Adjust.
7831 2019-10-24 Nathan Sidwell <nathan@acm.org>
7833 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7835 2019-10-24 Martin Liska <mliska@suse.cz>
7837 * symbol-summary.h (gt_pch_nx): Mark all functions
7838 with gcc_unreachable as we do not expect to be called.
7840 2019-10-24 Richard Biener <rguenther@suse.de>
7842 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7843 chains try harder with operand swapping and instead of
7844 putting a shifted chain into the reduction operands put
7845 a repetition of the final reduction op there as if we'd
7846 reassociate the expression.
7848 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7850 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7851 statics_not_read and statics_not_written to statics_read and
7852 statics_written respectively.
7853 (no_module_statics): New static var.
7854 (ipa_reference_get_not_read_global): Rename to ...
7855 (ipa_reference_get_read_global): ... this.
7856 (ipa_reference_get_not_written_global): Rename to ...
7857 (ipa_reference_get_written_global): ... this.
7858 (dump_static_vars_set_to_file): Dump no_module_statics.
7859 (copy_static_var_set): Add for propagation parameter.
7860 (ipa_init): Initialize no_module_statics.
7861 (ipa_ref_opt_summary_t::duplicate): Update.
7862 (ipa_ref_opt_summary_t::remove): Update.
7863 (propagate): Update.
7864 (write_node_summary_p): Look correctly for bitmap differences.
7865 (ipa_reference_write_optimization_summary): Update.
7866 (ipa_reference_read_optimization_summary): Update.
7868 (ipa_reference_get_not_read_global): Rename to ...
7869 (ipa_reference_get_read_global): ... this.
7870 (ipa_reference_get_not_written_global): Rename to ...
7871 (ipa_reference_get_written_global): ... this.
7872 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7873 (call_may_clobber_ref_p_1): Update.
7875 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7877 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7879 (msp430_hard_regno_nregs_with_padding): Remove.
7881 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7883 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7884 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7885 shift amount is between 1 and 4.
7886 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7889 2019-10-24 Richard Biener <rguenther@suse.de>
7891 PR tree-optimization/92205
7892 * tree-vect-loop.c (vectorizable_reduction): Restrict
7893 search for alternate vectype_in to lane-reducing patterns
7896 2019-10-24 Richard Biener <rguenther@suse.de>
7898 PR tree-optimization/92203
7899 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7900 Skip eliminating conversion stmts inserted by insertion.
7902 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7904 * config/s390/s390.c (s390_get_thread_pointer): Use
7905 gen_get_thread_pointer.
7906 (s390_expand_split_stack_prologue): Likewise.
7907 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7908 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7909 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7910 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7913 2019-10-24 Richard Biener <rguenther@suse.de>
7915 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7916 SLP discovery fails try to handle the reduction as part
7917 of SLP reduction discovery.
7919 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7921 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7923 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7924 attribute if it exists, rather than the insn size. If we use the
7925 insn size, adjust the size to remove the extra size that prefixed
7927 (rs6000_adjust_insn_length): New function.
7928 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7929 update the instruction sized if prefixed instructions are used.
7930 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7931 (non_prefixed_length attribute): Delete.
7932 (num_insns attribute): New insn attribute to return the number of
7934 (max_prefixed_insns attribute): New insn attribute to return the
7935 maximum number of prefixed instructions in an insn.
7936 (length attribute): Do not adjust for prefix instructions here,
7937 punt to ADJUST_INSN_LENGTH.
7938 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7939 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7940 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7941 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7942 max_prefixed_insns and num_insns.
7944 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7945 (movtd_64bit_nodm): Reformat.
7946 (mov<mode>_32bit): Reformat.
7947 (mov<mode>_softfloat): Reformat.
7948 (FMOVE128_GPR splitter): Reformat.
7949 (DIFD splitter): Reformat.
7950 (TI2 splitter): Reformat.
7951 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7952 bits of the offset for the memory address are non-zero, use PLWA
7953 if prefixed instructions are available.
7955 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7957 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7959 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7961 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7964 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7966 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7967 (cmp_symbol_files): New.
7968 (lto_output): Copy sections in file order.
7969 * lto-streamer.h (lto_file_decl_data): Add field order.
7971 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7973 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7974 * ipa-reference.c (reference_vars_map_t): new type.
7975 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7976 (ipa_reference_var_uid): Implement.
7977 (varpool_node_hooks): New static var.
7978 (varpool_removal_hook): New function.
7979 (is_improper): Do not check bitmap for id==-1
7980 (get_static_name): Update.
7981 (ipa_init): Initialize new datastructures.
7982 (analyze_function): Do not recompute ids.
7983 (propagate): Free reference_vars_to_consider.
7984 (stream_out_bitmap): Update.
7985 (ipa_reference_read_optimization_summary): Update.
7987 2019-10-23 qing zhao <qing.zhao@oracle.com>
7989 PR gcov-profile/91971
7990 * coverage.c (coverage_init): Mangle the full path of filename when
7991 filename is a absolute path.
7993 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7995 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7996 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7997 (msp430_has_hwmult): New.
7998 (msp430_output_labelref):
7999 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8000 * config/msp430/msp430.md (mulhisi3): Likewise.
8001 (umulhisi3): Likewise.
8002 (mulsidi3): Likewise.
8003 (umulsidi3): Likewise.
8005 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8008 * params.def (inline-heuristics-hint-percent): Set to 600.
8010 2019-10-23 Richard Biener <rguenther@suse.de>
8012 PR tree-optimization/65930
8013 * tree-vect-loop.c (check_reduction_path): Allow conversions
8014 that only change the sign.
8015 (vectorizable_reduction): Relax latch def stmts we handle further.
8017 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8020 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8021 (remove_unused_ivs): Use it instead of get_computation_at. When
8022 choosing best candidate, only consider candidates where
8023 get_debug_computation_at actually returns non-NULL.
8025 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8027 PR tree-optimization/92131
8028 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8029 range would be symbolic, drop to varying for any explicit overflow
8030 in the constant part or if neither range is a singleton.
8032 2019-10-23 Martin Liska <mliska@suse.cz>
8035 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8038 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8040 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8041 int_mode_for_mode rather than mode_for_int_vector for scalars.
8043 2019-10-23 Richard Biener <rguenther@suse.de>
8045 PR tree-optimization/92179
8046 * tree-vect-stmts.c (vectorizable_shift): For shift args
8047 that are all the same remove type restriction in the SLP case.
8048 Adjust SLP code to handle converting of the shift arg to
8049 only apply in case the modes are different.
8051 2019-10-23 Martin Liska <mliska@suse.cz>
8054 * ipa-inline.c (recursive_inlining): Do not print
8055 when curr->count is not initialized.
8057 2019-10-23 Richard Biener <rguenther@suse.de>
8059 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8060 op from scalars in case there's a constant operand in its
8063 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8065 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8066 against out of range max skip or log values.
8068 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8070 * cgraph.c (dump_graphviz): Change name to dump_name
8072 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8074 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8075 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8076 subtraction from a carry operation.
8078 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8080 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8082 2019-10-22 Richard Biener <rguenther@suse.de>
8084 PR tree-optimization/92173
8085 * tree-vect-loop.c (vectorizable_reduction): If
8086 vect_transform_reduction cannot handle code-generation try without
8087 the single-def-use-cycle optimization. Pass optab_vector to
8088 optab_for_tree_code to get vector shifts as that's what we'd
8091 2019-10-22 Michael Matz <matz@suse.de>
8094 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8095 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8096 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8098 2019-10-22 Richard Biener <rguenther@suse.de>
8100 PR tree-optimization/92173
8101 * tree-vect-loop.c (vectorizable_reduction): If
8102 vect_transform_reduction cannot handle code-generation try without
8103 the single-def-use-cycle optimization. Pass optab_vector to
8104 optab_for_tree_code to get vector shifts as that's what we'd
8107 2019-10-22 Martin Liska <mliska@suse.cz>
8109 * diagnostic-format-json.cc (json_from_expanded_location):
8110 Use json::integer_number.
8111 * gcov.c (output_intermediate_json_line): Use new
8112 json::integer_number.
8113 (output_json_intermediate_file): Likewise.
8114 * json.cc (number::print): Move to ...
8115 (float_number::print): ... this.
8116 (integer_number::print): New.
8117 (test_writing_numbers): Move to ...
8118 (test_writing_float_numbers): ... this.
8119 (test_writing_integer_numbers): New.
8120 (json_cc_tests): Register test_writing_integer_numbers.
8121 * json.h (class value): Add forward declaration
8122 for float_number and integer_number.
8123 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8124 (class number): Move to ...
8125 (class float_number): ... this.
8126 (class integer_number): New.
8127 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8128 Use json::integer_number.
8129 (optrecord_json_writer::location_to_json): Likewise.
8130 (optrecord_json_writer::profile_count_to_json): Likewise.
8131 (optrecord_json_writer::pass_to_json): Likewise.
8133 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8135 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8136 autodetected_vector_size rather than vector_size is zero.
8137 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8138 Set autodetected_vector_size immediately after calling
8139 vect_analyze_loop_2. Check for a fatal error before advancing
8142 2019-10-21 Jason Merrill <jason@redhat.com>
8144 * lock-and-run.sh: Check for process existence rather than timeout.
8146 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8148 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8149 widening multiplication.
8151 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8153 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8154 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8156 (subsi3_carryin_shift): Separate into register and constant controlled
8157 alternatives. Use shift_amount_operand for operand 4. Set shift
8158 attribute and simplify type attribute.
8159 (subsi3_carryin_shift_alt): Likewise.
8160 (rsbsi3_carryin_shift): Likewise.
8161 (rsbsi3_carryin_shift_alt): Likewise.
8162 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8163 and register controlled shifts into distinct alternatives.
8164 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8165 (andsi_not_shiftsi_si_scc): Likewise.
8166 (arm_cmpsi_negshiftsi_si): Likewise.
8167 (not_shiftsi): Remove redundant M constraint from alternative 1.
8168 (not_shiftsi_compare0): Likewise.
8169 (arm_cmpsi_insn): Remove redundant alternative 2.
8170 (cmpsi_shift_swp): Likewise.
8171 (sub_shiftsi): Likewise.
8172 (sub_shiftsi_compare0_scratch): Likewise.
8173 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8174 (thumb2_cmpsi_neg_shiftsi): Likewise.
8176 2019-10-21 Richard Biener <rguenther@suse.de>
8178 PR tree-optimization/92162
8179 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8180 STMT_VINFO_REDUC_IDX in reduc_info.
8181 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8183 2019-10-21 Richard Biener <rguenther@suse.de>
8185 * tree-vectorizer.h (_slp_tree::ops): New member.
8186 (SLP_TREE_SCALAR_OPS): New.
8187 (vect_get_slp_defs): Adjust prototype.
8188 * tree-vect-slp.c (vect_free_slp_tree): Release
8189 SLP_TREE_SCALAR_OPS.
8190 (vect_create_new_slp_node): Initialize it. New overload for
8191 initializing by an operands array.
8192 (_slp_oprnd_info::ops): New member.
8193 (vect_create_oprnd_info): Initialize it.
8194 (vect_free_oprnd_info): Release it.
8195 (vect_get_and_check_slp_defs): Populate the operands array.
8196 Do not swap operands in the IL when not necessary.
8197 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8198 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8199 swap operands in the operands array. Do not swap operands in
8201 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8202 (vect_gather_slp_loads): Fix.
8203 (vect_detect_hybrid_slp_stmts): Likewise.
8204 (vect_slp_analyze_node_operations_1): Search for a internal
8205 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8206 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8207 the def-type push/pop dance.
8208 (vect_get_constant_vectors): Compute number_of_vectors here.
8209 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8210 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8211 (vect_get_slp_defs): Simplify greatly.
8212 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8213 (vect_transform_reduction): Likewise.
8214 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8215 (vectorizable_call): Likewise.
8216 (vectorizable_operation): Likewise.
8217 (vectorizable_load): Likewise.
8218 (vectorizable_condition): Likewise.
8219 (vectorizable_comparison): Likewise.
8221 2019-10-21 Richard Biener <rguenther@suse.de>
8223 PR tree-optimization/92161
8224 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8227 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8229 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8230 (aarch64_rndr): New define_insn.
8231 (aarch64_rndrrs): Likewise.
8232 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8233 (TARGET_RNG): Likewise.
8234 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8236 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8237 Add fourth argument in prototype.
8238 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8239 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8240 (aarch64_init_rng_builtins): Define.
8241 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8242 (aarch64_expand_rng_builtin): Define.
8243 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8245 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8246 __ARM_FEATURE_RNG when TARGET_RNG.
8247 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8249 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8251 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8252 alignment is more restrictive.
8254 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8256 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8257 (vect_update_max_nunits): Update comment.
8258 (current_vector_size): Delete.
8259 * tree-vect-stmts.c (current_vector_size): Likewise.
8260 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8261 of current_vector_size.
8262 (get_mask_type_for_scalar_type): Likewise.
8263 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8264 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8265 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8266 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8267 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8268 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8270 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8272 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8273 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8274 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8277 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8279 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8280 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8281 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8283 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8285 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8287 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8289 (vect_set_loop_condition_masked): Update call accordingly.
8291 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8293 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8294 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8295 (simple_integer_narrowing): Update call accordingly.
8296 (vectorizable_conversion): Likewise.
8298 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8300 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8301 (vectorizable_call): Update call accordingly.
8303 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8305 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8306 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8307 (duplicate_and_interleave): Update call accordingly.
8308 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8310 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8312 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8313 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8314 (vect_get_constant_vectors): Update call accordingly.
8315 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8317 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8319 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8320 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8321 (vect_prologue_cost_for_slp_op): Update call accordingly.
8322 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8323 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8324 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8325 (get_mask_type_for_scalar_type): Likewise.
8326 (vect_get_vector_types_for_stmt): Likewise.
8327 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8328 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8329 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8330 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8331 (vect_split_statement, vect_convert_input): Likewise.
8332 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8333 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8334 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8335 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8336 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8337 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8338 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8339 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8340 (vect_recog_mask_conversion_pattern): Likewise.
8341 (vect_add_conversion_to_pattern): Likewise.
8342 (vect_recog_gather_scatter_pattern): Likewise.
8343 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8344 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8346 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8348 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8349 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8350 (vect_check_load_store_mask): Update call accordingly.
8351 (vect_get_mask_type_for_stmt): Likewise.
8352 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8353 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8354 (vect_convert_mask_for_vectype): Likewise.
8356 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8358 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8360 (vect_recog_dot_prod_pattern): Update call accordingly.
8361 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8362 (vect_recog_widen_sum_pattern): Likewise.
8364 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8366 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8367 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8368 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8371 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8373 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8374 get_vectype_for_scalar_type_and_size instead of
8375 get_vectype_for_scalar_type.
8377 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8379 * common.opt (-fcommon): Fix description.
8381 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8383 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8384 * config/i386/i386.c (ix86_pre_reload_split): New function.
8385 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8386 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8387 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8388 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8389 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8390 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8391 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8392 *<shift_insn><dwi>3_doubleword_mask,
8393 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8394 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8395 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8396 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8397 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8398 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8399 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8400 *avx2_<code>v8qiv8si2<mask_name>_2,
8401 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8402 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8403 *avx512f_<code>v8qiv8di2<mask_name>_2,
8404 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8405 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8406 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8407 sse4_2_pcmpistr): Likewise.
8409 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8411 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8412 now defaults to https.
8414 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8416 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8417 skip non-zero array accesses.
8419 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8421 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8422 and return a boolean success value. Move the allocation and
8423 initialization of the bb_vec_info to...
8424 (vect_slp_bb_region): ...here. Update call accordingly.
8425 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8426 than in vect_slp_analyze_bb_1.
8428 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8430 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8431 when processing the given datarefs for the first time and
8432 check_datarefs subsequently.
8433 (vect_slp_bb_region): New function, split out of...
8434 (vect_slp_bb): ...here. Don't recompute the region bounds and
8435 dataref sets when retrying with a different vector size.
8437 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8438 Uroš Bizjak <ubizjak@gmail.com>
8441 * config/i386/predicates.md (int_nonimmediate_operand): New special
8443 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8444 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8445 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8446 define_insn_and_split patterns.
8448 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8450 * config/rs6000/rs6000.md: Delete out--of-date comment about
8451 special-casing integer loads.
8453 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8455 * escaped_string.h (escaped_string): New header.
8456 * tree.c (escaped_string): Remove escaped_string class.
8458 2019-10-18 Martin Sebor <msebor@redhat.com>
8460 PR tree-optimization/92157
8461 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8462 compute_string_length to return a negative result.
8464 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8466 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8467 (negvsi3, negvdi3): Delete.
8468 (negdi2_compare): Delete.
8470 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8472 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8474 (subdi3_compare1): Delete pattern.
8475 (subvsi3_borrow): New insn pattern.
8476 (subvsi3_borrow_imm): Likewise.
8478 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8480 * config/arm/arm.md (subv<mode>4): Delete.
8481 (subvdi4): New expander pattern.
8482 (subvsi4): Likewise. Handle some immediate values.
8483 (subvsi3_intmin): New insn pattern.
8484 (subvsi3): Likewise.
8485 (subvsi3_imm1): Likewise.
8486 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8489 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8491 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8492 incoming operands. Early split the calculation into SImode
8494 (usubvsi3_borrow): New insn pattern.
8495 (usubvsi3_borrow_imm): Likewise.
8497 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8499 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8500 (usubvsi4): New pattern. Allow some immediate values for inputs.
8501 (usubvdi4): New pattern.
8503 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8505 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8506 or second operand of the PLUS inside a DImode equality test to be
8507 sign-extend when selecting CC_Vmode.
8508 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8510 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8512 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8513 (addsi3_cin_vout_0): Likewise.
8514 (adddi3_compareV): Delete.
8516 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8518 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8519 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8520 to transform this back into the summation version when that leads
8523 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8525 * config/arm/arm.md (addv<mode>4): Delete.
8526 (addvsi4): New pattern. Handle immediate values that the architecture
8528 (addvdi4): New pattern.
8529 (addsi3_compareV): Rename to ...
8530 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8531 and use COMPARE rather than NE.
8532 (addsi3_compareV_imm): New pattern.
8533 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8534 a signed-overflow check.
8536 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8538 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8539 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8541 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8542 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8544 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8546 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8547 (addsi3_cin_cout_imm_insn): Likewise.
8548 (adddi3_compareC): Delete insn.
8549 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8551 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8553 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8554 * (uaddv<mode>4): Delete expansion pattern.
8555 (uaddvsi4): New pattern.
8556 (uaddvdi4): Likewise.
8557 (addsi3_compareC): Delete pattern, change callers to use
8559 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8560 reduce the number of alternatives and re-work type attribute handling.
8561 (addsi3_compare_op2): Clean up constraints to reduce the number of
8562 alternatives and re-work type attribute handling.
8563 (compare_addsi2_op0): Likewise.
8564 (compare_addsi2_op1): Likewise.
8566 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8568 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8569 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8570 for DImode operands.
8571 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8572 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8574 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8575 (arm_cmpdi_unsigned): Delete.
8577 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8579 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8580 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8581 unchanged only if that will be cheaper.
8582 (arm_select_cc_mode): Recognize a swapped comparison that will
8583 be regenerated using RSBS or RSCS. Relax restriction on selecting
8585 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8587 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8589 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8591 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8592 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8594 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8596 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8597 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8599 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8600 of EQ, NE, LT, GE, LTU and GEU.
8601 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8602 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8603 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8604 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8605 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8607 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8609 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8611 (cstoredi4): Similarly, but for operand 3.
8612 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8613 canonicalization of unsigned compares with a constant on Arm.
8614 Prefer using const+1 and adjusting the comparison over swapping the
8615 operands whenever the original constant was not valid.
8616 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8618 (arm_validize_comparison): Do not force invalid DImode operands to
8621 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8623 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8624 return CC_Zmode if comparing against a constant where one word is
8626 (arm_gen_compare_reg): Split DImode handling to ...
8627 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8628 against simple constants.
8629 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8631 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8633 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8634 (rsbsi3_carryin_shift_alt): Likewise.
8636 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8638 * config/arm/arm.md (negscc_borrow): New pattern.
8639 (mov_negscc): Don't split if the insn would match negscc_borrow.
8640 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8641 (thumb2_mov_negscc_strict_it): Likewise.
8643 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8645 * config/arm/arm.c (arm_insn_cost): New function.
8646 (TARGET_INSN_COST): Override default definition.
8648 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8650 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8653 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8655 * config/arm/arm.c (strip_carry_operation): New function.
8656 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8659 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8661 * config/arm/predicates.md (arm_carry_operation): New special
8663 * config/arm/iterators.md (LTUGEU): Delete iterator.
8664 (cnb): Delete code attribute.
8665 (optab): Delete ltu and geu elements.
8666 * config/arm/arm.md (addsi3_carryin): Renamed from
8667 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8668 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8669 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8670 (addsi3_carryin_clobercc): Similarly.
8671 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8674 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8676 * config/arm/arm.md (arm_subdi3): Delete insn.
8677 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8679 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8681 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8682 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8683 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8685 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8686 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8688 (subdi3): Rewrite to early-expand the sub-operations.
8689 (rsb_im_compare): New pattern.
8691 (negdi2_insn): Delete.
8692 (arm_negsi2): Correct type attribute to alu_imm.
8693 (negsi2_0compare): New insn pattern.
8694 (negsi2_carryin): New insn pattern.
8696 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8698 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8701 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8703 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8704 to match canonical form.
8706 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8708 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8709 (extend<mode>di2): Likewise.
8711 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8713 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8714 * config/arm/arm.c (arm_decompose_di_binop): New function.
8715 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8716 If not generating Thumb-1 code, decompose the operation into 32-bit
8718 * add0si_carryin_<optab>: New pattern.
8720 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8722 * arm.md (adddi3): Only accept register operands.
8723 (arm_adddi3): Convert to simple insn with no split. Do not accept
8725 (adddi_sesidi_di): Delete patern.
8726 (adddi_zesidi_di): Likewise.
8727 (uaddv<mode>4): Use LTU as condition for branch.
8728 (adddi3_compareV): Convert to simple insn with no split.
8729 (addsi3_compareV_upper): Delete pattern.
8730 (adddi3_compareC): Convert to simple insn with no split. Correct
8731 flags setting expression.
8732 (addsi3_compareC_upper): Delete pattern.
8733 (addsi3_compareC): Correct flags setting expression.
8734 (subdi3_compare1): Convert to simple insn with no split.
8735 (subsi3_carryin_compare): Delete pattern.
8736 (arm_subdi3): Convert to simple insn with no split.
8737 (subdi_zesidi): Delete pattern.
8738 (subdi_di_sesidi): Delete pattern.
8739 (subdi_zesidi_di): Delete pattern.
8740 (subdi_sesidi_di): Delete pattern.
8741 (subdi_zesidi_zesidi): Delete pattern.
8742 (negvdi3): Use s_register_operand.
8743 (negdi2_compare): Convert to simple insn with no split.
8744 (negdi2_insn): Likewise.
8745 (negsi2_carryin_compare): Delete pattern.
8746 (negdi_zero_extendsidi): Delete pattern.
8747 (arm_cmpdi_insn): Convert to simple insn with no split.
8748 (negdi2): Don't call gen_negdi2_neon.
8749 * config/arm/neon.md (adddi3_neon): Delete pattern.
8750 (subdi3_neon): Delete pattern.
8751 (negdi2_neon): Delete pattern.
8752 (splits for negdi2_neon): Delete splits.
8754 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8757 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8760 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8762 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8763 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8764 new multilib variants and new mappings.
8766 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8769 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8771 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8772 Richard Sandiford <richard.sandiford@arm.com>
8775 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8776 and define hashmap traits for it.
8777 (loop_vec_info::scalar_cond_masked_set): New member.
8778 (vect_record_loop_mask): Adjust prototype.
8779 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8781 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8782 vect_record_loop_mask.
8783 (vectorizable_live_operation): Likewise.
8784 (vect_record_loop_mask): New param scalar_mask. Add entry
8785 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8786 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8787 Pass it as last arg to vect_record_loop_mask.
8788 (vectorizable_call): Pass scalar_mask as last arg to
8789 vect_record_loop_mask.
8790 (vectorizable_store): Likewise.
8791 (vectorizable_load): Likewise.
8792 (vectorizable_condition): Check if another part of vectorized code
8793 applies loop_mask to condition or to it's inverse, and if yes,
8794 apply loop_mask to result of vector comparison.
8796 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8798 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8800 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8802 PR tree-optimization/92056
8803 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8804 before calling compute_builtin_object_size.
8806 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8809 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8810 (movdi_low_st): Delete.
8811 * config/rs6000/rs6000.c
8812 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8813 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8814 * config/rs6000/rs6000.md (movsi_low): Delete.
8816 2019-10-17 Jason Merrill <jason@redhat.com>
8818 * gimplify.h (get_initialized_tmp_var): Add default argument to
8820 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8821 NULL post_p argument.
8822 * targhooks (std_gimplify_va_arg_expr): Likewise.
8824 2019-10-17 Richard Biener <rguenther@suse.de>
8826 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8827 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8828 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8829 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8830 * tree-vect-loop.c (vect_is_simple_reduction): Set
8831 STMT_VINFO_REDUC_CODE.
8832 (vectorizable_reduction): Remove dead and redundant code, use
8833 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8835 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8837 Fix breakage introduced by r276985.
8839 * config/avr/avr.c (avr_option_override): Remove set of
8840 PARAM_ALLOW_STORE_DATA_RACES.
8841 * common/config/avr/avr-common.c (avr_option_optimization_table)
8842 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8844 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8846 * config/i386/i386.h (processor_costs): Add clear_ratio.
8847 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8848 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8849 of 6 and move_ratio in all cost models.
8851 2019-10-17 Richard Biener <rguenther@suse.de>
8853 * tree-vect-loop.c (check_reduction_path): Compute reduction
8855 (vect_is_simple_reduction): Remove special-case of single-stmt
8856 reduction path detection.
8858 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8860 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8862 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8864 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8865 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8866 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8867 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8868 New combine patterns.
8869 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8871 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8873 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8875 * tree-vrp.c (value_range_base::dump): Display +INF for both
8876 pointers and integers when appropriate.
8878 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8880 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8881 when to use versioning threshold.
8883 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8885 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8886 outlined code from ...
8887 (vect_analyze_loop_2): ... here.
8889 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8891 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8892 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8893 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8895 2019-10-17 Richard Biener <rguenther@suse.de>
8897 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8898 (vect_is_simple_reduction): Move all validity checks ...
8899 (vectorizable_reduction): ... here. Compute whether we
8900 need a fold-left reduction here.
8901 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8902 both overloads, check needs_fold_left_reduction_p directly.
8903 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8905 2019-10-17 Richard Biener <rguenther@suse.de>
8907 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8908 TARGET_MEM_REF creation.
8910 2019-10-17 Richard Biener <rguenther@suse.de>
8912 PR tree-optimization/92129
8913 * tree-vect-loop.c (vectorizable_reduction): Also fail
8914 on GIMPLE_SINGLE_RHS.
8916 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8918 PR tree-optimization/92056
8919 * tree-object-size.c (cond_expr_object_size): Return early if then_
8920 processing resulted in unknown size.
8922 PR tree-optimization/92115
8923 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8924 temporary if it could trap.
8926 2019-10-17 Richard Biener <rguenther@suse.de>
8929 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8930 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8932 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8934 * tree-ssa-strlen.c (maybe_invalidate): Use
8935 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8937 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8938 Jim Wilson <jimw@sifive.com>
8940 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8941 regs to SIBCALL_REGS.
8942 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8943 passing regs to SIBCALL_REGS.
8945 2019-10-16 Martin Sebor <msebor@redhat.com>
8947 PR tree-optimization/83821
8948 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8949 the length of a string when available.
8950 (handle_builtin_memset) Add argument.
8951 (handle_store, strlen_check_and_optimize_call): Same.
8952 (check_and_optimize_stmt): Same. Pass it to callees.
8954 2019-10-16 Martin Sebor <msebor@redhat.com>
8956 PR tree-optimization/91996
8957 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8959 (compare_nonzero_chars): Add an overload.
8960 (count_nonzero_bytes): Add an argument. Call overload above.
8961 Handle non-constant lengths in some range.
8962 (handle_store): Add an argument.
8963 (check_and_optimize_stmt): Pass an argument to handle_store.
8965 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8967 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8969 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8971 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8972 operands which correspond to the same input-output register to
8973 have the same pseudo assigned to them.
8975 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8977 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8979 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8981 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8982 Apply reasonable limit to symbol offsets.
8984 2019-10-16 Richard Biener <rguenther@suse.de>
8986 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8987 (vect_is_simple_reduction): Delay checking to
8988 vectorizable_reduction and relax the checking.
8989 (vectorizable_reduction): Check we have a simple use. Check
8990 for bogus condition reductions.
8991 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8992 are looking at the last stmt in a pattern sequence when
8993 filling in backedge PHI values.
8995 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8996 Jiufu Guo <guojiufu@linux.ibm.com>
8999 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9000 the callee explicitly disables some isa_flags the caller is using.
9002 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9004 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9006 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9008 * genmodes.c (mode_data::order): New field.
9009 (blank_mode): Update accordingly.
9010 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9011 (make_vector_modes): Likewise.
9012 (VECTOR_MODES): Update use accordingly.
9013 (cmp_modes): Sort by the new order field ahead of sorting by size.
9014 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9015 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9016 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9017 (aarch64_classify_vector_mode): Handle the new partial modes.
9018 (aarch64_vl_bytes): New function.
9019 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9020 when counting the number of registers in an SVE mode.
9021 (aarch64_class_max_nregs): Likewise.
9022 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9024 (aarch64_classify_address): Treat partial vectors analogously
9026 (aarch64_print_address_internal): Consolidate the printing of
9027 MUL VL addresses, using aarch64_vl_bytes as the number of
9028 bytes represented by "VL".
9029 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9031 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9033 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9034 rather than known_lt when choosing frame layouts.
9036 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9038 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9039 that all the adjustments add up to the full frame size.
9040 Use crtl->outgoing_args_size directly as the final adjustment
9043 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9045 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9046 "frame" reference instead of always referring directly to
9047 "cfun->machine->frame".
9049 2019-10-16 Richard Biener <rguenther@suse.de>
9051 PR tree-optimization/92119
9052 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9053 against missing bswap lhs.
9055 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9058 * poly-int.h (constant_lower_bound_with_limit): New function.
9059 (constant_upper_bound_with_limit): Likewise.
9060 * doc/poly-int.texi: Document them.
9061 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9062 into the worst-case INTEGER_CST bounds.
9064 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9067 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9068 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9069 * ipa-predicat.h (struct expr_eval_op): New struct.
9070 (expr_eval_ops): New typedef.
9071 (struct condition): Add type and param_ops fields, remove size field.
9072 (add_condition): Replace size parameter with type parameter, add
9073 param_ops parameter.
9074 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9075 (predicate::add_clause): Add comparisons on type and param_ops.
9076 (dump_condition): Add debug dump for param_ops.
9077 (remap_after_inlining): Adjust call arguments to add_condition.
9078 (add_condition): Replace size parameter with type parameter, add
9079 param_ops parameter. Unshare constant value used in conditions.
9080 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9081 parameter expressions using param_ops.
9082 (decompose_param_expr): New function.
9083 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9084 to replace call to unmodified_parm_or_parm_agg_item.
9085 (set_switch_stmt_execution_predicate): Likewise.
9086 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9088 (inline_read_section): Read param_ops from summary stream.
9089 (ipa_fn_summary_write): Write param_ops to summary stream.
9091 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9093 PR rtl-optimization/92107
9094 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9097 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9099 * config/darwin.c: Update description of fix and continue.
9101 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9103 * config/darwin.c (darwin_binds_local_p): Update to call
9104 default_binds_local_p_3 () directly. amend comments.
9106 2019-10-15 Richard Biener <rguenther@suse.de>
9108 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9109 (tree_is_indexable): Use it.
9110 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9111 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9112 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9114 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9116 * config/msp430/msp430.md (zero_extendqipsi2): New.
9117 (zero_extendqisi2): Optimize case where src register and base dst
9118 register are the same.
9119 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9120 (zero_extendpsisi2): Optimize r->m case.
9121 Add unnamed insn patterns to catch insns combine searches for when
9122 optimizing pointer manipulation.
9124 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9126 * config/msp430/msp430.md: Group zero_extend* insns together.
9128 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9130 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9132 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9134 (msp430_subreg): Likewise.
9135 (msp430_split_addsi): Likewise.
9136 (msp430_print_operand_addr): Likewise.
9137 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9138 (USE_STORE_POST_INCREMENT): Define.
9139 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9140 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9141 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9142 (msp430_general_dst_operand): New.
9143 (msp430_general_dst_nonv_operand): New.
9144 (msp430_nonsubreg_operand): Remove.
9145 (msp430_nonsubreg_dst_operand): New.
9146 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9147 of defunct msp430_nonsubreg_operand.
9148 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9150 2019-10-15 Richard Biener <rguenther@suse.de>
9152 PR tree-optimization/91929
9153 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9154 (get_or_alloc_expr_for_name): Initialize it.
9155 (get_or_alloc_expr_for_constant): Likewise.
9156 (phi_translate_1): Copy it.
9157 (create_expression_by_pieces): Use the original location
9158 of the expression for the inserted stmt.
9159 (compute_avail): Record the location of the stmt for the
9160 expressions created.
9162 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9164 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9165 before using tree_to_uhwi.
9167 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9169 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9171 2019-10-15 Richard Biener <rguenther@suse.de>
9173 PR tree-optimization/92094
9174 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9175 do not adjust the reduction definition def type.
9176 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9177 defines the latch argument of the PHI.
9179 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9182 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9183 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9184 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9185 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9186 _mm_maskz_roundscale_round_sd): New intrinsics.
9187 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9188 __builtin_ia32_rndscales?_mask_round builtins instead of
9189 __builtin_ia32_rndscales?_round.
9190 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9191 __builtin_ia32_rndscalesd_round): Remove.
9192 (__builtin_ia32_rndscaless_mask_round,
9193 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9194 * config/i386/sse.md
9195 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9196 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9197 ... this, adjust and add subst atrributes to make it maskable.
9199 2019-10-15 Richard Biener <rguenther@suse.de>
9202 * common.opt (fallow-store-data-races): New.
9203 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9204 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9205 * doc/invoke.texi (fallow-store-data-races): Document.
9206 (--param allow-store-data-races): Remove docs.
9207 * opts.c (default_options_table): Enable -fallow-store-data-races
9209 (default_options_optimization): Do not enable --param
9210 allow-store-data-races at -Ofast.
9211 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9212 instead of PARAM_ALLOW_STORE_DATA_RACES.
9213 * tree-ssa-loop-im.c (execute_sm): Likewise.
9215 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9217 PR tree-optimization/92085
9218 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9219 instead of calling it unconditionally after
9220 delete_dead_or_redundant_assignment and fix indentation.
9222 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9224 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9226 (*fmsub<SDF:mode>4): Likewise.
9227 *fnmsub<SDF:mode>4): Likewise.
9228 (*fnmadd<SDF:mode>4): Likewise.
9230 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9232 * doc/tree-ssa.texi: Update renamed macro name.
9234 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9236 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9239 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9241 * config/darwin.c: Use unsigned ints for the picbase label
9242 counters, initialise the vars explicitly.
9243 (update_pic_label_number_if_needed): Move a variable declaration
9244 to where it's needed.
9245 (machopic_output_function_base_name): Use a more strict checking
9246 assert, and and unsigned int for the picbase label counter.
9247 (machopic_get_function_picbase): Likewise.
9249 2019-10-14 Richard Biener <rguenther@suse.de>
9252 * dse.c (scan_insn): Use param max_active_local_stores.
9253 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9254 based on optimization level.
9255 * loop-invariant.c (move_loop_invariants): Adjust
9256 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9257 * opts.c (default_options_optimization): Do not adjust
9258 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9259 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9261 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9263 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9265 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9267 * config/arm/arm.c (arm_option_override): Don't override sched
9270 2019-10-14 Richard Biener <rguenther@suse.de>
9272 PR tree-optimization/92069
9273 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9274 cycles do not set vect_nested_cycle on the latch definition.
9276 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9278 * function-abi.h (expr_callee_abi): Declare.
9279 * function-abi.cc (expr_callee_abi): New function.
9281 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9283 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9285 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9286 non-zero being represented as [1,MAX].
9288 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9290 * tree-sra.c (dump_access): Add missing braces.
9292 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9294 * config/darwin.c (machopic_indirection_name): Rework the
9295 function to emit linker-visible symbols only for indirections
9296 in the data section. Clean up the code and update comments.
9298 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9300 * config/darwin.c (machopic_indirect_data_reference): Remove
9303 2019-10-13 Nathan Sidwell <nathan@acm.org>
9305 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9307 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9309 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9312 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9314 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9315 so non-virutal are before virutals.
9316 (output_function): Avoid body modifications.
9318 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9320 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9321 %r22. Load function address before global pointer.
9322 (pa_attr_length_indirect_call): Adjust length of inline versions of
9324 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9325 before normal cases. Update inline $$dyncall sequences to preserve
9326 function descriptor address in register %r22.
9327 (TRAMPOLINE_CODE_SIZE): Adjust.
9328 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9329 register %r22 contains trampoline address.
9330 (pa_trampoline_init): Adjust offsets.
9331 (pa_trampoline_adjust_address): Likewise.
9332 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9334 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9337 * config/darwin.c (machopic_indirection): New field to flag
9338 non-lazy-symbol-pointers in the data section.
9339 (machopic_indirection_name): Compute if an indirection should
9340 appear in the data section.
9341 (machopic_output_data_section_indirection): New callback split
9342 from machopic_output_indirection.
9343 (machopic_output_stub_indirection): Likewise.
9344 (machopic_output_indirection): Retain the code for non-lazy
9345 symbol pointers in their regular section.
9346 (machopic_finish): Use the new callbacks to order the indirection
9349 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9351 * config/darwin-protos.h (machopic_finish): Delete.
9352 * config/darwin.c (machopic_finish): Make static.
9354 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9356 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9357 sections when building kernel extension code.
9359 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9361 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9364 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9366 * config/pa/pa.c (pa_option_override): Remove trailing comma
9369 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9372 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9373 <case VEC_COND_EXPR>: Return false with *handled = false.
9374 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9375 recursing on the first operand.
9376 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9377 instead of tree_could_trap_p.
9378 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9380 2019-10-11 Jim Wilson <jimw@sifive.com>
9382 PR rtl-optimization/91860
9383 * combine.c (subst): If new_rtx is a constant, also check for
9384 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9386 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9388 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9389 INTVAL when calling store_bit_field.
9391 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9393 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9396 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9398 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9399 vectorizable_live_operation.
9400 (vectorizable_live_operation): Adjust parameters.
9401 * tree-vect-stmts.c (vect_init_vector,
9402 vect_gen_widened_results_half): Fix typo in function comment.
9403 (can_vectorize_live_stmts): Adjust function comment.
9404 Adjust parameters. Adjust call to vectorizable_live_operation.
9405 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9406 (vect_transform_stmt): Adjust function comment. Adjust call to
9407 can_vectorize_live_stmts.
9408 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9410 2019-10-11 Richard Biener <rguenther@suse.de>
9412 PR tree-optimization/90883
9413 PR tree-optimization/91091
9414 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9415 alias-sets both for recording VN table entries and continuing
9416 walking after translating through copies. Handle same-sized
9417 reads from SSA names by returning the plain SSA name.
9418 (eliminate_dom_walker::eliminate_stmt): Properly handle
9419 non-size precision stores in redundant store elimination.
9421 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9423 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9424 (ggc_collect): Dump later to not interfere with release_page dump.
9425 (ggc_trim): New function.
9426 * ggc-none.c (ggc_trim): New.
9427 * ggc.h (ggc_trim): Declare.
9429 2019-10-11 Richard Biener <rguenther@suse.de>
9431 PR tree-optimization/92066
9432 PR tree-optimization/92046
9433 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9434 Fix bogus cost model check.
9436 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9438 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9439 (LANG_HOOKS_DECLS): Add it.
9440 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9441 update comment for omp_is_optional_argument.
9442 * omp-general.c (omp_is_allocatable_or_ptr): New.
9443 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9444 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9445 Fortran's optional arguments and allocatable/pointer scalars
9446 with use_device_addr.
9448 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9451 * config/s390/2827.md: Add new opcodes.
9452 * config/s390/2964.md: Likewise.
9453 * config/s390/3906.md: Likewise.
9454 * config/s390/8561.md: Likewise.
9455 * config/s390/s390-builtins.def (s390_vfchesb): Use
9456 the new vec_cmpgev4sf_quiet_nocc.
9457 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9458 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9459 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9460 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9461 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9462 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9463 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9464 * config/s390/s390-modes.def (CCSFPS): New mode.
9465 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9466 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9467 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9468 (s390_expand_vec_compare): Use non-signaling patterns where
9470 (s390_reverse_condition): Support CCSFPS.
9471 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9472 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9473 (asm_fcmp_op): Likewise.
9474 (*smaxv2df3_vx): Use pattern for quiet comparison.
9475 (*sminv2df3_vx): Likewise.
9476 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9477 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9478 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9479 (vec_cmplt<mode>_quiet_nocc): New expander.
9480 (vec_cmpge<mode>_quiet_nocc): New pattern.
9481 (vec_cmple<mode>_quiet_nocc): New expander.
9482 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9483 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9484 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9485 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9486 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9487 (vec_cmpungt<mode>): New expander.
9488 (vec_cmpunge<mode>): Likewise.
9489 (vec_cmpuneq<mode>): Use quiet patterns.
9490 (vec_cmpltgt<mode>): Allow only on z14+.
9491 (vec_cmpordered<mode>): Use quiet patterns.
9492 (vec_cmpunordered<mode>): Likewise.
9493 (VEC_CMP_EXPAND): Add ungt and unge.
9495 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9497 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9499 * lto-streamer-out.c: Include tree-dfa.h.
9500 (output_cfg): Do not use cfun.
9501 (lto_prepare_function_for_streaming): New.
9502 (output_function): Do not push cfun; do not initialize loop optimizer.
9503 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9504 * passes.c (ipa_write_summaries): Use it.
9505 (ipa_write_optimization_summaries): Do not modify bodies.
9506 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9507 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9508 * tree-ssa-dse.c (pass_dse::execute): Update use of
9509 renumber_gimple_stmt_uids.
9510 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9512 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9514 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9515 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9517 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9519 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9521 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9522 Also define DFP macros for these conditions.
9523 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9524 DEC128_SUBNORMAL_MIN): Do not define.
9525 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9526 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9528 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9529 Sandra Loosemore <sandra@codesourcery.com>
9532 * doc/lto.texi (IPA): Reference to the IPA passes.
9533 * doc/passes.texi (Pass manager): Add node IPA passes and
9534 description for each IPA pass.
9536 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9538 * ipa-reference.c: Do not include splay-tree.h
9539 (reference_vars_to_consider): Turn to hash map.
9540 (get_static_name, ipa_init, analyze_function, propagate,
9541 stream_out_bitmap, ipa_reference_write_optimization_summary,
9542 ipa_reference_write_optimization_summary): Update.
9544 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9546 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9548 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9550 * config/darwin.c: Lookup Objective C metadata and force indirection
9553 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9555 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9557 (mem_operand_gpr): Add check for prefixed addresses.
9558 (mem_operand_ds_form): Add check for prefixed addresses.
9559 (rs6000_legitimate_offset_address_p): If we support prefixed
9560 addresses, check for a 34-bit offset instead of 16-bit.
9561 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9562 Do not allow load/store with update if the address is prefixed.
9563 (rs6000_mode_dependent_address): If we support prefixed
9564 addresses, check for a 34-bit offset instead of 16-bit.
9566 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9569 * config/s390/vector.md (vcond_comparison_operator): New
9571 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9573 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9576 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9578 * configure.ac (--with-documentation-root-url): New option.
9579 * configure: Regenerate.
9580 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9581 option URL, add it as a new string field of the diagnostic option.
9582 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9583 (print_option_information): If get_option_url is non-NULL, call
9584 it, and if the result is non-NULL, potentially emit an escape
9585 sequence to markup the option text with the resulting URL.
9586 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9587 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9588 example of JSON output.
9589 * opts-diagnostic.h (get_option_url): New decl.
9590 * opts.c (get_option_url): New function.
9591 * toplev.c (general_init): Initialize the get_option_url callback.
9593 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9596 * common.opt (fdiagnostics-urls=): New option.
9597 (diagnostic-url.h): Add SourceInclude.
9598 (diagnostic_url_rule): New enum.
9599 * diagnostic-color.c: Include "diagnostic-url.h".
9600 (diagnostic_urls_enabled_p): New function.
9601 * diagnostic-url.h: New file.
9602 * diagnostic.c: Include "diagnostic-url.h".
9603 (diagnostic_urls_init): New function.
9604 * diagnostic.h (diagnostic_urls_init): New decl.
9605 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9606 -fdiagnostics-urls to the list.
9607 (-fdiagnostics-urls): New option.
9608 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9609 (driver::global_initializations): Call diagnostic_urls_init.
9610 * opts-global.c (init_options_once): Likewise.
9611 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9612 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9614 (pp_begin_url): New function.
9615 (pp_end_url): New function.
9616 (selftest::test_urls): New selftest.
9617 (selftest::pretty_print_c_tests): Call it.
9618 * pretty-print.h (pretty_printer::show_urls): New field.
9619 (pp_begin_url): New decl.
9620 (pp_end_url): New decl.
9622 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9625 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9627 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9630 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9631 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9632 also for TARGET_FPU_SH4_300.
9633 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9635 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9636 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9637 (*negsf2_i): Split into ...
9638 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9639 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9640 (**abssf2_i): Split into ...
9641 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9642 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9643 (*negdf2_i): Split into ...
9644 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9645 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9646 (**abssf2_i): Split into ...
9647 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9649 2019-10-10 Richard Biener <rguenther@suse.de>
9652 * opts.c (finish_options): Do not influence global --params
9653 from options that are adjustable per function.
9654 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9655 Apply --param adjustment based on active cost-model.
9656 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9657 further store-sinking when vectorization or if-conversion
9660 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9663 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9664 rather than ggc_alloc_cleared to alloc symbol table.
9665 * toplev.c (general_init): Likewise.
9666 * cgraph.h (symbol_table): Explicitly construct every field.
9668 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9670 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9672 * config.gcc: Add z15 as option for --with-arch and --with-tune
9674 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9675 error reporting for unsupported builtins.
9676 * config/s390/s390-opts.h (enum processor_type): Rename
9677 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9678 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9679 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9681 * config/s390/s390-builtins.def: Likewise.
9682 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9683 (s390_expand_builtin): Add missing check for unsupported builtins.
9684 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9685 (s390_rtx_costs): Likewise.
9686 (s390_get_sched_attrmask): Rename arch13 to z15.
9687 (s390_get_unit_mask): Likewise.
9688 (s390_is_fpd): Likewise.
9689 (s390_is_fxd): Likewise.
9690 * config/s390/s390.h (enum processor_flags): Likewise.
9691 * config/s390/s390.md: Likewise.
9692 * config/s390/vector.md: Likewise.
9693 * config/s390/vx-builtins.md: Likewise.
9694 * config/s390/s390.opt: Add z15 to processor_type value.
9696 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9699 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9701 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9702 ("split_stack_data", "split_stack_call")
9703 ("split_stack_call_<mode>", "split_stack_cond_call")
9704 ("split_stack_cond_call_<mode>"): Remove.
9705 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9707 * config/s390/s390.c (s390_output_split_stack_data): New function.
9708 (s390_expand_split_stack_prologue): Use the merged expander.
9710 2019-10-09 Martin Sebor <msebor@redhat.com>
9712 PR tree-optimization/90879
9713 * builtins.c (check_access): Avoid using maxbound when null.
9714 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9715 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9716 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9718 (get_range_strlen): Overwrite initial maxbound when non-null.
9719 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9721 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9722 (used_only_for_zero_equality): New function.
9723 (handle_builtin_memcmp): Call it.
9724 (determine_min_objsize): Return an integer instead of tree.
9725 (get_len_or_size, strxcmp_eqz_result): New functions.
9726 (maybe_warn_pointless_strcmp): New function.
9727 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9728 between a longer string and a smaller array.
9729 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9731 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9733 * config/darwin.c (darwin_override_options): Make the check for
9734 Objective-C ABI version more specific for 64bit code.
9736 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9738 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9739 indicate that the new symbol is an indirection.
9740 (machopic_indirect_call_target): Likewise.
9741 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9742 (MACHO_SYMBOL_INDIRECTION_P): New.
9743 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9745 2019-10-08 Jason Merrill <jason@redhat.com>
9747 * doc/invoke.texi: Document -fconcepts-ts.
9749 2019-10-09 Richard Biener <rguenther@suse.de>
9751 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9752 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9754 2019-10-08 Richard Biener <rguenther@suse.de>
9756 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9757 (_stmt_vec_info::force_single_cycle): Likewise.
9758 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9759 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9760 * tree-vect-loop.c (vectorizable_reduction): Set
9761 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9762 (vect_transform_reduction): Use them to remove redundant code.
9763 (vect_transform_cycle_phi): Likewise.
9765 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9767 PR tree-optimization/90836
9768 * match.pd (popcount): New pattern.
9770 2019-10-08 Martin Sebor <msebor@redhat.com>
9774 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9775 again once nbytes has been set. Set the access size when not yet set.
9777 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9779 * config/darwin.c (machopic_select_section): Remove dead code for
9780 old Objective-C section selection method, replace with unreachable.
9782 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9784 * config/darwin.c (machopic_indirect_data_reference): Check for
9785 required indirections before making direct access to defined
9787 (machopic_output_indirection): Place the indirected pointes for
9788 required indirections into the non-lazy symbol pointers section.
9789 (darwin_encode_section_info):
9790 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9791 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9793 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9796 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9797 instead of ALL_SSE_REG to check if function call preserves some
9798 256-bit SSE registers.
9800 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9802 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9803 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9804 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9806 2019-10-08 Richard Biener <rguenther@suse.de>
9808 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9809 (_stmt_vec_info::is_reduc_info): Add.
9810 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9811 (vectorizable_condition): Remove.
9812 (vectorizable_shift): Likewise.
9813 (vectorizable_reduction): Adjust.
9814 (info_for_reduction): New.
9815 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9816 (vect_analyze_scalar_cycles_1): ... here.
9817 (vect_analyze_loop_operations): Adjust.
9818 (needs_fold_left_reduction_p): Simplify for single caller.
9819 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9820 for nested cycles not part of double reductions.
9821 (vect_model_reduction_cost): Pass in the reduction type.
9822 (info_for_reduction): New function.
9823 (vect_create_epilog_for_reduction): Use it, access reduction
9824 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9825 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9826 (vectorize_fold_left_reduction): Remove pointless assert.
9827 (vectorizable_reduction): Analyze the full reduction when
9828 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9829 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9830 stmt code-generation to vectorizable_* in most cases. Verify
9831 code-generation only for cases handled by
9832 vect_transform_reductuon.
9833 (vect_transform_reduction): Use info_for_reduction to get at
9834 reduction meta. Simplify.
9835 (vect_transform_cycle_phi): Likewise.
9836 (vectorizable_live_operation): Likewise.
9837 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9838 at the PHI node for STMT_VINFO_REDUC_TYPE.
9839 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9840 longer necessary code.
9841 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9842 (vectorizable_condition): Likewise. Get at reduction related
9843 info via info_for_reduction.
9844 (vect_analyze_stmt): Adjust.
9845 (vect_transform_stmt): Likewise.
9846 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9847 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9849 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9851 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9852 -fno-fp-int-builtin-inexact default for C2X.
9854 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9855 Richard Biener <rguenther@suse.de>
9857 PR tree-optimization/91532
9858 * tree-if-conv.c: Include tree-ssa-dse.h.
9859 (ifcvt_local_dce): Change param from bb to loop,
9860 and call dse_classify_store.
9861 (tree_if_conversion): Pass loop instead of loop->header as arg
9863 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9864 (delete_dead_or_redundant_assignment): Remove static qualifier from
9865 declaration, and add prototype in tree-ssa-dse.h.
9866 (dse_store_status): Move to tree-ssa-dse.h.
9867 (dse_classify_store): Remove static qualifier and add new tree param
9868 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9869 * tree-ssa-dse.h: New header.
9871 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9873 * config/darwin.c (machopic_output_indirection): Don't put
9874 hidden symbol indirections into the .data section, use the
9875 non-lazy symbol pointers section as normal.
9876 (darwin_encode_section_info): Record if a symbol is hidden.
9877 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9878 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9880 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9882 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9883 predicates instead of accessing bits directly.
9884 (machopic_indirect_call_target): Likewise.
9885 (machopic_output_indirection): Likewise.
9886 (darwin_encode_section_info): Improve description. Use renamed
9887 symbol flags. Use predicate macros for variables and functions.
9889 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9890 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9891 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9892 (MACHO_SYMBOL_VARIABLE_P): New.
9893 (MACHO_SYMBOL_DEFINED_P):New.
9894 (MACHO_SYMBOL_STATIC_P): New.
9895 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9896 (SYMBOL_FLAG_SUBT_DEP): New.
9897 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9899 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9901 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9902 (msp430_expand_epilogue): Likewise.
9903 * config/msp430/predicates.md: Likewise.
9904 * config/msp430/msp430.md: Likewise.
9905 Replace blocks of 8 spaces with tabs.
9907 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9909 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9910 * config/msp430/msp430.c (msp430_split_addsi): New.
9911 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9912 a block of C code for splitting addsi.
9914 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9916 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9917 ix86_expand_rounddf_32): Reorder functions.
9918 * config/i386/i386-protos.h: Update.
9920 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9922 * config.in: Regenerate.
9923 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9924 Add new "Yx" constraint.
9925 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9927 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9929 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9930 code/data region to be selected in the small memory model.
9931 (msp430_section_attr): Don't warn if the "section" and "lower"
9932 attributes are used together.
9933 (msp430_handle_generic_attribute): Likewise.
9934 (msp430_var_in_low_mem): New function.
9935 (TARGET_ENCODE_SECTION_INFO): Define.
9936 (msp430_encode_section_info): New function.
9937 (gen_prefix): Return early in the small memory model.
9938 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9939 ".lower" prefix if -m{code,data}-region=lower have been passed.
9940 (msp430_output_aligned_decl_common): Emit common symbols when
9941 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9943 (TARGET_ASM_FILE_END): Define.
9944 (msp430_file_end): New function.
9945 (msp430_do_not_relax_short_jumps): Allow relaxation when
9946 function will be in the lower region.
9947 (msp430_op_not_in_high_mem): New function.
9948 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9949 the 'X' operand selector.
9950 Clarify comment for 'x' operand selector.
9951 * config/msp430/msp430.h (LINK_SPEC): Propagate
9952 -m{code,data}-region to the linker via spec function
9953 msp430_propagate_region_opt.
9954 (msp430_propagate_region_opt): New prototype.
9955 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9956 (SYMBOL_FLAG_LOW_MEM): Define.
9957 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9959 (zero_extendqihi2): Fix operand number used by "%X" selector.
9960 (zero_extendqisi2): Likewise.
9961 (zero_extendhisi2): Likewise.
9962 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9967 (addhi3_cy): Likewise.
9968 (addchi4_cy): Likewise.
9972 (bic<mode>3): Likewise.
9973 (and<mode>3): Likewise.
9974 (ior<mode>3): Likewise.
9975 (xor<mode>3): Likewise.
9976 (slli_1): Add missing "%X" operand selector.
9984 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9986 (cbranchhi4_real): Likewise.
9987 (cbranchqi4_reversed): Likewise.
9988 (cbranchhi4_reversed): Likewise.
9989 (*bitbranch<mode>4): Likewise.
9990 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9991 * config/msp430/msp430.opt (mcode-region=): Set default to
9992 MSP430_REGION_LOWER. Improve docstring.
9993 (mdata-region=): Likewise.
9994 (muse-lower-region-prefix): New option.
9995 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9996 mdata-region=none multilib.
9997 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9998 mdata-region=none multilib.
9999 MULTILIB_EXCEPTIONS: Remove.
10000 MULTILIB_REQUIRED: Define.
10001 * configure: Regenerate.
10002 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10003 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10004 * doc/extend.texi: Clarify comment for {upper,lower,either}
10005 function attributes.
10006 Add separate description for "lower" variable attribute.
10008 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10011 * optabs-tree.c (vcond_icode_p): New function.
10012 (vcond_eq_icode_p): Likewise.
10013 (expand_vec_cond_expr_p): Use vcond_icode_p and
10015 * optabs.c (can_vcond_compare_p): New function.
10016 * optabs.h (can_vcond_compare_p): Likewise.
10018 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10021 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10022 caller passes a non-trapping condition.
10023 (is_gimple_condexpr): Allow trapping conditions.
10024 (is_gimple_condexpr_1): New helper function.
10025 (is_gimple_condexpr_for_cond): New function, acts like old
10026 is_gimple_condexpr.
10027 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10028 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10029 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10030 * gimplify.c (gimplify_cond_expr): Use
10031 is_gimple_condexpr_for_cond.
10032 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10033 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10035 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10036 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10037 is_gimple_condexpr_for_cond, remove pointless tmp check
10038 (forward_propagate_into_cond): Remove pointless tmp check.
10040 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10042 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10043 match that of other gsi_next_* functions. Adjust the comment.
10044 (gsi_start_nonvirtual_phis): New function.
10045 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10046 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10048 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10050 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10051 setjmp situation here. Fix a verb's ending: "the exact variables or
10052 elements for which there are warnings depends" -> "... depend".
10054 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10056 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10058 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10060 * ipa-prop.c (ipa_vr::nonzero_p): New.
10061 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10063 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10064 * tree-vrp.c (range_has_numeric_bounds_p): New.
10065 (range_int_cst_p): Use range_has_numeric_bounds_p.
10066 (get_range_op_handler): New.
10067 (supported_types_p): New.
10068 (defined_ranges_p): New.
10069 (drop_undefines_to_varying): New.
10070 (range_fold_binary_symbolics_p): New.
10071 (range_fold_unary_symbolics_p): New.
10072 (range_fold_unary_expr): Extract out into above functions.
10073 (range_fold_binary_expr): Same.
10074 (value_range_base::normalize_addresses): New.
10075 (value_range_base::normalize_symbolics): Normalize addresses.
10076 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10078 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10080 * tree-vrp.c (value_range_base::singleton_p): Use
10081 value_range_base::num_pairs instead of vrp_val_is* to check
10082 if a range has one sub-range.
10084 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10086 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10087 DEF is not a true earlyclobber but is tied to a specific input
10088 operand, and so is effectively earlyclobber wrt inputs that have
10090 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10092 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10094 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10095 (pod_mode): Mark operators likewise.
10096 (scalar_int_mode): Mark non-default constructors and
10097 operators with CONSTEXPR.
10098 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10099 (fixed_size_mode): Likewise.
10101 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10104 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10105 and wrap the unspec_volatile in a parallel.
10106 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10107 the unspec_volatile.
10108 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10109 unspec_volatile to be wrapped in a parallel.
10110 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10111 (ix86_add_reg_usage_to_vzerouppers): New functions.
10112 (rest_of_handle_insert_vzeroupper): Use them to add register
10113 usage information to the vzeroupper instructions.
10115 2019-10-07 Richard Biener <rguenther@suse.de>
10117 PR tree-optimization/91975
10118 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10121 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10123 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10124 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10126 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10128 * config/darwin.c (darwin_override_options): Adjust objective-c
10129 ABI version error messages to avoid punctuation and contracted
10132 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10134 * ipa-inline.c: Fix type; compute size rather than self_size
10135 for size of caller function.
10137 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10140 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10141 choose const_data section for constants with relocations.
10142 (machopic_select_section): Pass relocation flag to
10143 darwin_rodata_section ().
10145 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10147 PR tree-optimization/91734
10148 * generic-match-head.c: Include fold-const-call.h.
10149 * match.pd (sqrt(x) cmp c): Check the boundary value and
10150 in case inexact computation of c*c affects comparison of the boundary,
10151 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10152 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10153 for -frounding-math. For c2, try the next smaller or larger floating
10154 point constant depending on comparison code and if it has the same
10155 sqrt as c2, use it instead of c2.
10157 2019-10-04 Martin Sebor <msebor@redhat.com>
10159 PR middle-end/91977
10160 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10161 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10162 uninitialized objects.
10164 2019-10-04 Martin Sebor <msebor@redhat.com>
10166 * builtins.c (compute_objsize): Add an argument.
10167 * tree-object-size.c (addr_object_size): Same.
10168 (compute_builtin_object_size): Same.
10169 * tree-object-size.h (compute_builtin_object): Same.
10171 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10173 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10175 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10177 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10179 2019-10-04 Martin Jambor <mjambor@suse.cz>
10181 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10182 fntype when switching to calling memcpy instead of memset.
10184 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10186 * hash-table.h (hash_table::empty_slow): Don't assign
10187 size_t values to int variables.
10189 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10191 * expr.c (convert_mode_scalar): Remove shadowing local var.
10192 (emit_block_move): Rename local vars.
10193 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10194 (emit_push_insn): Rename local vars.
10195 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10196 shadowing local vars.
10197 (store_constructor): Remove shadowing local vars. Rename local var.
10198 (store_field, expand_cond_expr_using_cmove,
10199 expand_expr_real_2): Remove shadowing local vars.
10200 (expand_expr_real_1,
10201 do_store_flag): Remove shadowing local vars. Rename local vars.
10203 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10205 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10207 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10209 * genmatch.c (commutate): Rename local var.
10210 (lower_cond): Reuse local var.
10211 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10212 dt_operand::gen, dt_operand::gen_gimple_expr,
10213 dt_simplify::gen): Add a param. Rename generated vars.
10214 (decision_tree::insert_operand,
10215 (capture_info::walk_match, capture_info::walk_result,
10216 capture_info::walk_c_expr): Rename local vars.
10217 (expr::gen_transform): Rename generated vars.
10218 Use snprintf. Rename local vars.
10219 (capture::gen_transform, dt_operand::get_name,
10220 dt_operand::gen_opname): Rename generated vars.
10221 (write_predicate): Adjust call to gen_kids.
10222 (parser::get_internal_capture_id): Rename generated vars.
10223 (parser::parse_expr): Rename local vars.
10224 (parser::parse_if): Remove local var.
10225 (parser::parse_pattern, add_operator): Rename local vars.
10227 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10229 * builtins.def (DEF_C2X_BUILTIN): New macro.
10230 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10231 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10232 (strndup): Use DEF_C2X_BUILTIN.
10233 * coretypes.h (enum function_class): Add function_c2x_misc.
10235 2019-10-04 Maya Rashish <coypu@sdf.org>
10237 * ira-color.c (update_costs_from_allocno): Call
10238 ira_init_register_move_cost_if_necessary.
10240 2019-10-04 Jeff Law <law@redhat.com>
10242 * config/h8300/h8300.md (cpymemsi): Disable.
10243 (movmd, movmd_internal_<mode>, movstr, movsd):
10244 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10245 (movmd splitter, movsd splitter): Likewise.
10247 * range-op.cc (range_tests): Avoid two tests when ints and
10248 shorts are the same size.
10250 2019-10-04 Richard Biener <rguenther@suse.de>
10253 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10256 2019-10-04 Richard Biener <rguenther@suse.de>
10258 PR tree-optimization/91982
10259 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10260 against EXTRACT_LAST_REDUCTION.
10261 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10263 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10265 * range-op.o (value_range_from_overflowed_bounds): Rename from
10266 adjust_overflow_bound.
10267 (value_range_with_overflow): Rename from
10268 create_range_with_overflow.
10269 (create_possibly_reversed_range): Adjusted for above renames.
10270 (operator_*::wi_fold): Same.
10271 (cross_product_operator::wi_cross_productor): Same.
10273 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10275 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10276 -Wshadow=compatible-local): Fix description.
10277 Add an example where -Wshadow=compatible-local does not
10280 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10282 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10284 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10285 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10287 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10289 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10290 can_move_by_pieces issue.
10292 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10295 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10296 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10297 is available and the user has not set one on the command line.
10299 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10302 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10303 instead of REGNO equality check on addr.reg.
10305 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10307 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10308 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10309 * doc/invoke.texi (inline-heuristics-hint-percent,
10310 inline-heuristics-hint-percent-O2): Document.
10311 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10313 (can_inline_edge_by_limits_p): Use it.
10315 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10317 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10318 to print CONST_DOUBLEs.
10320 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10322 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10323 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10324 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10326 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10328 * Makefile.in (OBJS): Add range.o and range-op.o.
10329 Remove wide-int-range.o.
10330 * function-tests.c (test_ranges): New.
10331 (function_tests_c_tests): Call test_ranges.
10332 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10333 range_fold_unary_expr instead of extract_range_from_unary_expr.
10334 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10335 * range-op.cc: New file.
10336 * range-op.h: New file.
10337 * range.cc: New file.
10338 * range.h: New file.
10339 * selftest.h (range_tests): New prototype.
10340 * ssa.h: Include range.h.
10341 * tree-vrp.c (value_range_base::value_range_base): New
10343 (value_range_base::singleton_p): Do not call
10344 ranges_from_anti_range until sure we will need to.
10345 (value_range_base::type): Rename gcc_assert to
10346 gcc_checking_assert.
10347 (vrp_val_is_max): New argument.
10348 (vrp_val_is_min): Same.
10349 (wide_int_range_set_zero_nonzero_bits): Move from
10351 (extract_range_into_wide_ints): Remove.
10352 (extract_range_from_multiplicative_op): Remove.
10353 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10354 from extract_range_from_binary_expr.
10355 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10356 from extract_range_from_binary_expr.
10357 (extract_range_from_binary_expr): Remove.
10358 (normalize_for_range_ops): New.
10359 (range_fold_binary_expr): New.
10360 (range_fold_unary_expr): New.
10361 (value_range_base::num_pairs): New.
10362 (value_range_base::lower_bound): New.
10363 (value_range_base::upper_bound): New.
10364 (value_range_base::upper_bound): New.
10365 (value_range_base::contains_p): New.
10366 (value_range_base::invert): New.
10367 (value_range_base::union_): New.
10368 (value_range_base::intersect): New.
10369 (range_compatible_p): New.
10370 (value_range_base::operator==): New.
10371 (determine_value_range_1): Call range_fold_*expr instead of
10372 extract_range_from_*expr.
10373 * tree-vrp.h (class value_range_base): Add new constructors.
10374 Add methods for union_, intersect, operator==, contains_p,
10375 num_pairs, lower_bound, upper_bound, invert.
10376 (vrp_val_is_min): Add handle_pointers argument.
10377 (vrp_val_is_max): Same.
10378 (extract_range_from_unary_expr): Remove.
10379 (extract_range_from_binary_expr): Remove.
10380 (range_fold_unary_expr): New.
10381 (range_fold_binary_expr): New.
10382 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10383 range_fold_binary_expr instead of extract_range_from_binary_expr.
10384 (vr_values::extract_range_basic): Same.
10385 (vr_values::extract_range_from_unary_expr): Call
10386 range_fold_unary_expr instead of extract_range_from_unary_expr.
10387 * wide-int-range.cc: Remove.
10388 * wide-int-range.h: Remove.
10390 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10392 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10393 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10394 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10395 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10398 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10400 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10401 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10402 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10403 * glimits.h: Likewise.
10405 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10407 PR rtl-optimization/91976
10408 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10409 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10410 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10412 2019-10-02 Martin Sebor <msebor@redhat.com>
10414 PR tree-optimization/80936
10415 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10417 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10419 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10420 instead of reg_class_contents[ALL_REGS].
10422 2019-09-30 Jason Merrill <jason@redhat.com>
10424 Add some hash_map_safe_* functions like vec_safe_*.
10425 * hash-map.h (default_hash_map_size): New variable.
10426 (create_ggc): Use it as default argument.
10427 (hash_map_maybe_create, hash_map_safe_get)
10428 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10430 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10432 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10433 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10434 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10435 (can_inline_edge_by_limits_p): Use it.
10436 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10437 (want_inline_small_function_p): Use O2 bounds.
10438 (edge_badness): LIkewise.
10439 * opts.c (default_options): Add OPT_finline_functions.
10440 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10441 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10443 * doc/invoke.texi (-finline-functions): Update documentation.
10444 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10445 inline-min-speedup-O2): Document.
10446 (early-inlining-insns-O2): Simplify docs.
10448 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10450 PR rtl-optimization/87047
10451 * ifcvt.c (average_cost): New static function. Use it...
10452 (noce_process_if_block): ... here.
10454 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10456 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10457 * config/rs6000/rs6000-string.c (expand_block_move): Add
10458 might_overlap parm.
10459 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10460 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10462 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10464 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10465 (expand_builtin_memcpy): Use might_overlap parm.
10466 (expand_builtin_mempcpy_args): Use might_overlap parm.
10467 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10468 (expand_builtin_memory_copy_args): Add might_overlap parm.
10469 * expr.c (emit_block_move_via_cpymem): Rename to
10470 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10471 or movmem optab as appropriate.
10472 (emit_block_move_hints): Add might_overlap parm, do the right
10473 thing for might_overlap==true.
10474 * expr.h (emit_block_move_hints): Update prototype.
10476 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10478 * tree-eh.h (unsplit_eh_edges): Declare.
10479 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10480 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10481 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10482 (struct store_immediate_info): Add lp_nr field.
10483 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10484 initialize lp_nr with it.
10485 (struct merged_store_group): Add lp_nr and only_constants fields.
10486 (merged_store_group::merged_store_group): Initialize them.
10487 (merged_store_group::can_be_merged_into): Deal with them.
10488 (pass_store_merging): Rename terminate_and_release_chain into
10489 terminate_and_process_chain.
10490 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10491 renaming and remove useless assertions.
10492 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10493 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10494 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10495 instead of always recomputing it and compare lp_nr.
10496 (imm_store_chain_info::output_merged_store): If the group is in an
10497 active EH region, register new stores if they can throw. Moreover,
10498 if the insertion has created new basic blocks, adjust the PHI nodes
10499 of the post landing pad.
10500 (imm_store_chain_info::output_merged_stores): If the original stores
10501 are in an active EH region, deregister them.
10502 (lhs_valid_for_store_merging_p): Prettify.
10503 (adjust_bit_pos): New function extracted from...
10504 (mem_valid_for_store_merging): ...here. Use it for the base address
10505 and also for the offset if it is the addition of a constant.
10506 (lp_nr_for_store): New function.
10507 (pass_store_merging::process_store): Change return type to bool.
10508 Call lp_nr_for_store to initialize the store info. Propagate the
10509 return status of various called functions to the return value.
10510 (store_valid_for_store_merging_p): New predicate.
10511 (enum basic_block_status): New enumeration.
10512 (get_status_for_store_merging): New function.
10513 (pass_store_merging::execute): If the function can throw and catch
10514 non-call exceptions, unsplit the EH edges on entry and clean up the
10515 CFG on exit if something changed. Call get_status_for_store_merging
10516 for every basic block and keep the chains open across basic blocks
10517 when possible. Terminate and process open chains at the end, if any.
10519 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10521 * reginfo.c (globalize_reg): Fix shadowed variable in
10522 function_abis walk.
10524 2019-10-02 Martin Jambor <mjambor@suse.cz>
10526 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10527 do not compute some stuff when set.
10528 (cgraph_node::create_edge): Likewise.
10529 (cgraph_node::create_indirect_edge): Renamed last parameter to
10530 coning_p and flipped its meaning, don't even calculate
10531 inline_failed when set.
10532 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10533 (symbol_table::::create_edge): Likewise.
10534 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10536 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10537 call graph edge creating functions.
10539 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10542 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10545 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10547 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10549 2019-10-02 Richard Biener <rguenther@suse.de>
10551 * tree-vectorizer.h (vect_transform_reduction): Declare.
10552 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10553 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10554 stmt transform to ...
10555 (vect_transform_reduction): ... this.
10557 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10559 * omp-low.c (lower_omp_target): Dereference optional argument
10560 to work with the right pointer.
10562 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10564 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10566 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10567 * langhooks.h (omp_is_optional_argument): New hook.
10568 * omp-general.c (omp_is_optional_argument): New.
10569 * omp-general.h (omp_is_optional_argument): New declaration.
10570 * omp-low.c (lower_omp_target): Create temporary for received value
10571 and take the address for new_var if the original variable was a
10572 DECL_BY_REFERENCE. Use size of referenced object when a
10573 pass-by-reference optional argument used as argument to firstprivate.
10575 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10577 PR tree-optimization/91940
10578 * tree-vect-patterns.c: Include tree-vector-builder.h and
10579 vec-perm-indices.h.
10580 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10581 unpromoting the argument back to uint16_t, or by converting into a
10582 rotate, or into shifts plus ior.
10584 2019-10-02 Richard Biener <rguenther@suse.de>
10586 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10588 (vect_transform_cycle_phi): Declare.
10589 * tree-vect-stmts.c (vect_transform_stmt): Call
10590 vect_transform_cycle_phi.
10591 * tree-vect-loop.c (vectorizable_reduction): Split out
10592 PHI transformation stage to ...
10593 (vect_transform_cycle_phi): ... here.
10595 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10597 PR middle-end/91957
10598 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10599 eliminable registers.
10600 (make_hard_regno_live): Likewise, and don't make them live.
10602 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10604 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10605 Call pp_emit_prefix.
10606 (layout::print_source_line): Likewise.
10607 (layout::start_annotation_line): Likewise.
10608 (diagnostic_show_locus): Remove call to temporarily clear the
10610 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10611 interaction of pp_set_prefix with rulers and fix-it hints.
10612 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10613 prefix when calling diagnostic_show_locus, rather than destroying
10615 (print_parseable_fixits): Temporarily clear prefix.
10616 * pretty-print.c (pp_format): Save and restore line_length, rather
10617 than assuming it is zero.
10618 (pp_output_formatted_text): Remove assertion that line_length is
10621 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10623 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10625 (nonoverlapping_refs_since_match_p): ... this; handle also
10627 (alias_stats): Update stats.
10628 (dump_alias_stats): Likewise.
10629 (cheap_array_ref_low_bound): New function.
10630 (aliasing_matching_component_refs_p): Add partial_overlap
10632 pass it to nonoverlapping_refs_since_match_p.
10633 (aliasing_component_refs_walk): Update call of
10634 aliasing_matching_component_refs_p
10635 (nonoverlapping_array_refs_p): New function.
10636 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10637 indirect_refs_may_alias_p): Update calls of
10638 nonoverlapping_refs_since_match_p.
10640 2019-10-01 Maya Rashish <coypu@sdf.org>
10643 * ira-color.c (allocno_copy_cost_saving): Call
10644 ira_init_register_move_cost_if_necessary.
10646 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10648 * Makefile.in (gnat_install_lib): New variable.
10649 * configure.ac: Substitute it.
10650 * configure: Regenerate.
10652 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10655 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10656 is matched with non-C++ type
10658 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10660 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10663 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10665 * doc/invoke.texi (early-inlining-insns-O2): Document.
10666 (early-inlining-insns): Update.
10667 * params.def (early-inlining-insns-O2): New bound.
10668 (early-inlining-insns): Update docs.
10669 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10671 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10674 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10675 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10676 a memory access insn.
10678 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10680 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10683 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10686 * config/s390/s390.c (s390_expand_vec_compare): Use
10687 gen_vec_cmpordered and gen_vec_cmpunordered.
10688 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10689 vec_unordered): Delete.
10690 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10691 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10692 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10693 (vec_cmp<code>): Generic dispatcher.
10695 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10698 * config/s390/vector.md (V_HW): Add V1TI in order to make
10699 vcond$a$b generate vcondv1tiv1tf.
10701 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10703 PR rtl-optimization/91948
10704 * ira-build.c (ira_create_allocno): Initialize
10705 ALLOCNO_CROSSED_CALLS_ABIS.
10706 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10707 than regno to ira_need_caller_save_p.
10709 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10711 * config/i386/i386-options.c
10712 (ix86_recompute_optlev_based_flags): New, moved out of...
10713 (ix86_option_override_internal): ... this. Call it.
10714 (ix86_override_options_after_change): Call it here too.
10717 * dwarf2out.c (override_type_for_decl_p): New.
10718 (gen_variable_die): Use it.
10720 2019-10-01 Richard Biener <rguenther@suse.de>
10722 * tree-vect-loop.c (vectorizable_reduction): Move variables
10723 to where they are used.
10725 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10727 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10728 (build_def_use): Use PC instead of CC0 in a comment.
10730 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10732 * rtl.def (CLOBBER_HIGH): Delete.
10733 * doc/rtl.texi (clobber_high): Remove documentation.
10734 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10735 (reg_is_clobbered_by_clobber_high): Delete.
10736 (gen_hard_reg_clobber_high): Likewise.
10737 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10738 * cfgexpand.c (expand_gimple_stmt): Likewise.
10739 * combine-stack-adj.c (single_set_for_csa): Likewise.
10740 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10741 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10742 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10743 * cse.c (invalidate_reg): Remove clobber_high parameter.
10744 (invalidate): Update call accordingly.
10745 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10746 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10747 (count_reg_usage, insn_live_p): Likewise.
10748 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10749 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10750 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10751 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10752 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10753 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10754 (mark_nonreg_stores_2): Likewise.
10755 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10756 (df_get_call_refs): Likewise.
10757 * dwarf2out.c (mem_loc_descriptor): Likewise.
10758 * emit-rtl.c (verify_rtx_sharing): Likewise.
10759 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10760 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10761 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10762 * genemit.c (gen_exp, gen_insn): Likewise.
10763 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10764 * haifa-sched.c (haifa_classify_rtx): Likewise.
10765 * ira-build.c (create_insn_allocnos): Likewise.
10766 * ira-costs.c (scan_one_insn): Likewise.
10767 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10768 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10769 * jump.c (mark_jump_label_1): Likewise.
10770 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10771 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10773 (mark_not_eliminable): Likewise.
10774 * lra-lives.c (process_bb_lives): Likewise.
10775 * lra.c (new_insn_reg): Remove clobber_high parameter.
10776 (collect_non_operand_hard_regs): Likewise. Update call to new
10777 insn_reg. Remove CLOBBER_HIGH handling.
10778 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10779 to collect_non_operand_hard_regs.
10780 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10781 Update call to new_insn_reg.
10782 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10783 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10784 (move2add_note_store): Likewise.
10785 * print-rtl.c (print_pattern): Likewise.
10786 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10787 (if_test_bypass_p): Likewise.
10788 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10789 * reginfo.c (reg_scan_mark_refs): Likewise.
10790 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10791 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10792 (forget_old_reloads_1): Likewise.
10793 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10794 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10795 (dbr_schedule): Likewise.
10796 * resource.c (update_live_status, mark_referenced_resources)
10797 (mark_set_resources): Likewise.
10798 * rtl.c (copy_rtx): Likewise.
10799 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10800 (note_pattern_stores): Likewise.
10801 (reg_is_clobbered_by_clobber_high): Delete.
10802 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10803 CLOBBER_HIGH handling.
10805 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10808 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10809 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10810 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10811 Handle ARM_PCS_TLSDESC.
10812 (aarch64_tlsdesc_abi_id): New function.
10813 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10814 rtx instead of a list of clobbers and clobber_highs.
10815 (tlsdesc_small_<mode>): Update accordingly.
10817 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10819 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10820 extra callee_abi argument.
10821 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10822 Insert a CALLEE_ABI unspec into the call pattern as the second
10823 element in the PARALLEL.
10824 (aarch64_simd_call_p): Delete.
10825 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10826 the new CALLEE_ABI element of the PARALLEL.
10827 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10828 from the function type, if given.
10829 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10830 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10831 when passed the function_arg_info end marker.
10832 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10833 final argument of gen_sibcall.
10834 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10835 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10836 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10838 (call_value): Likewise operand 3.
10839 (sibcall): Likewise operand 2. Place the unspec before rather than
10841 (sibcall_value): Likewise operand 3.
10842 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10843 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10844 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10845 constraint strings.
10846 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10848 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10850 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10851 choose_hard_reg_mode.
10852 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10854 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10856 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10857 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10858 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10860 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10862 * diagnostic-show-locus.c (line_label::line_label): Initialize
10864 (line_label::comparator): Reverse the sort order by m_state_idx,
10865 so that when the list is walked backwards the labels appear in
10866 order of insertion into the rich_location.
10867 (line_label::m_has_vbar): New field.
10868 (layout::print_any_labels): When dealing with multiple labels at
10869 the same line and column, only print vertical bars for the one
10870 with the highest label_line.
10871 (selftest::test_one_liner_labels): Update test for multiple labels
10872 to expect the labels to be in the order of insertion into the
10873 rich_location. Add a test for many such labels, where the column
10874 numbers are out-of-order relative to the insertion order.
10876 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10878 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10879 (ix86_frame::expensive_count): Likewise.
10880 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10881 of use_fast_prologue_epilogue robust against incidental changes
10884 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10887 * config/s390/vector.md (vec_unordered<mode>): Call
10888 gen_vec_ordered<mode>.
10890 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10892 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10893 New pattern for ASRD.
10894 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10895 * internal-fn.def (IFN_DIV_POW2): New internal function.
10896 * optabs.def (sdiv_pow2_optab): New optab.
10897 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10898 Modify pattern to support new operation.
10899 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10900 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10901 Document new target selector.
10903 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10905 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10906 to test whether we're compiling a vector PCS function and to test
10907 whether the function needs to save a particular register.
10908 Remove the vector PCS handling of df_set_regs_ever_live.
10909 (aarch64_components_for_bb): Use crtl->abi to test whether
10910 the function needs to save a particular register.
10911 (aarch64_process_components): Use crtl->abi to test whether
10912 we're compiling a vector PCS function.
10913 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10914 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10916 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10918 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10920 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10921 whether the block calls a function that clobbers more registers
10922 than the current function is allowed to.
10923 (aarch64_use_simple_return_insn_p): Delete.
10924 * config/aarch64/aarch64.md (simple_return): Remove condition.
10926 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10928 * function-abi.h (function_abi_aggregator): New class.
10929 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10931 * ira.c (update_equiv_regs_prescan): New function. Call
10932 set_paradoxical_subreg here rather than...
10933 (update_equiv_regs): ...here.
10934 (ira): Call update_equiv_regs_prescan.
10936 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10938 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10940 (call_used_or_fixed_regs): Likewise.
10941 (call_used_or_fixed_reg_p): Likewise.
10942 * reginfo.c (regs_invalidated_by_call): New macro.
10944 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10946 * shrink-wrap.c: Include function-abi.h.
10947 (requires_stack_frame_p): Use crtl->abi to test whether the
10948 current function can use a register without saving it first.
10950 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10952 * sel-sched-ir.h (_def::crosses_call): Replace with...
10953 (_def::crossed_call_abis): ..this new field.
10954 (def_list_add): Take a mask of ABIs instead of a crosses_call
10956 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10957 of _def accordingly.
10958 * sel-sched.c: Include function-abi.h.
10959 (hard_regs_data::regs_for_call_clobbered): Delete.
10960 (reg_rename::crosses_call): Replace with...
10961 (reg_rename::crossed_call_abis): ...this new field.
10962 (fur_static_params::crosses_call): Replace with...
10963 (fur_static_params::crossed_call_abis): ...this new field.
10964 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10965 (init_hard_regs_data): Use crtl->abi to test which registers the
10966 current function would need to save before it uses them.
10967 (mark_unavailable_hard_regs): Update handling of call-clobbered
10968 registers, using call_clobbers_in_region to find out which registers
10969 might be call-clobbered (but without taking -fipa-ra into account
10970 for now). Remove separate handling of partially call-clobbered
10972 (verify_target_availability): Use crossed_call_abis instead of
10974 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10975 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10977 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10979 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10980 function to test whether a register is fully or partly clobbered.
10982 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10984 * rtlanal.c: Include function-abi.h.
10985 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10986 function and clobbers_reg_p to test whether the register
10988 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10989 to get the ABI of the called function and full_reg_clobbers to
10990 get the set of fully call-clobbered registers. Warn about the
10991 pitfalls of using this mode.
10993 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10995 * reload.c: Include function-abi.h.
10996 (find_equiv_reg): Use clobbers_reg_p to test whether either
10997 of the equivalent registers is clobbered by a call.
10998 * reload1.c: Include function-abi.h.
10999 (reg_reloaded_call_part_clobbered): Delete.
11000 (reload): Use crtl->abi to test which registers would need
11001 saving in the prologue before use.
11002 (find_reg): Likewise.
11003 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11004 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11005 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11007 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11009 * regrename.h (du_head::call_clobber_mask): New field.
11010 (du_head::need_caller_save_reg): Replace with...
11011 (du_head::call_abis): ...this new field.
11012 * regrename.c: Include function-abi.h.
11013 (call_clobbered_in_chain_p): New function.
11014 (check_new_reg_p): Use crtl->abi when deciding whether a register
11015 is free for use after RA. Use call_clobbered_in_chain_p to test
11016 whether a candidate register would be clobbered by a call.
11017 (find_rename_reg): Don't add call-clobber conflicts here.
11018 (rename_chains): Check call_abis instead of need_caller_save_reg.
11019 (merge_chains): Update for changes to du_head.
11020 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11021 target. Record the ABI identifier in call_abis and the set of
11022 fully or partially clobbered registers in call_clobber_mask.
11023 Add fully-clobbered registers to hard_conflicts here rather
11024 than in find_rename_reg.
11025 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11026 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11027 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11029 * config/c6x/c6x.c: Likewise.
11031 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11033 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11034 mode of the register when deciding whether it is no longer
11035 available after a call.
11037 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11039 * recog.c: Include function-abi.h.
11040 (peep2_find_free_register): Use crtl->abi when deciding whether
11041 a register is free for use after RA.
11043 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11045 * postreload-gcse.c: Include regs.h and function-abi.h.
11046 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11047 call insn target. Conservatively assume that partially-clobbered
11048 registers are altered.
11050 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11052 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11053 when deciding whether a register is free for use after RA.
11054 (reload_combine): Remove unnecessary use of fixed_reg_set.
11055 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11056 call insn target. Use reg_mode when testing whether a register
11057 is no longer available.
11059 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11061 * target.def (return_call_with_max_clobbers): Delete.
11062 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11063 * doc/tm.texi: Regenerate.
11064 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11065 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11066 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11067 (lra_reg::call_insn): Delete.
11068 * lra.c: Include function-abi.h.
11069 (initialize_lra_reg_info_element): Don't initialize the fields above.
11070 (lra): Use crtl->abi to test whether the current function needs to
11071 save a register in the prologue. Remove special pre-inheritance
11072 lra_create_live_ranges pass for flag_ipa_ra.
11073 * lra-assigns.c: Include function-abi.h
11074 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11075 function needs to save a register in the prologue.
11076 (lra_assign): Assert that registers aren't allocated to a
11077 conflicting register, rather than checking only for overlaps
11078 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11079 and for registers that are not live across a call.
11080 * lra-constraints.c (last_call_for_abi): New variable.
11081 (full_and_partial_call_clobbers): Likewise.
11082 (setup_next_usage_insn): Remove the register from
11083 full_and_partial_call_clobbers.
11084 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11085 whether the register needs a caller save.
11086 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11087 of call_used_or_fixed_regs.
11088 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11089 full_and_partial_call_clobbers.
11090 * lra-lives.c (check_pseudos_live_through_calls): Replace
11091 last_call_used_reg_set and call_insn arguments with an abi argument.
11092 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11093 as the set of conflicting registers.
11094 (calls_have_same_clobbers_p): Delete.
11095 (process_bb_lives): Track the ABI of the last call instead of an
11096 insn/HARD_REG_SET pair. Update calls to
11097 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11098 the set of registers that could be clobbered by an EH edge.
11099 Include partially-clobbered as well as fully-clobbered registers.
11100 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11101 * lra-remat.c: Include function-abi.h.
11102 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11103 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11104 registers and bitmap_view to combine them into dead_regs.
11105 (call_used_input_regno_present_p): Take a function_abi argument
11106 and use it to test whether a register is call-clobbered.
11107 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11108 call insn target. Update tje call to call_used_input_regno_present_p.
11109 (do_remat): Likewise.
11110 (lra_remat): Remove the initialization of call_used_regs_arr_len
11111 and call_used_regs_arr.
11113 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11115 * loop-iv.c: Include regs.h and function-abi.h.
11116 (simplify_using_initial_values): Use insn_callee_abi to get the
11117 ABI of the call insn target. Conservatively assume that
11118 partially-clobbered registers are altered.
11120 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11122 * function-abi.h (call_clobbers_in_region): Declare.
11123 (call_clobbered_in_region_p): New function.
11124 * function-abi.cc (call_clobbers_in_region): Likewise.
11125 * ira-int.h: Include function-abi.h.
11126 (ira_allocno::crossed_calls_abis): New field.
11127 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11128 (ira_need_caller_save_regs): New function.
11129 (ira_need_caller_save_p): Likewise.
11130 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11131 of call_used_or_fixed_regs.
11132 (do_reload): Use crtl->abi to test whether the current function
11133 needs to save a register in the prologue. Count registers that
11134 need to be saved rather than registers that don't.
11135 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11136 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11137 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11138 (propagate_some_info_from_allocno): Likewise.
11139 (copy_info_to_removed_store_destinations): Likewise.
11140 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11141 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11142 (ira_build): Use ira_need_caller_save_regs instead of
11143 call_used_or_fixed_regs.
11144 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11145 whether the current function would need to save a register
11147 (calculate_spill_cost): Likewise.
11148 (allocno_reload_assign): Use ira_need_caller_save_regs and
11149 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11150 * ira-conflicts.c (ira_build_conflicts): Use
11151 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11152 as the set of call-clobbered registers. Remove the
11153 call_used_or_fixed_regs mask from the calculation of
11154 temp_hard_reg_set and mask its use instead. Remove special
11155 handling of partially-clobbered registers.
11156 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11157 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11158 calculate the set of conflicting registers for calls that
11159 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11160 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11161 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11162 Use eh_edge_abi to calculate the set of registers that could
11163 be clobbered by an EH edge. Include partially-clobbered as
11164 well as fully-clobbered registers.
11166 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11168 * haifa-sched.c: Include function-abi.h.
11169 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11170 the function would need to save a register before using it.
11172 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11174 * gcse.c: Include function-abi.h.
11175 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11176 the call insn target. Invalidate partially call-clobbered
11177 registers as well as fully call-clobbered ones.
11179 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11181 * function.c (aggregate_value_p): Work out which ABI the
11182 function is using before testing which registers are at least
11183 partly preserved by a call.
11185 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11187 * early-remat.c: Include regs.h and function-abi.h.
11188 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11190 (early_remat::restrict_remat_for_unavail_regs): New function.
11191 (early_remat::restrict_remat_for_call): Likewise.
11192 (early_remat::process_block): Before calling emit_remat_insns
11193 for a previous call in the block, invalidate any candidates
11194 that would clobber call-preserved registers.
11195 (early_remat::emit_remat_insns_for_block): Likewise for the
11196 final call in a block. Do the same thing for live-in registers
11197 when calling emit_remat_insns at the head of a block.
11199 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11201 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11202 whether the current function needs to save at least part of a
11203 register before using it.
11204 (df_get_exit_block_use_set): Likewise for epilogue restores.
11206 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11208 * df-problems.c: Include regs.h and function-abi.h.
11209 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11210 sparse_invalidated_by_eh and dense_invalidated_by_call to
11211 dense_invalidated_by_eh.
11212 (df_print_bb_index): Update accordingly.
11213 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11214 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11215 that are clobbered by an EH edge. Clobber partially-clobbered
11216 registers as well as fully-clobbered ones.
11217 (df_md_confluence_n): Likewise.
11218 (df_rd_local_compute): Likewise. Update for changes to
11219 df_rd_problem_data.
11220 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11221 of registers that are clobbered by an EH edge. Includde partially-
11222 clobbered registers as well as fully-clobbered ones.
11224 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11226 * cselib.c (cselib_process_insn): If we know what mode a
11227 register was set in, check whether it is clobbered in that
11228 mode by a call. Only fall back to reg_raw_mode if that fails.
11230 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11232 * cse.c: Include regs.h and function-abi.h.
11233 (invalidate_for_call): Take the call insn as an argument.
11234 Use insn_callee_abi to get the ABI of the call and invalidate
11235 partially clobbered registers as well as fully clobbered ones.
11236 (cse_insn): Update call accordingly.
11238 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11240 * combine.c: Include function-abi.h.
11241 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11242 of the target of call insns. Invalidate partially-clobbered
11243 registers as well as fully-clobbered ones.
11245 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11247 * cfgloopanal.c: Include regs.h and function-abi.h.
11248 (init_set_costs): Use default_function_abi to test whether
11249 a general register is call-clobbered.
11251 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11253 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11254 instead of the call-clobbered sets.
11256 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11258 * caller-save.c (setup_save_areas): Remove redundant |s of
11260 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11261 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11264 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11266 * rtl.h (predefined_function_abi): Declare.
11267 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11268 instead of a boolean call_save flag.
11269 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11271 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11272 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11273 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11274 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11275 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11276 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11277 * reginfo.c (init_reg_modes_target): Likewise.
11278 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11279 instead of a boolean call_save flag.
11280 * targhooks.c: Include function-abi.h.
11281 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11282 using eh_edge_abi to choose the mode.
11284 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11286 * target.def (hard_regno_call_part_clobbered): Take an ABI
11287 identifier instead of an rtx_insn.
11288 * doc/tm.texi: Regenerate.
11289 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11290 (hook_bool_uint_uint_mode_false): New function.
11291 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11292 (hook_bool_uint_uint_mode_false): New function.
11293 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11294 Take an ABI identifier instead of an rtx_insn.
11295 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11296 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11297 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11298 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11299 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11301 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11302 * cselib.c: Include function-abi.h.
11303 (cselib_process_insn): Update call to
11304 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11305 to get the appropriate ABI identifier.
11306 * function-abi.cc (predefined_function_abi::initialize): Update call
11307 to targetm.hard_regno_call_part_clobbered.
11308 * ira-conflicts.c (ira_build_conflicts): Likewise.
11309 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11310 * lra-constraints.c: Include function-abi.h.
11311 (need_for_call_save_p): Update call to
11312 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11313 to get the appropriate ABI identifier.
11314 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11315 * regcprop.c (copyprop_hardreg_forward_1): Update call
11316 to targetm.hard_regno_call_part_clobbered.
11317 * reginfo.c (choose_hard_reg_mode): Likewise.
11318 * regrename.c (check_new_reg_p): Likewise.
11319 * reload.c (find_equiv_reg): Likewise.
11320 * reload1.c (emit_reload_insns): Likewise.
11321 * sched-deps.c: Include function-abi.h.
11322 (deps_analyze_insn): Update call to
11323 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11324 to get the appropriate ABI identifier.
11325 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11326 call to targetm.hard_regno_call_part_clobbered.
11327 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11329 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11331 * config/i386/i386.c: Include function-abi.h.
11332 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11333 if they preserve some 256-bit or 512-bit SSE registers.
11335 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11337 * target.def (insn_callee_abi): New hook.
11338 (remove_extra_call_preserved_regs): Delete.
11339 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11340 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11341 * doc/tm.texi: Regenerate.
11342 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11343 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11344 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11346 (aarch64_remove_extra_call_preserved_regs): Delete.
11347 (aarch64_insn_callee_abi): New function.
11348 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11349 (TARGET_INSN_CALLEE_ABI): New macro.
11350 * rtl.h (get_call_fndecl): Declare.
11351 (cgraph_rtl_info): Fix formatting. Tweak comment for
11352 function_used_regs. Remove function_used_regs_valid.
11353 * rtlanal.c (get_call_fndecl): Moved from final.c
11354 * function-abi.h (insn_callee_abi): Declare.
11355 (target_function_abi_info): Mention insn_callee_abi.
11356 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11357 way to get_call_reg_set_usage did.
11358 (insn_callee_abi): New function.
11359 * regs.h (get_call_reg_set_usage): Delete.
11360 * final.c: Include function-abi.h.
11361 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11362 function_used_regs before the main loop rather than afterwards.
11363 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11364 if function_used_regs ends up not being useful.
11365 (get_call_fndecl): Move to rtlanal.c
11366 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11367 * caller-save.c: Include function-abi.h.
11368 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11369 instead of get_call_reg_set_usage.
11370 * cfgcleanup.c: Include function-abi.h.
11371 (old_insns_match_p): Use insn_callee_abi instead of
11372 get_call_reg_set_usage.
11373 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11375 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11376 function_used_regs.
11377 * df-scan.c: Include function-abi.h.
11378 (df_get_call_refs): Use insn_callee_abi instead of
11379 get_call_reg_set_usage.
11380 * ira-lives.c: Include function-abi.h.
11381 (process_bb_node_lives): Use insn_callee_abi instead of
11382 get_call_reg_set_usage.
11383 * lra-lives.c: Include function-abi.h.
11384 (process_bb_lives): Use insn_callee_abi instead of
11385 get_call_reg_set_usage.
11386 * postreload.c: Include function-abi.h.
11387 (reload_combine): Use insn_callee_abi instead of
11388 get_call_reg_set_usage.
11389 * regcprop.c: Include function-abi.h.
11390 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11391 get_call_reg_set_usage.
11392 * resource.c: Include function-abi.h.
11393 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11394 instead of get_call_reg_set_usage.
11395 * var-tracking.c: Include function-abi.h.
11396 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11397 get_call_reg_set_usage.
11399 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11401 * target.def (fntype_abi): New target hook.
11402 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11403 * doc/tm.texi: Regenerate.
11404 * target.h (predefined_function_abi): Declare.
11405 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11407 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11408 * config/aarch64/aarch64.c: Include function-abi.h.
11409 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11410 (TARGET_FNTYPE_ABI): Define.
11412 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11414 * Makefile.in (OBJS): Add function-abi.o.
11415 (GTFILES): Add function-abi.h.
11416 * function-abi.cc: New file.
11417 * function-abi.h: Likewise.
11418 * emit-rtl.h (rtl_data::abi): New field.
11419 * function.c: Include function-abi.h.
11420 (prepare_function_start): Initialize crtl->abi.
11421 * read-rtl-function.c: Include regs.h and function-abi.h.
11422 (read_rtl_function_body): Initialize crtl->abi.
11423 (read_rtl_function_body_from_file_range): Likewise.
11424 * reginfo.c: Include function-abi.h.
11425 (init_reg_sets_1): Initialize default_function_abi.
11426 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11427 when making a register global.
11428 * target-globals.h (this_target_function_abi_info): Declare.
11429 (target_globals::function_abi_info): New field.
11430 (restore_target_globals): Copy it.
11431 * target-globals.c: Include function-abi.h.
11432 (default_target_globals): Initialize the function_abi_info field.
11433 (target_globals): Allocate it.
11434 (save_target_globals): Free it.
11436 2019-09-30 Nick Clifton <nickc@redhat.com>
11439 * config/frv/frv.c (frv_register_move_cost): Add break statements
11440 to avoid falling through to the wrong cases. Tidy code.
11442 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11444 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11445 For multi-registers modes, test how big each register part is.
11447 2019-09-30 Nick Clifton <nickc@redhat.com>
11450 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11451 (TARGET_ASM_SELECT_SECTION): Remove definition.
11452 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11454 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11456 * emit-rtl.c (init_raw_REG): New function.
11457 (gen_raw_REG): Use init_raw_REG.
11458 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11460 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11461 * rtl.h (rtx_init): New function.
11462 (rtx_alloca): New function.
11463 (init_raw_REG): New function.
11464 (alloca_raw_REG): New macro.
11466 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11468 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11469 (pcrel_local_address): Replace pcrel_address predicate, use the
11470 new function address_to_insn_form.
11471 (pcrel_external_address): Replace with new implementation using
11472 address_to_insn_form..
11473 (prefixed_mem_operand): Delete predicate which is now unused.
11474 (pcrel_external_mem_operand): Delete predicate which is now
11476 * config/rs6000/rs6000-protos.h (enum insn_form): New
11478 (enum non_prefixed_form): New enumeration.
11479 (address_to_insn_form): New declaration.
11480 (prefixed_load_p): New declaration.
11481 (prefixed_store_p): New declaration.
11482 (prefixed_paddi_p): New declaration.
11483 (rs6000_asm_output_opcode): New declaration.
11484 (rs6000_final_prescan_insn): Move declaration and update calling
11486 (address_is_prefixed): New helper inline function.
11487 * config/rs6000/rs6000.c(print_operand_address): Check for either
11488 PC-relative local symbols or PC-relative external symbols.
11489 (rs6000_emit_move): Support loading PC-relative addresses.
11490 (mode_supports_prefixed_address_p): Delete, no longer used.
11491 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11492 (address_to_insn_form): New function to decode an address format.
11493 (reg_to_non_prefixed): New function to identify what the
11494 non-prefixed memory instruction format is for a register.
11495 (prefixed_load_p): New function to identify prefixed loads.
11496 (prefixed_store_p): New function to identify prefixed stores.
11497 (prefixed_paddi_p): New function to identify prefixed load
11499 (next_insn_prefixed_p): New static state variable.
11500 (rs6000_final_prescan_insn): New function to determine if an insn
11501 uses a prefixed instruction.
11502 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11503 prefixed instruction.
11504 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11505 (ASM_OUTPUT_OPCODE): New target hook.
11506 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11507 prefixed instructions.
11508 (prefixed_length): New insn attribute for the size of prefixed
11510 (non_prefixed_length): New insn attribute for the size of
11511 non-prefixed instructions.
11512 (pcrel_local_addr): New insn to load up a local PC-relative
11514 (pcrel_extern_addr): New insn to load up an external PC-relative
11516 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11517 GPR and loading a 128-bit floating point type to a GPR.
11519 2019-09-30 Richard Biener <rguenther@suse.de>
11521 * gimple.c (gimple_get_lhs): For PHIs return the result.
11522 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11523 SLP instance as argument.
11524 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11525 double-reduction PHIs with vectorizable_lc_phi.
11526 (vect_analyze_loop_operations): Adjust.
11527 (vect_create_epilog_for_reduction): Remove all code not dealing
11528 with reduction LC PHI or epilogue generation.
11529 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11530 for live stmts of reductions.
11531 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11532 do not handle defs that are not vect_internal_def.
11533 (can_vectorize_live_stmts): Adjust.
11534 (vect_analyze_stmt): When the vectorized stmt defined a value
11535 used on backedges adjust the backedge uses of vectorized PHIs.
11537 2019-09-30 Martin Jambor <mjambor@suse.cz>
11540 * tree-inline.c (force_value_to_type): New function.
11541 (setup_one_parameter): Use force_value_to_type to convert type.
11542 * tree-inline.c (force_value_to_type): Declare.
11543 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11544 with register type mismatches.
11546 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11548 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11550 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11551 * config/rs6000/t-freebsd64: Make use of the above define and build
11552 the 32-bit libraries with secure-plt.
11554 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11557 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11558 gen_int_mode instead of GEN_INT.
11560 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11562 * config/darwin.c (gen_macho_low): Amend to include the mode
11564 (machopic_indirect_data_reference): Amend gen_macho_low call
11565 to include mode argument
11566 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11567 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11568 the macho_high expander and two define_insn entries.
11570 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11573 * optc-save-gen.awk: Fix up printing string option differences.
11575 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11577 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11578 vec_perm cost to 1 for non-Power7 VSX architectures.
11580 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11582 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11583 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11584 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11586 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11588 * config/darwin.c (gen_macho_high): Amend to include the mode
11590 (machopic_indirect_data_reference): Amend gen_macho_high call
11591 to include mode argument.
11592 (machopic_legitimize_pic_address): Likewise.
11593 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11594 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11595 the macho_high expander and two define_insn entries.
11597 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11600 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11602 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11605 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11606 std::string::compare instead of std::string::find.
11608 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11610 * configure: Regenerate.
11612 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11614 PR middle-end/91920
11615 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11616 variables as shared.
11618 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11620 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11621 replaces the expander and two define_insn entries.
11622 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11624 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11626 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11628 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11629 (fibonacci_heap::nodes): Likewise.
11630 (fibonacci_heap::min_key): Likewise.
11631 (fibonacci_heap::min): Likewise.
11633 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11635 * cgraph.c (cgraph_node::get_fun): Make const.
11636 * cgraph.h (cgraph_node::get_fun): Likewise.
11638 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11641 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11644 2019-09-27 Richard Biener <rguenther@suse.de>
11646 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11647 (STMT_VINFO_REDUC_FN): Likewise.
11648 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11649 STMT_VINFO_REDUC_FN.
11650 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11651 for condition reductions.
11652 (vect_create_epilog_for_reduction): Compute all required state
11653 from the stmt to be vectorized.
11654 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11655 invocation and remove then dead code. For single def-use chains
11656 record only a single vector stmt.
11658 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11660 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11661 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11662 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11663 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11664 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11665 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11666 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11667 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11668 (aarch64_general_builtin_rsqrt): Declare.
11669 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11671 (aarch64_mangle_builtin_type): Rename to...
11672 (aarch64_general_mangle_builtin_type): ...this.
11673 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11674 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11675 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11676 aarch64_general_add_builtin instead of add_builtin_function.
11677 (aarch64_init_builtins): Rename to...
11678 (aarch64_general_init_builtins): ...this. Use
11679 aarch64_general_add_builtin instead of add_builtin_function.
11680 (aarch64_builtin_decl): Rename to...
11681 (aarch64_general_builtin_decl): ...this and remove the unused
11683 (aarch64_expand_builtin): Rename to...
11684 (aarch64_general_expand_builtin): ...this and remove the unused
11686 (aarch64_builtin_rsqrt): Rename to...
11687 (aarch64_general_builtin_rsqrt): ...this.
11688 (aarch64_fold_builtin): Rename to...
11689 (aarch64_general_fold_builtin): ...this. Take the function subcode
11690 and return type as arguments. Remove the "ignored" argument.
11691 (aarch64_gimple_fold_builtin): Rename to...
11692 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11693 subcode and gcall as arguments, and return the new function call.
11694 * config/aarch64/aarch64.c (aarch64_init_builtins)
11695 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11696 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11697 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11698 instead of aarch64_builtin_rsqrt.
11699 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11700 instead of aarch64_mangle_builtin_type.
11702 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11704 * target.def (check_builtin_call): New target hook.
11705 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11706 * doc/tm.texi: Regenerate.
11708 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11710 PR tree-optimization/91909
11711 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11712 reduc_index parameter. When handling COND_REDUCTION, make sure
11713 that the reduction phi operand is in the correct arm of the
11715 (vectorizable_reduction): Pass reduc_index to the above.
11717 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11719 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11720 New combine pattern.
11722 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11724 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11725 loop instruction into new basic block before the loop when basic
11726 block that precedes the loop is empty.
11728 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11730 * function.c (gimplify_parameters): Use build_clobber function.
11731 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11732 * tree-inline.c (expand_call_inline): Likewise.
11733 * tree-sra.c (clobber_subtree): Likewise.
11734 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11735 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11736 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11737 lower_omp_target): Likewise.
11738 * omp-expand.c (expand_omp_for_generic): Likewise.
11739 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11741 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11743 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11744 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11745 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11746 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11747 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11748 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11749 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11750 LD_ELEMREV_V16QI): Use the PURE attribute.
11752 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11754 * config/rs6000/darwin.md: Replace the expanders for
11755 load_macho_picbase and reload_macho_picbase with use of '@'
11756 and <mode> in their respective define_insns.
11757 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11758 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11759 Pmode to gen_load_macho_picbase.
11760 * config/rs6000/rs6000.md: Likewise.
11762 2019-09-25 Richard Biener <rguenther@suse.de>
11764 PR tree-optimization/91896
11765 * tree-vect-loop.c (vectorizable_reduction): The single
11766 def-use cycle optimization cannot apply when there's more
11767 than one pattern stmt involved.
11769 2019-09-26 Richard Biener <rguenther@suse.de>
11771 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11772 loop-closed PHIs that are vect_internal_def.
11773 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11775 (vectorizable_lc_phi): New.
11776 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11777 (vect_transform_stmt): Likewise.
11778 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11779 (vectorizable_lc_phi): Declare.
11781 2019-09-26 Richard Biener <rguenther@suse.de>
11783 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11784 vectorizable_reduction for vect_double_reduction_def.
11785 (vect_transform_loop): Likewise.
11786 (vect_create_epilog_for_reduction): Move double-reduction
11787 PHI creation and preheader argument setting of PHIs ...
11788 (vectorizable_reduction): ... here. Also process
11789 vect_double_reduction_def PHIs, creating the vectorized
11790 PHI nodes, remembering the scalar adjustment computed for
11791 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11792 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11793 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11794 Initialize STMT_VINFO_REDUC_CODE.
11795 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11796 (_stmt_vec_info::reduc_code): Likewise.
11797 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11798 (STMT_VINFO_REDUC_CODE): Likewise.
11800 2019-09-26 Matt Turner <mattst88@gmail.com>
11803 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11804 (mtune=): Add Negative(mtune=).
11805 (mcpu=): Add Negative(mcpu=).
11806 * config/arm/arm.opt: Likewise.
11808 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11810 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11811 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11813 * config/arm/arm_acle.h: Define builtins for the above.
11814 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11815 (simd32_op): Handle the above.
11816 * config/arm/unspecs.md: Define unspecs for the above.
11818 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11820 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11821 (arm_<sup>xtb16): Likewise.
11822 (arm_usada8): Likewise.
11823 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11824 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11825 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11826 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11827 __sxtb16, __uxtab16, __uxtb16): Define.
11828 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11829 * config/arm/unspecs.md: Define unspecs for the above.
11830 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11831 (USXTB16): Likewise.
11832 (simd32_op): New int_attribute.
11833 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11834 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11836 2019-09-26 Martin Jambor <mjambor@suse.cz>
11838 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11841 2019-09-26 Martin Jambor <mjambor@suse.cz>
11843 * ipa-sra.c (process_scan_results): Fix continue condition.
11845 2019-09-26 Martin Liska <mliska@suse.cz>
11847 PR tree-optimization/91885
11848 * tree-vectorizer.c (try_vectorize_loop_1): Add
11849 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11851 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11853 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11854 aarch64_plus_immediate rather than aarch64_uimm12_shift
11855 to test for valid PLUS immediates.
11857 2019-09-25 Martin Jambor <mjambor@suse.cz>
11859 * tree-sra.c (no_accesses_p): Remove.
11860 (no_accesses_representant): Likewise.
11862 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11864 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11866 (vaba_s16): Likewise.
11867 (vaba_s32): Likewise.
11868 (vaba_u8): Likewise.
11869 (vaba_u16): Likewise.
11870 (vaba_u32): Likewise.
11871 (vabal_high_s8): Likewise.
11872 (vabal_high_s16): Likewise.
11873 (vabal_high_s32): Likewise.
11874 (vabal_high_u8): Likewise.
11875 (vabal_high_u16): Likewise.
11876 (vabal_high_u32): Likewise.
11877 (vabal_s8): Likewise.
11878 (vabal_s16): Likewise.
11879 (vabal_s32): Likewise.
11880 (vabal_u8): Likewise.
11881 (vabal_u16): Likewise.
11882 (vabal_u32): Likewise.
11883 (vabaq_s8): Likewise.
11884 (vabaq_s16): Likewise.
11885 (vabaq_s32): Likewise.
11886 (vabaq_u8): Likewise.
11887 (vabaq_u16): Likewise.
11888 (vabaq_u32): Likewise.
11889 (vabd_s8): Likewise.
11890 (vabd_s16): Likewise.
11891 (vabd_s32): Likewise.
11892 (vabd_u8): Likewise.
11893 (vabd_u16): Likewise.
11894 (vabd_u32): Likewise.
11895 (vabdl_high_s8): Likewise.
11896 (vabdl_high_s16): Likewise.
11897 (vabdl_high_s32): Likewise.
11898 (vabdl_high_u8): Likewise.
11899 (vabdl_high_u16): Likewise.
11900 (vabdl_high_u32): Likewise.
11901 (vabdl_s8): Likewise.
11902 (vabdl_s16): Likewise.
11903 (vabdl_s32): Likewise.
11904 (vabdl_u8): Likewise.
11905 (vabdl_u16): Likewise.
11906 (vabdl_u32): Likewise.
11907 (vabdq_s8): Likewise.
11908 (vabdq_s16): Likewise.
11909 (vabdq_s32): Likewise.
11910 (vabdq_u8): Likewise.
11911 (vabdq_u16): Likewise.
11912 (vabdq_u32): Likewise.
11913 (vaddlv_s8): Likewise.
11914 (vaddlv_s16): Likewise.
11915 (vaddlv_u8): Likewise.
11916 (vaddlv_u16): Likewise.
11917 (vaddlvq_s8): Likewise.
11918 (vaddlvq_s16): Likewise.
11919 (vaddlvq_s32): Likewise.
11920 (vaddlvq_u8): Likewise.
11921 (vaddlvq_u16): Likewise.
11922 (vaddlvq_u32): Likewise.
11923 (vcvtx_f32_f64): Likewise.
11924 (vcvtx_high_f32_f64): Likewise.
11925 (vcvtxd_f32_f64): Likewise.
11926 (vmla_n_f32): Likewise.
11927 (vmla_n_s16): Likewise.
11928 (vmla_n_s32): Likewise.
11929 (vmla_n_u16): Likewise.
11930 (vmla_n_u32): Likewise.
11931 (vmla_s8): Likewise.
11932 (vmla_s16): Likewise.
11933 (vmla_s32): Likewise.
11934 (vmla_u8): Likewise.
11935 (vmla_u16): Likewise.
11936 (vmla_u32): Likewise.
11937 (vmlal_high_n_s16): Likewise.
11938 (vmlal_high_n_s32): Likewise.
11939 (vmlal_high_n_u16): Likewise.
11940 (vmlal_high_n_u32): Likewise.
11941 (vmlal_high_s8): Likewise.
11942 (vmlal_high_s16): Likewise.
11943 (vmlal_high_s32): Likewise.
11944 (vmlal_high_u8): Likewise.
11945 (vmlal_high_u16): Likewise.
11946 (vmlal_high_u32): Likewise.
11947 (vmlal_n_s16): Likewise.
11948 (vmlal_n_s32): Likewise.
11949 (vmlal_n_u16): Likewise.
11950 (vmlal_n_u32): Likewise.
11951 (vmlal_s8): Likewise.
11952 (vmlal_s16): Likewise.
11953 (vmlal_s32): Likewise.
11954 (vmlal_u8): Likewise.
11955 (vmlal_u16): Likewise.
11956 (vmlal_u32): Likewise.
11957 (vmlaq_n_f32): Likewise.
11958 (vmlaq_n_s16): Likewise.
11959 (vmlaq_n_s32): Likewise.
11960 (vmlaq_n_u16): Likewise.
11961 (vmlaq_n_u32): Likewise.
11962 (vmlaq_s8): Likewise.
11963 (vmlaq_s16): Likewise.
11964 (vmlaq_s32): Likewise.
11965 (vmlaq_u8): Likewise.
11966 (vmlaq_u16): Likewise.
11967 (vmlaq_u32): Likewise.
11968 (vmls_n_f32): Likewise.
11969 (vmls_n_s16): Likewise.
11970 (vmls_n_s32): Likewise.
11971 (vmls_n_u16): Likewise.
11972 (vmls_n_u32): Likewise.
11973 (vmls_s8): Likewise.
11974 (vmls_s16): Likewise.
11975 (vmls_s32): Likewise.
11976 (vmls_u8): Likewise.
11977 (vmls_u16): Likewise.
11978 (vmls_u32): Likewise.
11979 (vmlsl_high_n_s16): Likewise.
11980 (vmlsl_high_n_s32): Likewise.
11981 (vmlsl_high_n_u16): Likewise.
11982 (vmlsl_high_n_u32): Likewise.
11983 (vmlsl_high_s8): Likewise.
11984 (vmlsl_high_s16): Likewise.
11985 (vmlsl_high_s32): Likewise.
11986 (vmlsl_high_u8): Likewise.
11987 (vmlsl_high_u16): Likewise.
11988 (vmlsl_high_u32): Likewise.
11989 (vmlsl_n_s16): Likewise.
11990 (vmlsl_n_s32): Likewise.
11991 (vmlsl_n_u16): Likewise.
11992 (vmlsl_n_u32): Likewise.
11993 (vmlsl_s8): Likewise.
11994 (vmlsl_s16): Likewise.
11995 (vmlsl_s32): Likewise.
11996 (vmlsl_u8): Likewise.
11997 (vmlsl_u16): Likewise.
11998 (vmlsl_u32): Likewise.
11999 (vmlsq_n_f32): Likewise.
12000 (vmlsq_n_s16): Likewise.
12001 (vmlsq_n_s32): Likewise.
12002 (vmlsq_n_u16): Likewise.
12003 (vmlsq_n_u32): Likewise.
12004 (vmlsq_s8): Likewise.
12005 (vmlsq_s16): Likewise.
12006 (vmlsq_s32): Likewise.
12007 (vmlsq_u8): Likewise.
12008 (vmlsq_u16): Likewise.
12009 (vmlsq_u32): Likewise.
12010 (vmovl_high_s8): Likewise.
12011 (vmovl_high_s16): Likewise.
12012 (vmovl_high_s32): Likewise.
12013 (vmovl_high_u8): Likewise.
12014 (vmovl_high_u16): Likewise.
12015 (vmovl_high_u32): Likewise.
12016 (vmovl_s8): Likewise.
12017 (vmovl_s16): Likewise.
12018 (vmovl_s32): Likewise.
12019 (vmovl_u8): Likewise.
12020 (vmovl_u16): Likewise.
12021 (vmovl_u32): Likewise.
12022 (vmovn_high_s16): Likewise.
12023 (vmovn_high_s32): Likewise.
12024 (vmovn_high_s64): Likewise.
12025 (vmovn_high_u16): Likewise.
12026 (vmovn_high_u32): Likewise.
12027 (vmovn_high_u64): Likewise.
12028 (vmovn_s16): Likewise.
12029 (vmovn_s32): Likewise.
12030 (vmovn_s64): Likewise.
12031 (vmovn_u16): Likewise.
12032 (vmovn_u32): Likewise.
12033 (vmovn_u64): Likewise.
12034 (vmull_high_n_s16): Likewise.
12035 (vmull_high_n_s32): Likewise.
12036 (vmull_high_n_u16): Likewise.
12037 (vmull_high_n_u32): Likewise.
12038 (vmull_high_p8): Likewise.
12039 (vmull_high_s8): Likewise.
12040 (vmull_high_s16): Likewise.
12041 (vmull_high_s32): Likewise.
12042 (vmull_high_u8): Likewise.
12043 (vmull_high_u16): Likewise.
12044 (vmull_high_u32): Likewise.
12045 (vmull_n_s16): Likewise.
12046 (vmull_n_s32): Likewise.
12047 (vmull_n_u16): Likewise.
12048 (vmull_n_u32): Likewise.
12049 (vmull_p8): Likewise.
12050 (vmull_s8): Likewise.
12051 (vmull_s16): Likewise.
12052 (vmull_s32): Likewise.
12053 (vmull_u8): Likewise.
12054 (vmull_u16): Likewise.
12055 (vmull_u32): Likewise.
12056 (vpadal_s8): Likewise.
12057 (vpadal_s16): Likewise.
12058 (vpadal_s32): Likewise.
12059 (vpadal_u8): Likewise.
12060 (vpadal_u16): Likewise.
12061 (vpadal_u32): Likewise.
12062 (vpadalq_s8): Likewise.
12063 (vpadalq_s16): Likewise.
12064 (vpadalq_s32): Likewise.
12065 (vpadalq_u8): Likewise.
12066 (vpadalq_u16): Likewise.
12067 (vpadalq_u32): Likewise.
12068 (vpaddl_s8): Likewise.
12069 (vpaddl_s16): Likewise.
12070 (vpaddl_s32): Likewise.
12071 (vpaddl_u8): Likewise.
12072 (vpaddl_u16): Likewise.
12073 (vpaddl_u32): Likewise.
12074 (vpaddlq_s8): Likewise.
12075 (vpaddlq_s16): Likewise.
12076 (vpaddlq_s32): Likewise.
12077 (vpaddlq_u8): Likewise.
12078 (vpaddlq_u16): Likewise.
12079 (vpaddlq_u32): Likewise.
12080 (vpaddq_s8): Likewise.
12081 (vpaddq_s16): Likewise.
12082 (vpaddq_s32): Likewise.
12083 (vpaddq_s64): Likewise.
12084 (vpaddq_u8): Likewise.
12085 (vpaddq_u16): Likewise.
12086 (vpaddq_u32): Likewise.
12087 (vpaddq_u64): Likewise.
12088 (vqdmulh_n_s16): Likewise.
12089 (vqdmulh_n_s32): Likewise.
12090 (vqdmulhq_n_s16): Likewise.
12091 (vqdmulhq_n_s32): Likewise.
12092 (vqmovn_high_s16): Likewise.
12093 (vqmovn_high_s32): Likewise.
12094 (vqmovn_high_s64): Likewise.
12095 (vqmovn_high_u16): Likewise.
12096 (vqmovn_high_u32): Likewise.
12097 (vqmovn_high_u64): Likewise.
12098 (vqmovun_high_s16): Likewise.
12099 (vqmovun_high_s32): Likewise.
12100 (vqmovun_high_s64): Likewise.
12101 (vqrdmulh_n_s16): Likewise.
12102 (vqrdmulh_n_s32): Likewise.
12103 (vqrdmulhq_n_s16): Likewise.
12104 (vqrdmulhq_n_s32): Likewise.
12105 (vrsqrte_u32): Likewise.
12106 (vrsqrteq_u32): Likewise.
12107 (vtst_p8): Likewise.
12108 (vtst_p16): Likewise.
12109 (vtst_p64): Likewise.
12110 (vtstq_p8): Likewise.
12111 (vtstq_p16): Likewise.
12112 (vtstq_p64): Likewise.
12113 (vaddlv_s32): Likewise.
12114 (vaddlv_u32): Likewise.
12115 (vqtbl1_p8): Likewise.
12116 (vqtbl1_s8): Likewise.
12117 (vqtbl1_u8): Likewise.
12118 (vqtbl1q_p8): Likewise.
12119 (vqtbl1q_s8): Likewise.
12120 (vqtbl1q_u8): Likewise.
12121 (vqtbx1_s8): Likewise.
12122 (vqtbx1_u8): Likewise.
12123 (vqtbx1_p8): Likewise.
12124 (vqtbx1q_s8): Likewise.
12125 (vqtbx1q_u8): Likewise.
12126 (vqtbx1q_p8): Likewise.
12127 (vtbl1_s8): Likewise.
12128 (vtbl1_u8): Likewise.
12129 (vtbl1_p8): Likewise.
12130 (vtbl2_s8): Likewise.
12131 (vtbl2_u8): Likewise.
12132 (vtbl2_p8): Likewise.
12133 (vtbl3_s8): Likewise.
12134 (vtbl3_u8): Likewise.
12135 (vtbl3_p8): Likewise.
12136 (vtbl4_s8): Likewise.
12137 (vtbl4_u8): Likewise.
12138 (vtbl4_p8): Likewise.
12139 (vtbx2_s8): Likewise.
12140 (vtbx2_u8): Likewise.
12141 (vtbx2_p8): Likewise.
12142 (vld1_f32): Likewise.
12143 (vld1_f64): Likewise.
12144 (vld1_p8): Likewise.
12145 (vld1_p16): Likewise.
12146 (vld1_p64): Likewise.
12147 (vld1_s8): Likewise.
12148 (vld1_s16): Likewise.
12149 (vld1_s32): Likewise.
12150 (vld1_s64): Likewise.
12151 (vld1_u8): Likewise.
12152 (vld1_u16): Likewise.
12153 (vld1_u32): Likewise.
12154 (vld1_u64): Likewise.
12155 (vld1q_f32): Likewise.
12156 (vld1q_f64): Likewise.
12157 (vld1q_p8): Likewise.
12158 (vld1q_p16): Likewise.
12159 (vld1q_p64): Likewise.
12160 (vld1q_s8): Likewise.
12161 (vld1q_s16): Likewise.
12162 (vld1q_s32): Likewise.
12163 (vld1q_s64): Likewise.
12164 (vld1q_u8): Likewise.
12165 (vld1q_u16): Likewise.
12166 (vld1q_u32): Likewise.
12167 (vld1q_u64): Likewise.
12168 (vpmax_s8): Likewise.
12169 (vpmax_s16): Likewise.
12170 (vpmax_s32): Likewise.
12171 (vpmax_u8): Likewise.
12172 (vpmax_u16): Likewise.
12173 (vpmax_u32): Likewise.
12174 (vpmaxq_s8): Likewise.
12175 (vpmaxq_s16): Likewise.
12176 (vpmaxq_s32): Likewise.
12177 (vpmaxq_u8): Likewise.
12178 (vpmaxq_u16): Likewise.
12179 (vpmaxq_u32): Likewise.
12180 (vpmax_f32): Likewise.
12181 (vpmaxq_f32): Likewise.
12182 (vpmaxq_f64): Likewise.
12183 (vpmaxqd_f64): Likewise.
12184 (vpmaxs_f32): Likewise.
12185 (vpmaxnm_f32): Likewise.
12186 (vpmaxnmq_f32): Likewise.
12187 (vpmaxnmq_f64): Likewise.
12188 (vpmaxnmqd_f64): Likewise.
12189 (vpmaxnms_f32): Likewise.
12190 (vpmin_s8): Likewise.
12191 (vpmin_s16): Likewise.
12192 (vpmin_s32): Likewise.
12193 (vpmin_u8): Likewise.
12194 (vpmin_u16): Likewise.
12195 (vpmin_u32): Likewise.
12196 (vpminq_s8): Likewise.
12197 (vpminq_s16): Likewise.
12198 (vpminq_s32): Likewise.
12199 (vpminq_u8): Likewise.
12200 (vpminq_u16): Likewise.
12201 (vpminq_u32): Likewise.
12202 (vpmin_f32): Likewise.
12203 (vpminq_f32): Likewise.
12204 (vpminq_f64): Likewise.
12205 (vpminqd_f64): Likewise.
12206 (vpmins_f32): Likewise.
12207 (vpminnm_f32): Likewise.
12208 (vpminnmq_f32): Likewise.
12209 (vpminnmq_f64): Likewise.
12210 (vpminnmqd_f64): Likewise.
12211 (vpminnms_f32): Likewise.
12212 (vmla_f32): Likewise.
12213 (vmlaq_f32): Likewise.
12214 (vmlaq_f64): Likewise.
12215 (vmls_f32): Likewise.
12216 (vmlsq_f32): Likewise.
12217 (vmlsq_f64): Likewise.
12218 (vqtbl2_s8): Likewise.
12219 (vqtbl2_u8): Likewise.
12220 (vqtbl2_p8): Likewise.
12221 (vqtbl2q_s8): Likewise.
12222 (vqtbl2q_u8): Likewise.
12223 (vqtbl2q_p8): Likewise.
12224 (vqtbl3_s8): Likewise.
12225 (vqtbl3_u8): Likewise.
12226 (vqtbl3_p8): Likewise.
12227 (vqtbl3q_s8): Likewise.
12228 (vqtbl3q_u8): Likewise.
12229 (vqtbl3q_p8): Likewise.
12230 (vqtbl4_s8): Likewise.
12231 (vqtbl4_u8): Likewise.
12232 (vqtbl4_p8): Likewise.
12233 (vqtbl4q_s8): Likewise.
12234 (vqtbl4q_u8): Likewise.
12235 (vqtbl4q_p8): Likewise.
12236 (vqtbx2_s8): Likewise.
12237 (vqtbx2_u8): Likewise.
12238 (vqtbx2_p8): Likewise.
12239 (vqtbx2q_s8): Likewise.
12240 (vqtbx2q_u8): Likewise.
12241 (vqtbx2q_p8): Likewise.
12242 (vqtbx3_s8): Likewise.
12243 (vqtbx3_u8): Likewise.
12244 (vqtbx3_p8): Likewise.
12245 (vqtbx3q_s8): Likewise.
12246 (vqtbx3q_u8): Likewise.
12247 (vqtbx3q_p8): Likewise.
12248 (vqtbx4_s8): Likewise.
12249 (vqtbx4_u8): Likewise.
12250 (vqtbx4_p8): Likewise.
12251 (vqtbx4q_s8): Likewise.
12252 (vqtbx4q_u8): Likewise.
12253 (vqtbx4q_p8): Likewise.
12254 (vrev16_p8): Likewise.
12255 (vrev16_s8): Likewise.
12256 (vrev16_u8): Likewise.
12257 (vrev16q_p8): Likewise.
12258 (vrev16q_s8): Likewise.
12259 (vrev16q_u8): Likewise.
12260 (vrev32_p8): Likewise.
12261 (vrev32_p16): Likewise.
12262 (vrev32_s8): Likewise.
12263 (vrev32_s16): Likewise.
12264 (vrev32_u8): Likewise.
12265 (vrev32_u16): Likewise.
12266 (vrev32q_p8): Likewise.
12267 (vrev32q_p16): Likewise.
12268 (vrev32q_s8): Likewise.
12269 (vrev32q_s16): Likewise.
12270 (vrev32q_u8): Likewise.
12271 (vrev32q_u16): Likewise.
12272 (vrev64_f32): Likewise.
12273 (vrev64_p8): Likewise.
12274 (vrev64_p16): Likewise.
12275 (vrev64_s8): Likewise.
12276 (vrev64_s16): Likewise.
12277 (vrev64_s32): Likewise.
12278 (vrev64_u8): Likewise.
12279 (vrev64_u16): Likewise.
12280 (vrev64_u32): Likewise.
12281 (vrev64q_f32): Likewise.
12282 (vrev64q_p8): Likewise.
12283 (vrev64q_p16): Likewise.
12284 (vrev64q_s8): Likewise.
12285 (vrev64q_s16): Likewise.
12286 (vrev64q_s32): Likewise.
12287 (vrev64q_u8): Likewise.
12288 (vrev64q_u16): Likewise.
12289 (vrev64q_u32): Likewise.
12290 (vsha1cq_u32): Likewise.
12291 (vsha1mq_u32): Likewise.
12292 (vsha1pq_u32): Likewise.
12293 (vsha1h_u32): Likewise.
12294 (vsha1su0q_u32): Likewise.
12295 (vsha1su1q_u32): Likewise.
12296 (vsha256hq_u32): Likewise.
12297 (vsha256h2q_u32): Likewise.
12298 (vsha256su0q_u32): Likewise.
12299 (vsha256su1q_u32): Likewise.
12300 (vmull_p64): Likewise.
12301 (vmull_high_p64): Likewise.
12302 (vsqrt_f32): Likewise.
12303 (vsqrtq_f32): Likewise.
12304 (vsqrt_f64): Likewise.
12305 (vsqrtq_f64): Likewise.
12306 (vst1_f32): Likewise.
12307 (vst1_f64): Likewise.
12308 (vst1_p8): Likewise.
12309 (vst1_p16): Likewise.
12310 (vst1_p64): Likewise.
12311 (vst1_s8): Likewise.
12312 (vst1_s16): Likewise.
12313 (vst1_s32): Likewise.
12314 (vst1_s64): Likewise.
12315 (vst1_u8): Likewise.
12316 (vst1_u16): Likewise.
12317 (vst1_u32): Likewise.
12318 (vst1_u64): Likewise.
12319 (vst1q_f32): Likewise.
12320 (vst1q_f64): Likewise.
12321 (vst1q_p8): Likewise.
12322 (vst1q_p16): Likewise.
12323 (vst1q_p64): Likewise.
12324 (vst1q_s8): Likewise.
12325 (vst1q_s16): Likewise.
12326 (vst1q_s32): Likewise.
12327 (vst1q_s64): Likewise.
12328 (vst1q_u8): Likewise.
12329 (vst1q_u16): Likewise.
12330 (vst1q_u32): Likewise.
12331 (vst1q_u64): Likewise.
12332 (vst1_s64_x2): Likewise.
12333 (vst1_u64_x2): Likewise.
12334 (vst1_f64_x2): Likewise.
12335 (vst1_s8_x2): Likewise.
12336 (vst1_p8_x2): Likewise.
12337 (vst1_s16_x2): Likewise.
12338 (vst1_p16_x2): Likewise.
12339 (vst1_s32_x2): Likewise.
12340 (vst1_u8_x2): Likewise.
12341 (vst1_u16_x2): Likewise.
12342 (vst1_u32_x2): Likewise.
12343 (vst1_f16_x2): Likewise.
12344 (vst1_f32_x2): Likewise.
12345 (vst1_p64_x2): Likewise.
12346 (vst1q_s8_x2): Likewise.
12347 (vst1q_p8_x2): Likewise.
12348 (vst1q_s16_x2): Likewise.
12349 (vst1q_p16_x2): Likewise.
12350 (vst1q_s32_x2): Likewise.
12351 (vst1q_s64_x2): Likewise.
12352 (vst1q_u8_x2): Likewise.
12353 (vst1q_u16_x2): Likewise.
12354 (vst1q_u32_x2): Likewise.
12355 (vst1q_u64_x2): Likewise.
12356 (vst1q_f16_x2): Likewise.
12357 (vst1q_f32_x2): Likewise.
12358 (vst1q_f64_x2): Likewise.
12359 (vst1q_p64_x2): Likewise.
12360 (vst1_s64_x3): Likewise.
12361 (vst1_u64_x3): Likewise.
12362 (vst1_f64_x3): Likewise.
12363 (vst1_s8_x3): Likewise.
12364 (vst1_p8_x3): Likewise.
12365 (vst1_s16_x3): Likewise.
12366 (vst1_p16_x3): Likewise.
12367 (vst1_s32_x3): Likewise.
12368 (vst1_u8_x3): Likewise.
12369 (vst1_u16_x3): Likewise.
12370 (vst1_u32_x3): Likewise.
12371 (vst1_f16_x3): Likewise.
12372 (vst1_f32_x3): Likewise.
12373 (vst1_p64_x3): Likewise.
12374 (vst1q_s8_x3): Likewise.
12375 (vst1q_p8_x3): Likewise.
12376 (vst1q_s16_x3): Likewise.
12377 (vst1q_p16_x3): Likewise.
12378 (vst1q_s32_x3): Likewise.
12379 (vst1q_s64_x3): Likewise.
12380 (vst1q_u8_x3): Likewise.
12381 (vst1q_u16_x3): Likewise.
12382 (vst1q_u32_x3): Likewise.
12383 (vst1q_u64_x3): Likewise.
12384 (vst1q_f16_x3): Likewise.
12385 (vst1q_f32_x3): Likewise.
12386 (vst1q_f64_x3): Likewise.
12387 (vst1q_p64_x3): Likewise.
12388 (vst2_s64): Likewise.
12389 (vst2_u64): Likewise.
12390 (vst2_f64): Likewise.
12391 (vst2_s8): Likewise.
12392 (vst2_p8): Likewise.
12393 (vst2_s16): Likewise.
12394 (vst2_p16): Likewise.
12395 (vst2_s32): Likewise.
12396 (vst2_u8): Likewise.
12397 (vst2_u16): Likewise.
12398 (vst2_u32): Likewise.
12399 (vst2_f16): Likewise.
12400 (vst2_f32): Likewise.
12401 (vst2_p64): Likewise.
12402 (vst2q_s8): Likewise.
12403 (vst2q_p8): Likewise.
12404 (vst2q_s16): Likewise.
12405 (vst2q_p16): Likewise.
12406 (vst2q_s32): Likewise.
12407 (vst2q_s64): Likewise.
12408 (vst2q_u8): Likewise.
12409 (vst2q_u16): Likewise.
12410 (vst2q_u32): Likewise.
12411 (vst2q_u64): Likewise.
12412 (vst2q_f16): Likewise.
12413 (vst2q_f32): Likewise.
12414 (vst2q_f64): Likewise.
12415 (vst2q_p64): Likewise.
12416 (vst3_s64): Likewise.
12417 (vst3_u64): Likewise.
12418 (vst3_f64): Likewise.
12419 (vst3_s8): Likewise.
12420 (vst3_p8): Likewise.
12421 (vst3_s16): Likewise.
12422 (vst3_p16): Likewise.
12423 (vst3_s32): Likewise.
12424 (vst3_u8): Likewise.
12425 (vst3_u16): Likewise.
12426 (vst3_u32): Likewise.
12427 (vst3_f16): Likewise.
12428 (vst3_f32): Likewise.
12429 (vst3_p64): Likewise.
12430 (vst3q_s8): Likewise.
12431 (vst3q_p8): Likewise.
12432 (vst3q_s16): Likewise.
12433 (vst3q_p16): Likewise.
12434 (vst3q_s32): Likewise.
12435 (vst3q_s64): Likewise.
12436 (vst3q_u8): Likewise.
12437 (vst3q_u16): Likewise.
12438 (vst3q_u32): Likewise.
12439 (vst3q_u64): Likewise.
12440 (vst3q_f16): Likewise.
12441 (vst3q_f32): Likewise.
12442 (vst3q_f64): Likewise.
12443 (vst3q_p64): Likewise.
12444 (vst4_s64): Likewise.
12445 (vst4_u64): Likewise.
12446 (vst4_f64): Likewise.
12447 (vst4_s8): Likewise.
12448 (vst4_p8): Likewise.
12449 (vst4_s16): Likewise.
12450 (vst4_p16): Likewise.
12451 (vst4_s32): Likewise.
12452 (vst4_u8): Likewise.
12453 (vst4_u16): Likewise.
12454 (vst4_u32): Likewise.
12455 (vst4_f16): Likewise.
12456 (vst4_f32): Likewise.
12457 (vst4_p64): Likewise.
12458 (vst4q_s8): Likewise.
12459 (vst4q_p8): Likewise.
12460 (vst4q_s16): Likewise.
12461 (vst4q_p16): Likewise.
12462 (vst4q_s32): Likewise.
12463 (vst4q_s64): Likewise.
12464 (vst4q_u8): Likewise.
12465 (vst4q_u16): Likewise.
12466 (vst4q_u32): Likewise.
12467 (vst4q_u64): Likewise.
12468 (vst4q_f16): Likewise.
12469 (vst4q_f32): Likewise.
12470 (vst4q_f64): Likewise.
12471 (vst4q_p64): Likewise.
12472 (vtbx4_s8): Likewise.
12473 (vtbx4_u8): Likewise.
12474 (vtbx4_p8): Likewise.
12475 (vtrn_f32): Likewise.
12476 (vtrn_p8): Likewise.
12477 (vtrn_p16): Likewise.
12478 (vtrn_s8): Likewise.
12479 (vtrn_s16): Likewise.
12480 (vtrn_s32): Likewise.
12481 (vtrn_u8): Likewise.
12482 (vtrn_u16): Likewise.
12483 (vtrn_u32): Likewise.
12484 (vtrnq_f32): Likewise.
12485 (vtrnq_p8): Likewise.
12486 (vtrnq_p16): Likewise.
12487 (vtrnq_s8): Likewise.
12488 (vtrnq_s16): Likewise.
12489 (vtrnq_s32): Likewise.
12490 (vtrnq_u8): Likewise.
12491 (vtrnq_u16): Likewise.
12492 (vtrnq_u32): Likewise.
12493 (vrsqrte_f16): Likewise.
12494 (vrsqrteq_f16): Likewise.
12495 (vsqrt_f16): Likewise.
12496 (vsqrtq_f16): Likewise.
12497 (vabd_f16): Likewise.
12498 (vabdq_f16): Likewise.
12499 (vpadd_f16): Likewise.
12500 (vpaddq_f16): Likewise.
12501 (vpmax_f16): Likewise.
12502 (vpmaxq_f16): Likewise.
12503 (vpmaxnm_f16): Likewise.
12504 (vpmaxnmq_f16): Likewise.
12505 (vpmin_f16): Likewise.
12506 (vpminq_f16): Likewise.
12507 (vpminnm_f16): Likewise.
12508 (vpminnmq_f16): Likewise.
12509 (vrsqrts_f16): Likewise.
12510 (vrsqrtsq_f16): Likewise.
12512 2019-09-25 Richard Biener <rguenther@suse.de>
12514 PR tree-optimization/91896
12515 * tree-vect-loop.c (vectorizable_reduction): The single
12516 def-use cycle optimization cannot apply when there's more
12517 than one pattern stmt involved.
12519 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12521 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12522 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12523 (reload_macho_picbase_<mode>): Likewise.
12525 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12527 * config/rs6000/rs6000.md: Move darwin.md include until
12528 after the definition of the mode iterators.
12530 2019-09-23 Martin Sebor <msebor@redhat.com>
12532 PR tree-optimization/91570
12533 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12534 non-constant minlen, maxlen and maxbound.
12536 2019-09-24 Richard Biener <rguenther@suse.de>
12538 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12540 (_stmt_vec_info::cond_reduc_code): ... this.
12541 (_stmt_vec_info::induc_cond_initial_val): Add.
12542 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12543 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12544 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12545 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12546 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12547 the reduction code.
12548 (vect_create_epilog_for_reduction): Drop special
12549 induction condition reduction params, pass in reduction code
12551 (vectorizable_reduction): Perform condition reduction kind
12552 selection only at analysis time. Adjust passing on state.
12554 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12556 * config/aarch64/aarch64.md (mov<mode>): Don't call
12557 aarch64_split_dimode_const_store on volatile MEM.
12559 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12561 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12562 Update hwcap string for fp16fml.
12564 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12566 PR middle-end/91866
12567 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12568 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12570 2019-09-24 Martin Liska <mliska@suse.cz>
12572 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12573 instead of if-elseif-elseif-...
12574 * gimple-expr.c (extract_ops_from_tree): Likewise.
12575 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12576 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12578 2019-09-24 Martin Jambor <mjambor@suse.cz>
12581 * ipa-param-manipulation.c (carry_over_param): Make a method of
12582 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12583 in case of a context mismatch.
12584 (ipa_param_body_adjustments::common_initialization): Adjust call to
12586 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12587 private method carry_over_param.
12589 2019-09-24 Martin Jambor <mjambor@suse.cz>
12592 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12594 2019-09-24 Richard Biener <rguenther@suse.de>
12596 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12599 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12601 * config/arm/t-arm (arm-builtins.o): Add dependency on
12602 arm_acle_builtins.def.
12604 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12607 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12608 canonical CONST_INTs. Use gen_rtvec.
12610 2019-09-23 Richard Biener <rguenther@suse.de>
12612 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12613 avoid adjusting by + 0 or * 1.
12614 (vect_create_epilog_for_reduction): Get reduction code only
12615 when necessary. Deal with adjustment_def only when necessary.
12617 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12619 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12622 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12625 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12628 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12630 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12631 code. Merge code blocks with common conditionals. Use declared
12632 macro instead of a magic number for PIC level.
12634 2019-09-21 Martin Sebor <msebor@redhat.com>
12636 PR middle-end/91830
12637 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12638 Simplify computation of the offset of the referenced subobject.
12640 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12642 * config/darwin.c (machopic_legitimize_pic_address): Check
12643 for lra not reload.
12645 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12647 * ira-conflicts.c (can_use_same_reg_p): New function.
12648 (process_reg_shuffles): Take an insn parameter. Ignore cases
12649 in which input operand op_num could seemingly never be allocated
12650 to the same register as the destination.
12651 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12653 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12655 * simplify-rtx.c (neg_const_int): Replace with...
12656 (neg_poly_int_rtx): ...this new function.
12657 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12658 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12659 (simplify_plus_minus): Likewise for constant terms here.
12661 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12663 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12664 HOST_WIDE_PRINT_UNSIGNED.
12666 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12668 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12671 2019-09-20 Maya Rashish <coypu@sdf.org>
12674 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12675 Define to speculation_safe_value_not_needed.
12677 2019-09-20 Richard Biener <rguenther@suse.de>
12678 Uros Bizjak <ubizjak@gmail.com>
12681 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12683 (general_scalar_chain::convert_op): Force not suitable memory
12684 operands to a register.
12686 2019-09-20 Richard Biener <rguenther@suse.de>
12688 PR tree-optimization/91821
12689 * tree-vect-loop.c (check_reduction_path): Check we can compute
12691 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12692 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12693 operands in canonical order.
12694 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12695 STMT_VINFO_REDUC_IDX.
12696 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12697 (STMT_VINFO_REDUC_IDX): Likewise.
12699 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12702 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12704 2019-09-20 Richard Biener <rguenther@suse.de>
12706 PR tree-optimization/91822
12707 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12709 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12710 for reduc_index in nested cycles, adjust vectorizable_condition
12712 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12714 (vect_analyze_stmt): Adjust.
12715 (vect_transform_stmt): Likewise.
12717 2019-09-20 Richard Biener <rguenther@suse.de>
12720 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12721 Ensure there's a sequence point between allocating the new register
12722 and passing a reference to a reg via regno_reg_rtx.
12724 2019-09-20 Martin Jambor <mjambor@suse.cz>
12726 * coretypes.h (cgraph_edge): Declare.
12727 * ipa-param-manipulation.c: Rewrite.
12728 * ipa-param-manipulation.h: Likewise.
12729 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12730 (OBJS): Added ipa-sra.o.
12731 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12732 and ref_p, added fields param_adjustments and performed_splits.
12733 (struct cgraph_clone_info): Remove ags_to_skip and
12734 combined_args_to_skip, new field param_adjustments.
12735 (cgraph_node::create_clone): Changed parameters to use
12736 ipa_param_adjustments.
12737 (cgraph_node::create_virtual_clone): Likewise.
12738 (cgraph_node::create_virtual_clone_with_body): Likewise.
12739 (tree_function_versioning): Likewise.
12740 (cgraph_build_function_type_skip_args): Removed.
12741 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12742 using ipa_param_adjustments.
12743 (clone_of_p): Likewise.
12744 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12745 (build_function_decl_skip_args): Likewise.
12746 (duplicate_thunk_for_node): Adjust parameters using
12747 ipa_param_body_adjustments, copy param_adjustments instead of
12749 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12750 (cgraph_node::create_virtual_clone): Likewise.
12751 (cgraph_node::create_version_clone_with_body): Likewise.
12752 (cgraph_materialize_clone): Likewise.
12753 (symbol_table::materialize_all_clones): Likewise.
12754 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12755 ipa_replace_map check.
12756 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12757 (initialize_node_lattices): Make aware that some parameters might have
12758 already been removed.
12759 (want_remove_some_param_p): New function.
12760 (create_specialized_node): Convert to using ipa_param_adjustments and
12761 deal with possibly pre-existing adjustments.
12762 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12763 (output_node_opt_summary): Do not stream removed fields. Stream
12764 parameter adjustments instead of argumetns to skip.
12765 (input_node_opt_summary): Likewise.
12766 (input_node_opt_summary): Likewise.
12767 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12768 * lto-streamer.h (lto_section_type): Likewise.
12769 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12771 (copy_decl_to_var): Declare.
12772 * tree-inline.c (update_clone_info): Do not remap old_tree.
12773 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12774 statements, walk all extra generated statements and remap their
12776 (redirect_all_calls): Add killed SSA names to a hash set.
12777 (remap_ssa_name): Do not remap killed SSA names.
12778 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12779 half of functionality moved to ipa_param_body_adjustments.
12780 (copy_decl_to_var): Make exported.
12781 (copy_body): Destroy killed_new_ssa_names hash set.
12782 (expand_call_inline): Remap performed splits.
12783 (update_clone_info): Likewise.
12784 (tree_function_versioning): Simplify tree_map processing. Updated to
12785 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12786 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12787 for the new interface.
12788 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12789 (simd_clone_compute_base_data_type): Likewise.
12790 (simd_clone_init_simd_arrays): Adjust for the new interface.
12791 (simd_clone_adjust_argument_types): Likewise.
12792 (struct modify_stmt_info): Likewise.
12793 (ipa_simd_modify_stmt_ops): Likewise.
12794 (ipa_simd_modify_function_body): Likewise.
12795 (simd_clone_adjust): Likewise.
12796 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12797 (type_internals_preclude_sra_p): Make public.
12798 * tree-sra.h: New file.
12799 * ipa-inline-transform.c (save_inline_function_body): Update to
12800 refelct new tree_function_versioning signature.
12801 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12802 ipa_param_adjustments to get current parameter indices.
12803 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12804 (ipcp_update_bits): Likewise.
12805 (ipcp_update_vr): Likewise.
12806 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12807 * ipa-sra.c: New file.
12808 * multiple_target.c (create_target_clone): Update to reflet new type
12809 of create_version_clone_with_body.
12810 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12811 tree_function_versioning.
12812 (modify_function): Update to reflect new type of
12813 tree_function_versioning.
12814 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12815 * passes.def: Remove old IPA-SRA and add new one.
12816 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12817 (make_pass_ipa_sra): Declare.
12818 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12820 * doc/invoke.texi (ipa-sra-max-replacements): New.
12822 2019-09-19 Martin Sebor <msebor@redhat.com>
12824 PR middle-end/91631
12825 * builtins.c (component_size): Correct trailing array computation,
12826 rename to component_ref_size and move...
12827 (compute_objsize): Adjust.
12828 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12829 (builtin_access::strict): Do not consider memmove.
12830 (builtin_access::write_off): New function.
12831 (builtin_memref::builtin_memref): Initialize refsize.
12832 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12834 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12836 (builtin_access::builtin_access): Initialize dstoff to destination
12837 refeence offset here instead of in maybe_diag_overlap. Adjust
12838 referencess even to unrelated objects. Adjust sizrange of bounded
12839 string functions to reflect bound. For strcat, adjust destination
12840 sizrange by that of source.
12841 (builtin_access::strcat_overlap): Adjust offsets and sizes
12842 to reflect the increase in destination sizrange above.
12843 (builtin_access::overlap): Do not set dstoff here but instead
12844 in builtin_access::builtin_access.
12845 (check_bounds_or_overlap): Use builtin_access::write_off.
12846 (maybe_diag_access_bounds): Add argument. Add informational notes.
12847 (dump_builtin_memref, dump_builtin_access): New functions.
12848 * tree.c (component_ref_size): ...to here.
12849 * tree.h (component_ref_size): Declare.
12850 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12851 nul in the size of the source string.
12853 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12856 * doc/cpp.texi: Document support for extended characters in
12858 * doc/cppopts.texi: Likewise.
12860 2019-09-19 Richard Biener <rguenther@suse.de>
12862 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12863 (check_reduction_path): New overload having the path as result.
12864 (vect_is_simple_reduction): From the detected reduction
12865 path build a SLP reduction chain if possible.
12867 2019-09-19 Richard Biener <rguenther@suse.de>
12870 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12871 Force operand to a register if it isn't nonimmediate_operand.
12873 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12875 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12876 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12877 (logical_op): Remove code attribute.
12878 (logical_OP): Likewise.
12880 2019-09-19 Martin Liska <mliska@suse.cz>
12882 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12883 Use proper casting.
12885 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12887 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12890 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12891 for NE comparison of TImode values.
12892 (aarch64_emit_load_exclusive): Add support for TImode.
12893 (aarch64_emit_store_exclusive): Likewise.
12894 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12895 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12896 Change iterator from ALLI to ALLI_TI.
12897 (@atomic_compare_and_swap<JUST_TI>): New.
12898 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12899 (aarch64_load_exclusive_pair): New.
12900 (aarch64_store_exclusive_pair): New.
12901 * config/aarch64/iterators.md (JUST_TI): New.
12903 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12904 strong_zero_p for aarch64_track_speculation; unify some code paths;
12905 use aarch64_gen_compare_reg instead of open-coding.
12907 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12908 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12909 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12910 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12911 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12912 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12913 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12914 (atomic_<atomic_op><ALLI>): Likewise.
12915 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12916 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12917 * doc/invoke.texi: Document -moutline-atomics.
12919 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12921 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12922 trivial predicate for condition branch.
12923 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12925 (compute_bb_predicates): Update predicate based on post-dominating
12927 (analyze_function_body): Calculate post-dominating information.
12929 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12931 * tree-vectorizer.h (vectorizable_condition): Take an int
12932 reduction index instead of a boolean flag.
12933 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12934 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12935 reductions if the reduction accumulator is the "then" rather
12936 than the "else" value.
12937 (vect_analyze_stmt): Update call accordingly.
12938 (vect_transform_stmt): Likewise.
12939 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12940 asserting that the index is > 0.
12942 2019-09-19 Martin Liska <mliska@suse.cz>
12944 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12945 (sort_congruence_classes_by_decl_uid): Likewise.
12946 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12948 (sem_item_optimizer::merge_classes): Likewise.
12950 2019-09-19 Richard Biener <rguenther@suse.de>
12952 PR tree-optimization/91812
12953 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12956 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12958 * defaults.h (TARGET_UNIT): New macro.
12959 (target_unit): New type.
12960 * rtl.h (native_encode_rtx, native_decode_rtx)
12961 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12962 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12963 * rtlanal.c (subreg_lsb_1): Delete.
12964 (subreg_size_lsb): New function.
12965 * simplify-rtx.c: Include rtx-vector-builder.h
12966 (simplify_immed_subreg): Delete.
12967 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12968 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12970 (simplify_subreg): Use them.
12971 (test_vector_subregs_modes, test_vector_subregs_repeating)
12972 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12973 (test_vector_subregs): New functions.
12974 (test_vector_ops): Call test_vector_subregs for integer vector
12975 modes with at least 2 elements.
12977 2019-09-19 Richard Biener <rguenther@suse.de>
12979 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12980 LOOP_VINFO_OPERANDS_SWAPPED.
12981 (parloops_is_simple_reduction): Likewise.
12982 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12983 initialize operands_swapped.
12984 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12985 (vect_is_slp_reduction): Do not swap operands.
12986 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12987 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12989 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12992 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12993 Add avx_partial_xmm_update.
12995 2019-09-18 Jim Wilson <jimw@sifive.com>
12998 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12999 (riscv_move_integer): Likewise.
13000 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13001 riscv_move_integer arg.
13002 (riscv_legitimize_move): Likewise.
13003 (riscv_force_temporary): New parameter in_splitter. Don't call
13005 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13007 (riscv_add_offset): Likewise.
13008 (riscv_split_symbol): New parameter in_splitter. Pass to
13009 riscv_force_temporary.
13010 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13012 (riscv_move_integer): New parameter in_splitter. New local
13013 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13015 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13016 riscv_split_symbol, and riscv_force_temporary args.
13017 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13018 riscv_move_integer arg.
13019 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13021 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13024 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13025 hard register store cost to 6.
13027 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13030 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13031 pseudo register store cost from 3 to 6 to make it the same as
13034 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13037 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13038 (one_cmpldi2): Likewise.
13039 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13040 of the constant parts is simple.
13041 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13042 (logical_op): Add new code attribute.
13043 (logical_OP): Likewise.
13044 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13045 (arm_iordi_operand): Add predicate.
13046 (arm_xordi_operand): Add predicate.
13048 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13050 * config/arm/arm.md (maddsidi4): Remove expander.
13051 (mulsidi3adddi): Remove pattern.
13052 (mulsidi3adddi_v6): Likewise.
13053 (mulsidi3_nov6): Likewise.
13054 (mulsidi3_v6): Likewise.
13055 (umulsidi3): Remove expander.
13056 (umulsidi3_nov6): Remove pattern.
13057 (umulsidi3_v6): Likewise.
13058 (umulsidi3adddi): Likewise.
13059 (umulsidi3adddi_v6): Likewise.
13060 (<Us>mulsidi3): Add combined expander.
13061 (<Us>maddsidi4): Likewise.
13062 (<US>mull): Add combined umull and smull pattern.
13063 (<US>mlal): Likewise.
13064 * config/arm/iterators.md (Us): Add new iterator.
13066 2019-09-18 Richard Biener <rguenther@suse.de>
13068 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13070 (vectorize_fold_left_reduction): Remove assert.
13071 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13072 operand in position 2. Remove assert.
13074 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13076 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13077 (smulsi3_highpart_nov6): Remove pattern.
13078 (smulsi3_highpart_v6): Likewise.
13079 (umulsi3_highpart): Likewise.
13080 (umulsi3_highpart_nov6): Likewise.
13081 (umulsi3_highpart_v6): Likewise.
13082 (<US>mull_high): Add new combined multiply pattern.
13084 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13086 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13087 (arm_mulsi3_v6): Likewise.
13088 (mulsi3addsi_v6): Likewise.
13089 (mulsi3subsi): Likewise.
13090 (mul): Add new multiply pattern.
13094 2019-09-18 Richard Biener <rguenther@suse.de>
13096 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13097 (parloops_valid_reduction_input_p): Copy from
13098 valid_reduction_input_p.
13099 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13100 (parloops_needs_fold_left_reduction_p): Copy from
13101 needs_fold_left_reduction_p.
13102 (parloops_is_simple_reduction): Copy from
13103 vect_is_simple_reduction.
13104 (parloops_force_simple_reduction): Copy from
13105 vect_force_simple_reduction.
13106 (gather_scalar_reductions): Adjust.
13107 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13108 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13110 2019-09-18 Richard Biener <rguenther@suse.de>
13112 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13113 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13115 (vect_create_epilog_for_reduction): Remove dead code.
13117 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13119 * varasm.c (assemble_real): Generate canonical const_ints.
13121 2019-09-18 Richard Biener <rguenther@suse.de>
13124 * lto-streamer-in.c (input_eh_regions): Move EH init to
13125 lto_materialize_function.
13126 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13129 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13131 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13134 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13136 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13137 of checking specifically for INTEGER_CST.
13139 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13141 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13142 sizes instead of uhwi sizes.
13144 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13146 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13147 (add_const_value_attribute): Handle CONST_POLY_INT.
13149 2019-09-18 Martin Liska <mliska@suse.cz>
13151 * dbgcnt.def (store_merging): New counter.
13152 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13153 Use it in store merging.
13155 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13157 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13159 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13160 * config/arm/arm.c (arm_sched_variable_issue): New function.
13161 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13163 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13165 * config/arm/types.md (no_reservation): New reservation.
13166 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13168 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13169 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13170 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13171 * config/arm/arm1020e.md (1020alu_op): Likewise.
13172 * config/arm/arm1026ejs.md (alu_op): Likewise.
13173 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13174 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13175 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13176 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13177 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13178 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13179 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13180 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13181 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13182 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13183 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13184 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13185 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13186 * config/arm/fa526.md (526_alu_op): Likewise.
13187 * config/arm/fa606te.md (606te_alu_op): Likewise.
13188 * config/arm/fa626te.md (626te_alu_op): Likewise.
13189 * config/arm/fa726te.md (726te_alu_op): Likewise.
13190 * config/arm/xgene1.md (xgene1_nop): Likewise.
13192 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13194 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13195 "no_insn" to "branch".
13197 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13199 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13201 2019-09-17 Richard Biener <rguenther@suse.de>
13204 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13205 was missing generate locations only once.
13207 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13210 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13212 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13213 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13214 for switch default case using range analysis information.
13216 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13219 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13220 mode attributed is supported by FDPIC.
13222 2019-09-17 Richard Biener <rguenther@suse.de>
13224 PR tree-optimization/91790
13225 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13226 use the correct DR for setting up realignment.
13228 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13231 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13232 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13233 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13234 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13236 2019-09-16 Jason Merrill <jason@redhat.com>
13238 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13240 2019-09-16 Martin Liska <mliska@suse.cz>
13242 * gimple-fold.c (or_comparisons_1): Remove rules moved
13244 * match.pd: ... here.
13246 2019-09-16 Martin Liska <mliska@suse.cz>
13248 * gimple-fold.c (or_comparisons_1): Remove rules
13250 * match.pd: ... here.
13252 2019-09-16 Martin Liska <mliska@suse.cz>
13254 * genmatch.c (dt_node::append_simplify): Do not print
13255 warning when we have duplicate patterns belonging
13256 to a same simplify rule.
13257 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13258 (maybe_fold_comparisons_from_match_pd): Handle
13259 tcc_comparison as a results.
13260 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13262 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13263 Qi Feng <ffengqi@linux.ibm.com>
13265 PR middle-end/88784
13266 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13267 (x > y && x == XXX_MIN): Optimize into 'false'.
13268 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13269 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13270 (x < y && x == XXX_MAX): Optimize into 'false'.
13271 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13272 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13273 (x <= y || x != XXX_MIN): Optimize into 'true'.
13274 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13275 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13276 (x >= y || x != XXX_MAX): Optimize into 'true'.
13277 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13279 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13280 Martin Liska <mliska@suse.cz>
13282 * gimple-fold.c (and_comparisons_1): Add type as first
13284 (and_var_with_comparison): Likewise.
13285 (and_var_with_comparison_1): Likewise.
13286 (or_comparisons_1): Likewise.
13287 (or_var_with_comparison): Likewise.
13288 (or_var_with_comparison_1): Likewise.
13289 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13290 (maybe_fold_or_comparisons): Likewise.
13291 (maybe_fold_comparisons_from_match_pd): New.
13292 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13293 (maybe_fold_or_comparisons): Likewise.
13294 * gimple.c (gimple_size): Make it public and add num_ops argument.
13295 (gimple_init): New function.
13296 (gimple_alloc): Call gimple_init.
13297 * gimple.h (gimple_size): New.
13298 (gimple_init): Likewise.
13299 * tree-if-conv.c (fold_or_predicates): Pass type.
13300 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13301 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13302 (optimize_vec_cond_expr): Likewise.
13303 (ovce_extract_ops): Return type of conditional expression.
13304 * tree-ssanames.c (init_ssa_name_imm_use): New.
13305 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13306 * tree-ssanames.h (init_ssa_name_imm_use): New.
13308 2019-09-16 Richard Biener <rguenther@suse.de>
13310 PR tree-optimization/91756
13311 PR tree-optimization/87132
13312 * tree-ssa-alias.h (enum translate_flags): New.
13313 (get_continuation_for_phi): Use it instead of simple bool flag.
13314 (walk_non_aliased_vuses): Likewise.
13315 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13316 (get_continuation_for_phi): When looking across backedges only
13317 disallow valueization.
13318 (walk_non_aliased_vuses): Adjust.
13319 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13322 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13324 PR middle-end/80791
13325 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13326 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13327 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13328 * target.def (have_count_reg_decr_p): New hook.
13329 (doloop_cost_for_generic): Likewise.
13330 (doloop_cost_for_address): Likewise.
13331 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13332 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13333 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13334 * doc/tm.texi: Regenerate.
13335 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13337 (record_group): Init doloop_p.
13338 (add_candidate_1): Add optional argument doloop, change the handlings
13340 (add_candidate): Likewise.
13341 (generic_predict_doloop_p): Update attribute.
13342 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13343 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13344 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13346 (get_computation_cost): Update for doloop IV cand extra cost.
13347 (determine_group_iv_cost_cond): Update for doloop IV cand.
13348 (determine_iv_cost): Likewise.
13349 (ivopts_estimate_reg_pressure): Likewise.
13350 (may_eliminate_iv): Update handlings for doloop IV cand.
13351 (add_iv_candidate_for_doloop): New function.
13352 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13353 (iv_ca_set_no_cp): Update for doloop IV cand.
13354 (iv_ca_set_cp): Likewise.
13355 (iv_ca_dump): Dump register cost.
13356 (find_doloop_use): New function.
13357 (analyze_and_mark_doloop_use): Likewise.
13358 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13360 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13362 PR middle-end/91708
13363 * cse.c (cse_insn): Do not replace anything with a
13366 2019-09-13 Ian Lance Taylor <iant@golang.org>
13368 * doc/invoke.texi (Optimize Options): Fix typo.
13370 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13372 PR tree-optimization/89386
13373 * config/i386/sse.md (smulhrs<mode>3): New expander.
13374 (smulhrsv4hi3): Ditto.
13376 2019-09-12 Richard Biener <rguenther@suse.de>
13378 PR tree-optimization/91750
13379 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13380 in the type of the evolution.
13382 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13384 PR tree-optimization/89386
13385 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13386 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13387 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13388 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13389 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13390 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13391 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13392 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13393 (su, r): Handle the unspecs above.
13394 (bt): New int attribute.
13395 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13396 * internal-fn.c (first_commutative_argument): Commutativity info for
13398 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13399 (umulhrs_optab): New optabs.
13400 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13401 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13402 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13404 (vect_vect_recog_func_ptrs): Add it.
13406 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13408 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13411 2019-09-11 Nathan Sidwell <nathan@acm.org>
13413 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13414 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13416 2019-09-11 Richard Biener <rguenther@suse.de>
13418 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13419 * lto-wrapper.c (merge_and_complain): Pick up -g.
13420 (append_compiler_options): Likewise.
13421 (run_gcc): Re-instantiate handling -g0 at link-time.
13422 * doc/invoke.texi (flto): Document debug info generation.
13424 2019-09-11 Richard Biener <rguenther@suse.de>
13426 PR tree-optimization/90387
13427 * vr-values.c (vr_values::extract_range_basic): After inlining
13428 simplify non-constant __builtin_constant_p to false.
13430 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13432 PR rtl-optimization/89795
13433 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13434 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13436 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13438 PR tree-optimization/91723
13439 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13440 instead of pointer equality when checking if argument vectypes are
13443 PR middle-end/91725
13444 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13445 of get_nonzero_bits, only call it for integral types.
13447 2019-09-11 Richard Biener <rguenther@suse.de>
13450 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13452 * match.pd: Add flag_unsafe_math_optimizations check
13453 before deciding on the widest type in a binary math operation.
13455 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13457 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13458 and CALL_REALLY_USED_REGISTERS must be defined, and that
13459 CALL_REALLY_USED_REGISTERS is preferred.
13460 * doc/tm.texi: Regenerate.
13461 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13462 (call_really_used_regs): Likewise.
13463 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13464 CALL_REALLY_USED_REGISTERS are defined.
13465 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13466 initial value if defined.
13467 (initial_call_really_used_regs): Delete.
13468 (saved_call_really_used_regs): Likewise.
13469 (CALL_REALLY_USED_REGNO_P): Likewise.
13470 (init_reg_sets): Remove handling of call_really_used_regs.
13471 (save_register_info, restore_register_info, globalize_reg): Likewise.
13472 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13473 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13474 outside operand_reg_set.
13475 (fix_register): Don't change call_used_regs if
13476 CALL_REALLY_USED_REGISTERS is defined.
13477 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13478 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13479 instead of call_really_used_regs.
13480 (csky_conditional_register_usage): Remove the old handling of
13481 call_used_regs and change the handling of call_really_used_regs
13482 to use call_used_regs instead.
13483 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13484 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13485 making a register fixed.
13486 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13487 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13488 instead of call_really_used_regs.
13489 (m32r_conditional_register_usage): Don't set call_used_regs when
13490 making a register fixed.
13491 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13492 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13493 instead of call_really_used_regs.
13494 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13495 (mips_cfun_call_saved_reg_p): Likewise.
13496 (mips_swap_registers): Remove the old handling of call_used_regs
13497 and change the handling of call_really_used_regs to use call_used_regs
13499 (mips_conditional_register_usage): Likewise.
13500 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13501 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13502 instead of call_really_used_regs.
13503 (mn10300_get_live_callee_saved_regs): Likewise.
13504 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13505 (mn10300_conditional_register_usage): Don't set call_used_regs when
13506 making a register fixed.
13507 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13508 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13509 Remove the old handling of call_used_regs and change the handling
13510 of call_really_used_regs to use call_used_regs instead.
13511 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13512 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13513 instead of call_really_used_regs.
13514 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13515 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13516 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13517 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13518 (s390_conditional_register_usage): Remove the old handling of
13519 call_used_regs and change the handling of call_really_used_regs
13520 to use call_used_regs instead.
13521 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13522 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13523 (sh_fix_range, reg_unused_after): Likewise.
13524 (sh_conditional_register_usage): Remove the old handling of
13525 call_used_regs and change the handling of call_really_used_regs
13526 to use call_used_regs instead.
13527 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13528 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13529 call_used_regs when making a register fixed.
13530 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13531 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13532 call_used_regs when making a register fixed.
13533 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13534 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13535 set call_used_regs when making a register fixed.
13536 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13537 * config/visium/visium.c (visium_conditional_register_usage): Remove
13538 the old handling of call_used_regs and change the handling of
13539 call_really_used_regs to use call_used_regs instead.
13541 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13543 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13544 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13545 * reginfo.c (call_used_regs): New macro.
13547 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13549 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13551 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13552 (bpf_expand_epilogue): Likewise.
13553 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13554 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13555 (ft32_expand_epilogue): Likewise.
13556 * config/i386/i386.c (ix86_save_reg): Likewise.
13557 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13558 (moxie_expand_epilogue): Likewise.
13559 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13560 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13561 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13563 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13565 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13566 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13567 instead of testing call_used_regs directly.
13568 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13569 (aarch64_components_for_bb): Likewise.
13570 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13571 * config/arc/arc.c (arc_must_save_register): Likewise.
13572 (arc_epilogue_uses): Likewise.
13573 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13574 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13575 (arm_compute_save_reg0_reg12_mask): Likewise.
13576 (arm_compute_save_core_reg_mask): Likewise.
13577 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13578 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13579 (cmse_nonsecure_entry_clear_before_return): Likewise.
13580 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13581 (arm_expand_epilogue): Likewise.
13582 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13583 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13584 (_reg_unused_after): Likewise.
13585 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13586 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13587 (add_to_reg, hwloop_optimize): Likewise.
13588 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13589 (bpf_expand_epilogue): Likewise.
13590 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13591 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13592 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13593 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13594 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13595 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13596 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13597 * config/frv/frv.c (frv_stack_info): Likewise.
13598 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13599 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13600 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13601 (move_callee_saved_registers): Likewise.
13602 * config/h8300/h8300.c (byte_reg): Likewise.
13603 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13604 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13605 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13606 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13607 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13608 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13609 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13610 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13611 * config/m32c/m32c.c (need_to_save): Likewise.
13612 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13613 * config/mcore/mcore.c (calc_live_regs): Likewise.
13614 * config/microblaze/microblaze.c (microblaze_must_save_register):
13616 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13617 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13618 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13619 (mmix_expand_epilogue): Likewise.
13620 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13621 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13622 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13623 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13624 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13625 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13626 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13627 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13628 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13629 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13630 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13631 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13632 * config/rl78/rl78.c (need_to_save): Likewise.
13633 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13634 (rs6000_stack_info, generate_set_vrsave): Likewise.
13635 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13636 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13637 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13638 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13639 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13640 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13641 (save_local_or_in_reg_p): Likewise.
13642 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13643 (xstormy16_epilogue_uses): Likewise.
13644 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13645 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13646 * config/v850/v850.c (compute_register_save_size): Likewise.
13647 * config/vax/vax.c (vax_expand_prologue): Likewise.
13648 * config/visium/visium.c (visium_save_reg_p): Likewise.
13649 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13650 * cselib.c (cselib_process_insn): Likewise.
13651 * df-scan.c (df_get_entry_block_def_set): Likewise.
13652 * function.c (aggregate_value_p): Likewise.
13653 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13654 * ira-lives.c (process_bb_node_lives): Likewise.
13655 * ira.c (do_reload): Likewise.
13656 * lra-lives.c (process_bb_lives): Likewise.
13657 * lra-remat.c (lra_remat): Likewise.
13658 * lra.c (lra): Likewise.
13659 * postreload.c (reload_combine_recognize_pattern): Likewise.
13660 (reload_cse_move2add): Likewise.
13661 * recog.c (peep2_find_free_register): Likewise.
13662 * regrename.c (check_new_reg_p): Likewise.
13663 * reload.c (find_equiv_reg): Likewise.
13664 * reload1.c (reload, find_reg): Likewise.
13665 * sel-sched.c (init_hard_regs_data): Likewise.
13667 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13669 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13670 regs_invalidated_by_call & ~fixed_reg_set instead of
13671 call_used_or_fixed_regs & ~fixed_reg_set.
13672 * config/sh/sh.c (output_stack_adjust): Likewise.
13674 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13676 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13677 (call_used_reg_set): Delete.
13678 (call_used_or_fixed_regs): New macro.
13679 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13680 of call_used_reg_set.
13681 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13682 instead of call_used_regs.
13683 (save_call_clobbered_regs): Likewise.
13684 * cfgcleanup.c (old_insns_match_p): Likewise.
13685 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13686 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13688 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13689 * config/sh/sh.c (output_stack_adjust): Likewise.
13690 * final.c (collect_fn_hard_reg_usage): Likewise.
13691 * ira-build.c (ira_build): Likewise.
13692 * ira-color.c (calculate_saved_nregs): Likewise.
13693 (allocno_reload_assign, calculate_spill_cost): Likewise.
13694 * ira-conflicts.c (ira_build_conflicts): Likewise.
13695 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13696 * ira-lives.c (process_bb_node_lives): Likewise.
13697 * ira.c (setup_reg_renumber): Likewise.
13698 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13699 * lra-constraints.c (need_for_call_save_p): Likewise.
13700 (need_for_split_p, inherit_in_ebb): Likewise.
13701 * lra-lives.c (process_bb_lives): Likewise.
13702 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13703 * postreload.c (reload_combine): Likewise.
13704 * regrename.c (find_rename_reg): Likewise.
13705 * reload1.c (reload_as_needed): Likewise.
13706 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13707 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13708 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13710 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13712 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13713 (no_caller_save_reg_set): Delete.
13714 * caller-save.c (init_caller_save): Don't initialize it.
13715 * ira-conflicts.c (ira_build_conflicts): Calculate
13716 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13718 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13720 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13721 (target_hard_regs::x_savable_regs): New field.
13722 (call_fixed_reg_set): Delete.
13723 (savable_regs): New macro,
13724 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13725 (init_reg_sets_1): Likewise. Initialize savable_regs.
13726 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13727 for all registers. Set savable_regs instead of call_fixed_reg_set.
13728 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13729 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13730 * config/sh/sh.c (output_stack_adjust): Likewise.
13732 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13734 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13735 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13736 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13738 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13740 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13741 * rtlanal.c (get_call_rtx_from): Likewise.
13742 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13743 than the pattern to get_call_rtx_from.
13744 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13745 an rtx_insn * instead of an rtx.
13746 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13748 2019-09-10 Martin Liska <mliska@suse.cz>
13750 * common.opt: Use newly added WarnRemoved.
13751 * config/aarch64/aarch64.opt: Likewise.
13752 * config/arm/arm.opt: Likewise.
13753 * config/i386/i386.opt: Likewise.
13754 * config/ia64/ia64.opt: Likewise.
13755 * config/rs6000/rs6000.opt: Likewise.
13756 * doc/options.texi: Document WarnRemoved properly.
13757 * dwarf2out.c (gen_producer_string): Handle renamed
13758 OPT_SPECIAL_warn_removed.
13759 * lto-opts.c (lto_write_options): Likewise.
13760 * lto-wrapper.c (merge_and_complain): Likewise.
13761 * opts-common.c (decode_cmdline_option): Likewise.
13762 (prune_options): Likewise.
13763 (read_cmdline_option): Likewise.
13764 (control_warning_option): Likewise.
13765 * opts.c (print_filtered_help): Likewise.
13766 * optc-gen.awk: Parse for WarnRemoved and make usage
13767 of Deprecated an error.
13768 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13770 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13772 * doc/install.texi: Fix syntax for html generation.
13774 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13776 PR middle-end/91680
13777 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13778 the shift type to type.
13780 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13782 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13784 (stack_protect_combined_test_insn): Likewise.
13786 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13787 Mickaël Guêné <mickael.guene@st.com>
13789 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13790 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13791 (load_tp_soft_fdpic): New pattern.
13792 (load_tp_soft): Disable in FDPIC mode.
13794 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13795 Mickaël Guêné <mickael.guene@st.com>
13797 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13798 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13799 (arm_call_tls_get_addr): Add FDPIC support.
13800 (legitimize_tls_address): Likewise.
13801 (arm_emit_tls_decoration): Likewise.
13803 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13804 Mickaël Guêné <mickael.guene@st.com>
13806 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13808 (arm_trampoline_init): Likewise.
13809 (arm_trampoline_adjust_address): Likewise.
13810 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13812 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13813 Mickaël Guêné <mickael.guene@st.com>
13815 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13816 (legitimize_pic_address): Enforce binding rules on function
13817 pointers in FDPIC mode.
13818 (arm_assemble_integer): Likewise.
13820 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13821 Mickaël Guêné <mickael.guene@st.com>
13823 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13824 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13827 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13828 Mickaël Guêné <mickael.guene@st.com>
13830 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13833 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13834 Mickaël Guêné <mickael.guene@st.com>
13836 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13838 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13840 * config/arm/arm.c (arm_option_override): Define pic register to
13842 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13843 have no decl or go through PLT.
13844 (calculate_pic_address_constant): New function.
13845 (legitimize_pic_address): Call calculate_pic_address_constant.
13846 (arm_load_pic_register): Handle TARGET_FDPIC.
13847 (arm_is_segment_info_known): New function.
13848 (arm_pic_static_addr): Add support for FDPIC.
13849 (arm_load_function_descriptor): New function.
13850 (arm_emit_call_insn): Add support for FDPIC.
13851 (arm_assemble_integer): Add support for FDPIC.
13852 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13853 Define. (FDPIC_REGNUM): New define.
13854 * config/arm/arm.md (call): Add support for FDPIC.
13855 (call_value): Likewise.
13856 (restore_pic_register_after_call): New pattern.
13857 (untyped_call): Disable if FDPIC.
13858 (untyped_return): Likewise.
13859 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13861 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13862 Mickaël Guêné <mickael.guene@st.com>
13864 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13865 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13866 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13867 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13868 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13869 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13870 * config/arm/uclinuxfdpiceabi.h: New file.
13872 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13874 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13876 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13877 Mickaël Guêné <mickael.guene@st.com>
13879 * config/arm/arm.opt: Add -mfdpic option.
13880 * doc/invoke.texi: Add documentation for -mfdpic.
13882 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13884 * expmed.c (extract_bit_field): Update function comment
13886 * expr.c (expand_expr_real): Update function comment
13888 (expand_misaligned_mem_ref): New helper function.
13889 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13890 Remove duplicate assignment to "base" at case MEM_REF.
13891 Remove a shadowed variable "unsignedp" at case VCE.
13893 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13895 * regset.h (regs_invalidated_by_call_regset): Delete.
13896 (fixed_reg_set_regset): Likewise.
13897 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13898 (fixed_reg_set_regset, persistent_obstack): Likewise.
13899 (init_reg_sets_1, globalize_reg): Update accordingly.
13900 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13901 instead of a bitmap.
13902 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13903 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13904 instead of regs_invalidated_by_call_regset.
13905 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13906 * df-scan.c (df_scan_start_dump): Likewise.
13907 * dse.c (copy_fixed_regs): Likewise.
13908 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13910 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13912 * array-traits.h: New file.
13913 * coretypes.h (array_traits, bitmap_view): New types.
13914 * bitmap.h: Include "array-traits.h"
13915 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13916 (base_bitmap_view, bitmap_view): New classes.
13917 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13918 * hard-reg-set.h: Include array-traits.h.
13919 (array_traits<HARD_REG_SET>): New struct.
13920 * regset.h (IOR_REG_SET_HRS): New macro.
13921 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13922 rather than iterating over each hard register.
13923 * sched-deps.c (sched_analyze_insn): Likewise.
13924 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13926 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13928 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13929 instead of a HARD_REG_SET *.
13930 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13931 (ira_build): Update call accordingly.
13932 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13934 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13936 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13937 (HARD_REG_SET::operator!=): Likewise.
13938 (hard_reg_set_equal_p): Delete.
13939 * cfgcleanup.c (old_insns_match_p): Use == instead of
13940 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13941 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13942 (add_allocno_hard_regs_to_forest): Likewise.
13943 (setup_allocno_available_regs_num): Likewise.
13944 * ira.c (setup_pressure_classes): Likewise.
13945 (setup_allocno_and_important_classes): Likewise.
13946 (setup_reg_class_relations): Likewise.
13947 * lra-lives.c (process_bb_lives): Likewise.
13948 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13950 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13952 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13953 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13954 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13955 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13957 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13958 * ira.c (setup_reg_renumber): Likewise.
13959 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13960 * regrename.c (regrename_find_superclass): Likewise.
13961 * reload1.c (find_reg): Likewise.
13963 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13965 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13966 * caller-save.c (setup_save_areas): Use "&~" instead of
13967 AND_COMPL_HARD_REG_SET.
13968 (save_call_clobbered_regs): Likewise.
13969 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13971 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13972 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13973 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13974 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13975 (mips_conditional_register_usage): Likewise.
13976 * config/sh/sh.c (output_stack_adjust): Likewise.
13977 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13978 (setup_profitable_hard_regs): Likewise.
13979 (get_conflict_and_start_profitable_regs): Likewise.
13980 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13981 (ira_build_conflicts): Likewise.
13982 * ira-costs.c (restrict_cost_classes): Likewise.
13983 (setup_regno_cost_classes_by_aclass): Likewise.
13984 * ira-lives.c (process_bb_node_lives): Likewise.
13985 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13986 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13987 (setup_allocno_and_important_classes, setup_class_translate_array)
13988 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13990 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13991 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13992 (process_alt_operands, inherit_in_ebb): Likewise.
13993 * lra-eliminations.c (update_reg_eliminate): Likewise.
13994 * lra-lives.c (process_bb_lives): Likewise.
13995 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13996 * resource.c (find_dead_or_set_registers): Likewise.
13997 (mark_target_live_regs): Likewise.
13998 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13999 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14000 (implicit_clobber_conflict_p): Likewise.
14001 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14002 (try_shrink_wrapping): Likewise.
14004 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14006 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14007 (HARD_REG_SET::operator|=): Likewise.
14008 (IOR_HARD_REG_SET): Delete.
14009 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14011 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14012 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14013 * final.c (collect_fn_hard_reg_usage): Likewise.
14014 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14015 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14016 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14017 (propagate_some_info_from_allocno): Likewise.
14018 (copy_info_to_removed_store_destinations): Likewise.
14019 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14020 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14021 (fast_allocation): Likewise.
14022 * ira-conflicts.c (ira_build_conflicts): Likewise.
14023 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14024 (process_bb_node_lives): Likewise.
14025 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14026 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14027 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14028 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14029 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14030 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14031 (process_bb_lives): Likewise.
14032 * lra-spills.c (assign_spill_hard_regs): Likewise.
14033 * postreload.c (reload_combine): Likewise.
14034 * reginfo.c (init_reg_sets_1): Likewise.
14035 * regrename.c (merge_overlapping_regs, find_rename_reg)
14036 (merge_chains): Likewise.
14037 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14038 (find_reload_regs, finish_spills, choose_reload_regs_init)
14039 (emit_reload_insns): Likewise.
14040 * reorg.c (redundant_insn): Likewise.
14041 * resource.c (find_dead_or_set_registers, mark_set_resources)
14042 (mark_target_live_regs): Likewise.
14043 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14044 * sched-deps.c (sched_analyze_insn): Likewise.
14045 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14046 (find_best_reg_for_expr): Likewise.
14047 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14049 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14051 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14052 (HARD_REG_SET::operator&): Likewise.
14053 (AND_HARD_REG_SET): Delete.
14054 * caller-save.c (setup_save_areas): Use "&" instead of
14056 (save_call_clobbered_regs): Likewise.
14057 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14058 * config/m32c/m32c.c (reduce_class): Likewise.
14059 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14060 * final.c (get_call_reg_set_usage): Likewise.
14061 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14062 (setup_left_conflict_sizes_p): Likewise.
14063 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14064 (ira_build_conflicts): Likewise.
14065 * ira-costs.c (restrict_cost_classes): Likewise.
14066 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14067 (setup_reg_class_relations): Likewise.
14068 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14069 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14070 * resource.c (find_dead_or_set_registers): Likewise.
14071 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14073 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14075 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14076 (COMPL_HARD_REG_SET): Delete.
14077 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14078 of COMPL_HARD_REG_SET.
14079 (try_rename_operands): Likewise.
14080 * config/sh/sh.c (push_regs): Likewise.
14081 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14082 * lra-constraints.c (contains_reg_p): Likewise.
14083 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14085 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14087 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14088 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14089 of COPY_HARD_REG_SET.
14090 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14091 (epiphany_conditional_register_usage): Likewise.
14092 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14093 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14094 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14095 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14096 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14097 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14098 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14099 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14100 * config/sh/sh.c (output_stack_adjust): Likewise.
14101 * final.c (collect_fn_hard_reg_usage): Likewise.
14102 (get_call_reg_set_usage): Likewise.
14103 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14104 (ira_flattening): Likewise.
14105 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14106 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14107 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14108 (ira_reassign_pseudos): Likewise.
14109 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14110 (ira_build_conflicts): Likewise.
14111 * ira-costs.c (restrict_cost_classes): Likewise.
14112 (setup_regno_cost_classes_by_aclass): Likewise.
14113 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14114 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14115 (setup_stack_reg_pressure_class, setup_pressure_classes)
14116 (setup_allocno_and_important_classes, setup_class_translate_array)
14117 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14118 (ira_setup_eliminable_regset): Likewise.
14119 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14120 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14121 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14122 (process_alt_operands, inherit_in_ebb): Likewise.
14123 * lra-lives.c (process_bb_lives): Likewise.
14124 * lra-spills.c (assign_spill_hard_regs): Likewise.
14125 * lra.c (lra): Likewise.
14126 * mode-switching.c (new_seginfo): Likewise.
14127 * postreload.c (reload_combine): Likewise.
14128 * reg-stack.c (straighten_stack): Likewise.
14129 * reginfo.c (save_register_info, restore_register_info): Likewise.
14130 (init_reg_sets_1, record_subregs_of_mode): Likewise
14131 * regrename.c (create_new_chain, rename_chains): Likewise.
14132 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14133 (find_reload_regs): Likewise.
14134 * resource.c (find_dead_or_set_registers): Likewise.
14135 (mark_target_live_regs): Likewise.
14136 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14138 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14140 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14141 (note_pattern_stores): Declare.
14142 (note_stores): Take an rtx_insn *.
14143 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14144 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14145 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14146 (note_stores): Take an rtx_insn * as argument and process
14147 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14148 (note_pattern_stores): ...this.
14149 (find_first_parameter_load): Pass the insn rather than
14150 its pattern to note_stores.
14151 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14152 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14153 (insert_one_insn): Likewise.
14154 * combine.c (combine_instructions): Likewise.
14155 (likely_spilled_retval_p): Likewise.
14156 (try_combine): Use note_pattern_stores instead of note_stores.
14157 (record_dead_and_set_regs): Pass the insn rather than its pattern
14159 (reg_dead_at_p): Likewise.
14160 * config/bfin/bfin.c (workaround_speculation): Likewise.
14161 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14162 rather than an rtx.
14163 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14164 instead of note_stores.
14165 (frv_optimize_membar_local): Pass the insn rather than its pattern
14167 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14168 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14169 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14170 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14171 (mips_reorg_process_insns): Likewise.
14172 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14173 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14175 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14176 its pattern to note_stores.
14177 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14179 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14180 the insn to note_stores.
14181 (prescan_insns_for_dce): Update call accordingly.
14182 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14184 * df-problems.c (can_move_insns_across): Likewise.
14185 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14186 * function.c (assign_parm_setup_reg): Likewise.
14187 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14188 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14189 (single_set_gcse): Likewise.
14190 * ira.c (validate_equiv_mem): Likewise.
14191 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14193 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14194 pattern to note_stores.
14195 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14196 * loop-iv.c (simplify_using_initial_values): Likewise.
14197 * mode-switching.c (optimize_mode_switching): Likewise.
14198 * optabs.c (emit_libcall_block_1): Likewise.
14199 (expand_atomic_compare_and_swap): Likewise.
14200 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14201 (record_opr_changes): Likewise. Remove explicit handling of
14202 CALL_INSN_FUNCTION_USAGE.
14203 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14204 * regcprop.c (kill_clobbered_values): Likewise.
14205 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14207 * regrename.c (build_def_use): Likewise.
14208 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14209 for mark_not_eliminable.
14210 (reload_as_needed): Pass the insn rather than its pattern
14212 (emit_output_reload_insns): Likewise.
14213 * resource.c (mark_target_live_regs): Likewise.
14214 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14215 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14216 instead of note_stores.
14217 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14218 its pattern to note_stores.
14219 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14220 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14222 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14224 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14225 than a #define. Use a structure rather than an array as the
14226 fallback definition. Remove special cases for low array sizes.
14227 (const_hard_reg_set): New typedef.
14228 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14229 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14230 (hard_reg_set_empty_p): Likewise.
14231 (SET_HARD_REG_BIT): Use a function rather than a macro to
14232 handle the case in which HARD_REG_SET is a structure.
14233 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14234 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14235 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14236 (IOR_COMPL_HARD_REG_SET): Likewise.
14237 (hard_reg_set_iterator::pset): Constify the pointer target.
14238 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14239 of a "const HARD_REG_SET". Update the handling of non-integer
14241 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14242 * reload.h: Likewise.
14243 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14244 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14245 of a "const HARD_REG_SET".
14246 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14247 (range_in_hard_reg_set_p): Likewise.
14248 * ira-costs.c (restrict_cost_classes): Likewise.
14249 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14250 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14251 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14252 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14253 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14254 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14255 take an unsigned int and open-code the HARD_REG_SET operations.
14257 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14259 * Makefile.in (OBJS): Remove bt-load.o.
14260 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14261 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14262 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14263 document that the option no longer does anything.
14264 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14265 * target.def (branch_target_register_class): Delete.
14266 (branch_target_register_callee_saved): Likewise.
14267 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14268 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14269 * doc/tm.texi: Regenerate.
14270 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14271 (make_pass_branch_target_load_optimize2): Likewise.
14272 * passes.def (pass_branch_target_load_optimize1): Likewise.
14273 (pass_branch_target_load_optimize2): Likewise.
14274 * targhooks.h (default_branch_target_register_class): Likewise.
14275 * targhooks.c (default_branch_target_register_class): Likewise.
14276 * opt-suggestions.c (test_completion_valid_options): Remove
14277 -fbtr-bb-exclusive from the list of test options.
14278 * bt-load.c: Remove.
14280 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14282 * match.pd: Add flag_unsafe_math_optimizations check
14283 before deciding on the widest type in a binary math operation.
14285 2019-09-09 Martin Liska <mliska@suse.cz>
14287 * config/i386/i386.opt: Update comment of removed
14288 options that are preserved only for backward
14291 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14294 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14295 instead of __v16qs.
14298 * config/i386/avxintrin.h (__v32qs): New typedef.
14299 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14300 instead of __v32qi.
14302 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14304 * doc/invoke.texi (Option Summary): Cover eBPF.
14305 (eBPF Options): New section.
14306 * doc/extend.texi (BPF Built-in Functions): Likewise.
14307 (BPF Kernel Helpers): Likewise.
14309 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14311 * config.gcc: Support for bpf-*-* targets.
14312 * common/config/bpf/bpf-common.c: New file.
14313 * config/bpf/t-bpf: Likewise.
14314 * config/bpf/predicates.md: Likewise.
14315 * config/bpf/constraints.md: Likewise.
14316 * config/bpf/bpf.opt: Likewise.
14317 * config/bpf/bpf.md: Likewise.
14318 * config/bpf/bpf.h: Likewise.
14319 * config/bpf/bpf.c: Likewise.
14320 * config/bpf/bpf-protos.h: Likewise.
14321 * config/bpf/bpf-opts.h: Likewise.
14322 * config/bpf/bpf-helpers.h: Likewise.
14323 * config/bpf/bpf-helpers.def: Likewise.
14325 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14327 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14330 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14332 * opt-functions.awk (integer_range_info): Make sure values are in
14333 numeric context before operating with them.
14335 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14337 * genemit.c (gen_split): Print the filename and line number where the
14338 splitter (or peephole2) was defined, to the dump file.
14340 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14342 PR tree-optimization/91665
14343 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14344 incompatible with the type of PHI result.
14346 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14349 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14350 gen_unaligned_storedi for 4-byte aligned addresses.
14352 2019-09-06 Jim Wilson <jimw@sifive.com>
14354 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14357 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14359 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14361 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14363 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14364 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14366 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14369 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14370 cost of SSE->integer and integer->SSE moves from 2 to 6.
14371 (core_cost): Ditto.
14373 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14375 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14376 before testing TYPE_TRANSPARENT_AGGR.
14377 * calls.c (initialize_argument_information, load_register_parameters):
14380 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14382 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14384 (cmp_ior): Likewise.
14386 2019-09-06 Martin Liska <mliska@suse.cz>
14388 * doc/match-and-simplify.texi: Separate tuples with ;.
14390 2019-09-06 Martin Liska <mliska@suse.cz>
14393 * Makefile.in: Remove tlink.o.
14394 * collect2.c (do_link): New function isolated
14397 * collect2.h (do_tlink): Remove declaration of do_tlink.
14398 * doc/extend.texi: Remove documentation of -frepo.
14399 * doc/invoke.texi: Likewise.
14400 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14403 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14404 Jim Wilson <jimw@sifive.com>
14407 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14408 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14409 paradoxical_subreg_p (operands[0]).
14410 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14411 use as intermediate value.
14413 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14415 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14416 (sync_compare_and_swap<mode>_insn): Likewise.
14418 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14420 PR middle-end/91615
14421 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14422 without movmisalign optab.
14424 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14426 PR middle-end/91001
14427 PR middle-end/91105
14428 PR middle-end/91106
14429 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14430 types, use type of their first field instead of type of
14431 args[i].tree_value.
14433 2019-09-05 Richard Biener <rguenther@suse.de>
14435 PR rtl-optimization/91656
14436 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14439 2019-09-05 Richard Biener <rguenther@suse.de>
14441 PR middle-end/90501
14442 * tree-inline.c (declare_return_variable): Mark the return
14443 slot as addressable after building an address of it.
14445 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14447 * doc/install.texi: Update and clarify requirements to build GNAT.
14449 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14451 PR middle-end/91577
14452 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14453 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14454 call to be in memory.
14455 (pass_expand::execute): Call discover_nonconstant_array_refs before
14456 setting currently_expanding_to_rtl.
14458 2019-09-04 Caroline Tice <cmtice@google.com>
14460 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14461 specified together.
14463 2019-09-04 Marek Polacek <polacek@redhat.com>
14465 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14467 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14470 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14471 for QI and HImode moves between SSE and general registers.
14473 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14476 * doc/invoke.texi: Document -Wenum-conversion.
14478 2019-09-04 Richard Biener <rguenther@suse.de>
14480 PR rtl-optimization/36262
14481 * postreload-gcse.c: Include intl.h and gcse.h.
14482 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14483 to avoid linear list walk.
14484 (record_last_mem_set_info): Gate off if not computing transparentness.
14485 (get_bb_avail_insn): If transparentness isn't computed give up
14487 (gcse_after_reload_main): Skip compute_transp and extended PRE
14488 if gcse_or_cprop_is_too_expensive says so.
14490 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14492 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14494 (msp430_select_section): Handle decls with the "noinit" attribute with
14495 default_elf_select_section.
14496 Handle SECCAT_RODATA_MERGE_* section types with
14497 default_elf_select_section.
14498 Add comments about handling of unsupported section types.
14499 (msp430_section_type_flags): Remove handling of the noinit section.
14501 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14503 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14504 conflicting msp430-specific attributes.
14505 (msp430_section_attr): Likewise.
14506 Add warnings about conflicts with generic "noinit" and "section"
14508 Fix grammar in -mlarge error message.
14509 (msp430_data_attr): Rename to msp430_persist_attr.
14510 Add warnings about conflicts with generic "noinit" and "section"
14512 Add warning for when variable is not initialized.
14513 Chain conditionals which prevent the attribute being added.
14514 (ATTR_EXCL): New helper.
14515 (attr_reent_exclusions): New exclusion table.
14516 (attr_naked_exclusions): Likewise.
14517 (attr_crit_exclusions): Likewise.
14518 (attr_lower_exclusions): Likewise.
14519 (attr_upper_exclusions): Likewise.
14520 (attr_either_exclusions): Likewise.
14521 (attr_persist_exclusions): Likewise.
14522 (msp430_attribute_table): Update with exclusion rules.
14523 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14526 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14528 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14529 (msp430_handle_generic_attribute): New function.
14530 * doc/tm.texi: Regenerate.
14531 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14532 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14533 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14534 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14536 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14538 PR tree-optimization/91504
14539 * match.pd: Add ((~a & b) ^a) --> (a | b).
14541 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14544 * config/i386/i386-expand.c (split_double_mode): If there is more than
14545 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14546 already split matching MEM operand instead of calling adjust_address
14549 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14551 * config.gcc: Obsolete spu target. Remove references to spu.
14552 * configure.ac: Remove references to spu.
14553 * configure: Regenerate.
14554 * config/spu/: Remove directory.
14555 * common/config/spu/: Remove directory.
14557 * doc/extend.texi: Remove references to spu.
14558 * doc/invoke.texi: Likewise.
14559 * doc/md.texi: Likewise.
14560 * doc/sourcebuild.texi: Likewise.
14562 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14564 PR middle-end/91603
14565 PR middle-end/91612
14566 PR middle-end/91613
14567 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14568 and SSA_NAME referring to CONSTANT_P correctly.
14570 2019-09-03 Richard Biener <rguenther@suse.de>
14572 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14573 (vn_nary_op_insert): Likewise.
14574 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14575 (vn_nary_op_lookup): Likewise.
14576 (vn_nary_op_insert): Likewise.
14578 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14580 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14581 (*op0, 1) instead of XEXP (*op1, 0).
14583 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14585 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14586 (aarch64_fjcvtzs): New define_insn.
14587 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14588 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14590 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14591 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14592 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14593 __ARM_FEATURE_JCVT where appropriate.
14594 * config/aarch64/arm_acle.h (__jcvt): Define.
14596 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14598 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14599 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14600 (aarch64_<frintnzs_op><mode>): New define_insn.
14601 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14602 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14603 __ARM_FEATURE_FRINT when appropriate.
14604 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14605 frint32x, frint64z, frint64x.
14606 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14607 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14608 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14609 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14610 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14611 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14612 * config/aarch64/iterators.md (VSFDF): Define.
14613 (FRINTNZX): Likewise.
14614 (frintnzs_op): Likewise.
14616 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14618 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14619 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14621 * config/aarch64/aarch64-tune.md: Regenerated.
14622 * doc/invoke.texi: Document the new processors.
14624 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14626 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14630 (sve2-sm4): Likewise.
14631 (sveaes): Likewise.
14632 (svesha3): Likewise.
14633 (svebitperm): Likewise.
14635 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14636 Richard Biener <rguenther@suse.de>
14638 PR tree-optimization/91597
14639 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14640 BIT_AND_EXPR optimization for pointers, even if both operand
14641 ranges don't include NULL, the result can be NULL.
14643 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14645 PR middle-end/91605
14646 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14647 (non_mem_decl_p): ...this.
14648 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14649 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14650 unconditionally as before.
14652 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14655 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14656 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14657 * tree.def (LTGT_EXPR): Likewise.
14658 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14660 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14663 * fold-const.c (range_check_type): For enumeral and boolean
14664 type, pass 1 to type_for_size langhook instead of
14665 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14666 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14667 (build_range_check): Don't call unsigned_type_for for pointer types.
14668 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14669 range_check_type result.
14671 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14673 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14674 (replace_ref): Do not replace a chain of only two candidates which are
14675 valid memory references.
14677 2019-09-02 Martin Liska <mliska@suse.cz>
14679 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14680 Bail out when we'll end up with the same number of clusters as
14682 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14683 (jump_table_cluster::can_be_handled): Remove the guard
14684 as it's already handled in ::is_enabled. Allocate output
14685 after early bail out.
14687 2019-09-02 Martin Liska <mliska@suse.cz>
14689 PR gcov-profile/91601
14690 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14691 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14692 also negative edges.
14693 (circuit): Handle also negative edges as they can happen
14694 in some situations.
14696 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14699 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14700 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14701 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14703 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14705 PR middle-end/91623
14706 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14707 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14708 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14712 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14713 GIMPLE_ASM TREE_LIST operands.
14715 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14717 * doc/generic.texi (Unary and Binary Expressions): Mark up
14718 an instance of TYPE_MIN.
14720 2019-08-31 Stafford Horne <shorne@gmail.com>
14722 * config/or1k/constraints.md (t): New constraint.
14723 * config/or1k/or1k.h (GOT_REGS): New register class.
14724 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14726 2019-08-30 Jim Wilson <jimw@sifive.com>
14728 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14729 and -fpic and -mplt then disable -msave-restore and warn.
14731 2019-08-30 Martin Sebor <msebor@redhat.com>
14733 PR middle-end/91599
14734 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14735 the statement doesn't have one.
14736 * gimple-pretty-print.c (percent_G_format): Same.
14738 PR middle-end/91584
14739 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14740 before using them to validate MEM_REF offset.
14742 2019-08-30 Marek Polacek <polacek@redhat.com>
14744 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14746 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14748 * config/arm/arm.md (unaligned_loaddi,
14749 unaligned_storedi): New unspec insn patterns.
14750 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14751 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14752 and unaligned_storedi for 4-byte aligned memory.
14753 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14754 4-byte aligned memory.
14756 2019-08-30 Martin Jambor <mjambor@suse.cz>
14758 tree-optimization/91579
14759 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14760 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14762 (arg_needs_copy_p): Removed.
14763 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14765 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14767 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14769 * config/i386/i386-features.c
14770 (general_scalar_chain::compute_convert_gain):
14771 Correct cost for double-word shifts.
14772 (general_scalar_to_vector_candidate_p): Reject count operands
14773 greater or equal to mode bitsize.
14775 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14777 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14778 for moves between SSE and non-general registers and between
14779 mask and non-general registers.
14780 (ix86_register_move_cost): Remove stalled comment.
14782 2019-08-29 Richard Biener <rguenther@suse.de>
14784 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14785 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14787 2019-08-29 Richard Biener <rguenther@suse.de>
14790 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14791 Do not emit scalar copies for debug-insns, instead replace
14792 their uses with the reg copy used in the chain or reset them
14793 if there is a reaching definition outside of the chain as well.
14795 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14798 * config/i386/i386-expand.c (expand_vec_perm_movs,
14799 expand_vec_perm_blend, expand_vec_perm_vpermil,
14800 expand_vec_perm_pshufb, expand_vec_perm_1,
14801 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14802 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14803 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14804 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14805 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14806 comments - replace ix86_expand_vec_perm_builtin_1 with
14807 ix86_expand_vec_perm_const_1.
14808 (expand_vec_perm2_vperm2f128_vblend): New function.
14809 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14810 expand_vec_perm2_vperm2f128_vblend as last resort.
14811 (canonicalize_perm): Formatting fix.
14813 PR tree-optimization/91351
14814 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14816 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14817 range_check_type returns NULL.
14818 * tree-switch-conversion.c (switch_conversion::build_one_array):
14819 Use range_check_type instead of unsigned_type_for, don't perform
14820 linear opt if it returns NULL.
14821 (bit_test_cluster::find_bit_tests): Formatting fix.
14822 (bit_test_cluster::emit): Use range_check_type instead of
14824 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14827 2019-08-29 Richard Biener <rguenther@suse.de>
14829 PR tree-optimization/91568
14830 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14831 (vect_update_max_nunits): Add overload for poly_uint64.
14832 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14833 (vect_build_slp_tree): Record max_nunits into the subtree
14834 and merge it upwards.
14835 (vect_print_slp_tree): Print max_nunits.
14837 2019-08-28 Marek Polacek <polacek@redhat.com>
14839 Implement P1152R4: Deprecating some uses of volatile.
14841 * doc/invoke.texi: Document -Wvolatile.
14843 2019-08-28 Marek Polacek <polacek@redhat.com>
14845 PR c++/91360 - Implement C++20 P1143R2: constinit.
14846 * doc/invoke.texi: Document -Wc++20-compat.
14848 2019-08-28 Martin Sebor <msebor@redhat.com>
14850 PR tree-optimization/91457
14851 * builtins.c (component_size): New function.
14852 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14853 * builtins.h (compute_objsize): Add argument.
14854 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14855 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14856 (vrp_prop::check_mem_ref): Same.
14857 (vrp_prop::search_for_addr_array): Set no-warning bit.
14858 (check_array_bounds): Same.
14860 2019-08-28 Martin Sebor <msebor@redhat.com>
14863 * opts-common.c (option_enabled): Correct checking for language
14866 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14868 * config/i386/i386.c (ix86_register_move_cost): Do not
14869 limit the cost of moves to/from XMM register to minimum 8.
14871 2019-08-28 Martin Jambor <mjambor@suse.cz>
14874 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14875 checking assert a normal assert to test it really is redundant.
14876 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14878 (update_jump_functions_after_inlining): Removed combining unary
14879 arithmetic operations with an ancestor jump function.
14880 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14883 2019-08-28 Richard Biener <rguenther@suse.de>
14885 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14886 add the MD problem.
14888 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14889 Richard Biener <rguenther@suse.de>
14891 * expr.c (expand_assignment): Handle misaligned DECLs.
14892 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14893 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14895 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14896 * varasm.c (build_constant_desc): Align constants of misaligned types.
14897 * config/arm/predicates.md (aligned_operand): New predicate.
14898 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14899 aligned_operand to check restrictions on memory addresses.
14900 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14901 * config/arm/vec-common.md (mov<VALL>): Likewise.
14903 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14906 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14907 V_128 iterator instead of VI_128.
14909 2019-08-28 Martin Liska <mliska@suse.cz>
14911 PR tree-optimization/90970
14912 * builtins.c (check_access): Remove assignment to maxread
14913 as it hasn't been used since when it was introduced in r255755.
14915 2019-08-27 Martin Sebor <msebor@redhat.com>
14917 PR tree-optimization/91567
14918 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14919 of unknown strings.
14920 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14921 to PTRDIFF_MAX - 2.
14923 2019-08-27 Jeff Law <law@redhat.com>
14925 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14926 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14928 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14931 * config/i386/i386-features.c (convert_scalars_to_vector):
14932 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14933 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14934 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14935 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14937 2019-08-27 Richard Biener <rguenther@suse.de>
14939 * config/i386/i386-features.h
14940 (general_scalar_chain::~general_scalar_chain): Add.
14941 (general_scalar_chain::insns_conv): New bitmap.
14942 (general_scalar_chain::n_sse_to_integer): New.
14943 (general_scalar_chain::n_integer_to_sse): Likewise.
14944 (general_scalar_chain::make_vector_copies): Adjust signature.
14945 * config/i386/i386-features.c
14946 (general_scalar_chain::general_scalar_chain): Outline,
14947 initialize new members.
14948 (general_scalar_chain::~general_scalar_chain): New.
14949 (general_scalar_chain::mark_dual_mode_def): Record insns
14950 we need to insert conversions at and count them.
14951 (general_scalar_chain::compute_convert_gain): Account
14952 for conversion instructions at chain boundary.
14953 (general_scalar_chain::make_vector_copies): Generate a single
14954 copy for a def by a specific insn.
14955 (general_scalar_chain::convert_registers): First populate
14956 defs_map, then make copies at out-of chain insns.
14958 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14960 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14962 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14964 2019-08-27 Martin Liska <mliska@suse.cz>
14966 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14968 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14969 Enclose in anonymous namespace.
14970 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14971 hard_register initialization in braces.
14972 * tree-vrp.h (value_range_base::supports_type_p): Return false
14973 for function with boolean return type.
14975 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14977 * config/i386/i386.c (emit_i387_cw_initialization)
14978 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14980 2019-08-26 Martin Sebor <msebor@redhat.com>
14983 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14984 (sprintf_dom_walker): Remove class.
14985 (get_int_range): Make argument const.
14986 (directive::fmtfunc, directive::set_precision): Same.
14987 (format_none): Same.
14988 (build_intmax_type_nodes): Same.
14989 (adjust_range_for_overflow): Same.
14990 (format_floating): Same.
14991 (format_character): Same.
14992 (format_string): Same.
14993 (format_plain): Same.
14994 (get_int_range): Cast away constness.
14995 (format_integer): Same.
14996 (get_string_length): Call get_range_strlen_dynamic. Handle
14997 null lendata.maxbound.
14998 (should_warn_p): Adjust argument scope qualifier.
14999 (maybe_warn): Same.
15000 (format_directive): Same.
15001 (parse_directive): Same.
15002 (is_call_safe): Same.
15003 (try_substitute_return_value): Same.
15004 (sprintf_dom_walker::handle_printf_call): Rename...
15005 (handle_printf_call): ...to this. Initialize target to host charmap
15006 here instead of in pass_sprintf_length::execute.
15007 (struct call_info): Make global.
15008 (sprintf_dom_walker::compute_format_length): Make global.
15009 (sprintf_dom_walker::handle_gimple_call): Same.
15010 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15011 * print-rtl.c (print_pattern): Reduce the number of spaces to
15012 avoid -Wformat-truncation.
15013 * tree-pass.h (make_pass_warn_printf): New function.
15014 * tree-ssa-strlen.c (strlen_optimize): New variable.
15015 (get_string_length): Add comments.
15016 (get_range_strlen_dynamic): New function.
15017 (check_and_optimize_call): New function.
15018 (handle_integral_assign): New function.
15019 (strlen_check_and_optimize_stmt): Factor code out into
15020 strlen_check_and_optimize_call and handle_integral_assign.
15021 (strlen_dom_walker::evrp): New member.
15022 (strlen_dom_walker::before_dom_children): Use evrp member.
15023 (strlen_dom_walker::after_dom_children): Use evrp member.
15024 (printf_strlen_execute): New function.
15025 (pass_strlen::gate): Update to handle printf calls.
15026 (dump_strlen_info): New function.
15027 (pass_data_warn_printf): New variable.
15028 (pass_warn_printf): New class.
15029 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15030 (handle_printf_call): Same.
15031 * tree-vrp.c (value_range_base::type): Adjust assertion.
15032 * vr-values.c (vr_values::update_value_range): Use type of the first
15033 argument rather than the second.
15035 2019-08-26 Richard Biener <rguenther@suse.de>
15037 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15039 (convert_scalars_to_vector): Do not call it.
15041 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15042 Uros Bizjak <ubizjak@gmail.com>
15044 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15045 CASE_MATHFN_FLOATN for roundeven.
15046 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15048 (ix86_mode_needed): Likewise.
15049 (ix86_mode_after): Likewise.
15050 (ix86_mode_entry): Likewise.
15051 (ix86_mode_exit): Likewise.
15052 (ix86_emit_mode_set): Likewise.
15053 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15054 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15055 (ix86_entity): Add I387_ROUNDEVEN.
15056 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15057 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15058 (define_int_iterator): Likewise.
15059 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15060 (define_constant): Define ROUND_ROUNDEVEN mode.
15061 (define_attr): Add roundeven mode for i387_cw.
15062 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15063 * internal-fn.def (ROUNDEVEN): New builtin function.
15064 * optabs.def (roundeven_optab): New optab.
15066 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15068 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15070 * builtins.def: Added function definitions for roundeven function
15072 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15073 function call. Adjust condition for floor, ceil, trunc and round.
15074 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15075 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15076 (integer_valued_real_call_p): Added case for roundeven function.
15077 * real.c (is_even): New function. Returns true if real number is even,
15078 otherwise returns false.
15079 (is_halfway_below): New function. Returns true if real number is
15080 halfway between two integers, else return false.
15081 (real_roundeven): New function. Round real number to nearest integer,
15082 rounding halfway cases towards even.
15083 * real.h (real_value): Added descriptive comments. Added function
15084 declaration for roundeven function.
15085 * doc/extend.texi (Other Builtins): List roundeven variants among
15086 functions which can be handled as builtins.
15088 2019-08-26 Richard Biener <rguenther@suse.de>
15092 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15094 (general_scalar_chain::replace_with_subreg): Remove.
15095 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15096 (general_scalar_chain::convert_reg): Adjust signature.
15097 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15098 iterate over all defs of a reg.
15099 (general_scalar_chain::replace_with_subreg): Remove.
15100 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15101 (general_scalar_chain::make_vector_copies): Populate defs_map,
15102 place copy only after defs that are used as vectors in the chain.
15103 (general_scalar_chain::convert_reg): Emit a copy for a specific
15104 def in a specific instruction.
15105 (general_scalar_chain::convert_op): All reg uses are converted here.
15106 (general_scalar_chain::convert_insn): Emit copies for scalar
15107 uses of defs here. Replace uses with the copies we created.
15108 Replace and convert the def. Adjust REG_DEAD notes, remove
15109 REG_EQUIV/EQUAL notes.
15110 (general_scalar_chain::convert_registers): Only handle copies
15111 into the chain here.
15113 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15115 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15117 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15119 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15120 Add nop_convert case.
15121 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15122 Fold all statements if requested.
15123 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15124 Allow to fold all statements.
15125 * tree-vrp.c (class vrp_folder):
15126 Let substitute_and_fold_engine fold all statements.
15128 2019-08-26 Richard Biener <rguenther@suse.de>
15130 PR tree-optimization/91526
15131 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15132 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15133 TODO_update_address_taken.
15135 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15137 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15140 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15142 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15143 machine mode for unspec_volatile operand.
15145 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15147 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15148 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15149 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15150 (prefer_neon_for_64bits): Remove.
15151 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15152 (tune_params): Remove PREF_NEON_64_FALSE uses.
15153 (arm_option_override): Remove prefer_neon selection code.
15154 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15155 * config/arm/arm-protos.h (tune_params): Remove
15156 prefer_neon_for_64bits.
15157 (prefer_neon_for_64bits): Remove.
15159 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15162 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15163 and issue any diagnostics needed before collecting the pre-PCH
15166 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15168 PR middle-end/91283
15169 * common.opt (fexcess-precision=): Add Optimization flag. Use
15170 flag_excess_precision variable instead of
15171 flag_excess_precision_cmdline.
15172 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15174 (flag_excess_precision): Don't define.
15175 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15176 flag_excess_precision_cmdline. Remove comment.
15177 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15178 and x_flag_excess_precision instead of
15179 frontend_set_flag_excess_precision_cmdline and
15180 x_flag_excess_precision_cmdline.
15181 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15182 x_flag_excess_precision_cmdline.
15183 * toplev.c (init_excess_precision): Remove.
15184 (lang_dependent_init_target): Don't call it.
15186 2019-08-23 Martin Liska <mliska@suse.cz>
15188 * lto-wrapper.c (run_gcc): When setting jobserver
15189 set also parallel to 1. This was done so before r273908.
15191 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15193 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15194 (cortex-a76ae): Likewise.
15195 (cortex-a77): Likewise
15196 * config/arm/arm-tables.opt: Regenerate.
15197 * config/arm/arm-tune.md: Likewise.
15198 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15199 cortex-a77 CPU options.
15201 2019-08-23 Martin Liska <mliska@suse.cz>
15203 * profile.c (instrument_values): Do not set
15204 0 as last argument.
15205 * tree-profile.c (gimple_gen_interval_profiler): Remove
15207 (gimple_gen_pow2_profiler): Likewise.
15208 (gimple_gen_topn_values_profiler): Likewise.
15209 (gimple_gen_ic_profiler): Likewise.
15210 (gimple_gen_time_profiler): Likewise.
15211 (gimple_gen_average_profiler): Likewise.
15212 (gimple_gen_ior_profiler): Likewise.
15213 * value-prof.c (dump_histogram_value): Use default
15214 in switch statement instead of HIST_TYPE_MAX.
15215 (stream_in_histogram_value): Likewise.
15216 (gimple_duplicate_stmt_histograms): Do not
15217 use NULL for implicitly set arguments.
15218 (gimple_divmod_values_to_profile): Do not use
15219 reserve+quick_push.
15220 (gimple_indirect_call_to_profile): Likewise.
15221 (gimple_find_values_to_profile): Use implicit
15222 function call arguments.
15223 * value-prof.h (gimple_alloc_histogram_value):
15224 Set default values.
15225 (gimple_gen_interval_profiler): Remove last argument.
15226 (gimple_gen_pow2_profiler): Likewise.
15227 (gimple_gen_topn_values_profiler): Likewise.
15228 (gimple_gen_ic_profiler): Likewise.
15229 (gimple_gen_time_profiler): Likewise.
15230 (gimple_gen_average_profiler): Likewise.
15231 (gimple_gen_ior_profiler): Likewise.
15233 2019-08-22 Martin Sebor <msebor@redhat.com>
15235 PR middle-end/91490
15236 * builtins.c (c_strlen): Rename argument and introduce new local.
15237 Set no-warning bit on original argument.
15238 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15239 Fold empty and zero constructors into empty strings.
15240 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15241 for missing initializers.
15242 * tree.c (build_string_literal): Handle optional argument.
15243 * tree.h (build_string_literal): Add defaulted argument.
15244 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15245 no-warning bit on original expression.
15247 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15250 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15251 and UNSPEC_DARN_RAW.
15252 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15254 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15255 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15256 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15258 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15260 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15261 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15262 * config/rs6000/rs6000.md (unspec): ... here.
15263 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15264 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15265 cmpeqb, *cmpeqb_internal): Delete, move to...
15266 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15267 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15268 cmpeqb, *cmpeqb_internal): ... here.
15270 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15272 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15273 intrinsics if __ARM_FP.
15274 Use __ARM_FEATURE_CRC32 ifdef guard.
15276 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15278 * config/arm/arm.md (neon_for_64bits): Remove.
15279 (avoid_neon_for_64bits): Remove.
15280 (arm_adddi3): Always split early.
15281 (arm_subdi3): Always split early.
15282 (negdi2): Remove Neon expansion.
15283 (split zero_extend): Split before reload.
15284 (split sign_extend): Split before reload.
15286 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15288 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15289 (qhs_extenddi_cstr): Likewise.
15290 * config/arm/arm.md (ashldi3): Always expand early.
15291 (ashlsi3): Likewise.
15292 (ashrsi3): Likewise.
15293 (zero_extend<mode>di2): Remove Neon variants.
15294 (extend<mode>di2): Likewise.
15295 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15296 (signed_shift_di3_neon): Likewise.
15297 (unsigned_shift_di3_neon): Likewise.
15298 (ashrdi3_neon_imm_noclobber): Likewise.
15299 (lshrdi3_neon_imm_noclobber): Likewise.
15300 (<shift>di3_neon): Likewise.
15301 (split extend): Remove DI extend split patterns.
15303 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15305 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15306 (split not): Add DImode not splitter.
15307 (anddi3): Remove pattern.
15308 (anddi3_insn): Likewise.
15309 (anddi_zesidi_di): Likewise.
15310 (anddi_sesdi_di): Likewise.
15311 (anddi_notdi_di): Likewise.
15312 (anddi_notzesidi_di): Likewise.
15313 (anddi_notsesidi_di): Likewise.
15314 (iordi3): Likewise.
15315 (iordi3_insn): Likewise.
15316 (iordi_zesidi_di): Likewise.
15317 (iordi_sesidi_di): Likewise.
15318 (xordi3): Likewise.
15319 (xordi3_insn): Likewise.
15320 (xordi_sesidi_di): Likewise.
15321 (xordi_zesidi_di): Likewise.
15322 (one_cmpldi2): Likewise.
15323 (one_cmpldi2_insn): Likewise.
15324 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15325 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15327 (iwmmxt_xordi3): Likewise.
15328 (iwmmxt_anddi3): Likewise.
15329 * config/arm/neon.md (orndi3_neon): Remove pattern.
15330 (anddi_notdi_di): Likewise.
15331 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15332 (arm_iordi_operand_neon): Likewise.
15333 (arm_xordi_operand_neon): Likewise.
15334 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15335 (iordi_notzesidi_di): Likewise.
15336 (iordi_notdi_zesidi): Likewise.
15337 (iordi_notsesidi_di): Likewise.
15339 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15341 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15343 (iorsi3_compare0_scratch): Likewise.
15345 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15347 * config/aarch64/aarch64-simd-builtins.def:
15350 * config/aarch64/aarch64-simd.md:
15351 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15352 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15353 (aarch64_ld1_x4_<mode>): Likewise.
15354 (aarch64_st1_x4_<mode>): Likewise.
15355 * config/aarch64/arm_neon.h:
15356 (vld1_s8_x4): New function.
15357 (vld1q_s8_x4): Likewise.
15358 (vld1_s16_x4): Likewise.
15359 (vld1q_s16_x4): Likewise.
15360 (vld1_s32_x4): Likewise.
15361 (vld1q_s32_x4): Likewise.
15362 (vld1_u8_x4): Likewise.
15363 (vld1q_u8_x4): Likewise.
15364 (vld1_u16_x4): Likewise.
15365 (vld1q_u16_x4): Likewise.
15366 (vld1_u32_x4): Likewise.
15367 (vld1q_u32_x4): Likewise.
15368 (vld1_f16_x4): Likewise.
15369 (vld1q_f16_x4): Likewise.
15370 (vld1_f32_x4): Likewise.
15371 (vld1q_f32_x4): Likewise.
15372 (vld1_p8_x4): Likewise.
15373 (vld1q_p8_x4): Likewise.
15374 (vld1_p16_x4): Likewise.
15375 (vld1q_p16_x4): Likewise.
15376 (vld1_s64_x4): Likewise.
15377 (vld1_u64_x4): Likewise.
15378 (vld1_p64_x4): Likewise.
15379 (vld1q_s64_x4): Likewise.
15380 (vld1q_u64_x4): Likewise.
15381 (vld1q_p64_x4): Likewise.
15382 (vld1_f64_x4): Likewise.
15383 (vld1q_f64_x4): Likewise.
15384 (vst1_s8_x4): Likewise.
15385 (vst1q_s8_x4): Likewise.
15386 (vst1_s16_x4): Likewise.
15387 (vst1q_s16_x4): Likewise.
15388 (vst1_s32_x4): Likewise.
15389 (vst1q_s32_x4): Likewise.
15390 (vst1_u8_x4): Likewise.
15391 (vst1q_u8_x4): Likewise.
15392 (vst1_u16_x4): Likewise.
15393 (vst1q_u16_x4): Likewise.
15394 (vst1_u32_x4): Likewise.
15395 (vst1q_u32_x4): Likewise.
15396 (vst1_f16_x4): Likewise.
15397 (vst1q_f16_x4): Likewise.
15398 (vst1_f32_x4): Likewise.
15399 (vst1q_f32_x4): Likewise.
15400 (vst1_p8_x4): Likewise.
15401 (vst1q_p8_x4): Likewise.
15402 (vst1_p16_x4): Likewise.
15403 (vst1q_p16_x4): Likewise.
15404 (vst1_s64_x4): Likewise.
15405 (vst1_u64_x4): Likewise.
15406 (vst1_p64_x4): Likewise.
15407 (vst1q_s64_x4): Likewise.
15408 (vst1q_u64_x4): Likewise.
15409 (vst1q_p64_x4): Likewise.
15410 (vst1_f64_x4): Likewise.
15411 (vst1q_f64_x4): Likewise.
15413 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15415 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15417 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15418 Richard Sandiford <richard.sandiford@arm.com>
15421 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15422 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15424 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15427 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15428 in reg if it fails aarch64_plus_operand predicate.
15430 2019-08-21 Richard Biener <rguenther@suse.de>
15432 PR tree-optimization/91482
15433 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15434 BUILT_IN_ASSUME_ALIGNED calls.
15436 2019-08-21 Richard Biener <rguenther@suse.de>
15440 * config/i386/i386-features.c
15441 (general_scalar_chain::make_vector_copies): Copy stack temporary
15442 rtx when using it multiple times.
15443 (general_scalar_chain::convert_reg): Likewise.
15445 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15447 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15449 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15451 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15452 catch more redundant zero initialization cases.
15453 (dse_dom_walker::dse_optimize_stmt): Likewise.
15455 2019-08-20 Richard Biener <rguenther@suse.de>
15458 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15459 by collect2 when targetm.have_ctors_dtors which avoids dragging
15460 in temporary filenames from LTO input objects.
15462 2019-08-20 Richard Biener <rguenther@suse.de>
15464 PR tree-optimization/37242
15465 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15466 to (T)a + (T)b if we know that a + b does not overflow.
15468 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15470 PR rtl-optimization/91347
15471 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15472 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15474 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15476 * calls.h (function_arg_info): Add a pass_by_reference field,
15477 defaulting to false.
15478 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15479 when applying pass-by-reference semantics.
15480 (initialize_argument_information): Likewise.
15481 (emit_library_call_value_1): Likewise.
15482 * function.c (assign_parm_data_one): Remove passed_pointer field.
15483 (assign_parm_find_data_types): Don't set it.
15484 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15485 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15486 arg.pass_by_reference instead of passed_pointer.
15488 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15490 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15491 into a single function_arg_info, updating its fields when we
15492 apply pass-by-reference and promotion semantics. Use the
15493 function_arg_info to track the mode rather than keeping it in
15494 a separate local variable.
15495 (initialize_argument_information): Likewise. Base the final
15496 arg_to_skip on this new function_arg_info rather than creating
15497 a new one from scratch.
15499 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15501 * function.c (assign_parm_data_one): Replace passed_type,
15502 promoted_mode and named_arg with a function_arg_info field.
15503 (assign_parm_find_data_types): Remove local variables and
15504 assign directly to "data". Make data->passed_mode shadow
15505 data->arg.mode until promotion, then assign the promoted
15506 mode to data->arg.mode.
15507 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15508 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15509 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15510 (assign_parm_setup_block, assign_parm_setup_reg)
15511 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15512 arg.mode instead of promoted_mode, arg.type instead of passed_type
15513 and arg.named instead of named_arg. Use data->arg for
15514 function_arg_info structures that had the field values passed_type,
15515 promoted_mode and named_arg. Base other function_arg_infos on
15516 data->arg, changing the necessary properties.
15518 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15520 * calls.h (apply_pass_by_reference_rules): Declare.
15521 * calls.c (apply_pass_by_reference_rules): New function.
15522 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15523 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15524 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15525 * function.c (assign_parm_find_data_types): Likewise.
15526 * var-tracking.c (prepare_call_arguments): Likewise.
15528 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15530 * target.def (must_pass_in_stack): Take a function_arg_info instead
15531 of a mode and a type.
15532 * doc/tm.texi: Regenerate.
15533 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15534 instead of a mode and a type.
15535 (must_pass_in_stack_var_size_or_pad): Likewise.
15536 * calls.c (must_pass_in_stack_var_size): Likewise.
15537 (must_pass_in_stack_var_size_or_pad): Likewise.
15538 (initialize_argument_information): Update call to
15539 targetm.calls.must_pass_in_stack.
15540 (must_pass_va_arg_on_stack): Likewise.
15541 * function.c (assign_parm_find_entry_rtl): Likewise.
15542 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15543 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15544 (alpha_function_arg_advance): Likewise.
15545 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15546 (cr16_function_arg_advance): Likewise.
15547 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15548 (cris_arg_partial_bytes): Likewise.
15549 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15550 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15551 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15552 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15553 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15554 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15555 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15556 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15557 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15558 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15559 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15560 instead of a mode and a type.
15561 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15562 (fr30_num_arg_regs): Likewise.
15563 (fr30_setup_incoming_varargs): Update calls accordingly.
15564 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15565 (fr30_function_arg_advance): Likewise.
15566 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15567 instead of a mode and a type.
15568 * config/gcn/gcn.c (num_arg_regs): Likewise.
15569 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15570 num_arg_regs and targetm.calls.must_pass_in_stack.
15571 (gcn_arg_partial_bytes): Likewise.
15572 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15573 function_arg_info instead of a mode and a type.
15574 (classify_argument): Update call accordingly.
15575 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15576 function_arg_info instead of a mode and a type.
15577 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15579 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15580 (rs6000_parm_needs_stack): Update call accordingly.
15581 (setup_incoming_varargs): Likewise.
15583 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15585 * target.def (callee_copies): Take a function_arg_info instead
15586 of a mode, type and named flag.
15587 * doc/tm.texi: Regenerate.
15588 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15589 instead of a mode, type and named flag.
15590 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15591 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15592 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15593 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15594 instead of a mode, type and named flag.
15595 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15596 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15597 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15598 * calls.h (reference_callee_copied): Take a function_arg_info
15599 instead of a mode, type and named flag.
15600 * calls.c (reference_callee_copied): Likewise.
15601 (initialize_argument_information): Update call accordingly.
15602 (emit_library_call_value_1): Likewise.
15603 * function.c (gimplify_parameters): Likewise.
15604 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15605 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15606 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15607 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15608 (TARGET_CALLEE_COPIES): Define to
15609 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15610 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15611 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15612 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15613 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15614 instead of a mode, type and named flag.
15615 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15616 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15617 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15618 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15619 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15620 (TARGET_CALLEE_COPIES): Define to
15621 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15622 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15623 instead of a mode, type and named flag.
15624 * config/sh/sh.c (sh_callee_copies): Likewise.
15625 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15626 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15627 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15629 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15631 * target.def (function_arg_advance): Take a function_arg_info instead
15632 of a mode, type and named flag.
15633 * doc/tm.texi: Regenerate.
15634 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15635 instead of a mode, type and named flag.
15636 * targhooks.c (default_function_arg_advance): Likewise.
15637 * calls.c (initialize_argument_information): Update call to
15638 targetm.calls.function_arg_advance.
15639 (emit_library_call_value_1): Likewise.
15640 * dse.c (get_call_args): Likewise.
15641 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15642 * function.c (assign_parms, gimplify_parameters): Likewise.
15643 * var-tracking.c (prepare_call_arguments): Likewise.
15644 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15645 function_arg_info instead of a mode, type and named flag.
15646 (aarch64_setup_incoming_varargs): Update call accordingly.
15647 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15648 function_arg_info instead of a mode, type and named flag.
15649 (alpha_setup_incoming_varargs): Update call accordingly.
15650 * config/arc/arc.c (arc_function_arg_advance): Take a
15651 function_arg_info instead of a mode, type and named flag.
15652 (arc_setup_incoming_varargs): Update call accordingly.
15653 * config/arm/arm.c (arm_function_arg_advance): Take a
15654 function_arg_info instead of a mode, type and named flag.
15655 (cmse_func_args_or_return_in_stack): Update call accordingly.
15656 (arm_function_ok_for_sibcall): Likewise.
15657 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15658 * config/avr/avr.c (avr_function_arg_advance): Take a
15659 function_arg_info instead of a mode, type and named flag.
15660 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15661 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15662 (c6x_call_saved_register_used): Update call accordingly.
15663 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15664 function_arg_info instead of a mode, type and named flag.
15665 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15666 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15667 (csky_setup_incoming_varargs): Update call accordingly.
15668 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15669 function_arg_info instead of a mode, type and named flag.
15670 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15671 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15672 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15673 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15674 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15675 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15676 (ix86_setup_incoming_varargs): Update call accordingly.
15677 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15678 function_arg_info instead of a mode, type and named flag.
15679 (ia64_setup_incoming_varargs): Update call accordingly.
15680 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15681 function_arg_info instead of a mode, type and named flag.
15682 (iq2000_expand_prologue): Update call accordingly.
15683 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15684 function_arg_info instead of a mode, type and named flag.
15685 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15686 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15687 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15688 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15689 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15691 (microblaze_expand_prologue): Update call accordingly.
15692 * config/mips/mips.c (mips_function_arg_advance): Take a
15693 function_arg_info instead of a mode, type and named flag.
15694 (mips_setup_incoming_varargs): Update call accordingly.
15695 (mips_output_args_xfer): Likewise.
15696 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15697 function_arg_info instead of a mode, type and named flag.
15698 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15699 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15700 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15701 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15702 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15703 (nios2_setup_incoming_varargs): Update call accordingly.
15704 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15705 function_arg_info instead of a mode, type and named flag.
15706 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15707 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15708 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15709 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15710 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15711 (riscv_setup_incoming_varargs): Update call accordingly.
15712 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15713 function_arg_info instead of a mode, type and named flag.
15714 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15716 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15717 (rs6000_parm_needs_stack): Update call accordingly.
15718 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15719 instead of a mode, type and named flag.
15720 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15721 (s390_call_saved_register_used): Update call accordingly.
15722 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15723 instead of a mode, type and named flag.
15724 (sh_output_mi_thunk): Update call accordingly.
15725 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15726 function_arg_info instead of a mode, type and named flag.
15727 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15728 (spu_setup_incoming_varargs): Update call accordingly.
15729 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15730 function_arg_info instead of a mode, type and named flag.
15731 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15732 (tilegx_setup_incoming_varargs): Update call accordingly.
15733 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15734 function_arg_info instead of a mode, type and named flag.
15735 (tilegx_setup_incoming_varargs): Update call accordingly.
15736 * config/v850/v850.c (v850_function_arg_advance): Take a
15737 function_arg_info instead of a mode, type and named flag.
15738 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15739 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15740 (visium_setup_incoming_varargs): Update call accordingly.
15741 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15742 function_arg_info instead of a mode, type and named flag.
15744 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15746 * target.def (function_arg, function_incoming_arg): Take a
15747 function_arg_info instead of a mode, tree and named flag.
15748 * doc/tm.texi: Regenerate.
15749 * targhooks.h (default_function_arg): Take a function_arg_info
15750 instead of a mode, tree and named flag.
15751 (default_function_incoming_arg): Likewise.
15752 * targhooks.c (default_function_arg): Likewise.
15753 (default_function_incoming_arg): Likewise.
15754 * calls.h (function_arg_info::end_marker_p): New function.
15755 (function_arg_info::end_marker): Likewise.
15756 * calls.c (prepare_call_address, initialize_argument_information)
15757 (expand_call, emit_library_call_value_1): Update calls to
15758 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15759 * dse.c: Include calls.h.
15760 (get_call_args): Update call to targetm.calls.function_arg.
15761 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15762 * var-tracking.c (prepare_call_arguments): Likewise.
15763 * function.c (assign_parm_find_entry_rtl): Update call to
15764 targetm.calls.function_incoming_arg.
15765 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15766 function_arg_info instead of a mode, tree and named flag.
15767 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15768 * config/arc/arc.c (arc_function_arg): Likewise.
15769 * config/arm/arm.c (arm_function_arg): Likewise.
15770 (cmse_func_args_or_return_in_stack): Update call accordingly.
15771 (arm_function_ok_for_sibcall): Likewise.
15772 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15773 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15774 instead of a mode, tree and named flag.
15775 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15776 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15777 (c6x_call_saved_register_used): Update call accordingly.
15778 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15779 instead of a mode, tree and named flag.
15780 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15781 (cris_function_arg_1): Likewise.
15782 * config/csky/csky.c (csky_function_arg): Likewise.
15783 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15784 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15785 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15786 (frv_function_arg_1): Likewise.
15787 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15788 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15789 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15790 * config/i386/i386.c (ix86_function_arg): Likewise.
15791 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15792 (ia64_function_arg_1): Likewise.
15793 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15794 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15796 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15797 instead of a mode, tree and named flag.
15798 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15799 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15800 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15801 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15802 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15803 (microblaze_expand_prologue): Update call accordingly.
15804 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15805 instead of a mode, tree and named flag.
15806 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15807 (mmix_function_arg_1): Likewise.
15808 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15809 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15810 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15811 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15812 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15813 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15814 (nvptx_function_incoming_arg): Likewise.
15815 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15816 * config/pa/pa.c (pa_function_arg): Likewise.
15817 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15818 * config/pru/pru.c (pru_function_arg): Likewise.
15819 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15820 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15821 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15822 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15823 (rs6000_parm_needs_stack): Update call accordingly.
15824 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15825 instead of a mode, tree and named flag.
15826 * config/s390/s390.c (s390_function_arg): Likewise.
15827 (s390_call_saved_register_used): Update call accordingly.
15828 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15829 instead of a mode, tree and named flag.
15830 (sh_output_mi_thunk): Update call accordingly.
15831 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15832 (sparc_function_incoming_arg): Take a function_arg_info instead of
15833 a mode, tree and named flag.
15834 * config/spu/spu.c (spu_function_arg): Likewise.
15835 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15836 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15837 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15838 * config/v850/v850.c (v850_function_arg): Likewise.
15839 * config/vax/vax.c (vax_function_arg): Likewise.
15840 * config/visium/visium.c (visium_function_arg): Likewise.
15841 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15842 (xtensa_function_incoming_arg): Likewise.
15844 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15846 * target.def (setup_incoming_varargs): Take a function_arg_info
15847 instead of a mode and tree.
15848 * doc/tm.texi: Regenerate.
15849 * targhooks.h (default_setup_incoming_varargs): Take a
15850 function_arg_info instead of a mode and tree.
15851 * targhooks.c (default_setup_incoming_varargs): Likewise.
15852 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15853 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15854 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15855 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15856 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15857 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15858 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15859 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15861 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15862 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15863 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15864 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15865 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15866 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15867 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15868 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15869 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15870 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15871 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15872 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15873 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15874 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15875 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15876 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15877 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15878 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15879 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15880 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15881 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15882 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15883 * function.c (assign_parms_setup_varargs): Update call to
15884 targetm.calls.setup_incoming_varargs.
15886 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15888 * target.def (pass_by_reference): Take a function_arg_info instead
15889 of a mode, type and named flag.
15890 * doc/tm.texi: Regenerate.
15891 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15893 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15894 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15895 function_arg_info instead of a mode, type and named flag.
15896 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15897 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15898 mode, type and named flag.
15899 * calls.c (pass_by_reference): Likewise.
15900 (pass_va_arg_by_reference): Update call accordingly.
15901 (initialize_argument_information): Likewise.
15902 (emit_library_call_value_1): Likewise.
15903 * function.c (assign_parm_find_data_types): Likewise.
15904 * var-tracking.c (prepare_call_arguments): Likewise.
15905 * stor-layout.c: Include calls.h.
15906 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15907 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15908 function_arg_info instead of a mode, type and named flag.
15909 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15910 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15911 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15912 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15913 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15914 (c6x_call_saved_register_used): Update call to pass_by_reference.
15915 * config/cris/cris.c (cris_pass_by_reference): Take a
15916 function_arg_info instead of a mode, type and named flag.
15917 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15918 function_arg_info instead of a mode, type and named flag.
15919 (epiphany_arg_partial_bytes): Update call accordingly.
15920 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15921 function_arg_info instead of a mode, type and named flag.
15922 (ft32_arg_partial_bytes): Update call accordingly.
15923 * config/i386/i386.c (ix86_pass_by_reference): Take a
15924 function_arg_info instead of a mode, type and named flag.
15925 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15926 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15927 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15928 (m32r_return_in_memory): Update call accordingly.
15929 * config/mips/mips.c (mips_pass_by_reference): Take a
15930 function_arg_info instead of a mode, type and named flag.
15931 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15932 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15933 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15934 (moxie_arg_partial_bytes): Update call accordingly.
15935 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15936 function_arg_info instead of a mode, type and named flag.
15937 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15938 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15939 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15940 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15941 (riscv_return_in_memory): Update call accordingly.
15942 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15943 function_arg_info instead of a mode, type and named flag.
15944 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15945 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15946 * config/s390/s390.c (s390_pass_by_reference): Take a
15947 function_arg_info instead of a mode, type and named flag.
15948 (s390_call_saved_register_used): Update call accordingly.
15949 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15950 instead of a mode, type and named flag.
15951 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15952 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15953 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15954 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15955 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15956 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15958 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15960 * target.def (arg_partial_bytes): Take a function_arg_info instead
15961 of a mode, type and named flag.
15962 * doc/tm.texi: Regenerate.
15963 * target.h (function_arg_info): Declare.
15964 * calls.h (function_arg_info): New class.
15965 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15966 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15967 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15968 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15969 * calls.c (initialize_argument_information): Update call to
15970 targetm.calls.partial_bytes.
15971 (emit_library_call_value_1): Likewise.
15972 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15973 * function.c (assign_parm_find_entry_rtl): Likewise.
15974 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15975 function_arg_info instead of a mode, type and named flag.
15976 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15977 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15978 (cmse_func_args_or_return_in_stack): Update accordingly.
15979 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15980 function_arg_info instead of a mode, type and named flag.
15981 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15982 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15983 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15984 * config/fr30/fr30.c: Include calls.h.
15985 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15986 type and named flag.
15987 * config/frv/frv.c: Include calls.h.
15988 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15989 type and named flag.
15990 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15991 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15992 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15993 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15994 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15995 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15996 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15998 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15999 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16000 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16001 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16002 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16003 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16004 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16005 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16006 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16007 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16008 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16009 (rs6000_parm_needs_stack): Update call accordingly.
16010 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16011 function_arg_info instead of a mode, type and named flag.
16012 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16013 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16015 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16017 * calls.h (must_pass_va_arg_in_stack): Declare.
16018 * calls.c (must_pass_va_arg_in_stack): New function.
16019 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16020 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16021 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16023 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16025 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16027 * calls.h (pass_va_arg_by_reference): Declare.
16028 * calls.c (pass_va_arg_by_reference): New function.
16029 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16030 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16031 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16032 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16033 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16034 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16035 (mips_gimplify_va_arg_expr): Likewise.
16036 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16037 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16038 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16039 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16040 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16041 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16042 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16043 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16044 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16045 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16046 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16048 2019-08-20 Richard Biener <rguenther@suse.de>
16051 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16052 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16053 (convert_scalars_to_vector): Add timode_p parameter and use it
16054 to guard TImode-only operation.
16055 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16056 (pass_stv::execute): Pass down timode_p.
16058 2019-08-20 Lili Cui <lili.cui@intel.com>
16060 * common/config/i386/i386-common.c
16061 (processor_names): Add tigerlake and cooperlake.
16062 (processor_alias_table): Add tigerlake and cooperlake.
16063 * config.gcc: Add -march=tigerlake and cooperlake.
16064 * config/i386/driver-i386.c
16065 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16066 Add "has_avx" to classify processor.
16067 * config/i386/i386-builtins.c (processor_model) :
16068 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16069 (arch_names_table): Add tigerlake and cooperlake.
16070 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16071 and PROCESSOR_COOPERLAKE.
16072 * config/i386/i386-c.c
16073 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16074 * config/i386/i386-options.c
16075 (m_TIGERLAKE): Define.
16076 (m_COOPERLAKE): Ditto.
16077 (m_CORE_AVX512): Ditto.
16078 (processor_cost_table): Add cascadelake.
16079 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16080 * config/i386/i386.h
16081 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16082 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16083 (PTA_MOVDIRI): Ditto.
16084 (PTA_MOVDIR64B): Ditto.
16085 (PTA_COOPERLAKE): Ditto.
16086 (PTA_TIGERLAKE): Ditto.
16087 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16088 * doc/extend.texi: Add tigerlake and cooperlake.
16089 * doc/invoke.texi: Add tigerlake and cooperlake.
16091 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16093 * doc/install.texi (Specific, alpha): Remove note to use
16094 binutils 2.11.2 or later.
16096 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16098 PR middle-end/89544
16099 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16102 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16104 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16105 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16106 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16107 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16108 * config/aarch64/constraints.md (Dt): New constraint
16109 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16111 2019-08-19 Richard Biener <rguenther@suse.de>
16113 PR tree-optimization/91403
16114 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16115 cases we can handle with tail-recursion...
16116 (follow_ssa_edge_expr): ... here. Do so.
16118 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16121 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16122 implemented for -fsanitize=kernel-address, and merge check logic
16123 with -fsanitize=address.
16125 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16127 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16128 for cpu and machine. Factor 64/32b builtins.
16130 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16132 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16133 gone, point to sourceforge.net.
16135 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16137 * doc/ux.texi (User Experience Guidelines): Update reference.
16139 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16141 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16144 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16146 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16147 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16149 2019-08-16 Martin Sebor <msebor@redhat.com>
16151 * tree.def (TYPE_SIZE): Clarify.
16152 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16154 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16156 PR tree-optimization/91109
16157 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16158 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16159 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16161 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16163 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16164 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16165 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16166 (uavg<mode>3_ceil): New expander.
16167 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16168 mode iterator when creating CONST1_RTX.
16169 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16170 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16171 mode iterator for const1_operand predicate.
16173 2019-08-16 Richard Biener <rguenther@suse.de>
16175 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16176 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16178 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16179 (analyze_evolution_in_loop): Likewise.
16180 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16181 (follow_ssa_edge_expr): ... here. Refactor code.
16183 2019-08-16 Richard Biener <rguenther@suse.de>
16186 * config/i386/i386-features.c
16187 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16189 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16192 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16193 only if subst_name matches curr_attr string.
16195 2019-08-16 Richard Biener <rguenther@suse.de>
16197 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16198 stmt at gsi_p, instead replace it with a NOP removed later.
16199 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16200 that became dead because of that.
16202 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16204 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16205 for which we can't represent a range.
16206 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16208 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16209 Set VR_UNDEFINED if type is not supported.
16210 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16211 * tree-vrp.c (value_range_base::check): Assert that a varying has
16213 (value_range_base::equal_p): Early bail for undefines.
16214 (value_range_base::set_varying): Accept a type.
16215 (value_range::set_varying): Same.
16216 (value_range_base::type): VARYING can have a type, while UNDEFINE
16218 (value_range_base::dump): Print type for VARYING nodes.
16219 (value_range_base::set): Add type to VARYING.
16220 (extract_range_from_multiplicative_op): Pass type to set_varying.
16221 (extract_range_from_binary_expr): Same.
16222 (value_range_base::intersect_helper): Same.
16223 (value_range_base::union_helper): Same.
16224 (value_range_base::normalize_symbolics): Same.
16225 (determine_value_range_1): Same.
16226 * tree-vrp.h (class value_range_base): Add type to set_varying.
16227 Add prototype for dump(void).
16228 Add prototype for supports_type_p.
16229 (class value_range): Add type to set_varying.
16230 Add prototype for dump(void).
16231 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16233 (vr_values::get_lattice_entry): Set varying even if propagation
16235 Pass type to set_varying.
16236 (vr_values::get_value_range): Remove vr_const_varying.
16237 Reallocate the lattice if needed.
16238 (vr_values::update_value_range): Pass type to set_varying.
16239 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16240 (vr_values::extract_range_from_binary_expr): Same.
16241 (vr_values::extract_range_from_unary_expr): Same.
16242 (vr_values::extract_range_from_cond_expr): Same.
16243 (vr_values::check_for_binary_op_overflow): Same.
16244 (vr_values::extract_range_basic): Same.
16245 (vr_values::extract_range_from_assignment): Same.
16246 (vr_values::vr_values): Increase size of num_vr_values.
16247 (vr_values::extract_range_from_phi_node): Pass type to
16250 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16253 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16254 for costs of hard register moves.
16255 (ix86_register_move_cost): Likewise.
16256 * config/i386/i386.h (processor_costs): Move costs of hard
16257 register moves to hard_register. Add int_load, int_store,
16258 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16259 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16260 for costs of RTL expressions.
16261 * config/i386/x86-tune-costs.h: Move costs of hard register
16262 moves to hard_register. Duplicate int_load, int_store,
16263 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16264 sse_load, sse_store for costs of RTL expressions.
16266 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16268 * target.def (setup_incoming_vararg_bounds): Remove.
16269 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16270 * doc/tm.texi: Regenerate.
16271 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16272 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16273 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16274 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16276 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16278 MSP430: Fix lines over 80 characters long in
16279 config/msp430/*.{c,h} files
16281 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16282 specifier in string.
16283 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16284 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16285 redundant old comment.
16286 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16287 Split line more than 80 characters long.
16288 * config/msp430/msp430.c (msp430_option_override): Likewise.
16289 (msp430_return_in_memory): Likewise.
16290 (msp430_gimplify_va_arg_expr): Likewise.
16291 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16292 (msp430_legitimate_constant): Likewise.
16293 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16294 (msp430_attr): Likewise.
16295 (msp430_data_attr): Likewise.
16296 (msp430_start_function): Likewise.
16297 (gen_prefix): Likewise.
16298 (msp430_init_sections): Likewise.
16299 (msp430_select_section): Likewise.
16300 (msp430_function_section): Likewise.
16301 (msp430_unique_section): Likewise.
16302 (msp430_output_aligned_decl_common): Likewise.
16303 (msp430_do_not_relax_short_jumps): Likewise.
16304 (msp430_init_builtins): Likewise.
16305 (msp430_expand_delay_cycles): Likewise.
16306 (msp430_expand_prologue): Likewise.
16307 (msp430_expand_epilogue): Likewise.
16308 (msp430_expand_helper): Likewise.
16309 (msp430_split_movsi): Likewise.
16310 (msp430_print_operand): Likewise.
16311 (msp430_return_addr_rtx): Likewise.
16312 (msp430x_extendhisi): Likewise.
16313 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16314 (ASM_SPEC): Likewise.
16315 Remove very obvious comments.
16316 (LIB_SPEC): Split line more than 80 characters long.
16317 (EH_RETURN_HANDLER_RTX): Likewise.
16318 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16320 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16322 MSP430: Fix whitespace errors and incorrect indentation in
16323 config/msp430/*.{c,h} files
16325 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16326 (msp430_select_hwmult_lib): Likewise.
16327 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16328 (msp430_extract_mcu_data): Likewise.
16329 (struct t_msp430_mcu_data): Likewise.
16330 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16331 before left square bracket.
16332 (msp430_option_override): Fix indentation.
16333 (msp430_hard_regno_nregs_with_padding): Likewise.
16334 (msp430_initial_elimination_offset): Likewise.
16335 (msp430_special_register_convention_p): Remove whitespace before left
16336 square bracket and after exclamation mark.
16337 (msp430_evaluate_arg): Likewise.
16338 (msp430_callee_copies): Fix indentation.
16339 (msp430_gimplify_va_arg_expr): Likewise.
16340 (msp430_function_arg_advance): Remove whitespace before left square
16342 (reg_ok_for_addr): Likewise.
16343 (msp430_preserve_reg_p): Likewise.
16344 (msp430_compute_frame_info): Likewise.
16345 (msp430_asm_output_addr_const_extra): Add space between function name
16346 and open parenthesis.
16347 (has_section_name): Fix indentation.
16348 (msp430_attr): Remove trailing whitespace.
16349 (msp430_section_attr): Likewise.
16350 (msp430_data_attr): Likewise.
16351 (struct msp430_attribute_table): Fix comment and whitespace.
16352 (msp430_start_function): Remove whitespace before left square bracket.
16353 Add space between function name and open parenthesis.
16354 (msp430_select_section): Remove trailing whitespace.
16355 (msp430_section_type_flags): Remove trailing whitespace.
16356 (msp430_unique_section): Remove space before closing parenthesis.
16357 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16358 (msp430_builtins): Remove whitespace before left square bracket.
16359 (msp430_init_builtins): Fix indentation.
16360 (msp430_expand_prologue): Remove whitespace before left square bracket.
16361 Remove space before closing parenthesis.
16362 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16363 (msp430_split_movsi): Remove space before closing parenthesis.
16364 (helper_function_name_mappings): Fix indentation.
16365 (msp430_use_f5_series_hwmult): Fix whitespace.
16366 (use_32bit_hwmult): Likewise.
16367 (msp430_no_hwmult): Likewise.
16368 (msp430_output_labelref): Remove whitespace before left square bracket.
16369 (msp430_print_operand_raw): Likewise.
16370 (msp430_print_operand_addr): Likewise.
16371 (msp430_print_operand): Add two spaces after '.' in comment.
16372 Fix trailing whitespace.
16373 (msp430x_extendhisi): Fix indentation.
16374 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16376 (PC_REGNUM): Likewise.
16377 (STACK_POINTER_REGNUM): Likewise.
16378 (CC_REGNUM): Likewise.
16380 2019-08-15 Richard Biener <rguenther@suse.de>
16383 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16385 (general_scalar_chain::make_vector_copies): Use it.
16387 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16389 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16391 2019-08-15 Martin Liska <mliska@suse.cz>
16393 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16394 operators with no arguments.
16395 (eliminate_unnecessary_stmts): Likewise here.
16397 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16399 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16400 <case COMPARE>: Revert 2019-08-14 change.
16401 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16402 for (TARGET_64BIT || mode != DImode).
16404 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16406 * tree-vrp.c (value_range_base::set): Merge in code from
16407 value_range_base::set_and_canonicalize.
16408 Enforce canonicalization at set time.
16409 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16410 (value_range_base::set_undefined): Inline call to set().
16411 (value_range_base::set_varying): Same.
16412 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16413 (vrp_val_max): New argument handle_pointers.
16414 (vrp_val_min): Same.
16415 (ranges_from_anti_range): Same.
16416 (extract_range_into_wide_ints): Use tree argument instead of sign
16418 (extract_range_from_multiplicative_op): Take in tree type instead
16419 of precision and sign. Adapt function for canonicalized ranges.
16420 (extract_range_from_binary_expr): Pass type to
16421 extract_range_from_multiplicative_op.
16422 Adapt for canonicalized ranges.
16423 (extract_range_from_unary_expr): Same.
16424 (value_range_base::intersect_helper): Adjust for canonicalized
16426 (value_range_base::union_helper): Same.
16427 (value_range_base::normalize_symbolics): New.
16428 * tree-vrp.h (class value_range_base): Remove
16429 set_and_canonicalize.
16430 New prototype for normalize_symbolics.
16431 (class value_range): Remove set_and_canonicalize.
16432 (vrp_val_min): Adjust prototype.
16433 (vrp_val_max): Same.
16435 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16436 instead of set_and_canonicalize.
16438 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16440 PR middle-end/91444
16441 * tree-vect-stmts.c (vectorizable_call): Check that the function
16442 is a BUILT_IN_MD function before passing it to
16443 targetm.vectorize.builtin_md_vectorized_function.
16445 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16447 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16448 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16449 (aarch64_select_early_remat_modes): Use it.
16451 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16453 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16454 16 for SVE predicates even if they are fixed-length.
16456 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16458 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16459 operand order match the MOV /Z alias.
16461 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16463 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16464 the vector pattern as an aarch64_svpattern argument. Update the
16465 overloaded caller accordingly.
16466 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16467 (aarch64_output_sve_vector_inc_dec): Likewise.
16469 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16471 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16472 multiplication case, try to compute VG * (lowest set bit) directly
16473 rather than always basing the multiplication on VG. Use
16474 expand_mult for the multiplication if we can.
16476 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16478 * config/aarch64/aarch64-protos.h
16479 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16480 (aarch64_sve_inc_dec_immediate_p): Rename to...
16481 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16482 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16483 (aarch64_output_sve_scalar_inc_dec): Declare.
16484 (aarch64_output_sve_inc_dec_immediate): Rename to...
16485 (aarch64_output_sve_vector_inc_dec): ...this.
16486 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16487 (aarch64_output_sve_scalar_inc_dec): New functions.
16488 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16489 arguments. Only handle true ADDVL and ADDPL instructions;
16490 don't emit an INC or DEC.
16491 (aarch64_sve_inc_dec_immediate_p): Rename to...
16492 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16493 (aarch64_output_sve_inc_dec_immediate): Rename to...
16494 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16495 aarch64_sve_vector_inc_dec_immediate_p.
16496 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16497 (aarch64_sve_plus_immediate): New predicates.
16498 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16499 rather than aarch64_sve_addvl_addpl_immediate.
16500 (aarch64_sve_inc_dec_immediate): Rename to...
16501 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16502 aarch64_sve_vector_inc_dec_immediate_p.
16503 (aarch64_sve_add_operand): Update accordingly.
16504 * config/aarch64/constraints.md (Uai): New constraint.
16505 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16506 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16507 operand into a register if it satisfies aarch64_sve_plus_immediate.
16508 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16509 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16510 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16511 aarch64_output_sve_vector_inc_dec instead of
16512 aarch64_output_sve_inc_dec_immediate.
16514 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16516 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16517 (UNSPEC_REVW): New constants.
16518 (elem_bits): New mode attribute.
16519 (SVE_INT_UNARY): New int iterator.
16520 (optab): Handle UNSPEC_REV[BHW].
16521 (sve_int_op): New int attribute.
16522 (min_elem_bits): Handle VNx16QI and the predicate modes.
16523 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16524 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16525 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16526 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16527 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16528 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16529 unspecs based on the total width of the reversed data.
16530 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16531 reinterpret followed by a subreg on big-endian targets.
16533 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16534 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16536 * config/aarch64/aarch64-sve.md
16537 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16538 alternatives in which one of the inputs is in the same register
16541 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16543 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16544 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16546 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16548 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16549 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16551 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16552 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16554 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16555 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16556 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16558 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16559 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16561 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16562 Add an alternative that uses reversed shifts.
16564 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16566 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16569 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16571 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16572 a commutativity marker.
16574 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16575 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16577 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16578 (aarch64_prepare_sve_cond_int_fma): Declare.
16579 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16580 (aarch64_prepare_sve_int_fma): New functions.
16581 (aarch64_prepare_sve_cond_int_fma): Likewise.
16582 * config/aarch64/aarch64-sve.md
16583 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16584 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16585 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16586 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16587 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16588 (*madd<mode>): Rename to...
16589 (*fma<mode>4): ...this.
16590 (*msub<mode>): Rename to...
16591 (*fnma<mode>4): ...this.
16593 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16594 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16596 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16597 Print 2.0 naturally.
16598 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16599 * config/aarch64/predicates.md
16600 (aarch64_sve_float_negated_arith_immediate): New predicate,
16601 renamed from aarch64_sve_float_arith_with_sub_immediate.
16602 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16603 positive and negative constants.
16604 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16605 or an aarch64_sve_float_arith_with_sub_immediate.
16606 * config/aarch64/constraints.md (vsN): Use
16607 aarch64_sve_float_negated_arith_immediate.
16608 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16610 (sve_pred_fp_rhs2_immediate): New int attribute.
16611 * config/aarch64/aarch64-sve.md
16612 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16613 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16614 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16615 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16616 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16617 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16619 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16620 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16622 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16623 (*aarch64_cond_abd<SVE_F:mode>_3)
16624 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16626 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16627 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16629 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16630 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16632 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16633 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16635 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16636 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16637 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16638 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16640 * optabs.h (create_convert_operand_from): Expand comment.
16641 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16642 when mapping scalar rtxes to vector operands.
16643 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16644 ashiftrt and lshiftrt.
16645 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16646 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16647 (*cond_<optab><mode>_any_const): New patterns.
16649 2019-08-15 Martin Liska <mliska@suse.cz>
16652 * cgraph.c (cgraph_node::remove): When setting
16653 n->origin = NULL for all nested functions, reset
16656 2019-08-15 Martin Liska <mliska@suse.cz>
16658 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16661 2019-08-15 Martin Liska <mliska@suse.cz>
16664 * passes.c (order): Remove.
16665 (uid_hash_t): Likewise).
16666 (remove_cgraph_node_from_order): Remove from set
16667 of pointers (cgraph_node *).
16668 (insert_cgraph_node_to_order): New.
16669 (duplicate_cgraph_node_to_order): New.
16670 (do_per_function_toporder): Register all 3 cgraph hooks.
16671 Skip removed_nodes now as we know about all of them.
16673 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16675 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16676 <case E_V8QImode>: Use vector_set path for
16677 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16678 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16679 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16681 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16683 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16685 2019-08-14 Martin Sebor <msebor@redhat.com>
16687 PR tree-optimization/91294
16688 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16689 source length as exact.
16691 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16693 * doc/extend.texi: Add "noinit" attribute documentation.
16694 * doc/sourcebuild.texi: Add noinit effective target documentation.
16695 * varasm.c (default_section_type_flags): Add support for "noinit"
16697 (default_elf_select_section): Add support for "noinit" attribute.
16698 * config/msp430/msp430.c (msp430_attribute_table): Remove
16701 2019-08-14 Richard Biener <rguenther@suse.de>
16702 Uroš Bizjak <ubizjak@gmail.com>
16705 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16707 (scalar_chain::smode): New member.
16708 (scalar_chain::vmode): Likewise.
16709 (dimode_scalar_chain): Rename to...
16710 (general_scalar_chain): ... this.
16711 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16712 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16713 base with TImode and V1TImode.
16714 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16715 (general_scalar_chain::vector_const_cost): Adjust for SImode
16717 (general_scalar_chain::compute_convert_gain): Likewise. Add
16718 {S,U}{MIN,MAX} support.
16719 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16720 (general_scalar_chain::make_vector_copies): Likewise. Handle
16721 non-DImode chains appropriately.
16722 (general_scalar_chain::convert_reg): Likewise.
16723 (general_scalar_chain::convert_op): Likewise.
16724 (general_scalar_chain::convert_insn): Likewise. Add
16725 fatal_insn_not_found if the result is not recognized.
16726 (convertible_comparison_p): Pass in the scalar mode and use that.
16727 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16728 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16729 (scalar_to_vector_candidate_p): Remove by inlining into single
16731 (general_remove_non_convertible_regs): Rename from
16732 dimode_remove_non_convertible_regs.
16733 (remove_non_convertible_regs): Remove by inlining into single caller.
16734 (convert_scalars_to_vector): Handle SImode and DImode chains
16735 in addition to TImode chains.
16736 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16737 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16738 (*<maxmin>di3_doubleword): Likewise.
16740 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16741 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16743 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16744 (*cond_bic<mode>_any): New patterns.
16746 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16748 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16749 take the equivalent mask, as well as a bit count.
16750 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16751 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16752 (aarch64_sve_pred_and_operand): New predicates.
16753 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16755 * config/aarch64/aarch64-sve.md
16756 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16757 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16759 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16761 * config/aarch64/aarch64-sve.md
16762 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16763 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16766 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16767 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16769 * config/aarch64/aarch64-sve.md
16770 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16771 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16773 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16774 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16776 * config/aarch64/aarch64-sve.md
16777 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16778 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16780 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16782 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16783 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16786 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16787 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16789 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16791 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16792 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16794 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16795 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16796 (aarch64_print_operand): Add support for %I.
16797 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16798 Bitcast floating-point constants to the corresponding integer constant.
16799 (aarch64_float_const_representable_p): Handle vectors as well
16801 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16802 for the new vcond_mask_<mode><vpred> expander.
16803 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16804 test aarch64_float_const_representable_p.
16805 (aarch64_sve_reg_or_dup_imm): New predicate.
16806 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16807 gen_vcond_mask_<mode><vpred> instead of
16808 gen_aarch64_sve_dup<mode>_const.
16809 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16810 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16811 for operands 1 and 2 respectively. Force operand 2 into a
16812 register if operand 1 is a register. Fold old define_insn...
16813 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16814 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16815 floating-point constants that can be moved as integers. Add
16816 alternatives for MOV /M and FMOV /M.
16817 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16818 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16819 1 and 2 respectively.
16820 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16822 (vss): New constraint.
16824 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16826 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16827 (aarch64_sve_float_maxmin_operand): New predicates.
16828 * config/aarch64/constraints.md (vsB): New constraint.
16830 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16831 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16832 UNSPEC_COND_FMINNM.
16833 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16834 Use aarch64_sve_float_maxmin_operand for operand 2.
16835 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16836 Add alternatives for the constant forms.
16838 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16840 * config/aarch64/constraints.md (vsb): New constraint.
16841 (vsm): Generalize description.
16842 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16844 (sve_imm_con): Handle smax, smin, umax and umin.
16845 (sve_imm_prefix): New code attribute.
16846 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16847 (aarch64_sve_vsb_operand): New predicates.
16848 (aarch64_sve_mul_immediate): Rename to...
16849 (aarch64_sve_vsm_immediate): ...this.
16850 (aarch64_sve_mul_operand): Rename to...
16851 (aarch64_sve_vsm_operand): ...this.
16852 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16853 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16854 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16855 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16856 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16857 add movprfx support for the immediate alternatives.
16858 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16860 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16863 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16865 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16866 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16867 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16869 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16871 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16872 (optab, sve_int_op): Handle them.
16873 * config/aarch64/aarch64-sve.md: Expand comment.
16875 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16877 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16878 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16879 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16881 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16883 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16884 (aarch64_expand_sve_const_pred_trn): New functions.
16885 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16886 use the above functions when the parameter is true.
16887 (aarch64_expand_sve_const_pred): Update call accordingly.
16888 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16890 (@aarch64_sve_<perm_insn><mode>): ...this.
16892 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16894 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16896 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16897 (aarch64_sve_emit_int_cmp): New functions.
16898 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16899 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16900 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16901 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16902 (UNSPEC_PRED_Z): New unspec.
16903 (set_clobber_cc_nzc): Delete.
16904 * config/aarch64/aarch64-sve.md: Add a block comment about
16906 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16907 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16908 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16909 UNSPEC_MERGE_PTRUE.
16910 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16911 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16912 check for compatible predicates.
16913 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16914 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16915 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16918 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16920 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16921 * config/aarch64/aarch64-sve.md: Add a section describing it.
16922 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16923 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16924 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16925 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16926 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16927 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16928 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16929 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16930 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16931 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16932 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16933 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16934 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16935 (aarch64_evpc_rev_local): Update accordingly.
16937 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16939 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16941 (SVE_BHSI, SVE_SDI): Tweak comment.
16942 (SVE_HSDI): Likewise. Fix definition.
16943 (SVE_SDF): New mode iterator.
16944 (elem_bits): New mode attribute.
16945 (SVE_COND_FCVT): New int iterator.
16946 * config/aarch64/aarch64-sve.md
16947 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16948 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16949 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16950 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16951 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16952 ...these new patterns.
16953 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16954 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16955 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16957 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16958 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16959 ...these new patterns.
16960 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16961 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16962 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16963 ...this new pattern.
16964 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16965 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16966 ...this new pattern.
16967 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16969 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16971 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16972 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16973 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16975 (optab, su): Handle them.
16976 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16977 * config/aarch64/aarch64-sve.md
16978 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16979 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16980 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16981 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16982 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16983 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16984 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16985 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16986 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16988 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16989 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16990 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16991 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16992 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16993 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16994 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16995 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16996 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16997 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16998 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16999 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17000 of UNSPEC_FLOAT_CONVERT.
17001 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17002 aarch64_sve_extend<mode><Vwide>2.
17004 2019-08-14 Richard Biener <rguenther@suse.de>
17007 * config/i386/i386-features.c
17008 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17009 individual instruction gain. Fix reg-reg copy GRP cost. Use
17010 ix86_cost->sse_op for vector instruction costs.
17012 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17014 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17015 (cmp_op): Handle it.
17016 (SVE_COND_FP_CMP): Rename to...
17017 (SVE_COND_FP_CMP_I0): ...this.
17018 (SVE_FP_CMP): Remove.
17019 * config/aarch64/aarch64-sve.md
17020 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17021 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17022 using unspecs to represent the comparison.
17023 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17024 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17026 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17027 (aarch64_unspec_cond_code): Move after integer code. Handle
17029 (aarch64_emit_sve_predicated_cond): Replace with...
17030 (aarch64_emit_sve_fp_cond): ...this new function.
17031 (aarch64_emit_sve_or_conds): Replace with...
17032 (aarch64_emit_sve_or_fp_conds): ...this new function.
17033 (aarch64_emit_sve_inverted_cond): Replace with...
17034 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17035 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17037 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17039 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17040 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17041 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17042 SVE_HSD instead of SVE_SD.
17044 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17045 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17047 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17049 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17051 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17052 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17053 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17054 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17055 (*div<SVE_F:mode>3): Generalize to...
17056 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17058 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17059 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17061 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17063 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17065 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17067 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17069 * config/aarch64/aarch64-sve.md: Add a block comment about the
17070 handling of predicated FP operations.
17071 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17072 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17073 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17074 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17075 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17077 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17078 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17080 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17081 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17082 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17083 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17084 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17085 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17086 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17087 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17088 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17089 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17090 strictness operands. Use aarch64_sve_pred_dominates_p to check
17091 whether the predicate on the conditional operation is suitable
17092 for merging. Split patterns into the canonical equal-predicate form.
17093 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17094 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17096 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17097 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17099 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17100 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17101 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17103 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17104 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17107 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17108 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17110 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17111 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17112 actually has, rather than relying on REG_EQUAL notes.
17113 Make the insn operand order match the SVE operand order.
17114 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17115 the SVE operand order.
17117 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17119 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17120 (aarch64_emit_set_immediate): Likewise.
17121 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17122 (aarch64_pfalse_reg): Likewise.
17123 (aarch64_convert_sve_data_to_pred): New function.
17124 (aarch64_sve_move_pred_via_while): Take an optional target register
17125 and the required register mode.
17126 (aarch64_expand_sve_const_pred_1): New function.
17127 (aarch64_expand_sve_const_pred): Likewise.
17128 (aarch64_expand_mov_immediate): Build an all-true predicate
17129 if the significant bits of the immediate are all true. Use
17130 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17131 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17132 before register allocation.
17133 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17134 a VNx16BI PTRUE when splitting the memory alternative.
17135 (vec_duplicate<mode>): Update accordingly.
17136 (*pred_cmp<cmp_op><mode>): Rename to...
17137 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17139 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17141 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17142 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17143 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17144 (UNSPEC_PTEST): New unspec.
17145 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17146 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17147 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17148 * config/aarch64/aarch64-sve.md: Add a new section describing the
17149 handling of UNSPEC_PTEST.
17150 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17151 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17152 (ptest_ptrue<mode>): Replace with...
17153 (aarch64_ptest<mode>): ...this new pattern.
17154 (cbranch<mode>4): Update after above changes.
17155 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17156 UNSPEC_PTEST_PTRUE.
17157 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17158 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17159 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17161 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17164 * builtins.c (builtin_with_linkage_p): New function.
17165 * builtins.h (builtin_with_linkage_p): New function.
17166 * symtab.c (write_symbol): Remove redundant assert.
17167 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17168 Remove FIXME and use builtin_with_linkage_p.
17170 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17172 PR middle-end/91421
17173 * tree-core.h (function_decl::function_code): Change type to
17175 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17176 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17177 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17178 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17179 is BUILT_IN_NORMAL.
17180 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17181 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17182 (fndecl_built_in_p): Change the type of the "name" argument to
17184 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17185 after check for DECL_BUILT_IN_CLASS.
17186 * cgraphclones.c (build_function_decl_skip_args): Use
17187 set_decl_built_in_function.
17188 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17189 * ipa-split.c (split_function): Likewise.
17190 * langhooks.c (add_builtin_function_common): Likewise.
17191 * omp-simd-clone.c (simd_clone_create): Likewise.
17192 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17193 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17194 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17195 DECL_FUNCTION_CODE.
17196 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17197 instead of DECL_FUNCTION_CODE.
17198 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17199 instead of DECL_FUNCTION_CODE.
17200 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17201 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17202 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17203 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17204 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17205 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17206 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17207 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17208 (alpha_gimple_fold_builtin): Likewise.
17209 * config/arc/arc.c (arc_expand_builtin): Likewise.
17210 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17211 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17212 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17213 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17214 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17215 * config/frv/frv.c (frv_expand_builtin): Likewise.
17216 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17217 (gcn_expand_builtin): Likewise.
17218 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17219 (fold_builtin_cpu): Likewise.
17220 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17221 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17222 (ix86_gimple_fold_builtin): Likewise.
17223 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17224 (ia64_expand_builtin): Likewise.
17225 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17226 * config/mips/mips.c (mips_expand_builtin): Likewise.
17227 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17228 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17229 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17230 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17231 * config/pa/pa.c (pa_expand_builtin): Likewise.
17232 * config/pru/pru.c (pru_expand_builtin): Likewise.
17233 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17234 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17236 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17237 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17238 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17239 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17240 (rs6000_builtin_reciprocal): Likewise.
17241 * config/rx/rx.c (rx_expand_builtin): Likewise.
17242 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17243 * config/s390/s390.c (s390_expand_builtin): Likewise.
17244 * config/sh/sh.c (sh_expand_builtin): Likewise.
17245 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17246 (sparc_fold_builtin): Likewise.
17247 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17248 * config/spu/spu.c (spu_expand_builtin): Likewise.
17249 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17250 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17251 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17252 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17253 (xtensa_expand_builtin): Likewise.
17255 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17257 PR middle-end/91421
17258 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17259 before the DECL_FUNCTION_CODE.
17260 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17261 to check for a BUILT_IN_ALLOCA call.
17262 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17263 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17264 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17265 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17266 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17267 for BUILT_IN_NORMAL functions.
17268 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17269 test for BUILT_IN_TM_ABORT.
17270 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17271 to check for a BUILT_IN_STACK_RESTORE call.
17272 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17273 * tree-ssa-threadedge.c
17274 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17275 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17276 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17277 test for a BUILT_IN_NORMAL call instead of a negative test for
17278 an internal function call.
17280 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17282 * tree.h (build_vector_a_then_b): Declare.
17283 * tree.c (build_vector_a_then_b): New function.
17284 * fold-const-call.c (fold_while_ult): Likewise.
17285 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17286 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17287 (aarch64_svpattern): New enum.
17288 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17289 constants through aarch64_expand_mov_immediate.
17290 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17291 than general_operand as the predicate for operand 1.
17292 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17293 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17295 (simd_immediate_info::simd_immediate_info): New overload that
17296 takes a scalar_int_mode and an svpattern.
17297 (simd_immediate_info::u): Add a "pattern" field.
17298 (svpattern_token): New function.
17299 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17300 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17301 (aarch64_sve_move_pred_via_while): New functions.
17302 (aarch64_expand_mov_immediate): Try using
17303 aarch64_sve_move_pred_via_while for predicates that contain N ones
17304 followed by M zeros but that do not correspond to a VLnnn pattern.
17305 (aarch64_sve_pred_valid_immediate): New function.
17306 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17307 with PTRUE and PFALSE.
17308 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17311 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17313 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17315 (darwin_override_options): Likewise.
17316 * config/darwin.h: Likewise.
17317 * config/darwin.opt: Likewise.
17318 * config/i386/i386.c (output_pic_addr_const): Likewise.
17319 * config/rs6000/darwin.h: Likewise.
17320 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17321 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17322 ... this TARGET_MACHO_SYMBOL_STUBS.
17323 (FUNCTION_PROFILER):Likewise.
17324 * config/i386/i386.h: Likewise.
17326 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17328 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17329 <case E_V2SImode>: Use vec_extr path for
17330 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17331 <case E_V8QImode>: Ditto.
17332 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17333 Use SWI48 mode iterator. Use %k to output operand 0.
17334 (*mmx_pextrw): New insn pattern.
17335 (*mmx_pextrb): Ditto.
17336 (*mmx_pextrb_zext): Ditto.
17338 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17340 * target.def (libc_has_function, libc_has_fast_function): Improve
17341 documentation strings.
17342 * doc/tm.texi: Regenerate.
17344 2019-08-13 Caroline Tice <cmtice@google.com>
17347 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17348 vtv_end.o or vtv_end_preinit.o files if !static.
17350 2019-08-13 Olivier Hainque <hainque@adacore.com>
17352 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17354 2019-08-13 Olivier Hainque <hainque@adacore.com>
17356 * rtlanal.c (tablejump_casesi_pattern): New function, to
17357 determine if a tablejump insn is a casesi dispatcher. Extracted
17358 from patch_jump_insn.
17359 * rtl.h (tablejump_casesi_pattern): Declare.
17360 * cfgrtl.c (patch_jump_insn): Use it.
17361 * dwarf2cfi.c (create_trace_edges): Use it.
17363 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17366 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17367 operand is larger than a long int.
17369 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17371 * machmode.h (opt_mode::else_mode): New function.
17372 (opt_mode::else_blk): Use it.
17373 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17374 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17375 (aarch64_gen_stepped_int_parallel): Likewise.
17376 (aarch64_stepped_int_parallel_p): Likewise.
17377 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17379 * config/aarch64/aarch64.c
17380 (aarch64_expand_sve_widened_duplicate): Delete.
17381 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17382 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17383 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17384 argument. Use early returns in the !CONST_INT_P handling.
17385 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17386 than handling some inline.
17387 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17389 (aarch64_simd_container_mode): ...here.
17390 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17391 (aarch64_sve_ld1rq_operand_p): New functions.
17392 * config/aarch64/predicates.md (descending_int_parallel)
17393 (aarch64_sve_ld1rq_operand): New predicates.
17394 * config/aarch64/constraints.md (UtQ): New constraint.
17395 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17396 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17397 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17398 (@aarch64_sve_reinterpret<mode>): New expander.
17399 (*aarch64_sve_reinterpret<mode>): New pattern.
17400 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17401 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17402 (*sve_ld1rq<Vesize>): Replace with...
17403 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17405 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17407 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17410 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17412 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17413 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17414 (msp430_check_path_for_devices): New.
17415 (parse_devices_csv_1): New.
17416 (parse_devices_csv): New.
17417 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17418 MCU data in devices.csv before using the hard-coded data.
17419 Warn if devices.csv isn't found and the MCU wasn't found in the
17420 hard-coded data either.
17421 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17422 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17423 Search for devices.csv on -I and -L paths.
17424 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17425 msp430_set_driver_var.
17426 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17427 -mdevices-csv-loc=.
17428 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17429 searched for devices.csv.
17430 (mwarn-devices-csv): Document option.
17432 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17434 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17435 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17436 Use a single Dn alternative instead of separate Dz and Dm
17437 alternatives. Use aarch64_output_sve_move_immediate.
17438 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17440 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17441 for predicates too.
17442 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17443 (aarch64_output_ptrue): Delete.
17445 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17447 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17449 (simd_immediate_info::value, simd_immediate_info::step)
17450 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17452 (simd_immediate_info::u): ...this new union.
17453 (simd_immediate_info::simd_immediate_info): Update accordingly.
17454 (aarch64_output_simd_mov_immediate): Likewise.
17455 (aarch64_output_sve_mov_immediate): Likewise.
17457 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17459 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17461 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17462 (msp430_select_cpu): New spec function.
17463 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17465 * config/msp430/msp430-devices.c: New file.
17466 * config/msp430/msp430-devices.h: New file.
17467 * config/msp430/msp430.c: Remove msp430_mcu_data.
17468 (msp430_option_override): Use msp430_extract_mcu_data to extract
17470 (msp430_use_f5_series_hwmult): Likewise.
17471 (use_32bit_hwmult): Likewise.
17472 (msp430_no_hwmult): Likewise.
17473 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17475 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17477 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17478 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17479 Remove hard-coded MCU multilib data.
17481 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17483 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17484 based on the mode instead of testing properties of it.
17486 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17488 * doc/md.texi: Document the x and y constraints for AArch64.
17489 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17490 (FP_LO8_REGS): New reg_class.
17491 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17492 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17493 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17494 * config/aarch64/predicates.md (aarch64_simd_register): Use
17495 FP_REGNUM_P instead of checking the classes manually.
17496 * config/aarch64/constraints.md (y): New constraint.
17498 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17500 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17501 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17502 * config/aarch64/aarch64-simd.md
17503 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17504 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17505 from the asm template.
17506 * config/aarch64/aarch64-sve.md
17507 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17508 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17509 from the asm template.
17510 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17511 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17512 from the asm template.
17513 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17515 2019-08-13 Martin Liska <mliska@suse.cz>
17517 * value-prof.c (gimple_ic_transform): Add new line.
17518 Print details with MSG_NOTE.
17520 2019-08-13 Martin Liska <mliska@suse.cz>
17522 * doc/invoke.texi: Document automatic detection of jobserver.
17523 * lto-wrapper.c (run_gcc): Detect jobserver always.
17525 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17527 * config/i386/i386-expand.c (ix86_expand_vector_set)
17528 <case E_V2SImode>: Use vec_merge path for
17529 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17530 <case E_V8QImode>: Ditto.
17531 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17532 (*mmx_pinsrb): Ditto.
17534 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17538 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17539 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17540 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17541 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17542 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17544 2019-08-12 Richard Biener <rguenther@suse.de>
17547 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17550 2019-08-12 Richard Biener <rguenther@suse.de>
17553 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17554 lang_mask option, always use CL_DRIVER.
17555 (get_options_from_collect_gcc_options): Adjust.
17556 (find_and_merge_options): Likewise.
17557 (run_gcc): Likewise.
17559 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17561 * ipa-predicate.c (add_condition): Restore inverted test.
17563 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17565 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17566 (enum omp_clause_device_type_kind): New enum.
17567 (struct tree_omp_clause): Add subcode.device_type_kind.
17568 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17569 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17570 for device_type clause.
17571 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17572 * tree-pretty-print.c (dump_omp_clause): Likewise.
17575 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17578 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17580 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17581 handling spilled pseudos.
17583 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17586 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17587 to preserve the contents of the original insns.
17589 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17591 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17592 (addsi3_compare_op2): Likewise.
17594 2019-08-09 Martin Liska <mliska@suse.cz>
17596 * alias.c (alias_ptr_types_compatible_p): Strengten
17597 type comparison in LTO mode.
17599 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17601 PR middle-end/90313
17602 * tree-tailcall.c (find_tail_calls): Reject calls that might
17603 read from an escaped RESULT_DECL.
17605 2019-08-09 Martin Liska <mliska@suse.cz>
17607 * doc/invoke.texi: Document the option value.
17608 * lto-wrapper.c (run_gcc): Set auto_parallel
17609 only with -flto=auto.
17611 2019-08-09 Martin Liska <mliska@suse.cz>
17613 * opts.c (common_handle_option): Error for an invalid argument
17616 2019-08-09 Martin Liska <mliska@suse.cz>
17618 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17619 use dump_printf to report optimization.
17620 (sem_variable::merge): Likwise.
17621 (sem_item_optimizer::merge_classes): Use dump_printf to report
17624 2019-08-09 Martin Liska <mliska@suse.cz>
17626 * value-prof.c (gimple_divmod_fixed_value_transform):
17627 Use dump_printf_loc.
17628 (gimple_mod_pow2_value_transform): Likewise.
17629 (gimple_mod_subtract_transform): Likewise.
17630 (init_node_map): Likewise.
17631 (gimple_ic_transform): Likewise.
17632 (gimple_stringops_transform): Likewise.
17634 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17636 * doc/extend.texi: Add const qualifier to ld intrinsics.
17638 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17640 * config/rs6000/dfp.md (D64_D128): Rename to ...
17641 (DDTD): ... this, throughout.
17642 (dfp_suffix): Rename to ...
17643 (q): ... this, throughout.
17645 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17647 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17648 (dfp_suffix): Ditto.
17649 (adddd3, addtd3): Merge to ...
17650 (add<mode>3 for D64_D128): ... this.
17651 (subdd3, subtd3): Merge to ...
17652 (sub<mode>3 for D64_D128): ... this.
17653 (muldd3, multd3): Merge to ...
17654 (mul<mode>3 for D64_D128): ... this.
17655 (divdd3, divtd3): Merge to ...
17656 (div<mode>3 for D64_D128): ... this.
17657 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17658 (*cmp<mode>_internal1 for D64_D128): ... this.
17659 (ftruncdd2, ftrunctd2): Merge to ...
17660 (ftrunc<mode>2 for D64_D128): ... this.
17661 (fixdddi2, fixtddi2): Merge to ...
17662 (fix<mode>di2 for D64_D128): ... this.
17664 2019-08-08 Jim Wilson <jimw@sifive.com>
17667 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17668 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17669 Pass into recursive call.
17670 (riscv_flatten_aggregate_argument): New arg. Pass to
17671 riscv_flatten_aggregate_field.
17672 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17673 riscv_flatten_aggregate_argument twice, with false and true as last
17674 arg. Process result twice. Compare results and warn if different.
17675 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17677 2019-08-08 Martin Liska <mliska@suse.cz>
17680 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17681 * lto-wrapper.c (jobserver_active_p): Likewise.
17683 2019-08-08 Martin Liska <mliska@suse.cz>
17685 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17686 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17687 (create_version_clone_with_body): Likewise.
17689 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17691 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17692 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17693 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17694 GOVD_EXPLICIT flags.
17695 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17696 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17697 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17698 call install_var_field with mask 11 instead of 3.
17699 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17700 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17702 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17704 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17705 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17707 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17709 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17710 MOVPRFX alternatives. Make the GPR alternatives more expensive
17713 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17715 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17716 Disparage the GPR alternative relative to the FPR one.
17717 Fix handling of 8-bit and 16-bit FPR values.
17719 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17721 * config/aarch64/iterators.md (BITWISEV): Delete.
17722 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17723 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17724 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17725 UNSPEC_FMINNMV, UNSPEC_FMINV.
17726 (bit_reduc_op): Delete.
17727 (sve_int_op): New int attribute.
17728 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17729 UNSPEC_FMINNMV, UNSPEC_FMINV.
17730 * config/aarch64/aarch64-sve.md
17731 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17732 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17733 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17734 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17735 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17736 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17738 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17739 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17740 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17741 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17742 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17745 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17747 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17748 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17749 (fms<mode>4, *fms<mode>4): Replace with...
17750 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17751 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17752 Use unspecs instead of rtx codes.
17753 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17754 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17756 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17758 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17760 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17761 * config/aarch64/aarch64-sve.md
17762 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17763 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17764 use a single unspec for the rhs.
17765 (*<su><maxmin><mode>3): Delete.
17766 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17768 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17770 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17771 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17772 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17773 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17774 (optab, sve_fp_op): Handle them.
17775 (SVE_FP_UNARY): Delete.
17776 (optab): Remove sqrt entry.
17777 (sve_fp_op): Remove neg, abs and sqrt entries.
17778 (SVE_COND_FP_UNARY): New int iterator.
17779 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17780 (*<frint_pattern><mode>2): Delete.
17781 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17782 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17783 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17784 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17786 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17788 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17790 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17792 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17793 (UNSPEC_COND_FADD): ...this.
17794 (UNSPEC_COND_SUB): Rename to...
17795 (UNSPEC_COND_FSUB): ...this.
17796 (UNSPEC_COND_MUL): Rename to...
17797 (UNSPEC_COND_FMUL): ...this.
17798 (UNSPEC_COND_DIV): Rename to...
17799 (UNSPEC_COND_FDIV): ...this.
17800 (UNSPEC_COND_MAX): Rename to...
17801 (UNSPEC_COND_FMAXNM): ...this.
17802 (UNSPEC_COND_MIN): Rename to...
17803 (UNSPEC_COND_FMINNM): ...this.
17804 (UNSPEC_COND_LT): Rename to...
17805 (UNSPEC_COND_FCMLT): ...this.
17806 (UNSPEC_COND_LE): Rename to...
17807 (UNSPEC_COND_FCMLE): ...this.
17808 (UNSPEC_COND_EQ): Rename to...
17809 (UNSPEC_COND_FCMEQ): ...this.
17810 (UNSPEC_COND_NE): Rename to...
17811 (UNSPEC_COND_FCMNE): ...this.
17812 (UNSPEC_COND_GE): Rename to...
17813 (UNSPEC_COND_FCMGE): ...this.
17814 (UNSPEC_COND_GT): Rename to...
17815 (UNSPEC_COND_FCMGT): ...this.
17816 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17817 (sve_fp_op_rev): Update accordingly.
17818 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17820 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17822 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17824 * config/aarch64/check-sve-md.awk: New file.
17825 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17826 (insn-conditions.md): Depend on it.
17828 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17831 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17832 (*negsi2_cmpz_zext): Ditto.
17834 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17836 * config/aarch64/iterators.md (commutative): Remove.
17838 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17841 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17842 processing COLLECT_GCC_OPTIONS.
17843 (run_gcc): Likewise.
17845 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17847 PR tree-optimization/91109
17848 * lra-remat.c (update_scratch_ops): Remove assignment of the
17851 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17853 * data-streamer.h (streamer_write_poly_uint64): Declare.
17854 (streamer_read_poly_uint64): Likewise.
17855 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17856 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17857 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17858 (add_condition): Take a poly_int64 size.
17859 * ipa-predicate.c (add_condition): Likewise.
17860 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17861 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17862 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17863 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17864 condition::size as a poly_int64.
17865 (unmodified_parm_1): Take a poly_int64 size pointer.
17866 (unmodified_parm): Likewise.
17867 (unmodified_parm_or_parm_agg_item): Likewise.
17868 (set_cond_stmt_execution_predicate): Update accordingly.
17869 (set_switch_stmt_execution_predicate): Likewise.
17870 (will_be_nonconstant_expr_predicate): Likewise.
17871 (will_be_nonconstant_predicate): Likewise.
17872 (inline_read_section): Stream condition::size as a poly_int.
17873 (ipa_fn_summary_write): Likewise.
17875 2019-08-07 Martin Liska <mliska@suse.cz>
17877 * fold-const.c (twoval_comparison_p): Replace int
17878 with bool as a return type.
17879 (simple_operand_p): Likewise.
17880 (operand_equal_p): Replace int with bool as a return type.
17881 * fold-const.h (operand_equal_p): Likewise.
17883 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17885 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17886 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17887 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17888 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17889 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17890 * tree-pretty-print.c (dump_omp_clause): Likewise.
17891 * tree-nested.c (convert_nonlocal_omp_clauses,
17892 convert_local_omp_clauses): Likewise.
17893 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17895 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17896 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17897 clause with array or reference to array types, no matter what type
17898 except for reference it has.
17900 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17902 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17904 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17906 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17907 (arch_canonicalize): Support rv32g and rv64g and fix error
17910 2019-08-06 Martin Liska <mliska@suse.cz>
17912 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17913 and DECL_IS_OPERATOR_DELETE_P.
17915 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17917 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17918 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17919 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17920 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17921 (gimplify_omp_for): Don't do C++ random access iterator clause
17922 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17923 don't predetermine the artificial iterator in case of C++ random
17924 access iterators as lastprivate, but private. For OMP_LOOP, force
17925 bind expr around simd body and force for_pre_body before the
17926 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17927 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17928 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17929 diff var of C++ random access iterators. Handle
17930 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17931 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17932 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17933 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17934 * omp-low.c (lower_rec_input_clauses): For
17935 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17936 variables instead of default constructing them.
17937 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17938 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17939 is_taskloop_ctx check from the assert to the guarding condition.
17941 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17943 * config/riscv/multilib-generator: (canonical_order): New.
17944 (arch_canonicalize): Dito.
17945 Apply arch_canonicalize for alts.
17947 2019-08-05 Martin Sebor <msebor@redhat.com>
17949 * doc/extend.texi (Common Variable Attributes): Document alias
17952 2019-08-05 Marek Polacek <polacek@redhat.com>
17954 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17955 * doc/invoke.texi: Document -Wcomma-subscript.
17957 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17959 * tree-core.h (tree_function_decl): Make function_code an
17960 independent field. Group the remaining bitfields into bytes
17961 and move decl_type so that it contines to be at a byte boundary.
17962 Leave 12 bits for future expansion.
17964 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17966 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17967 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17968 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17971 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17973 * gimple.h (gimple_move_vops): Declare.
17974 * gimple.c (gimple_move_vops): New function
17975 * gimple-fold.c (replace_call_with_call_and_fold)
17976 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17977 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17978 (gimple_fold_call): Use it.
17979 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17980 * tree-call-cdce.c (use_internal_fn): Likewise.
17981 * tree-if-conv.c (predicate_load_or_store): Likewise.
17982 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17983 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17984 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17985 (update_call_from_tree): Likewise.
17986 * tree-vect-stmts.c (vectorizable_load): Likewise.
17987 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17989 2019-08-05 Martin Liska <mliska@suse.cz>
17992 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17993 with not arguments.
17994 (eliminate_unnecessary_stmts): Likewise.
17996 2019-08-05 Richard Biener <rguenther@suse.de>
17998 PR middle-end/91169
17999 * fold-const.c (get_array_ctor_element_at_index): Create
18000 offset_ints according to the sign of the index type and treat
18001 that as signed if it is obviously so.
18003 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18006 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18007 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18008 _mm256_storeu2_m128i): New function.
18010 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18012 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18013 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18015 2019-08-05 Alan Modra <amodra@gmail.com>
18018 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18019 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18021 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18023 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18024 bug that was fixed in Tcl 8.6.1.
18026 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18028 * config/rs6000/future.md: New file.
18029 * config/rs6000/rs6000.md: Include future.md.
18030 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18032 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18034 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18035 check to use targetm.slow_unaligned_access instead.
18037 * function.c (assign_param_data_one): Remove unused data members.
18039 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18041 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18042 build_distinct_type_copy.
18043 (simd_clone_adjust_argument_types): Ditto.
18044 (simd_clone_adjust): Call build_distinct_type_copy here.
18045 (expand_simd_clones): Ditto.
18047 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18050 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18052 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18054 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18055 from 'const void *'.
18056 (sort_locs_in_loop_postorder_cmp): Likewise.
18058 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18060 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18061 (hot-bb-count-ws-permille): Likewise.
18062 (hot-bb-frequency-fraction): Likewise.
18063 (unlikely-bb-count-fraction): Likewise.
18064 * params.def (hot-bb-count-fraction): Rework description.
18065 (hot-bb-count-ws-permille): Likewise.
18066 (hot-bb-frequency-fraction): Likewise.
18067 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18068 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18070 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18073 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18076 2019-08-02 Richard Biener <rguenther@suse.de>
18078 * vec.h (vec::sort): Add gcc_qsort_r support.
18079 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18080 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18081 to gcc_qsort_r style callback.
18082 (sort_locs_in_loop_postorder_cmp): Likewise.
18083 (analyze_memory_references): Use gcc_sort_r interfaces.
18084 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18086 2019-08-02 Martin Liska <mliska@suse.cz>
18089 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18090 to detect working job server.
18091 (driver::detect_jobserver): Test whether jobserver
18092 is active from GCC driver. That will prevent situation where
18093 GCC is invoked from a LD plugin and the linker already uses
18094 file descriptors suggested by make. That leads to a wrong
18096 * gcc.h (driver): Add detect_jobserver.
18097 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18098 not scanning for --jobserver-auth prefix.
18100 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18102 PR tree-optimization/91201
18103 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18104 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18107 2019-08-01 Martin Sebor <msebor@redhat.com>
18110 * tree.c (type_initializer_zero_p): Define.
18111 * tree.h (type_initializer_zero_p): New function.
18113 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18115 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18117 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18119 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18120 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18121 * predict.c (maybe_hot_count_p): Likewise.
18122 (maybe_hot_bb_p): Tweak comment.
18123 (maybe_hot_edge_p): Likewise.
18124 (probably_never_executed): Likewise. Minor tweak.
18125 (probably_never_executed_bb_p): Likewise.
18126 (unlikely_executed_edge_p): Likewise.
18127 (probably_never_executed_edge_p): Likewise.
18128 (optimize_function_for_size_p): Likewise.
18129 (optimize_function_for_speed_p): Likewise.
18130 (function_optimization_type): Likewise.
18131 (optimize_bb_for_size_p): Likewise.
18132 (optimize_bb_for_speed_p): Likewise.
18133 (bb_optimization_type): Likewise.
18134 (optimize_edge_for_size_p): Likewise.
18135 (optimize_edge_for_speed_p): Likewise.
18136 (optimize_insn_for_size_p): Likewise.
18137 (optimize_insn_for_speed_p): Likewise.
18138 (optimize_loop_for_size_p): Likewise.
18139 (optimize_loop_for_speed_p): Likewise.
18140 (optimize_loop_nest_for_speed_p): Likewise.
18141 (optimize_loop_nest_for_size_p): Likewise.
18142 (predictable_edge_p): Likewise.
18143 (handle_missing_profiles): Minor tweak.
18145 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18147 * config/rs6000/predicates.md (pcrel_external_address): Update
18150 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18153 * config/i386/mmx.md (usadv8qi): New expander.
18155 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18158 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18159 with reserved names that are in a system header.
18161 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18163 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18164 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18165 (*vec_extractv2si_0_zext): Ditto.
18166 (*vec_extractv2si_1): Add (rm,x) alternative.
18167 (*vec_extractv2si_1_zext): New insn pattern.
18168 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18171 2019-08-01 Richard Biener <rguenther@suse.de>
18173 * domwalk.c (bb_postorder): Remove static variable.
18174 (cmp_bb_postorder): Adjust.
18175 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18176 (dom_walker::walk): Adjust.
18178 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18180 * sort.cc (sort_r_ctx): New struct.
18181 (reorder23): Make templated on context type.
18182 (reorder45): Ditto.
18183 (cmp1): Ditto. Adjust signature.
18185 (mergesort): Ditto.
18186 [CHECKING_P] (cmp2to3): New static function. Use it...
18187 (gcc_qsort) [CHECKING_P]: ...here.
18188 (gcc_sort_r): New function.
18189 * system.h (sort_r_cmp_fn): New function typedef.
18190 (qsort_chk): Adjust signature.
18191 (gcc_sort_r): Declare.
18192 * vec.c (qsort_chk_error): Adjust.
18193 (qsort_chk): Adjust.
18195 2019-08-01 Richard Biener <rguenther@suse.de>
18197 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18198 (compute_antic): Localize it here.
18200 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18202 * common/config/riscv/riscv-common.c: Check -march string ends
18205 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18207 * ipa-devirt.c (type_warning_cmp): Make static.
18208 (decl_warning_cmp): Ditto.
18210 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18213 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18214 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18215 use of deleted rs6000_dejagnu_cpu_index variable.
18216 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18217 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18218 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18219 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18220 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18221 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18223 2019-07-31 Richard Biener <rguenther@suse.de>
18225 PR tree-optimization/91280
18226 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18227 Decompose MEM_REF manually for offset handling.
18229 2019-07-31 Richard Biener <rguenther@suse.de>
18231 PR tree-optimization/91293
18232 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18233 of reduction stmts.
18235 2019-07-31 Matt Thomas <matt@3am-software.com>
18236 Nick Hudson <nick@nthcliff.demon.co.uk>
18237 Matthew Green <mrg@eterna.com.au>
18238 Maya Rashish <coypu@sdf.org>
18240 * config.gcc (hppa*-*-netbsd*): New target.
18241 * config/pa/pa-netbsd.h: New file.
18242 * config/pa/pa32-netbsd.h: New file.
18244 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18246 PR tree-optimization/91201
18247 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18249 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18251 * config/gcn/gcn-valu.md
18252 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18253 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18254 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18255 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18256 struct ilist. Add nops for delayeduse insns.
18257 * config/gcn/gcn.md (delayeduse): New attribute.
18258 (*movbi): Remove s_waitcnt from stores.
18259 (*mov<mode>_insn): Likewise.
18260 (*movti_insn): Likewise. Add delayeduse attribute.
18261 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18262 (atomic_store<mode>): Remove or adjust s_waitcnt.
18264 2019-07-31 Richard Biener <rguenther@suse.de>
18266 * vr-values.h (vr_values::swap_vr_value): New.
18267 (vr_values::free_value_range): likewise.
18268 * vr-values.c (vr_values::swap_vr_value): Implement.
18269 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18270 Do not return a range or take a var.
18271 (evrp_range_analyzer::stack): Change back to recording a non-const
18273 * gimple-ssa-evrp-analyze.c
18274 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18276 (evrp_range_analyzer::pop_to_marker): Adjust.
18277 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18278 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18279 no longer needed value-range.
18281 2019-07-31 Martin Liska <mliska@suse.cz>
18283 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18284 have size and (or) alignment as 2nd and later arguments.
18285 Mark all of them as necessary.
18287 2019-07-31 Richard Biener <rguenther@suse.de>
18289 PR tree-optimization/91178
18290 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18291 Use tail-recursion.
18293 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18295 PR tree-optimization/91201
18296 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18297 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18299 (reduc_plus_scal_<mode>): Improve formatting by introducing
18302 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18304 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18305 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18306 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18307 (aarch64_init_tme_builtins): New.
18308 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18309 (aarch64_expand_builtin_tme): New.
18310 (aarch64_expand_builtin): Handle TME builtins.
18311 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18312 __ARM_FEATURE_TME when enabled.
18313 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18314 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18316 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18317 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18319 (tstart, ttest, tcommit, tcancel): New instructions.
18320 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18321 (__tcancel, __ttest): New.
18322 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18323 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18324 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18325 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18326 * config/arm/types.md: Add new tme type attr.
18327 * doc/invoke.texi: Document "tme".
18329 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18331 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18332 warn_unused_result attribute.
18333 (cmse_check_address_range): Add warn_unused_result attribute.
18335 2019-07-31 Richard Biener <rguenther@suse.de>
18337 PR tree-optimization/91257
18338 * tree-vrp.c (union_ranges): Unify equality and less tests
18339 by using compare_values. Re-order cheap tests first.
18341 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18343 PR middle-end/91301
18344 * gimplify.c (gimplify_omp_for): If for class iterator on
18345 distribute parallel for there is no data sharing clause
18346 on inner_for_stmt, look for private clause on combined
18347 parallel too and if found, move it to inner_for_stmt.
18349 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18351 * lra-int.h (lra_operand_data): Remove early_clobber field.
18352 (lra_insn_reg): Likewise.
18353 * lra.c (debug_operand_data): Update accordingly.
18354 (setup_operand_alternative): Likewise.
18355 (new_insn_reg): Likewise. Remove early_clobber parameter.
18356 (collect_non_operand_hard_regs): Update call accordingly.
18357 Don't assign to lra_insn_reg::early_clobber.
18358 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18359 and update calls to new_insn_reg.
18360 (lra_update_insn_regno_info): Update calls accordingly.
18361 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18362 alternative number as a parameter and test whether the operand
18363 is earlyclobbered in that particular alternative.
18364 (process_alt_operands): Update call accordingly. Use per-alternative
18365 checks for earyclobber here too.
18366 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18367 against zero for IRA_UNKNOWN_ALT.
18369 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18371 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18373 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18375 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18376 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18378 2019-07-30 Martin Liska <mliska@suse.cz>
18381 * cgraph.c (cgraph_edge::make_direct): Use
18382 edge->indirect_unknown_callee as edge->resolve_speculation can
18383 deallocate edge which is this pointer.
18385 2019-07-30 Richard Biener <rguenther@suse.de>
18387 PR tree-optimization/91257
18388 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18390 2019-07-30 Martin Liska <mliska@suse.cz>
18392 * doc/invoke.texi: Document new behavior.
18393 * lto-wrapper.c (cpuset_popcount): New function
18394 is a copy of libgomp/config/linux/proc.c.
18395 (init_num_threads): Likewise.
18396 (run_gcc): Automatically detect core count for -flto.
18397 (jobserver_active_p): New function.
18399 2019-07-30 Richard Biener <rguenther@suse.de>
18401 PR tree-optimization/91257
18402 * bitmap.h (bitmap_ior_into_and_free): Declare.
18403 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18404 whether to add the unliked element to the freelist.
18405 (bitmap_list_insert_element_after): Add defaulted param for
18406 an already allocated element.
18407 (bitmap_ior_into_and_free): New function.
18408 * tree-ssa-structalias.c (condense_visit): Reduce the
18409 ponts-to and edge bitmaps of the SCC members in a
18410 logarithmic fashion rather than all to one.
18412 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18414 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18415 parameter. When nonnull, make sure that the addition or subtraction
18416 has the same condition.
18417 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18418 for CFN_COND_MUL too.
18420 2019-07-30 Richard Biener <rguenther@suse.de>
18422 PR tree-optimization/91291
18423 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18426 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18428 PR middle-end/91216
18429 * omp-low.c (global_nonaddressable_vars): New variable.
18430 (use_pointer_for_field): For global decls, if they are non-addressable,
18431 remember it in the global_nonaddressable_vars bitmap, if they are
18432 addressable and in the global_nonaddressable_vars bitmap, ignore their
18433 TREE_ADDRESSABLE bit.
18434 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18435 vars in global_nonaddressable_vars bitmap.
18436 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18439 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18440 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18441 comparison to unsigned HOST_WIDE_INT before shifting it left.
18443 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18445 * config/i386/i386.md (movstrict<mode>): Use register_operand
18446 predicate for operand 0. Add expander condition. Assert that
18447 operand 0 is a SUBREG RTX.
18448 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18449 Update operand constraints and insn condition.
18450 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18451 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18452 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18453 Update operand 0 constraints.
18454 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18456 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18458 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18459 when -m{code,data}-region are used without -mlarge.
18460 * config/msp430/msp430.c (msp430_option_override): Error when a
18461 non-default code or data region is used without -mlarge.
18462 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18463 attributes when they are used without -mlarge.
18465 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18468 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18470 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18472 PR middle-end/91242
18473 * wide-int.h (generic_wide_int::sext_elt): New function.
18474 * inchash.h (hash::add_wide_int): Use it instead of elt.
18476 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18478 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18480 * config/arm/arm.md (<crc_variant>): Rename to...
18481 (arm_<crc_variant>): ... This.
18482 (<cdp>): Rename to...
18483 (arm_<cdp>): ... This.
18484 (<ldc>): Rename to...
18485 (arm_<ldc>): ... This.
18486 (<stc>): Rename to...
18487 (arm_<stc>): ... This.
18488 (<mcr>): Rename to...
18489 (arm_<mcr>): ... This.
18490 (<mrc>): Rename to...
18491 (arm_<mrc>): ... This.
18492 (<mcrr>): Rename to...
18493 (arm_<mcrr>): ... This.
18494 (<mrrc>): Rename to...
18495 (arm_<mrrc>): ... This.
18497 2019-07-29 Richard Biener <rguenther@suse.de>
18499 PR tree-optimization/91257
18500 * tree-ssa-sccvn.h (struct vn_avail): New.
18501 (struct vn_ssa_aux): Add avail member.
18502 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18503 member, add m_avail_freelist one.
18504 (rpo_elim::~rpo_elim): Remove.
18505 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18507 (rpo_elim::eliminate_push_avail): Likewise.
18508 (do_unwind): Likewise.
18509 (do_rpo_vn): Likewise.
18511 2019-07-29 Richard Biener <rguenther@suse.de>
18513 PR tree-optimization/91257
18514 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18515 most cases, instead call compare_values which handles the
18516 symbolic ranges we handle specially.
18517 (compare_values_warnv): Do not call operand_less_p but open-code
18518 the effective fold calls. Avoid converting so much.
18520 2019-07-29 Martin Liska <mliska@suse.cz>
18522 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18523 remove LHS of operator new call. It's handled latter.
18525 2019-07-29 Richard Biener <rguenther@suse.de>
18527 PR tree-optimization/91267
18528 * vr-values.c (vr_values::update_value_range): Add early return
18529 for effectively VARYING lattice entry.
18531 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18534 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18535 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18536 necessary if keep_all_vdefs_p is true.
18537 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18538 that keep_all_vdefs_p is false.
18539 (mark_all_reaching_defs_necessary): Likewise.
18540 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18542 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18544 * common.opt (Og): Change the initial value of flag_dse to 0.
18545 * opts.c (default_options_table): Move OPT_ftree_dse from
18546 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18547 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18548 entry before the OPT_ftree_sra entry.
18549 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18550 of flags disabled by Og.
18552 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18554 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18557 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18559 * doc/sourcebuild.texi (check-function-bodies): Document.
18561 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18563 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18564 VEC_DUPLICATE of a fixed-length vector even if the result
18565 is variable-length. Likewise fold a duplicate of a
18566 variable-length vector if the variable-length vector is
18567 itself a duplicate of a fixed-length sequence.
18568 (test_vector_ops_duplicate): Test more cases.
18570 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18572 * vector-builder.h (vector_builder): Add a shape template parameter.
18573 (vector_builder::new_unary_operation): New function, generalizing
18574 the old tree_vector_builder function.
18575 (vector_builder::new_binary_operation): Likewise.
18576 (vector_builder::binary_encoded_nelts): Likewise.
18577 * int-vector-builder.h (int_vector_builder): Update template
18578 parameters to vector_builder.
18579 (int_vector_builder::shape_nelts): New function.
18580 * rtx-vector-builder.h (rtx_vector_builder): Update template
18581 parameters to vector_builder.
18582 (rtx_vector_builder::shape_nelts): New function.
18583 (rtx_vector_builder::nelts_of): Likewise.
18584 (rtx_vector_builder::npatterns_of): Likewise.
18585 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18586 * tree-vector-builder.h (tree_vector_builder): Update template
18587 parameters to vector_builder.
18588 (tree_vector_builder::shape_nelts): New function.
18589 (tree_vector_builder::nelts_of): Likewise.
18590 (tree_vector_builder::npatterns_of): Likewise.
18591 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18592 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18593 (tree_vector_builder::new_binary_operation): Delete.
18594 (tree_vector_builder::binary_encoded_nelts): Likewise.
18595 * simplify-rtx.c: Include rtx-vector-builder.h.
18596 (distributes_over_addition_p): New function.
18597 (simplify_const_unary_operation)
18598 (simplify_const_binary_operation): Generalize handling of vector
18599 constants to include variable-length vectors.
18600 (test_vector_ops_series): Add more tests.
18602 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18605 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18606 than INDENTIFIER_POINTER.
18608 2019-07-28 Martin Liska <mliska@suse.cz>
18611 * cgraph.c (symbol_table::create_edge): Always allocate
18613 (symbol_table::free_edge): Store summary_id to
18614 edge_released_summary_ids if != -1;
18615 * cgraph.h (NEXT_FREE_NODE): Remove.
18616 (SET_NEXT_FREE_NODE): Likewise.
18617 (NEXT_FREE_EDGE): Likewise.
18618 (symbol_table::release_symbol): Store summary_id to
18619 cgraph_released_summary_ids if != -1;
18620 (symbol_table::allocate_cgraph_symbol): Always allocate
18623 2019-07-28 Alan Modra <amodra@gmail.com>
18625 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18628 2019-07-28 Alan Modra <amodra@gmail.com>
18631 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18633 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18634 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18635 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18637 2019-07-28 Alan Modra <amodra@gmail.com>
18640 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18641 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18642 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18643 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18644 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18645 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18646 in asm_default spec.
18647 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18648 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18650 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18652 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18654 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18657 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18658 * config/aarch64/aarch64-option-extensions.def: Add new comments
18659 and restore easier to read options.
18661 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18663 * convert.c (convert_to_real_1): Move part of conversion code...
18664 * match.pd: ...To here.
18666 2019-07-26 Martin Jambor <mjambor@suse.cz>
18669 * ipa-inline-transform.c (check_speculations_1): New function.
18670 (push_all_edges_in_set_to_vec): Likewise.
18671 (check_speculations): Use check_speculations_1, new parameter
18673 (inline_call): Pass new_edges to check_speculations.
18674 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18676 (speculation_useful_p): Early return true if edge is inlined, remove
18677 later checks for inline_failed.
18679 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18681 PR rtl-optimization/91223
18682 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18683 matching with INOUT operand.
18685 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18687 * stmt.c (expand_case): Try to narrow the index type if it's larger
18688 than a word. Tidy up.
18690 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18692 * cif-code.def (NEVER_CALL): New code.
18693 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18694 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18696 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18698 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18699 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18701 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18703 * ipa-devirt.c (add_type_duplicate): Fix return value.
18705 2019-07-25 Richard Biener <rguenther@suse.de>
18707 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18708 type parameter and use it instead of guessing expression
18709 type from the first operand.
18710 (extract_range_from_binary_expr): Pass expr_type down.
18712 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18714 * config/arm/arm.md (SATrev): Change to code attribute.
18715 (*satsi_<SAT:code>): Adjust for the above.
18716 (*satsi_<SAT:code>_shift): Likewise.
18718 2019-07-25 Richard Biener <rguenther@suse.de>
18720 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18721 Make value_range * temporary const.
18722 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18724 (evrp_range_analyzer::record_ranges_from_): Likewise.
18725 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18726 deal with having recorded a const one.
18727 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18728 Return a const value_range *.
18729 (evrp_range_analyzer::pop_value_range): Likewise.
18730 (evrp_range_analyzer::stack): Record const value_range *s.
18731 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18733 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18734 (format_integer): Likewise.
18735 (sprintf_dom_walker::handle_gimple_call): Likewise.
18736 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18737 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18738 (vrp_prop::get_value_range): Adjust.
18739 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18740 modifying the lattice in-place.
18741 (vrp_prop::visit_stmt): Likewise.
18742 * vr-values.c (vr_values::get_lattice_entry): New private method.
18743 (vr_values::get_value_range): Wrap it and return a const
18745 (vr_values::set_def_to_varying): New.
18746 (vr_values::set_defs_to_varying): Use it.
18747 (vr_values::update_value_range): Likewise.
18748 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18749 (values::op_with_constant_singleton_va): Likewise.
18750 (vr_values::extract_range_for_var_from_co): Likewise.
18751 (vr_values::extract_range_from_ssa_name): Likewise.
18752 (vr_values::extract_range_from_cond_expr): Likewise.
18753 (vr_values::extract_range_basic): Likewise.
18754 (compare_ranges): Take const value_range *, adjust.
18755 (compare_range_with_value): Likewise.
18756 (vrp_valueize): Adjust.
18757 (vrp_valueize_1): Likewise.
18758 (vr_values::get_vr_for_comparison): Return a const value_range *.
18759 (vr_values::compare_name_with_value): Adjust.
18760 (vr_values::compare_names): Likewise.
18761 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18763 (vr_values::vrp_evaluate_conditional): Likewise.
18764 (find_case_label_ranges): Take a const value_range *.
18765 (vr_values::vrp_visit_switch_stmt): Adjust.
18766 (vr_values::extract_range_from_phi_node): Likewise.
18767 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18768 (vr_values::simplify_abs_using_ranges): Likewise.
18769 (test_for_singularity): Take a const value_range *.
18770 (range_fits_type_p): Likewise.
18771 (vr_values::simplify_cond_using_ranges_1): Adjust.
18772 (vr_values::simplify_cond_using_ranges_2): Likewise.
18773 (vr_values::simplify_switch_using_ranges): Likewise.
18774 (vr_values::simplify_float_conversion_usi): Likewise.
18775 (vr_values::two_valued_val_range_p): Likewise.
18776 * vr-values.h (vr_values::get_value_range): Return a const
18778 (vr_values::set_def_to_varying): New.
18779 (vr_values::get_lattice_entry): New private method.
18780 (vr_values::get_vr_for_comparison): Return a const value_range *.
18782 2019-07-25 Martin Liska <mliska@suse.cz>
18783 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18786 * common.opt: Add -fallocation-dce
18787 * gimple.c (gimple_call_operator_delete_p): New.
18788 * gimple.h (gimple_call_operator_delete_p): Likewise.
18789 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18790 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18791 DECL_IS_OPERATOR_DELETE_P.
18792 (mark_all_reaching_defs_necessary_1): Likewise.
18793 (propagate_necessity): Likewise.
18794 (eliminate_unnecessary_stmts): Handle
18795 gimple_call_operator_delete_p.
18796 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18797 Add packing of OPERATOR_DELETE.
18798 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18800 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18801 (DECL_SET_IS_OPERATOR_DELETE): New.
18802 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18804 2019-07-25 Martin Liska <mliska@suse.cz>
18806 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18807 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18808 * coverage.c (coverage_begin_function): Likewise.
18809 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18810 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18811 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18812 (sem_item::hash_referenced_symbol_properties): Likewise.
18813 * lto-streamer-out.c (hash_tree): Likewise.
18814 * predict.c (expr_expected_value_1): Likewise.
18815 * tree-inline.c (expand_call_inline): Likewise.
18816 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18817 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18818 * tree-core.h (enum function_decl_type): New enum.
18819 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18820 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18821 (set_function_decl_type): Likewise.
18822 (DECL_IS_OPERATOR_NEW_P): New.
18823 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18824 (DECL_LAMBDA_FUNCTION): Likewise.
18825 (DECL_LAMBDA_FUNCTION_P): Likewise.
18826 (DECL_IS_OPERATOR_NEW): Remove.
18827 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18829 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18831 * ipa-profile.c (get_most_common_single_value): Use
18832 get_nth_most_common_value.
18833 * profile.c (sort_hist_value): New function.
18834 (compute_value_histograms): Call sort_hist_value to sort the
18835 values after loading from disk.
18836 * value-prof.c (get_most_common_single_value): Rename to ...
18837 get_nth_most_common_value. Add input params n, return
18838 the n_th value and count.
18839 (gimple_divmod_fixed_value_transform): Use
18840 get_nth_most_common_value.
18841 (gimple_ic_transform): Likewise.
18842 (gimple_stringops_transform): Likewise.
18843 * value-prof.h (get_most_common_single_value): Add input params
18846 2019-07-25 Richard Biener <rguenther@suse.de>
18848 PR tree-optimization/91236
18849 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18850 size of CONSTRUCTOR write. Fix buffer size we pass to
18851 native_encode_expr.
18853 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18855 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18856 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18859 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18861 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18862 explicitly disabled with --disable-initfini-array.
18864 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18866 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18869 2019-07-24 Martin Sebor <msebor@redhat.com>
18871 PR tree-optimization/91183
18872 PR tree-optimization/86688
18873 * builtins.c (compute_objsize): Handle MEM_REF.
18874 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18875 (get_min_string_length): Remove.
18876 (count_nonzero_bytes): New function.
18877 (handle_char_store): Rename...
18878 (handle_store): to this. Handle multibyte stores via integer types.
18879 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18882 2019-07-24 Martin Sebor <msebor@redhat.com>
18885 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18886 (diagnostic_report_diagnostic): Same.
18887 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18888 (diagnostic_context::lang_mask): New data member.
18889 * ipa-pure-const.c (suggest_attribute): Use
18890 lang_hooks.option_lang_mask ().
18891 * opts-common.c (option_enabled): Handle new argument.
18892 (get_option_state): Pass an additional argument.
18893 * opts.c (print_filtered_help): Print supported languages for
18894 unsupported options. Adjust printing of current state.
18895 * opts.h (option_enabled): Add argument.
18896 * toplev.c (print_switch_values): Use lang_mask.
18897 (general_init): Set global_dc->lang_mask.
18899 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18902 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18904 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18906 * cgraphunit.c (symbol_table::compile): Start and stop
18907 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18908 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18910 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18912 * gimplify.c (flag_instrument_functions_exclude_p): Include
18913 namespace/class information in the printable name.
18914 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18915 to tokens entered into the vector.
18917 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18919 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18920 (get_static_chain): Call it instead of build_simple_mem_ref.
18921 (get_frame_field): Likewise.
18922 (get_nonlocal_debug_decl): Likewise.
18923 (convert_nonlocal_reference_op): Likewise.
18925 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18927 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18929 (arc_compute_frame_size): Millicode is disabled when compiling
18931 (arc_return_address_register): Likewise.
18932 (arc_compute_function_type): Likewise.
18933 (arc_compute_frame_size): Likewise.
18934 (secondary_reload_info): Likewise.
18935 (arc_get_unalign): Likewise.
18936 (arc_can_use_return_insn): Declare.
18937 * config/arc/arc.c (AUX_LP_START): Define
18938 (AUX_LP_END): Likewise.
18939 (arc_frame_info): Update gmask member to 64-bit datum.
18940 (GMASK_LEN): Update.
18941 (arc_compute_function_type): Make it static, move it forward.
18942 (arc_must_save_register): Update, consider the extra regs.
18943 (arc_compute_millicode_save_restore_regs): Update to use the 64
18945 (arc_compute_frame_size): Likewise.
18946 (arc_enter_leave_p): Likewise.
18947 (arc_save_callee_saves): Likewise.
18948 (arc_restore_callee_saves): Likewise.
18949 (arc_save_callee_enter): Likewise.
18950 (arc_restore_callee_leave): Likewise.
18951 (arc_save_callee_milli): Likewise.
18952 (arc_restore_callee_milli): Likewise.
18953 (arc_expand_prologue): Add new interrupt handling.
18954 (arc_return_address_register): Make it static, move it forward.
18955 (arc_expand_epilogue): Add new interrupt handling.
18956 (arc_get_unalign): Delete.
18957 (arc_epilogue_uses): Make sure we do not remove the extra
18958 saved/restored registers when interrupt.
18959 (arc_can_use_return_insn): New function.
18960 (push_reg): Likewise.
18961 (pop_reg): Likewise.
18962 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18964 (arc_restore_callee_saves): Likewise, but restoring.
18965 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18966 (R33_REG): Likewise.
18967 (R34_REG): Likewise.
18968 (R35_REG): Likewise.
18969 (R36_REG): Likewise.
18970 (R37_REG): Likewise.
18971 (R38_REG): Likewise.
18972 (R39_REG): Likewise.
18973 (R45_REG): Likewise.
18974 (R46_REG): Likewise.
18975 (R47_REG): Likewise.
18976 (R48_REG): Likewise.
18977 (R49_REG): Likewise.
18978 (R50_REG): Likewise.
18979 (R51_REG): Likewise.
18980 (R52_REG): Likewise.
18981 (R53_REG): Likewise.
18982 (R54_REG): Likewise.
18983 (R55_REG): Likewise.
18984 (R56_REG): Likewise.
18985 (R58_REG): Likewise.
18986 (type): Add rtie attribute.
18987 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18988 (movsi_insn): Accept moves to lp_count.
18989 (rtie): Update pattern.
18990 (simple_return): Simplify it, don't use this pattern as a return
18992 (arc600_rtie): New pattern.
18993 (p_return_i): Clean up.
18994 (return): Likewise.
18995 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18997 * config/arc/predicates.md (move_src_operand): Consider lp_count
19000 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19002 * config/s390/predicates.md (addv_const_operand): New predicate.
19003 * config/s390/s390-modes.def (CCO): New condition code mode.
19004 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19005 (s390_branch_condition_mask): Likewise.
19006 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19007 ("mulv<mode>4"): New expanders.
19008 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19009 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19010 pattern definitions.
19012 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19014 PR middle-end/91166
19015 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19016 (define_predicates): Add entry for uniform_vector_p.
19017 (vec_same_elem_p): New match pattern.
19019 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19022 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19023 * config/i386/darwin32-biarch.h .. to here.
19024 * config/i386/darwin64-biarch.h: Adjust comments.
19025 * config/rs6000/darwin32-biarch.h: Likewise.
19026 * config/rs6000/darwin64-biarch.h: Likewise.
19027 * config.gcc: Missed commit from r273746
19028 (*-*-darwin*): Don't include CPU t-darwin here.
19029 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19030 an error message if i686-darwin configuration is attempted for
19033 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19036 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19037 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19038 an error message if i686-darwin configuration is attempted for
19040 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19041 (powerpc-*-darwin*): Use biarch files where needed.
19042 (powerpc64-*-darwin*): Likewise.
19043 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19044 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19046 * config/i386/darwin32-biarch.h: New.
19047 * config/i386/darwin64.h: Rename.
19048 * config/i386/darwin64-biarch.h: To this.
19049 * config/i386/t-darwin: Rename.
19050 * config/i386/t-darwin32-biarch: To this.
19051 * config/i386/t-darwin64: Rename.
19052 * config/i386/t-darwin64-biarch: To this.
19053 * config/rs6000/darwin32-biarch.h: New.
19054 * config/rs6000/darwin64.h: Rename.
19055 * config/rs6000/darwin64-biarch.h: To this.
19056 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19058 * config/rs6000/t-darwin8: Rename.
19059 * config/rs6000/t-darwin32-biarch: To this.
19060 * config/rs6000/t-darwin64 Rename.
19061 * config/rs6000/t-darwin64-biarch: To this.
19063 2019-07-23 Martin Sebor <msebor@redhat.com>
19065 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19067 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19069 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19070 (rh): New alias for it.
19072 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19074 * gdbhooks.py: Pass replace=True to
19075 gdb.printing.register_pretty_printer.
19077 2019-07-23 Richard Biener <rguenther@suse.de>
19080 * lto-streamer-in.c (input_function): Drop inline-entry markers
19081 that ended up with an unknown location block.
19083 2019-07-23 Richard Biener <rguenther@suse.de>
19085 PR tree-optimization/83518
19086 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19087 init from a constant even when partial defs are already recorded.
19089 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19091 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19092 * config/i386/znver1.md: Enable patterns for znver2 and add store
19093 variants which use extra AGU unit.
19095 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19097 * config/i386/i386-options.c (ix86_option_override_internal): Default
19098 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19099 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19102 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19104 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19105 (znver2_costs): Update 256 bit SSE costs and multiplication.
19107 2019-07-23 Jan Beulich <jbeulich@suse.com>
19109 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19110 Require only AVX512F.
19111 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19112 alternative expanding to vpternlog.
19114 2019-07-23 Martin Liska <mliska@suse.cz>
19116 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19117 to -flto in dwarf producer string.
19119 2019-07-23 Richard Biener <rguenther@suse.de>
19121 * tree-cfg.c (label_for_bb): Remove global var.
19122 (main_block_label): Take label_for_bb as argument.
19123 (cleanup_dead_labels_eh): Likewise, adjust.
19124 (cleanup_dead_labels): Adjust.
19126 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19128 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19129 Configurations): Add documentation for __builtin_mtfsf.
19131 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19133 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19134 * config/riscv/riscv.c (riscv_constant_alignment): Use
19135 riscv_align_data_type.
19136 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19137 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19138 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19139 * config/riscv/riscv.opt (malign-data): New.
19140 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19142 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19144 * cgraph.c (dump_graphviz): New function.
19145 * cgraph.h (dump_graphviz): New function.
19146 * symtab.c (dump_graphviz): New function.
19148 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19150 * config/aarch64/aarch64-simd.md
19151 (*aarch64_simd_sra<mode>): New.
19152 * config/aarch64/iterators.md
19153 (SHIFTRT): New iterator.
19154 (sra_op): New attribute.
19156 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19158 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19159 callee-saved regs R4->R10 in an interrupt function that calls another
19162 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19164 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19165 (_mm_blendv_epi8): New.
19167 2019-07-22 Richard Biener <rguenther@suse.de>
19169 PR tree-optimization/91221
19170 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19171 restrict partial-def handling of empty constructors and
19172 memset to refs with known offset.
19174 2019-07-22 Jan Beulich <jbeulich@suse.com>
19176 * config/i386/sse.md (ternlogsuffix): New.
19177 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19179 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19181 2019-07-22 Martin Liska <mliska@suse.cz>
19183 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19185 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19187 2019-07-22 Martin Liska <mliska@suse.cz>
19189 * lto-section-in.c (lto_get_section_data):
19190 Use new function get_compression.
19191 * lto-streamer-out.c (produce_lto_section): Use
19192 set_compression to encode compression algorithm.
19193 * lto-streamer.h (struct lto_section): Do not
19194 use bitfields in the format.
19196 2019-07-22 Martin Liska <mliska@suse.cz>
19199 * opts-common.c (decode_cmdline_option): Decode
19200 argument of -Werror and check it for a wrong language.
19201 * opts-global.c (complain_wrong_lang): Remove such case.
19203 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19205 * config/arc/arc.c (prepare_move_operands): Always use an
19206 intermediate register when storing a TLS symbols.
19208 2019-07-22 Stafford Horne <shorne@gmail.com>
19210 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19213 2019-07-22 Stafford Horne <shorne@gmail.com>
19215 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19216 and munordered-float validations.
19217 * config/or1k/constraints.md (d): New register constraint.
19218 * config/or1k/predicates.md (fp_comparison_operator): New.
19219 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19221 (or1k_expand_compare): Normalize unordered comparisons.
19222 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19223 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19224 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19225 * config/or1k/or1k.md (type): Add fpu.
19226 (fpu): New instruction reservation.
19227 (F, f, fr, fi, FI, FOP, fop): New.
19228 (<fop><F:mode>3): New ALU instruction definition.
19229 (float<fi><F:mode>2): New conversion instruction definition.
19230 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19231 (fpcmpcc): New code iterator.
19232 (*sf_fp_insn): New instruction definition.
19233 (cstore<F:mode>4): New expand definition.
19234 (cbranch<F:mode>4): New expand definition.
19235 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19236 munordered-float): New options.
19237 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19240 2019-07-22 Stafford Horne <shorne@gmail.com>
19242 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19243 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19244 documenation to be more clear.
19245 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19247 * config/or1k/or1k.opt (mrori): New option.
19248 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19249 msfimm, mshftimm): Rewrite documentation to be more clear.
19250 * config/or1k/or1k.md (insn_support): Add ror and rori.
19251 (enabled): Add conditions for ror and rori.
19252 (rotrsi3): Replace condition for shftimm with ror and rori.
19254 2019-07-22 Stafford Horne <shorne@gmail.com>
19257 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19258 (extend<mode>si2): Update predicate.
19259 * config/or1k/predicates.md (volatile_mem_operand): New.
19260 (reg_or_mem_operand): New.
19262 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19264 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19265 * config/rs6000/rs6000-call.c: ... to here.
19267 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19269 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19272 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19274 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19276 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19278 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19280 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19282 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19283 (any_memory_operand): New predicate.
19284 (reg_or_mem_operand): Use it.
19286 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19289 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19291 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19293 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19294 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19296 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19298 * tree.def (OMP_LOOP): New tree code.
19299 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19300 (enum omp_clause_bind_kind): New enum.
19301 (struct tree_omp_clause): Add subcode.bind_kind.
19302 * tree.h (OMP_LOOP_CHECK): Rename to ...
19303 (OMP_LOOPING_CHECK): ... this.
19304 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19305 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19306 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19307 (OMP_CLAUSE_BIND_KIND): Define.
19308 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19309 bind clause entries.
19310 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19311 * tree-pretty-print.c (dump_omp_clause): Likewise.
19312 (dump_generic_node): Handle OMP_LOOP.
19313 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19314 (in_omp_construct): New variable.
19315 (is_gimple_stmt): Handle OMP_LOOP.
19316 (gimplify_scan_omp_clauses): For lastprivate don't set
19317 check_non_private if code == OMP_LOOP. For reduction clause
19318 on OMP_LOOP combined with parallel or teams propagate as shared
19319 on the combined construct. Handle OMP_CLAUSE_BIND.
19320 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19321 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19322 for constructs from a loop construct to gimplify_scan_omp_clauses.
19323 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19324 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19325 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19326 to match the implicit ORT_TARGET construct around whole body.
19327 Temporarily clear in_omp_construct when processing body.
19328 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19329 etc. temporarily set in_omp_construct when processing body.
19330 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19331 * omp-low.c (struct omp_context): Add loop_p.
19332 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19333 in that the original var might be private.
19334 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19335 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19336 addition of loop construct.
19337 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19339 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19340 lastprivate non-addressable iterator of a collapse(1) simd.
19342 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19344 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19347 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19349 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19350 refer to default conditions. Warn for the 'y' spec which is ignored
19351 by current linkers.
19353 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19355 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19356 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19357 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19358 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19359 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19360 init_cumulative_args, rs6000_promote_function_mode,
19361 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19362 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19363 rs6000_function_arg_boundary, rs6000_parm_offset,
19364 rs6000_parm_start, rs6000_arg_size,
19365 rs6000_darwin64_record_arg_advance_flush,
19366 rs6000_darwin64_record_arg_advance_recurse,
19367 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19368 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19369 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19370 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19371 rs6000_finish_function_arg, rs6000_function_arg,
19372 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19373 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19374 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19375 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19376 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19377 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19378 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19379 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19380 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19381 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19382 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19383 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19384 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19385 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19386 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19387 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19388 get_element_number, altivec_expand_vec_set_builtin,
19389 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19390 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19391 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19392 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19393 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19394 rs6000_expand_builtin, rs6000_vector_type,
19395 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19396 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19397 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19399 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19400 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19401 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19402 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19403 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19404 init_cumulative_args, rs6000_promote_function_mode,
19405 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19406 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19407 rs6000_function_arg_boundary, rs6000_parm_offset,
19408 rs6000_parm_start, rs6000_arg_size,
19409 rs6000_darwin64_record_arg_advance_flush,
19410 rs6000_darwin64_record_arg_advance_recurse,
19411 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19412 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19413 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19414 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19415 rs6000_finish_function_arg, rs6000_function_arg,
19416 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19417 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19418 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19419 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19420 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19421 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19422 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19423 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19424 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19425 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19426 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19427 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19428 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19429 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19430 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19431 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19432 get_element_number, altivec_expand_vec_set_builtin,
19433 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19434 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19435 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19436 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19437 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19438 rs6000_expand_builtin, rs6000_vector_type,
19439 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19440 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19441 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19442 to here from rs6000.c.
19443 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19444 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19445 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19446 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19447 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19448 rs6000_return_in_memory, rs6000_return_in_msb,
19449 rs6000_pass_by_reference, setup_incoming_varargs,
19450 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19451 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19452 rs6000_function_arg_padding, rs6000_function_arg,
19453 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19454 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19455 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19456 rs6000_passes_long_double, rs6000_passes_vector,
19457 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19458 altivec_builtin_mask_for_load) Add declarations.
19459 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19460 * config/config.gcc: Add new source file rs6000-call.c to garbage
19461 collector and extra_objs.
19463 2019-07-19 Jeff Law <law@redhat.com>
19465 PR tree-optimization/86061
19466 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19467 strncpy. Drop some trivial dead code.
19468 (maybe_trim_memstar_call): Handle strncpy.
19470 2019-07-19 Richard Biener <rguenther@suse.de>
19472 PR tree-optimization/91211
19473 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19474 memset encoding size.
19476 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19479 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19481 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19484 * ipa-inline.c (recursive_inlining): Fix limits check.
19486 2019-07-19 Richard Biener <rguenther@suse.de>
19488 PR tree-optimization/91200
19489 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19490 no PHI nodes in middle-bb.
19492 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19494 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19496 * config/aarch64/aarch64-option-extensions.def: Likewise.
19498 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19500 PR middle-end/91190
19501 * function.c (insert_temp_slot_address): Store into the hash table
19502 a copy of address to avoid RTL sharing issues.
19504 2019-07-19 Richard Biener <rguenther@suse.de>
19506 PR tree-optimization/91207
19508 2019-07-17 Richard Biener <rguenther@suse.de>
19510 PR tree-optimization/91178
19511 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19512 loads with a gap larger than the vector size always use
19514 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19515 avoid loading vectors that are only contained in the gap
19516 and thus are not needed.
19518 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19520 * config/i386/i386.md (*addqi_2_slp): Remove.
19521 (*<code>qi_2_slp): Ditto.
19523 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19525 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19526 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19527 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19528 Rename function from rs6000_prefixed_address.
19529 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19531 (TARGET_TOC): Likewise.
19532 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19534 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19536 (TARGET_TOC): Likewise.
19537 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19539 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19541 (TARGET_TOC): Likewise.
19542 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19543 check to require -mcmodel=medium for pc-relative addressing.
19544 (create_TOC_reference): Add assertion for TARGET_TOC.
19545 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19547 (rs6000_emit_move): Likewise.
19548 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19549 to 'TOC_alias_set'.
19550 (get_TOC_alias_set): Likewise.
19551 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19553 (rs6000_can_eliminate): Likewise.
19554 (rs6000_prefixed_address_mode_p): Rename function from
19555 rs6000_prefixed_address.
19556 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19557 TARGET_HAS_TOC and not pc-relative.
19558 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19559 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19561 (TARGET_TOC): Likewise.
19562 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19565 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19568 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19569 for operand 0. Do not use (match_dup) to match operand 1 with
19570 operand 0. Add check in insn constraint that either input operand
19571 matches operand 0. Use SWI12 mode iterator to also handle
19573 (*and<mode>_1_slp): Ditto.
19574 (*<code>qi_1_slp): Ditto.
19575 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19576 Do not use (match_dup) to match operand 1 with operand 0. Add
19577 check in insn constraint that operand 1 matches operand 0.
19578 Use SWI12 mode iterator to also handle HImode operands.
19579 (*ashl<mode>3_1_slp): Ditto.
19580 (*<shift_insn><mode>3_1_slp): Ditto.
19581 (*<rotate_insn><mode>3_1_slp): Ditto.
19583 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19585 * config/arm/arm-builtins.c
19586 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19587 (arm_expand_unop_builtin): Likewise.
19588 * config/arm/crypto.md
19589 (crypto_sha1h): Convert from define_insn to define_expand.
19590 (crypto_<crypto_pattern>): Likewise.
19591 (crypto_sha1h_lb): New define_insn.
19592 (crypto_<crypto_pattern>_lb): Likewise.
19594 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19597 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19598 (vsha1cq_u32): Likewise.
19599 (vsha1pq_u32): Likewise.
19600 (vsha1mq_u32): Likewise.
19601 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19603 (crypto_sha1c): Correct vec select.
19604 (crypto_sha1m): Likewise.
19605 (crypto_sha1p): Likewise.
19607 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19609 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19610 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19611 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19612 (subdi_zesidi_zesidi): Likewise.
19613 (negdi2_compare, negdi2_insn): Likewise.
19614 (negdi_extensidi): Likewise.
19615 (negdi_zero_extendsidi): Likewise.
19616 (arm_cmpdi_insn): Likewise.
19617 (subsi3_carryin): Use arm_borrow_operation.
19618 (subsi3_carryin_const): Likewise.
19619 (subsi3_carryin_const0): Likewise.
19620 (subsi3_carryin_compare): Likewise.
19621 (subsi3_carryin_compare_const): Likewise.
19622 (subsi3_carryin_compare_const0): Likewise.
19623 (subsi3_carryin_shift): Likewise.
19624 (rsbsi3_carryin_shift): Likewise.
19625 (negsi2_carryin_compare): Likewise.
19627 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19629 PR tree-optimization/91137
19630 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19631 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19632 Init, use and fini the above new field.
19633 (determine_base_object_1): New function.
19634 (determine_base_object): Reimplement using walk_tree.
19636 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19638 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19639 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19640 CLEANUP_FORCE_FAST_DCE is set.
19641 * ifcvt.c (rest_of_handle_if_conversion): Pass
19642 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19643 if-conversion succeeded.
19645 2019-07-18 Richard Biener <rguenther@suse.de>
19647 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19648 branches to make code less indented.
19650 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19652 PR middle-end/81824
19653 * attribs.c (decls_mismatched_attributes): Simplify the logic
19654 that avoids duplicates and false positives.
19656 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19658 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19659 data into data section when generating PIC code.
19660 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19661 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19662 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19663 return 2 for SOM and 0 for other targets.
19665 2019-07-17 Jeff Law <law@redhat.com>
19667 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19668 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19669 avoid unexpected switch statement fallthru.
19671 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19673 * config/i386/i386.md (*add<dwi>3_doubleword):
19674 Remove redundant constraints.
19675 (*add<mode>_1): Ditto.
19678 (*addqi_1_slp): Ditto.
19679 (*add<mode>_2): Ditto.
19680 (*addv<mode>4): Ditto.
19681 (*sub<dwi>3_doubleword): Ditto.
19682 (*sub<mode>_1): Ditto.
19683 (*subqi_1_slp): Ditto.
19684 (*sub<mode>_2): Ditto.
19685 (*subv<mode>4): Ditto.
19686 (*sub<mode>_3): Ditto.
19687 (@add<mode>3_carry): Ditto.
19688 (@sub<mode>3_carry): Ditto.
19689 (*add<mode>3_cc_overflow_1): Ditto.
19690 (*add<mode>3_zext_cc_overflow_2): Ditto.
19692 (*and<mode>_1): Ditto.
19694 (*andqi_1_slp): Ditto.
19696 (*andqi_2_maybe_si): Ditto.
19697 (*and<mode>_2): Ditto.
19698 (*andqi_2_slp): Ditto.
19699 (*<code><mode>_1): Ditto.
19700 (*<code>qi_1): Ditto.
19701 (*<code>qi_1_slp): Ditto.
19702 (*<code><mode>_2): Ditto.
19703 (*<code>qi_2_slp): Ditto.
19705 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19707 * alias.c (record_component_aliases): Do not simplify pointed-to
19708 types of ODR types.
19710 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19712 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19713 partial reg stall on alternative 2.
19715 2019-07-17 Richard Biener <rguenther@suse.de>
19717 PR tree-optimization/91178
19718 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19719 lower SSA names to avoid quadratic behavior in the common case.
19720 * tree-data-ref.c (split_constant_offset): Add limit argument
19721 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19722 (split_constant_offset_1): Add limit argument and use it to
19723 limit SSA def walking. Optimize the common plus/minus case.
19725 2019-07-17 Richard Biener <rguenther@suse.de>
19727 PR tree-optimization/91178
19728 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19729 loads with a gap larger than the vector size always use
19731 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19732 avoid loading vectors that are only contained in the gap
19733 and thus are not needed.
19735 2019-07-17 Richard Biener <rguenther@suse.de>
19737 PR tree-optimization/91180
19738 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19739 computation for memset partial defs.
19741 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19743 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19744 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19745 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19746 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19747 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19748 * omp-grid.c (grid_process_grid_body,
19749 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19750 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19751 == GF_OMP_FOR_KIND_SIMD.
19752 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19753 check_omp_nesting_restrictions, scan_omp_1_stmt,
19754 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19755 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19756 omp_find_scan): Likewise.
19757 * omp-expand.c (expand_omp_for): Likewise.
19758 * omp-general.c (omp_extract_for_data): Likewise.
19760 PR tree-optimization/91157
19761 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19762 a vector boolean with scalar mode.
19763 (expand_vector_condition): Handle first operand being a vector boolean
19765 (expand_vector_operations_1): For comparisons, don't bail out early
19766 if the return type is vector boolean with scalar mode, but comparison
19767 operand type is not.
19769 2019-07-17 Richard Biener <rguenther@suse.de>
19771 PR tree-optimization/91181
19772 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19773 IFN_LOADs as calls.
19775 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19777 * config/i386/i386.md (*testdi_1): Match CCZmode for
19778 constants that might have the SImode sign bit set.
19779 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19780 Use correct constraints for pentium pairing.
19781 (*test<mode>_1): Ditto.
19783 2019-07-16 Jeff Law <law@redhat.com>
19785 PR rtl-optimization/91173
19786 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19787 SSA_NAME with a constant value, fold its value into the offset
19788 and clear the base before calling gen_addr_rtx.
19790 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19792 PR rtl-optimization/91164
19793 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19794 invalidate dominance info.
19796 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19798 * read-md.h (md_reader::record_potential_iterator_use): Add a
19799 file_location parameter.
19800 * read-rtl.c (attribute_use::loc): New field.
19801 (map_attr_string): Take a file_location parameter. Report cases
19802 in which attributes map to multiple distinct values.
19803 (apply_attribute_uses): Update call accordingly.
19804 (md_reader::handle_overloaded_name): Likewise.
19805 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19807 (record_attribute_use): Take a file_location parameter.
19808 Initialize attribute_use::loc.
19809 (md_reader::record_potential_iterator_use): Take a file_location
19810 parameter. Update call to record_attribute_use.
19811 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19812 (rtx_reader::read_rtx_code): Likewise.
19813 (rtx_reader::read_rtx_operand): Likewise. Record a location
19814 for implicitly-expanded empty strings.
19816 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19818 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19819 Use file_location instead of separate fields.
19820 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19821 separate filename and line number.
19822 * read-md.c (ptr_loc): As above.
19823 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19824 (md_reader::fprint_md_ptr_loc): Likewise.
19825 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19826 instead of a separate filename and line number.
19827 (md_reader::read_string): Update call accordingly.
19829 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19831 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19832 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19833 leaving the choice between SFDF and P implicit.
19834 (*mov<mode>_update2): Likewise.
19835 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19836 rather than leaving the choice betweem IBM128 and GPR implicit.
19837 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19838 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19840 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19841 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19842 * config/rs6000/vsx.md
19843 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19844 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19845 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19846 and VSX_EXTRACT_I implicit.
19848 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19850 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19851 Explicitly use <MOVEP1:MODE> for the mode attribute.
19853 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19856 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19858 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19861 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19862 .machine directive.
19864 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19866 * config/i386/i386.md (@test<mode>_ccno_1):
19867 Rename from test<mode>_ccno_1.
19868 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19869 (*testqi_1_maybe_si): Remove modrm attribute.
19870 (*test<mode>_1): Ditto.
19871 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19872 gen_test_ccno_1 and gen_extend_insn.
19874 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19876 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19879 2019-07-15 Richard Biener <rguenther@suse.de>
19881 PR middle-end/91162
19882 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19883 node make sure to replace all uses with something valid.
19885 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19887 PR tree-optimization/88497
19888 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19889 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19890 function undistribute_bitref_for_vector.
19891 (undistribute_bitref_for_vector): New function.
19892 (cleanup_vinfo_map): Likewise.
19893 (sort_by_mach_mode): Likewise.
19895 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19897 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19898 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19899 and testdi_ccno_1 using SWI48 mode attribute.
19900 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19901 x86_64_szext_general_operand.
19902 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19903 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19904 instead of genera_operand mode attribute.
19906 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19908 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19909 fopen and fclose to their respective types.
19910 (DotFn.invoke): Ditto.
19912 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19914 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19915 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19916 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19917 (array_index_predicate): Remove.
19918 (analyze_function_body): Account cost for variable ofsetted array
19920 (estimate_node_size_and_time): Do not compute array index hint.
19921 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19922 (inline_read_section): Do not read array index hint.
19923 (ipa_fn_summary_write): Do not write array index hint.
19924 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19925 * ipa-cp.c (hint_time_bonus): Remove.
19926 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19927 (ipa_fnsummary): Remove array_index.
19928 * ipa-inline.c (want_inline_small_function_p): Do not use
19930 (edge_badness): Likewise.
19931 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19933 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19936 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19937 superfluous "builtin function" phrasing.
19939 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19941 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19943 (aliasing_component_refs_walk): Break out from ...
19944 (aliasing_component_refs_p): ... here.
19946 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19949 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19950 "builtin function" phrasing.
19952 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19955 * recog.h (temporary_volatile_ok): New class.
19956 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19957 volatile_ok temporarily to true using temporary_volatile_ok.
19958 * expr.c (emit_block_move_via_cpymem): Likewise.
19959 * optabs.c (maybe_legitimize_operand): Likewise.
19961 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19963 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19964 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19965 uses inside of order(concurrent) constructs.
19966 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19967 OMP_CLAUSE_ORDER is seen.
19968 * omp-low.c (struct omp_context): Add order_concurrent member.
19969 (scan_sharing_clauses): Set ctx->order_concurrent if
19970 OMP_CLAUSE_ORDER is seen.
19971 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19972 of simd order(concurrent). Diagnose constructs not allowed inside of
19973 for order(concurrent).
19974 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19975 complaining about static double setjmp (double); or class static
19976 methods or non-global namespace setjmps.
19977 (omp_runtime_api_call): New function.
19978 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19979 order(concurrent) loops.
19981 2019-07-12 Martin Sebor <msebor@redhat.com>
19983 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19984 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19985 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19986 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19988 2019-07-12 Jan Hubicka <jh@suse.cz>
19990 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19991 (indirect_refs_may_alias_p): ... here.
19992 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19993 mem refs in the access paths.
19995 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19997 PR tree-optimization/89430
19998 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19999 store elimination for local variable without address escape.
20001 2019-07-12 Jeff Law <law@redhat.com>
20003 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20004 for the ".far" section.
20006 2019-07-12 Richard Biener <rguenther@suse.de>
20008 PR tree-optimization/91145
20009 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20012 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20014 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20015 rather than this_state as the lowering context for the ELSE
20016 seq in a GIMPLE_EH_ELSE.
20018 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20020 * vector-builder.h (vector_builder::elt): Allow already-supplied
20021 elements to be read back before building is complete.
20023 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20025 PR rtl-optimization/91136
20026 * df-core.c (ACCESSING REFS): Fix typos in comment.
20027 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20028 the beginning of the block to the initial set of live registers.
20030 2019-07-12 Richard Biener <rguenther@suse.de>
20032 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20033 * fold-const.c (get_array_ctor_element_at_index): Add
20034 ctor_idx output parameter informing the caller where in
20035 the constructor the element was (not) found. Add early exit
20036 for when the ctor is sorted.
20037 * gimple-fold.c (fold_array_ctor_reference): Support constant
20038 folding across multiple array elements.
20040 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20042 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20043 doesn't have location, set the current location to the function's end.
20045 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20047 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20048 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20049 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20050 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20051 * config/aarch64/aarch64-simd.md
20052 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20053 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20054 * config/aarch64/aarch64-sve.md
20055 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20056 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20058 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20060 * doc/md.texi: Document that @ patterns can have different
20061 numbers of operands.
20062 * genemit.c (handle_overloaded_gen): Handle this case.
20063 * genopinit.c (handle_overloaded_gen): Likewise.
20064 * gensupport.c (replace_operands_with_dups): Iterate over
20065 the new rtx's format rather than the old one's.
20067 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20069 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20070 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20071 order clause entries.
20072 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20073 * tree-pretty-print.c (dump_omp_clause): Likewise.
20074 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20076 * omp-low.c (scan_sharing_clauses): Likewise.
20077 * tree-nested.c (convert_nonlocal_omp_clauses,
20078 convert_local_omp_clauses): Likewise.
20080 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20082 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20083 fallthrough target of current basic block isn't the placed
20086 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20089 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20090 (_mm512_storeu_epi64): Likewise.
20091 (_mm512_loadu_epi32): Likewise.
20092 (_mm512_storeu_epi32): Likewise.
20093 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20094 (_mm_storeu_epi64): Likewise.
20095 (_mm256_storeu_epi32): Likewise.
20096 (_mm_storeu_epi32): Likewise.
20098 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20100 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20102 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20104 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20107 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20110 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20111 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20112 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20113 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20114 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20115 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20117 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20118 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20119 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20121 (sse2_cvttpd2dq<mask_name>): Change into ...
20122 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20123 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20124 (*sse2_cvtpd2dq<mask_name>): Change into ...
20125 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20126 Add "C" constraint to const0_operand.
20127 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20128 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20132 * config/i386/i386-builtin-types.def
20133 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20134 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20135 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20136 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20137 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20138 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20139 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20140 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20141 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20142 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20143 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20144 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20145 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20146 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20147 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20148 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20149 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20150 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20151 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20152 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20153 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20154 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20155 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20156 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20157 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20158 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20159 __builtin_ia32_vpdpbusd_v4si_maskz,
20160 __builtin_ia32_vpdpbusds_v16si_mask,
20161 __builtin_ia32_vpdpbusds_v16si_maskz,
20162 __builtin_ia32_vpdpbusds_v8si_mask,
20163 __builtin_ia32_vpdpbusds_v8si_maskz,
20164 __builtin_ia32_vpdpbusds_v4si_mask,
20165 __builtin_ia32_vpdpbusds_v4si_maskz,
20166 __builtin_ia32_vpdpwssd_v16si_mask,
20167 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20168 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20169 __builtin_ia32_vpdpwssd_v4si_maskz,
20170 __builtin_ia32_vpdpwssds_v16si_mask,
20171 __builtin_ia32_vpdpwssds_v16si_maskz,
20172 __builtin_ia32_vpdpwssds_v8si_mask,
20173 __builtin_ia32_vpdpwssds_v8si_maskz,
20174 __builtin_ia32_vpdpwssds_v4si_mask,
20175 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20176 suffixed types rather than *_INT.
20177 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20178 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20179 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20180 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20181 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20182 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20184 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20186 * tree-vrp.c (intersect_ranges): If we know the intersection is
20187 empty, there is no need to conservatively add anything else to
20190 2019-07-11 Richard Biener <rguenther@suse.de>
20192 PR middle-end/91131
20193 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20194 when the object is volatile and we have not cleared it even though
20195 there are no nonzero elements.
20197 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20199 * config/rs6000/predicates.md (cint34_operand): Update
20200 SIGNED_34BIT_OFFSET_P call.
20201 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20202 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20203 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20204 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20205 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20207 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20208 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20209 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20210 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20211 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20213 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20215 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20216 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20217 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20218 (DEF_MIN_OSX_VERSION): New.
20220 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20222 * fold-const.c (fold_relational_const): Fix folding of
20223 vector-to-scalar NE_EXPRs.
20224 (test_vector_folding): Add more tests.
20226 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20229 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20230 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20231 (vec_setv2di_internal): Reexpress as...
20232 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20233 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20234 rather than gen_neon_vset_lane<mode>.
20236 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20239 * lra-constraints.c (process_alt_operands): Don't match user
20240 defined regs only if they are early clobbers.
20242 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20244 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20246 2019-07-10 Richard Biener <rguenther@suse.de>
20248 PR tree-optimization/91126
20249 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20250 native encoding offset for BYTES_BIG_ENDIAN.
20251 (vn_reference_lookup_3): Likewise.
20253 2019-07-10 Richard Biener <rguenther@suse.de>
20255 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20256 LHS whenever possible.
20258 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20260 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20261 from ...; work also on duplicated types.
20262 (nonoverlapping_component_refs_since_match): ... here
20263 (ncr_type_uid): Break out from ...
20264 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20266 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20267 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20269 2019-07-09 Martin Sebor <msebor@redhat.com>
20271 PR tree-optimization/90989
20272 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20273 optimization to just single character stores.
20275 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20277 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20278 Swap operands only once.
20280 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20282 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20283 for both call instructions.
20285 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20287 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20288 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20290 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20292 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20293 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20294 function from rs6000-logue.c back to rs6000.c.
20295 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20297 2019-07-09 Martin Sebor <msebor@redhat.com>
20300 * auto-profile.c: Change class-key of PODs to struct and others
20302 * basic-block.h: Same.
20303 * bitmap.c (bitmap_alloc): Same.
20305 * builtins.c (expand_builtin_prefetch): Same.
20306 (expand_builtin_interclass_mathfn): Same.
20307 (expand_builtin_strlen): Same.
20308 (expand_builtin_mempcpy_args): Same.
20309 (expand_cmpstr): Same.
20310 (expand_builtin___clear_cache): Same.
20311 (expand_ifn_atomic_bit_test_and): Same.
20312 (expand_builtin_thread_pointer): Same.
20313 (expand_builtin_set_thread_pointer): Same.
20314 * caller-save.c (setup_save_areas): Same.
20315 (replace_reg_with_saved_mem): Same.
20316 (insert_restore): Same.
20317 (insert_save): Same.
20318 (add_used_regs): Same.
20319 * cfg.c (get_bb_copy): Same.
20320 (set_loop_copy): Same.
20323 * cfgexpand.c (alloc_stack_frame_space): Same.
20324 (add_stack_var): Same.
20325 (add_stack_var_conflict): Same.
20326 (add_scope_conflicts_1): Same.
20327 (update_alias_info_with_stack_vars): Same.
20328 (expand_used_vars): Same.
20329 * cfghooks.c (redirect_edge_and_branch_force): Same.
20330 (delete_basic_block): Same.
20331 (split_edge): Same.
20332 (make_forwarder_block): Same.
20333 (force_nonfallthru): Same.
20334 (duplicate_block): Same.
20335 (lv_flush_pending_stmts): Same.
20336 * cfghooks.h: Same.
20337 * cfgloop.c (flow_loops_cfg_dump): Same.
20338 (flow_loop_nested_p): Same.
20339 (superloop_at_depth): Same.
20340 (get_loop_latch_edges): Same.
20341 (flow_loop_dump): Same.
20342 (flow_loops_dump): Same.
20343 (flow_loops_free): Same.
20344 (flow_loop_nodes_find): Same.
20345 (establish_preds): Same.
20346 (flow_loop_tree_node_add): Same.
20347 (flow_loop_tree_node_remove): Same.
20348 (flow_loops_find): Same.
20349 (find_subloop_latch_edge_by_profile): Same.
20350 (find_subloop_latch_edge_by_ivs): Same.
20351 (mfb_redirect_edges_in_set): Same.
20352 (form_subloop): Same.
20353 (merge_latch_edges): Same.
20354 (disambiguate_multiple_latches): Same.
20355 (disambiguate_loops_with_multiple_latches): Same.
20356 (flow_bb_inside_loop_p): Same.
20357 (glb_enum_p): Same.
20358 (get_loop_body_with_size): Same.
20359 (get_loop_body): Same.
20360 (fill_sons_in_loop): Same.
20361 (get_loop_body_in_dom_order): Same.
20362 (get_loop_body_in_custom_order): Same.
20363 (release_recorded_exits): Same.
20364 (get_loop_exit_edges): Same.
20365 (num_loop_branches): Same.
20366 (remove_bb_from_loops): Same.
20367 (find_common_loop): Same.
20368 (delete_loop): Same.
20369 (cancel_loop): Same.
20370 (verify_loop_structure): Same.
20371 (loop_preheader_edge): Same.
20372 (loop_exit_edge_p): Same.
20373 (single_exit): Same.
20374 (loop_exits_to_bb_p): Same.
20375 (loop_exits_from_bb_p): Same.
20376 (get_loop_location): Same.
20377 (record_niter_bound): Same.
20378 (get_estimated_loop_iterations_int): Same.
20379 (max_stmt_executions_int): Same.
20380 (likely_max_stmt_executions_int): Same.
20381 (get_estimated_loop_iterations): Same.
20382 (get_max_loop_iterations): Same.
20383 (get_max_loop_iterations_int): Same.
20384 (get_likely_max_loop_iterations): Same.
20385 * cfgloop.h (simple_loop_desc): Same.
20387 (loop_depth): Same.
20388 (loop_outer): Same.
20389 (loop_iterator::next): Same.
20390 (loop_outermost): Same.
20391 * cfgloopanal.c (mark_irreducible_loops): Same.
20392 (num_loop_insns): Same.
20393 (average_num_loop_insns): Same.
20394 (expected_loop_iterations_unbounded): Same.
20395 (expected_loop_iterations): Same.
20396 (mark_loop_exit_edges): Same.
20397 (single_likely_exit): Same.
20398 * cfgloopmanip.c (fix_bb_placement): Same.
20399 (fix_bb_placements): Same.
20400 (remove_path): Same.
20401 (place_new_loop): Same.
20403 (scale_loop_frequencies): Same.
20404 (scale_loop_profile): Same.
20405 (create_empty_if_region_on_edge): Same.
20406 (create_empty_loop_on_edge): Same.
20409 (fix_loop_placements): Same.
20410 (copy_loop_info): Same.
20411 (duplicate_loop): Same.
20412 (duplicate_subloops): Same.
20413 (loop_redirect_edge): Same.
20414 (can_duplicate_loop_p): Same.
20415 (duplicate_loop_to_header_edge): Same.
20416 (mfb_keep_just): Same.
20417 (has_preds_from_loop): Same.
20418 (create_preheader): Same.
20419 (create_preheaders): Same.
20420 (lv_adjust_loop_entry_edge): Same.
20421 (loop_version): Same.
20422 * cfgloopmanip.h: Same.
20424 * cgraphbuild.c: Same.
20425 * combine.c (make_extraction): Same.
20426 * config/i386/i386-features.c: Same.
20427 * config/i386/i386-features.h: Same.
20428 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20429 (ix86_emit_outlined_ms2sysv_restore): Same.
20430 (ix86_noce_conversion_profitable_p): Same.
20431 (ix86_init_cost): Same.
20432 (ix86_simd_clone_usable): Same.
20433 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20435 * coretypes.h: Same.
20436 * data-streamer-in.c (string_for_index): Change class-key of PODs
20437 to struct and others to class.
20438 (streamer_read_indexed_string): Same.
20439 (streamer_read_string): Same.
20440 (bp_unpack_indexed_string): Same.
20441 (bp_unpack_string): Same.
20442 (streamer_read_uhwi): Same.
20443 (streamer_read_hwi): Same.
20444 (streamer_read_gcov_count): Same.
20445 (streamer_read_wide_int): Same.
20446 * data-streamer.h (streamer_write_bitpack): Same.
20447 (bp_unpack_value): Same.
20448 (streamer_write_char_stream): Same.
20449 (streamer_write_hwi_in_range): Same.
20450 (streamer_write_record_start): Same.
20451 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20452 (add_cross_iteration_register_deps): Same.
20453 (build_intra_loop_deps): Same.
20454 * df-core.c (df_analyze): Same.
20455 (loop_post_order_compute): Same.
20456 (loop_inverted_post_order_compute): Same.
20457 * df-problems.c (df_rd_alloc): Same.
20458 (df_rd_simulate_one_insn): Same.
20459 (df_rd_local_compute): Same.
20460 (df_rd_init_solution): Same.
20461 (df_rd_confluence_n): Same.
20462 (df_rd_transfer_function): Same.
20463 (df_rd_free): Same.
20464 (df_rd_dump_defs_set): Same.
20465 (df_rd_top_dump): Same.
20466 (df_lr_alloc): Same.
20467 (df_lr_reset): Same.
20468 (df_lr_local_compute): Same.
20469 (df_lr_init): Same.
20470 (df_lr_confluence_n): Same.
20471 (df_lr_free): Same.
20472 (df_lr_top_dump): Same.
20473 (df_lr_verify_transfer_functions): Same.
20474 (df_live_alloc): Same.
20475 (df_live_reset): Same.
20476 (df_live_init): Same.
20477 (df_live_confluence_n): Same.
20478 (df_live_finalize): Same.
20479 (df_live_free): Same.
20480 (df_live_top_dump): Same.
20481 (df_live_verify_transfer_functions): Same.
20482 (df_mir_alloc): Same.
20483 (df_mir_reset): Same.
20484 (df_mir_init): Same.
20485 (df_mir_confluence_n): Same.
20486 (df_mir_free): Same.
20487 (df_mir_top_dump): Same.
20488 (df_word_lr_alloc): Same.
20489 (df_word_lr_reset): Same.
20490 (df_word_lr_init): Same.
20491 (df_word_lr_confluence_n): Same.
20492 (df_word_lr_free): Same.
20493 (df_word_lr_top_dump): Same.
20494 (df_md_alloc): Same.
20495 (df_md_simulate_one_insn): Same.
20496 (df_md_reset): Same.
20497 (df_md_init): Same.
20498 (df_md_free): Same.
20499 (df_md_top_dump): Same.
20500 * df-scan.c (df_insn_delete): Same.
20501 (df_insn_rescan): Same.
20502 (df_notes_rescan): Same.
20503 (df_sort_and_compress_mws): Same.
20504 (df_install_mws): Same.
20505 (df_refs_add_to_chains): Same.
20506 (df_ref_create_structure): Same.
20507 (df_ref_record): Same.
20508 (df_def_record_1): Same.
20509 (df_find_hard_reg_defs): Same.
20510 (df_uses_record): Same.
20511 (df_get_conditional_uses): Same.
20512 (df_get_call_refs): Same.
20513 (df_recompute_luids): Same.
20514 (df_get_entry_block_def_set): Same.
20515 (df_entry_block_defs_collect): Same.
20516 (df_get_exit_block_use_set): Same.
20517 (df_exit_block_uses_collect): Same.
20518 (df_mws_verify): Same.
20519 (df_bb_verify): Same.
20520 * df.h (df_scan_get_bb_info): Same.
20521 * doc/tm.texi: Same.
20522 * dse.c (record_store): Same.
20523 * dumpfile.h: Same.
20524 * emit-rtl.c (const_fixed_hasher::equal): Same.
20525 (set_mem_attributes_minus_bitpos): Same.
20526 (change_address): Same.
20527 (adjust_address_1): Same.
20528 (offset_address): Same.
20529 * emit-rtl.h: Same.
20530 * except.c (dw2_build_landing_pads): Same.
20531 (sjlj_emit_dispatch_table): Same.
20532 * explow.c (allocate_dynamic_stack_space): Same.
20533 (emit_stack_probe): Same.
20534 (probe_stack_range): Same.
20535 * expmed.c (store_bit_field_using_insv): Same.
20536 (store_bit_field_1): Same.
20537 (store_integral_bit_field): Same.
20538 (extract_bit_field_using_extv): Same.
20539 (extract_bit_field_1): Same.
20540 (emit_cstore): Same.
20541 * expr.c (emit_block_move_via_cpymem): Same.
20542 (expand_cmpstrn_or_cmpmem): Same.
20543 (set_storage_via_setmem): Same.
20544 (emit_single_push_insn_1): Same.
20545 (expand_assignment): Same.
20546 (store_constructor): Same.
20547 (expand_expr_real_2): Same.
20548 (expand_expr_real_1): Same.
20549 (try_casesi): Same.
20551 * function.c (try_fit_stack_local): Same.
20552 (assign_stack_local_1): Same.
20553 (assign_stack_local): Same.
20554 (cut_slot_from_list): Same.
20555 (insert_slot_to_list): Same.
20556 (max_slot_level): Same.
20557 (move_slot_to_level): Same.
20558 (temp_address_hasher::equal): Same.
20559 (remove_unused_temp_slot_addresses): Same.
20560 (assign_temp): Same.
20561 (combine_temp_slots): Same.
20562 (update_temp_slot_address): Same.
20563 (preserve_temp_slots): Same.
20564 * function.h: Same.
20566 * gcc-rich-location.h: Same.
20568 * genattrtab.c (check_attr_test): Same.
20569 (check_attr_value): Same.
20570 (convert_set_attr_alternative): Same.
20571 (convert_set_attr): Same.
20572 (check_defs): Same.
20573 (copy_boolean): Same.
20574 (get_attr_value): Same.
20575 (expand_delays): Same.
20576 (make_length_attrs): Same.
20578 (make_alternative_compare): Same.
20579 (simplify_test_exp): Same.
20580 (tests_attr_p): Same.
20581 (get_attr_order): Same.
20582 (clear_struct_flag): Same.
20584 (compares_alternatives_p): Same.
20587 (find_attrs_to_cache): Same.
20588 (write_test_expr): Same.
20589 (walk_attr_value): Same.
20590 (write_attr_get): Same.
20591 (eliminate_known_true): Same.
20592 (write_insn_cases): Same.
20593 (write_attr_case): Same.
20594 (write_attr_valueq): Same.
20595 (write_attr_value): Same.
20596 (write_dummy_eligible_delay): Same.
20597 (next_comma_elt): Same.
20599 (make_internal_attr): Same.
20600 (copy_rtx_unchanging): Same.
20601 (gen_insn_reserv): Same.
20602 (check_tune_attr): Same.
20603 (make_automaton_attrs): Same.
20604 (handle_arg): Same.
20605 * genextract.c (gen_insn): Same.
20606 (VEC_char_to_string): Same.
20607 * genmatch.c (print_operand): Same.
20609 (parser::parse_operation): Same.
20610 (parser::parse_capture): Same.
20611 (parser::parse_c_expr): Same.
20612 (parser::parse_simplify): Same.
20614 * genoutput.c (output_operand_data): Same.
20615 (output_get_insn_name): Same.
20616 (compare_operands): Same.
20617 (place_operands): Same.
20618 (process_template): Same.
20619 (validate_insn_alternatives): Same.
20620 (validate_insn_operands): Same.
20621 (gen_expand): Same.
20622 (note_constraint): Same.
20623 * genpreds.c (write_one_predicate_function): Same.
20624 (add_constraint): Same.
20625 (process_define_register_constraint): Same.
20626 (write_lookup_constraint_1): Same.
20627 (write_lookup_constraint_array): Same.
20628 (write_insn_constraint_len): Same.
20629 (write_reg_class_for_constraint_1): Same.
20630 (write_constraint_satisfied_p_array): Same.
20631 * genrecog.c (optimize_subroutine_group): Same.
20632 * gensupport.c (process_define_predicate): Same.
20633 (queue_pattern): Same.
20634 (remove_from_queue): Same.
20635 (process_rtx): Same.
20636 (is_predicable): Same.
20637 (change_subst_attribute): Same.
20638 (subst_pattern_match): Same.
20639 (alter_constraints): Same.
20640 (alter_attrs_for_insn): Same.
20641 (shift_output_template): Same.
20642 (alter_output_for_subst_insn): Same.
20643 (process_one_cond_exec): Same.
20645 (process_define_cond_exec): Same.
20646 (mnemonic_htab_callback): Same.
20647 (gen_mnemonic_attr): Same.
20648 (read_md_rtx): Same.
20649 * ggc-page.c: Same.
20650 * gimple-loop-interchange.cc (dump_reduction): Same.
20651 (dump_induction): Same.
20652 (loop_cand::~loop_cand): Same.
20653 (free_data_refs_with_aux): Same.
20654 (tree_loop_interchange::interchange_loops): Same.
20655 (tree_loop_interchange::map_inductions_to_loop): Same.
20656 (tree_loop_interchange::move_code_to_inner_loop): Same.
20657 (compute_access_stride): Same.
20658 (compute_access_strides): Same.
20659 (proper_loop_form_for_interchange): Same.
20660 (tree_loop_interchange_compute_ddrs): Same.
20661 (prune_datarefs_not_in_loop): Same.
20662 (prepare_data_references): Same.
20663 (pass_linterchange::execute): Same.
20664 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20665 (unroll_jam_possible_p): Same.
20666 (fuse_loops): Same.
20667 (adjust_unroll_factor): Same.
20668 (tree_loop_unroll_and_jam): Same.
20669 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20670 (loop_versioning::expensive_stmt_p): Same.
20671 (loop_versioning::version_for_unity): Same.
20672 (loop_versioning::dump_inner_likelihood): Same.
20673 (loop_versioning::find_per_loop_multiplication): Same.
20674 (loop_versioning::analyze_term_using_scevs): Same.
20675 (loop_versioning::record_address_fragment): Same.
20676 (loop_versioning::analyze_expr): Same.
20677 (loop_versioning::analyze_blocks): Same.
20678 (loop_versioning::prune_conditions): Same.
20679 (loop_versioning::merge_loop_info): Same.
20680 (loop_versioning::add_loop_to_queue): Same.
20681 (loop_versioning::decide_whether_loop_is_versionable): Same.
20682 (loop_versioning::make_versioning_decisions): Same.
20683 (loop_versioning::implement_versioning_decisions): Same.
20684 * gimple-ssa-evrp-analyze.c
20685 (evrp_range_analyzer::record_ranges_from_phis): Same.
20686 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20687 (count_multiple_uses): Same.
20688 (split_group): Same.
20689 (imm_store_chain_info::output_merged_store): Same.
20690 (pass_store_merging::process_store): Same.
20691 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20692 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20694 (alloca_call_type): Same.
20695 (pass_walloca::execute): Same.
20696 * gimple-streamer-in.c (input_phi): Same.
20697 (input_gimple_stmt): Same.
20698 * gimple-streamer.h: Same.
20699 * godump.c (go_force_record_alignment): Same.
20700 (go_format_type): Same.
20701 (go_output_type): Same.
20702 (go_output_fndecl): Same.
20703 (go_output_typedef): Same.
20704 (keyword_hash_init): Same.
20705 (find_dummy_types): Same.
20706 * graph.c (draw_cfg_nodes_no_loops): Same.
20707 (draw_cfg_nodes_for_loop): Same.
20708 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20709 * hsa-brig.c: Same.
20710 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20711 * hsa-dump.c (dump_hsa_cfun): Same.
20712 * hsa-gen.c (gen_function_def_parameters): Same.
20713 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20714 * input.c (dump_line_table_statistics): Same.
20715 (test_lexer): Same.
20717 * internal-fn.c (get_multi_vector_move): Same.
20718 (expand_load_lanes_optab_fn): Same.
20719 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20720 (expand_GOMP_SIMT_EXIT): Same.
20721 (expand_GOMP_SIMT_LAST_LANE): Same.
20722 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20723 (expand_GOMP_SIMT_VOTE_ANY): Same.
20724 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20725 (expand_GOMP_SIMT_XCHG_IDX): Same.
20726 (expand_addsub_overflow): Same.
20727 (expand_neg_overflow): Same.
20728 (expand_mul_overflow): Same.
20729 (expand_call_mem_ref): Same.
20730 (expand_mask_load_optab_fn): Same.
20731 (expand_scatter_store_optab_fn): Same.
20732 (expand_gather_load_optab_fn): Same.
20733 * ipa-cp.c (ipa_get_parm_lattices): Same.
20734 (print_all_lattices): Same.
20735 (ignore_edge_p): Same.
20736 (build_toporder_info): Same.
20737 (free_toporder_info): Same.
20738 (push_node_to_stack): Same.
20739 (ipcp_lattice<valtype>::set_contains_variable): Same.
20740 (set_agg_lats_to_bottom): Same.
20741 (ipcp_bits_lattice::meet_with): Same.
20742 (set_single_call_flag): Same.
20743 (initialize_node_lattices): Same.
20744 (ipa_get_jf_ancestor_result): Same.
20745 (ipcp_verify_propagated_values): Same.
20746 (propagate_scalar_across_jump_function): Same.
20747 (propagate_context_across_jump_function): Same.
20748 (propagate_bits_across_jump_function): Same.
20749 (ipa_vr_operation_and_type_effects): Same.
20750 (propagate_vr_across_jump_function): Same.
20751 (set_check_aggs_by_ref): Same.
20752 (set_chain_of_aglats_contains_variable): Same.
20753 (merge_aggregate_lattices): Same.
20754 (agg_pass_through_permissible_p): Same.
20755 (propagate_aggs_across_jump_function): Same.
20756 (call_passes_through_thunk_p): Same.
20757 (propagate_constants_across_call): Same.
20758 (devirtualization_time_bonus): Same.
20759 (good_cloning_opportunity_p): Same.
20760 (context_independent_aggregate_values): Same.
20761 (gather_context_independent_values): Same.
20762 (perform_estimation_of_a_value): Same.
20763 (estimate_local_effects): Same.
20764 (value_topo_info<valtype>::add_val): Same.
20765 (add_all_node_vals_to_toposort): Same.
20766 (value_topo_info<valtype>::propagate_effects): Same.
20767 (ipcp_propagate_stage): Same.
20768 (ipcp_discover_new_direct_edges): Same.
20769 (same_node_or_its_all_contexts_clone_p): Same.
20770 (cgraph_edge_brings_value_p): Same.
20771 (gather_edges_for_value): Same.
20772 (create_specialized_node): Same.
20773 (find_more_scalar_values_for_callers_subset): Same.
20774 (find_more_contexts_for_caller_subset): Same.
20775 (copy_plats_to_inter): Same.
20776 (intersect_aggregates_with_edge): Same.
20777 (find_aggregate_values_for_callers_subset): Same.
20778 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20779 (decide_about_value): Same.
20780 (decide_whether_version_node): Same.
20781 (spread_undeadness): Same.
20782 (identify_dead_nodes): Same.
20783 (ipcp_store_vr_results): Same.
20784 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20785 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20786 (redirect_to_unreachable): Same.
20787 (edge_set_predicate): Same.
20788 (evaluate_conditions_for_known_args): Same.
20789 (evaluate_properties_for_edge): Same.
20790 (ipa_fn_summary_t::duplicate): Same.
20791 (ipa_call_summary_t::duplicate): Same.
20792 (dump_ipa_call_summary): Same.
20793 (ipa_dump_fn_summary): Same.
20794 (eliminated_by_inlining_prob): Same.
20795 (set_cond_stmt_execution_predicate): Same.
20796 (set_switch_stmt_execution_predicate): Same.
20797 (compute_bb_predicates): Same.
20798 (will_be_nonconstant_expr_predicate): Same.
20799 (phi_result_unknown_predicate): Same.
20800 (analyze_function_body): Same.
20801 (compute_fn_summary): Same.
20802 (estimate_edge_devirt_benefit): Same.
20803 (estimate_edge_size_and_time): Same.
20804 (estimate_calls_size_and_time): Same.
20805 (estimate_node_size_and_time): Same.
20806 (remap_edge_change_prob): Same.
20807 (remap_edge_summaries): Same.
20808 (ipa_merge_fn_summary_after_inlining): Same.
20809 (ipa_fn_summary_generate): Same.
20810 (inline_read_section): Same.
20811 (ipa_fn_summary_read): Same.
20812 (ipa_fn_summary_write): Same.
20813 * ipa-fnsummary.h: Same.
20814 * ipa-hsa.c (ipa_hsa_read_section): Same.
20815 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20816 * ipa-icf.c (sem_function::param_used_p): Same.
20817 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20818 * ipa-inline.c (edge_badness): Same.
20819 (inline_small_functions): Same.
20820 * ipa-polymorphic-call.c
20821 (ipa_polymorphic_call_context::stream_out): Same.
20822 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20823 (predicate::remap_after_inlining): Same.
20824 (predicate::stream_out): Same.
20825 * ipa-predicate.h: Same.
20826 * ipa-profile.c (ipa_profile_read_summary): Same.
20827 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20828 (count_formal_params): Same.
20829 (ipa_dump_param): Same.
20830 (ipa_alloc_node_params): Same.
20831 (ipa_print_node_jump_functions_for_edge): Same.
20832 (ipa_print_node_jump_functions): Same.
20833 (ipa_load_from_parm_agg): Same.
20834 (get_ancestor_addr_info): Same.
20835 (ipa_compute_jump_functions_for_edge): Same.
20836 (ipa_analyze_virtual_call_uses): Same.
20837 (ipa_analyze_stmt_uses): Same.
20838 (ipa_analyze_params_uses_in_bb): Same.
20839 (update_jump_functions_after_inlining): Same.
20840 (try_decrement_rdesc_refcount): Same.
20841 (ipa_impossible_devirt_target): Same.
20842 (update_indirect_edges_after_inlining): Same.
20843 (combine_controlled_uses_counters): Same.
20844 (ipa_edge_args_sum_t::duplicate): Same.
20845 (ipa_write_jump_function): Same.
20846 (ipa_write_indirect_edge_info): Same.
20847 (ipa_write_node_info): Same.
20848 (ipa_read_edge_info): Same.
20849 (ipa_prop_read_section): Same.
20850 (read_replacements_section): Same.
20851 * ipa-prop.h (ipa_get_param_count): Same.
20852 (ipa_get_param): Same.
20853 (ipa_get_type): Same.
20854 (ipa_get_param_move_cost): Same.
20855 (ipa_set_param_used): Same.
20856 (ipa_get_controlled_uses): Same.
20857 (ipa_set_controlled_uses): Same.
20858 (ipa_get_cs_argument_count): Same.
20859 * ipa-pure-const.c (analyze_function): Same.
20860 (pure_const_read_summary): Same.
20862 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20863 * ipa-split.c (test_nonssa_use): Same.
20864 (dump_split_point): Same.
20865 (dominated_by_forbidden): Same.
20866 (split_part_set_ssa_name_p): Same.
20867 (find_split_points): Same.
20868 * ira-build.c (finish_loop_tree_nodes): Same.
20869 (low_pressure_loop_node_p): Same.
20870 * ira-color.c (ira_reuse_stack_slot): Same.
20872 * ira.c (setup_reg_equiv): Same.
20873 (print_insn_chain): Same.
20875 * loop-doloop.c (doloop_condition_get): Same.
20877 (record_reg_sets): Same.
20878 (doloop_optimize): Same.
20879 * loop-init.c (loop_optimizer_init): Same.
20880 (fix_loop_structure): Same.
20881 * loop-invariant.c (merge_identical_invariants): Same.
20882 (compute_always_reached): Same.
20883 (find_exits): Same.
20884 (may_assign_reg_p): Same.
20885 (find_invariants_bb): Same.
20886 (find_invariants_body): Same.
20887 (replace_uses): Same.
20888 (can_move_invariant_reg): Same.
20889 (free_inv_motion_data): Same.
20890 (move_single_loop_invariants): Same.
20891 (change_pressure): Same.
20892 (mark_ref_regs): Same.
20893 (calculate_loop_reg_pressure): Same.
20894 * loop-iv.c (biv_entry_hasher::equal): Same.
20895 (iv_extend_to_rtx_code): Same.
20896 (check_iv_ref_table_size): Same.
20897 (clear_iv_info): Same.
20898 (latch_dominating_def): Same.
20899 (iv_get_reaching_def): Same.
20900 (iv_constant): Same.
20906 (get_biv_step): Same.
20908 (analyzed_for_bivness_p): Same.
20909 (record_biv): Same.
20910 (iv_analyze_biv): Same.
20911 (iv_analyze_expr): Same.
20912 (iv_analyze_def): Same.
20913 (iv_analyze_op): Same.
20914 (iv_analyze): Same.
20915 (iv_analyze_result): Same.
20917 (eliminate_implied_conditions): Same.
20918 (simplify_using_initial_values): Same.
20919 (shorten_into_mode): Same.
20920 (canonicalize_iv_subregs): Same.
20921 (determine_max_iter): Same.
20922 (check_simple_exit): Same.
20923 (find_simple_exit): Same.
20924 (get_simple_loop_desc): Same.
20925 * loop-unroll.c (report_unroll): Same.
20926 (decide_unrolling): Same.
20927 (unroll_loops): Same.
20928 (loop_exit_at_end_p): Same.
20929 (decide_unroll_constant_iterations): Same.
20930 (unroll_loop_constant_iterations): Same.
20931 (compare_and_jump_seq): Same.
20932 (unroll_loop_runtime_iterations): Same.
20933 (decide_unroll_stupid): Same.
20934 (unroll_loop_stupid): Same.
20935 (referenced_in_one_insn_in_loop_p): Same.
20936 (reset_debug_uses_in_loop): Same.
20937 (analyze_iv_to_split_insn): Same.
20938 * lra-eliminations.c (lra_debug_elim_table): Same.
20939 (setup_can_eliminate): Same.
20941 (lra_get_elimination_hard_regno): Same.
20942 (lra_eliminate_regs_1): Same.
20943 (eliminate_regs_in_insn): Same.
20944 (update_reg_eliminate): Same.
20945 (init_elimination): Same.
20946 (lra_eliminate): Same.
20948 * lra-lives.c (initiate_live_solver): Same.
20949 * lra-remat.c (create_remat_bb_data): Same.
20950 * lra-spills.c (lra_spill): Same.
20951 * lra.c (lra_set_insn_recog_data): Same.
20952 (lra_set_used_insn_alternative_by_uid): Same.
20953 (init_reg_info): Same.
20954 (expand_reg_info): Same.
20955 * lto-cgraph.c (output_symtab): Same.
20956 (read_identifier): Same.
20957 (get_alias_symbol): Same.
20958 (input_node): Same.
20959 (input_varpool_node): Same.
20961 (input_edge): Same.
20962 (input_cgraph_1): Same.
20963 (input_refs): Same.
20964 (input_symtab): Same.
20965 (input_offload_tables): Same.
20966 (output_cgraph_opt_summary): Same.
20967 (input_edge_opt_summary): Same.
20968 (input_cgraph_opt_section): Same.
20969 * lto-section-in.c (lto_free_raw_section_data): Same.
20970 (lto_create_simple_input_block): Same.
20971 (lto_free_function_in_decl_state_for_node): Same.
20972 * lto-streamer-in.c (lto_tag_check_set): Same.
20973 (lto_location_cache::revert_location_cache): Same.
20974 (lto_location_cache::input_location): Same.
20975 (lto_input_location): Same.
20976 (stream_input_location_now): Same.
20977 (lto_input_tree_ref): Same.
20978 (lto_input_eh_catch_list): Same.
20979 (input_eh_region): Same.
20980 (lto_init_eh): Same.
20981 (make_new_block): Same.
20983 (fixup_call_stmt_edges): Same.
20984 (input_struct_function_base): Same.
20985 (input_function): Same.
20986 (lto_read_body_or_constructor): Same.
20987 (lto_read_tree_1): Same.
20988 (lto_read_tree): Same.
20989 (lto_input_scc): Same.
20990 (lto_input_tree_1): Same.
20991 (lto_input_toplevel_asms): Same.
20992 (lto_input_mode_table): Same.
20993 (lto_reader_init): Same.
20994 (lto_data_in_create): Same.
20995 * lto-streamer-out.c (output_cfg): Same.
20996 * lto-streamer.h: Same.
20997 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20998 (generate_prolog_epilog): Same.
20999 (mark_loop_unsched): Same.
21000 (dump_insn_location): Same.
21001 (loop_canon_p): Same.
21002 (sms_schedule): Same.
21003 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21004 (expand_omp_for_generic): Same.
21005 (expand_omp_for_static_nochunk): Same.
21006 (expand_omp_for_static_chunk): Same.
21007 (expand_omp_simd): Same.
21008 (expand_omp_taskloop_for_inner): Same.
21009 (expand_oacc_for): Same.
21010 (expand_omp_atomic_pipeline): Same.
21011 (mark_loops_in_oacc_kernels_region): Same.
21012 * omp-offload.c (oacc_xform_loop): Same.
21013 * omp-simd-clone.c (simd_clone_adjust): Same.
21014 * optabs-query.c (get_traditional_extraction_insn): Same.
21015 * optabs.c (expand_vector_broadcast): Same.
21016 (expand_binop_directly): Same.
21017 (expand_twoval_unop): Same.
21018 (expand_twoval_binop): Same.
21019 (expand_unop_direct): Same.
21020 (emit_indirect_jump): Same.
21021 (emit_conditional_move): Same.
21022 (emit_conditional_neg_or_complement): Same.
21023 (emit_conditional_add): Same.
21024 (vector_compare_rtx): Same.
21025 (expand_vec_perm_1): Same.
21026 (expand_vec_perm_const): Same.
21027 (expand_vec_cond_expr): Same.
21028 (expand_vec_series_expr): Same.
21029 (maybe_emit_atomic_exchange): Same.
21030 (maybe_emit_sync_lock_test_and_set): Same.
21031 (expand_atomic_compare_and_swap): Same.
21032 (expand_atomic_load): Same.
21033 (expand_atomic_store): Same.
21034 (maybe_emit_op): Same.
21035 (valid_multiword_target_p): Same.
21036 (create_integer_operand): Same.
21037 (maybe_legitimize_operand_same_code): Same.
21038 (maybe_legitimize_operand): Same.
21039 (create_convert_operand_from_type): Same.
21040 (can_reuse_operands_p): Same.
21041 (maybe_legitimize_operands): Same.
21042 (maybe_gen_insn): Same.
21043 (maybe_expand_insn): Same.
21044 (maybe_expand_jump_insn): Same.
21045 (expand_insn): Same.
21046 * optabs.h (create_expand_operand): Same.
21047 (create_fixed_operand): Same.
21048 (create_output_operand): Same.
21049 (create_input_operand): Same.
21050 (create_convert_operand_to): Same.
21051 (create_convert_operand_from): Same.
21053 * poly-int.h: Same.
21054 * predict.c (optimize_insn_for_speed_p): Same.
21055 (optimize_loop_for_size_p): Same.
21056 (optimize_loop_for_speed_p): Same.
21057 (optimize_loop_nest_for_speed_p): Same.
21058 (get_base_value): Same.
21059 (predicted_by_loop_heuristics_p): Same.
21060 (predict_extra_loop_exits): Same.
21061 (predict_loops): Same.
21062 (predict_paths_for_bb): Same.
21063 (predict_paths_leading_to): Same.
21064 (propagate_freq): Same.
21065 (pass_profile::execute): Same.
21067 * profile-count.c (profile_count::differs_from_p): Same.
21068 (profile_probability::differs_lot_from_p): Same.
21069 * profile-count.h: Same.
21070 * profile.c (branch_prob): Same.
21071 * regrename.c (free_chain_data): Same.
21072 (mark_conflict): Same.
21073 (create_new_chain): Same.
21074 (merge_overlapping_regs): Same.
21075 (init_rename_info): Same.
21076 (merge_chains): Same.
21077 (regrename_analyze): Same.
21078 (regrename_do_replace): Same.
21079 (scan_rtx_reg): Same.
21080 (record_out_operands): Same.
21081 (build_def_use): Same.
21082 * regrename.h: Same.
21084 * reload1.c (init_reload): Same.
21085 (maybe_fix_stack_asms): Same.
21086 (copy_reloads): Same.
21087 (count_pseudo): Same.
21088 (count_spilled_pseudo): Same.
21090 (find_reload_regs): Same.
21091 (select_reload_regs): Same.
21092 (spill_hard_reg): Same.
21093 (fixup_eh_region_note): Same.
21094 (set_reload_reg): Same.
21095 (allocate_reload_reg): Same.
21096 (compute_reload_subreg_offset): Same.
21097 (reload_adjust_reg_for_icode): Same.
21098 (emit_input_reload_insns): Same.
21099 (emit_output_reload_insns): Same.
21100 (do_input_reload): Same.
21101 (inherit_piecemeal_p): Same.
21103 * sanopt.c (maybe_get_dominating_check): Same.
21104 (maybe_optimize_ubsan_ptr_ifn): Same.
21105 (can_remove_asan_check): Same.
21106 (maybe_optimize_asan_check_ifn): Same.
21107 (sanopt_optimize_walker): Same.
21108 * sched-deps.c (add_dependence_list): Same.
21109 (chain_to_prev_insn): Same.
21110 (add_insn_mem_dependence): Same.
21111 (create_insn_reg_set): Same.
21112 (maybe_extend_reg_info_p): Same.
21113 (sched_analyze_reg): Same.
21114 (sched_analyze_1): Same.
21115 (get_implicit_reg_pending_clobbers): Same.
21116 (chain_to_prev_insn_p): Same.
21117 (deps_analyze_insn): Same.
21118 (deps_start_bb): Same.
21119 (sched_free_deps): Same.
21121 (init_deps_reg_last): Same.
21123 * sched-ebb.c: Same.
21124 * sched-int.h: Same.
21125 * sched-rgn.c (add_branch_dependences): Same.
21126 (concat_insn_mem_list): Same.
21128 (sched_rgn_compute_dependencies): Same.
21129 * sel-sched-ir.c (reset_target_context): Same.
21130 (copy_deps_context): Same.
21131 (init_id_from_df): Same.
21132 (has_dependence_p): Same.
21133 (change_loops_latches): Same.
21134 (bb_top_order_comparator): Same.
21135 (make_region_from_loop_preheader): Same.
21136 (sel_init_pipelining): Same.
21137 (get_loop_nest_for_rgn): Same.
21138 (make_regions_from_the_rest): Same.
21139 (sel_is_loop_preheader_p): Same.
21140 * sel-sched-ir.h (inner_loop_header_p): Same.
21141 (get_all_loop_exits): Same.
21142 * selftest.h: Same.
21143 * sese.c (sese_build_liveouts): Same.
21144 (sese_insert_phis_for_liveouts): Same.
21145 * sese.h (defined_in_sese_p): Same.
21146 * sreal.c (sreal::stream_out): Same.
21148 * streamer-hooks.h: Same.
21149 * target-globals.c (save_target_globals): Same.
21150 * target-globals.h: Same.
21151 * target.def: Same.
21153 * targhooks.c (default_has_ifunc_p): Same.
21154 (default_empty_mask_is_expensive): Same.
21155 (default_init_cost): Same.
21156 * targhooks.h: Same.
21158 * tree-affine.c (aff_combination_mult): Same.
21159 (aff_combination_expand): Same.
21160 (aff_combination_constant_multiple_p): Same.
21161 * tree-affine.h: Same.
21162 * tree-cfg.c (build_gimple_cfg): Same.
21163 (replace_loop_annotate_in_block): Same.
21164 (replace_uses_by): Same.
21166 (dump_cfg_stats): Same.
21167 (gimple_duplicate_sese_region): Same.
21168 (gimple_duplicate_sese_tail): Same.
21169 (move_block_to_fn): Same.
21170 (replace_block_vars_by_duplicates): Same.
21171 (move_sese_region_to_fn): Same.
21172 (print_loops_bb): Same.
21173 (print_loop): Same.
21174 (print_loops): Same.
21176 (debug_loops): Same.
21177 * tree-cfg.h: Same.
21178 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21179 (chrec_fold_multiply_poly_poly): Same.
21180 (chrec_evaluate): Same.
21181 (chrec_component_in_loop_num): Same.
21182 (reset_evolution_in_loop): Same.
21183 (is_multivariate_chrec): Same.
21184 (chrec_contains_symbols): Same.
21185 (nb_vars_in_chrec): Same.
21186 (chrec_convert_1): Same.
21187 (chrec_convert_aggressive): Same.
21188 * tree-chrec.h: Same.
21189 * tree-core.h: Same.
21190 * tree-data-ref.c (dump_data_dependence_relation): Same.
21191 (canonicalize_base_object_address): Same.
21192 (data_ref_compare_tree): Same.
21193 (prune_runtime_alias_test_list): Same.
21194 (get_segment_min_max): Same.
21195 (create_intersect_range_checks): Same.
21196 (conflict_fn_no_dependence): Same.
21197 (object_address_invariant_in_loop_p): Same.
21198 (analyze_ziv_subscript): Same.
21199 (analyze_siv_subscript_cst_affine): Same.
21200 (analyze_miv_subscript): Same.
21201 (analyze_overlapping_iterations): Same.
21202 (build_classic_dist_vector_1): Same.
21203 (add_other_self_distances): Same.
21204 (same_access_functions): Same.
21205 (build_classic_dir_vector): Same.
21206 (subscript_dependence_tester_1): Same.
21207 (subscript_dependence_tester): Same.
21208 (access_functions_are_affine_or_constant_p): Same.
21209 (get_references_in_stmt): Same.
21210 (loop_nest_has_data_refs): Same.
21211 (graphite_find_data_references_in_stmt): Same.
21212 (find_data_references_in_bb): Same.
21213 (get_base_for_alignment): Same.
21214 (find_loop_nest_1): Same.
21215 (find_loop_nest): Same.
21216 * tree-data-ref.h (dr_alignment): Same.
21217 (ddr_dependence_level): Same.
21218 * tree-if-conv.c (fold_build_cond_expr): Same.
21219 (add_to_predicate_list): Same.
21220 (add_to_dst_predicate_list): Same.
21221 (phi_convertible_by_degenerating_args): Same.
21222 (idx_within_array_bound): Same.
21223 (all_preds_critical_p): Same.
21224 (pred_blocks_visited_p): Same.
21225 (predicate_bbs): Same.
21226 (build_region): Same.
21227 (if_convertible_loop_p_1): Same.
21228 (is_cond_scalar_reduction): Same.
21229 (predicate_scalar_phi): Same.
21230 (remove_conditions_and_labels): Same.
21231 (combine_blocks): Same.
21232 (version_loop_for_if_conversion): Same.
21233 (versionable_outer_loop_p): Same.
21234 (ifcvt_local_dce): Same.
21235 (tree_if_conversion): Same.
21236 (pass_if_conversion::gate): Same.
21237 * tree-if-conv.h: Same.
21238 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21239 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21241 (stmt_has_scalar_dependences_outside_loop): Same.
21242 (copy_loop_before): Same.
21243 (create_bb_after_loop): Same.
21244 (const_with_all_bytes_same): Same.
21245 (generate_memset_builtin): Same.
21246 (generate_memcpy_builtin): Same.
21247 (destroy_loop): Same.
21248 (build_rdg_partition_for_vertex): Same.
21249 (compute_access_range): Same.
21250 (data_ref_segment_size): Same.
21251 (latch_dominated_by_data_ref): Same.
21252 (compute_alias_check_pairs): Same.
21253 (fuse_memset_builtins): Same.
21254 (finalize_partitions): Same.
21255 (find_seed_stmts_for_distribution): Same.
21256 (prepare_perfect_loop_nest): Same.
21257 * tree-parloops.c (lambda_transform_legal_p): Same.
21258 (loop_parallel_p): Same.
21259 (reduc_stmt_res): Same.
21260 (add_field_for_name): Same.
21261 (create_call_for_reduction_1): Same.
21262 (replace_uses_in_bb_by): Same.
21263 (transform_to_exit_first_loop_alt): Same.
21264 (try_transform_to_exit_first_loop_alt): Same.
21265 (transform_to_exit_first_loop): Same.
21267 (gen_parallel_loop): Same.
21268 (gather_scalar_reductions): Same.
21269 (get_omp_data_i_param): Same.
21270 (try_create_reduction_list): Same.
21271 (oacc_entry_exit_single_gang): Same.
21272 (parallelize_loops): Same.
21273 * tree-pass.h: Same.
21274 * tree-predcom.c (determine_offset): Same.
21275 (last_always_executed_block): Same.
21276 (split_data_refs_to_components): Same.
21277 (suitable_component_p): Same.
21278 (valid_initializer_p): Same.
21279 (find_looparound_phi): Same.
21280 (insert_looparound_copy): Same.
21281 (add_looparound_copies): Same.
21282 (determine_roots_comp): Same.
21283 (predcom_tmp_var): Same.
21284 (initialize_root_vars): Same.
21285 (initialize_root_vars_store_elim_1): Same.
21286 (initialize_root_vars_store_elim_2): Same.
21287 (finalize_eliminated_stores): Same.
21288 (initialize_root_vars_lm): Same.
21289 (remove_stmt): Same.
21290 (determine_unroll_factor): Same.
21291 (execute_pred_commoning_cbck): Same.
21292 (base_names_in_chain_on): Same.
21293 (combine_chains): Same.
21294 (pcom_stmt_dominates_stmt_p): Same.
21295 (try_combine_chains): Same.
21296 (prepare_initializers_chain_store_elim): Same.
21297 (prepare_initializers_chain): Same.
21298 (prepare_initializers): Same.
21299 (prepare_finalizers_chain): Same.
21300 (prepare_finalizers): Same.
21301 (insert_init_seqs): Same.
21302 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21303 (compute_overall_effect_of_inner_loop): Same.
21304 (add_to_evolution_1): Same.
21305 (add_to_evolution): Same.
21306 (follow_ssa_edge_binary): Same.
21307 (follow_ssa_edge_expr): Same.
21308 (backedge_phi_arg_p): Same.
21309 (follow_ssa_edge_in_condition_phi_branch): Same.
21310 (follow_ssa_edge_in_condition_phi): Same.
21311 (follow_ssa_edge_inner_loop_phi): Same.
21312 (follow_ssa_edge): Same.
21313 (analyze_evolution_in_loop): Same.
21314 (analyze_initial_condition): Same.
21315 (interpret_loop_phi): Same.
21316 (interpret_condition_phi): Same.
21317 (interpret_rhs_expr): Same.
21318 (interpret_expr): Same.
21319 (interpret_gimple_assign): Same.
21320 (analyze_scalar_evolution_1): Same.
21321 (analyze_scalar_evolution): Same.
21322 (analyze_scalar_evolution_for_address_of): Same.
21323 (get_instantiated_value_entry): Same.
21324 (loop_closed_phi_def): Same.
21325 (instantiate_scev_name): Same.
21326 (instantiate_scev_poly): Same.
21327 (instantiate_scev_binary): Same.
21328 (instantiate_scev_convert): Same.
21329 (instantiate_scev_not): Same.
21330 (instantiate_scev_r): Same.
21331 (instantiate_scev): Same.
21332 (resolve_mixers): Same.
21333 (initialize_scalar_evolutions_analyzer): Same.
21334 (scev_reset_htab): Same.
21335 (scev_reset): Same.
21336 (derive_simple_iv_with_niters): Same.
21337 (simple_iv_with_niters): Same.
21338 (expression_expensive_p): Same.
21339 (final_value_replacement_loop): Same.
21340 * tree-scalar-evolution.h (block_before_loop): Same.
21341 * tree-ssa-address.h: Same.
21342 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21343 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21344 (record_edge_info): Same.
21345 * tree-ssa-live.c (var_map_base_fini): Same.
21346 (remove_unused_locals): Same.
21347 * tree-ssa-live.h: Same.
21348 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21349 (pass_ch_vect::execute): Same.
21350 (pass_ch::process_loop_p): Same.
21351 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21352 (movement_possibility): Same.
21353 (outermost_invariant_loop): Same.
21355 (determine_max_movement): Same.
21356 (invariantness_dom_walker::before_dom_children): Same.
21357 (move_computations): Same.
21358 (may_move_till): Same.
21359 (force_move_till_op): Same.
21360 (force_move_till): Same.
21361 (memref_free): Same.
21362 (record_mem_ref_loc): Same.
21363 (set_ref_stored_in_loop): Same.
21364 (mark_ref_stored): Same.
21365 (sort_bbs_in_loop_postorder_cmp): Same.
21366 (sort_locs_in_loop_postorder_cmp): Same.
21367 (analyze_memory_references): Same.
21368 (mem_refs_may_alias_p): Same.
21369 (find_ref_loc_in_loop_cmp): Same.
21370 (rewrite_mem_ref_loc::operator): Same.
21371 (first_mem_ref_loc_1::operator): Same.
21372 (sm_set_flag_if_changed::operator): Same.
21373 (execute_sm_if_changed_flag_set): Same.
21374 (execute_sm): Same.
21375 (hoist_memory_references): Same.
21376 (ref_always_accessed::operator): Same.
21377 (refs_independent_p): Same.
21378 (record_dep_loop): Same.
21379 (ref_indep_loop_p_1): Same.
21380 (ref_indep_loop_p): Same.
21381 (can_sm_ref_p): Same.
21382 (find_refs_for_sm): Same.
21383 (loop_suitable_for_sm): Same.
21384 (store_motion_loop): Same.
21385 (store_motion): Same.
21386 (fill_always_executed_in): Same.
21387 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21388 (estimated_unrolled_size): Same.
21389 (loop_edge_to_cancel): Same.
21390 (remove_exits_and_undefined_stmts): Same.
21391 (remove_redundant_iv_tests): Same.
21392 (unloop_loops): Same.
21393 (estimated_peeled_sequence_size): Same.
21394 (try_peel_loop): Same.
21395 (canonicalize_loop_induction_variables): Same.
21396 (canonicalize_induction_variables): Same.
21397 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21399 (stmt_after_inc_pos): Same.
21400 (contains_abnormal_ssa_name_p): Same.
21401 (niter_for_exit): Same.
21404 (find_givs_in_bb): Same.
21405 (find_induction_variables): Same.
21406 (find_interesting_uses_cond): Same.
21407 (outermost_invariant_loop_for_expr): Same.
21408 (idx_find_step): Same.
21409 (add_candidate_1): Same.
21410 (add_iv_candidate_derived_from_uses): Same.
21411 (alloc_use_cost_map): Same.
21412 (prepare_decl_rtl): Same.
21413 (generic_predict_doloop_p): Same.
21414 (computation_cost): Same.
21415 (determine_common_wider_type): Same.
21416 (get_computation_aff_1): Same.
21417 (get_use_type): Same.
21418 (determine_group_iv_cost_address): Same.
21420 (difference_cannot_overflow_p): Same.
21421 (may_eliminate_iv): Same.
21422 (determine_set_costs): Same.
21423 (cheaper_cost_pair): Same.
21424 (compare_cost_pair): Same.
21425 (iv_ca_cand_for_group): Same.
21426 (iv_ca_recount_cost): Same.
21427 (iv_ca_set_remove_invs): Same.
21428 (iv_ca_set_no_cp): Same.
21429 (iv_ca_set_add_invs): Same.
21430 (iv_ca_set_cp): Same.
21431 (iv_ca_add_group): Same.
21432 (iv_ca_cost): Same.
21433 (iv_ca_compare_deps): Same.
21434 (iv_ca_delta_reverse): Same.
21435 (iv_ca_delta_commit): Same.
21436 (iv_ca_cand_used_p): Same.
21437 (iv_ca_delta_free): Same.
21439 (iv_ca_free): Same.
21440 (iv_ca_dump): Same.
21441 (iv_ca_extend): Same.
21442 (iv_ca_narrow): Same.
21443 (iv_ca_prune): Same.
21444 (cheaper_cost_with_cand): Same.
21445 (iv_ca_replace): Same.
21446 (try_add_cand_for): Same.
21447 (get_initial_solution): Same.
21448 (try_improve_iv_set): Same.
21449 (find_optimal_iv_set_1): Same.
21450 (create_new_iv): Same.
21451 (rewrite_use_compare): Same.
21452 (remove_unused_ivs): Same.
21453 (determine_scaling_factor): Same.
21454 * tree-ssa-loop-ivopts.h: Same.
21455 * tree-ssa-loop-manip.c (create_iv): Same.
21456 (compute_live_loop_exits): Same.
21457 (add_exit_phi): Same.
21458 (add_exit_phis): Same.
21459 (find_uses_to_rename_use): Same.
21460 (find_uses_to_rename_def): Same.
21461 (find_uses_to_rename_in_loop): Same.
21462 (rewrite_into_loop_closed_ssa): Same.
21463 (check_loop_closed_ssa_bb): Same.
21464 (split_loop_exit_edge): Same.
21465 (ip_end_pos): Same.
21466 (ip_normal_pos): Same.
21467 (copy_phi_node_args): Same.
21468 (gimple_duplicate_loop_to_header_edge): Same.
21469 (can_unroll_loop_p): Same.
21470 (determine_exit_conditions): Same.
21471 (scale_dominated_blocks_in_loop): Same.
21472 (niter_for_unrolled_loop): Same.
21473 (tree_transform_and_unroll_loop): Same.
21474 (rewrite_all_phi_nodes_with_iv): Same.
21475 * tree-ssa-loop-manip.h: Same.
21476 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21477 (number_of_iterations_ne): Same.
21478 (assert_no_overflow_lt): Same.
21479 (assert_loop_rolls_lt): Same.
21480 (number_of_iterations_lt): Same.
21481 (adjust_cond_for_loop_until_wrap): Same.
21482 (tree_simplify_using_condition): Same.
21483 (simplify_using_initial_conditions): Same.
21484 (simplify_using_outer_evolutions): Same.
21485 (loop_only_exit_p): Same.
21486 (ssa_defined_by_minus_one_stmt_p): Same.
21487 (number_of_iterations_popcount): Same.
21488 (number_of_iterations_exit): Same.
21489 (find_loop_niter): Same.
21490 (finite_loop_p): Same.
21491 (chain_of_csts_start): Same.
21492 (get_val_for): Same.
21493 (loop_niter_by_eval): Same.
21494 (derive_constant_upper_bound_ops): Same.
21495 (do_warn_aggressive_loop_optimizations): Same.
21496 (record_estimate): Same.
21497 (get_cst_init_from_scev): Same.
21498 (record_nonwrapping_iv): Same.
21499 (idx_infer_loop_bounds): Same.
21500 (infer_loop_bounds_from_ref): Same.
21501 (infer_loop_bounds_from_array): Same.
21502 (infer_loop_bounds_from_pointer_arith): Same.
21503 (infer_loop_bounds_from_signedness): Same.
21504 (bound_index): Same.
21505 (discover_iteration_bound_by_body_walk): Same.
21506 (maybe_lower_iteration_bound): Same.
21507 (estimate_numbers_of_iterations): Same.
21508 (estimated_loop_iterations): Same.
21509 (estimated_loop_iterations_int): Same.
21510 (max_loop_iterations): Same.
21511 (max_loop_iterations_int): Same.
21512 (likely_max_loop_iterations): Same.
21513 (likely_max_loop_iterations_int): Same.
21514 (estimated_stmt_executions_int): Same.
21515 (max_stmt_executions): Same.
21516 (likely_max_stmt_executions): Same.
21517 (estimated_stmt_executions): Same.
21518 (stmt_dominates_stmt_p): Same.
21519 (nowrap_type_p): Same.
21520 (loop_exits_before_overflow): Same.
21521 (scev_var_range_cant_overflow): Same.
21522 (scev_probably_wraps_p): Same.
21523 (free_numbers_of_iterations_estimates): Same.
21524 * tree-ssa-loop-niter.h: Same.
21525 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21526 (idx_analyze_ref): Same.
21527 (analyze_ref): Same.
21528 (gather_memory_references_ref): Same.
21529 (mark_nontemporal_store): Same.
21530 (emit_mfence_after_loop): Same.
21531 (may_use_storent_in_loop_p): Same.
21532 (mark_nontemporal_stores): Same.
21533 (should_unroll_loop_p): Same.
21534 (volume_of_dist_vector): Same.
21535 (add_subscript_strides): Same.
21536 (self_reuse_distance): Same.
21537 (insn_to_prefetch_ratio_too_small_p): Same.
21538 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21539 (patch_loop_exit): Same.
21540 (find_or_create_guard_phi): Same.
21541 (easy_exit_values): Same.
21542 (connect_loop_phis): Same.
21543 (connect_loops): Same.
21544 (compute_new_first_bound): Same.
21545 (split_loop): Same.
21546 (tree_ssa_split_loops): Same.
21547 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21548 (is_maybe_undefined): Same.
21549 (tree_may_unswitch_on): Same.
21550 (simplify_using_entry_checks): Same.
21551 (tree_unswitch_single_loop): Same.
21552 (tree_unswitch_loop): Same.
21553 (tree_unswitch_outer_loop): Same.
21554 (empty_bb_without_guard_p): Same.
21555 (used_outside_loop_p): Same.
21556 (get_vop_from_header): Same.
21557 (hoist_guard): Same.
21558 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21559 (get_lsm_tmp_name): Same.
21560 * tree-ssa-loop.h: Same.
21561 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21562 (build_and_add_sum): Same.
21563 (no_side_effect_bb): Same.
21565 (linearize_expr): Same.
21566 (should_break_up_subtract): Same.
21567 (linearize_expr_tree): Same.
21568 * tree-ssa-scopedtables.c: Same.
21569 * tree-ssa-scopedtables.h: Same.
21570 * tree-ssa-structalias.c (condense_visit): Same.
21571 (label_visit): Same.
21572 (dump_pred_graph): Same.
21573 (perform_var_substitution): Same.
21574 (move_complex_constraints): Same.
21575 (remove_preds_and_fake_succs): Same.
21576 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21577 (determine_bb_domination_status): Same.
21578 (duplicate_thread_path): Same.
21579 (thread_through_all_blocks): Same.
21580 * tree-ssa-threadupdate.h: Same.
21581 * tree-streamer-in.c (streamer_read_string_cst): Same.
21582 (input_identifier): Same.
21583 (unpack_ts_type_common_value_fields): Same.
21584 (unpack_ts_block_value_fields): Same.
21585 (unpack_ts_translation_unit_decl_value_fields): Same.
21586 (unpack_ts_omp_clause_value_fields): Same.
21587 (streamer_read_tree_bitfields): Same.
21588 (streamer_alloc_tree): Same.
21589 (lto_input_ts_common_tree_pointers): Same.
21590 (lto_input_ts_vector_tree_pointers): Same.
21591 (lto_input_ts_poly_tree_pointers): Same.
21592 (lto_input_ts_complex_tree_pointers): Same.
21593 (lto_input_ts_decl_minimal_tree_pointers): Same.
21594 (lto_input_ts_decl_common_tree_pointers): Same.
21595 (lto_input_ts_decl_non_common_tree_pointers): Same.
21596 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21597 (lto_input_ts_field_decl_tree_pointers): Same.
21598 (lto_input_ts_function_decl_tree_pointers): Same.
21599 (lto_input_ts_type_common_tree_pointers): Same.
21600 (lto_input_ts_type_non_common_tree_pointers): Same.
21601 (lto_input_ts_list_tree_pointers): Same.
21602 (lto_input_ts_vec_tree_pointers): Same.
21603 (lto_input_ts_exp_tree_pointers): Same.
21604 (lto_input_ts_block_tree_pointers): Same.
21605 (lto_input_ts_binfo_tree_pointers): Same.
21606 (lto_input_ts_constructor_tree_pointers): Same.
21607 (lto_input_ts_omp_clause_tree_pointers): Same.
21608 (streamer_read_tree_body): Same.
21609 * tree-streamer.h: Same.
21610 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21611 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21612 (vect_analyze_possibly_independent_ddr): Same.
21613 (vect_analyze_data_ref_dependence): Same.
21614 (vect_compute_data_ref_alignment): Same.
21615 (vect_enhance_data_refs_alignment): Same.
21616 (vect_analyze_data_ref_access): Same.
21617 (vect_check_gather_scatter): Same.
21618 (vect_find_stmt_data_reference): Same.
21619 (vect_create_addr_base_for_vector_ref): Same.
21620 (vect_setup_realignment): Same.
21621 (vect_supportable_dr_alignment): Same.
21622 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21623 (adjust_phi_and_debug_stmts): Same.
21624 (vect_set_loop_mask): Same.
21625 (add_preheader_seq): Same.
21626 (vect_maybe_permute_loop_masks): Same.
21627 (vect_set_loop_masks_directly): Same.
21628 (vect_set_loop_condition_masked): Same.
21629 (vect_set_loop_condition_unmasked): Same.
21630 (slpeel_duplicate_current_defs_from_edges): Same.
21631 (slpeel_add_loop_guard): Same.
21632 (slpeel_can_duplicate_loop_p): Same.
21633 (create_lcssa_for_virtual_phi): Same.
21635 (vect_update_ivs_after_vectorizer): Same.
21636 (vect_gen_vector_loop_niters_mult_vf): Same.
21637 (slpeel_update_phi_nodes_for_loops): Same.
21638 (slpeel_update_phi_nodes_for_guard1): Same.
21639 (find_guard_arg): Same.
21640 (slpeel_update_phi_nodes_for_guard2): Same.
21641 (slpeel_update_phi_nodes_for_lcssa): Same.
21642 (vect_do_peeling): Same.
21643 (vect_create_cond_for_alias_checks): Same.
21644 (vect_loop_versioning): Same.
21645 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21646 (vect_inner_phi_in_double_reduction_p): Same.
21647 (vect_analyze_scalar_cycles_1): Same.
21648 (vect_fixup_scalar_cycles_with_patterns): Same.
21649 (vect_get_loop_niters): Same.
21650 (bb_in_loop_p): Same.
21651 (vect_get_max_nscalars_per_iter): Same.
21652 (vect_verify_full_masking): Same.
21653 (vect_compute_single_scalar_iteration_cost): Same.
21654 (vect_analyze_loop_form_1): Same.
21655 (vect_analyze_loop_form): Same.
21656 (vect_active_double_reduction_p): Same.
21657 (vect_analyze_loop_operations): Same.
21658 (neutral_op_for_slp_reduction): Same.
21659 (vect_is_simple_reduction): Same.
21660 (vect_model_reduction_cost): Same.
21661 (get_initial_def_for_reduction): Same.
21662 (get_initial_defs_for_reduction): Same.
21663 (vect_create_epilog_for_reduction): Same.
21664 (vectorize_fold_left_reduction): Same.
21665 (vectorizable_reduction): Same.
21666 (vectorizable_induction): Same.
21667 (vectorizable_live_operation): Same.
21668 (loop_niters_no_overflow): Same.
21669 (vect_get_loop_mask): Same.
21670 (vect_transform_loop_stmt): Same.
21671 (vect_transform_loop): Same.
21672 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21673 (vect_determine_precisions): Same.
21674 (vect_pattern_recog_1): Same.
21675 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21676 * tree-vect-stmts.c (stmt_vectype): Same.
21677 (process_use): Same.
21678 (vect_init_vector_1): Same.
21679 (vect_truncate_gather_scatter_offset): Same.
21680 (get_group_load_store_type): Same.
21681 (vect_build_gather_load_calls): Same.
21682 (vect_get_strided_load_store_ops): Same.
21683 (vectorizable_simd_clone_call): Same.
21684 (vectorizable_store): Same.
21685 (permute_vec_elements): Same.
21686 (vectorizable_load): Same.
21687 (vect_transform_stmt): Same.
21688 (supportable_widening_operation): Same.
21689 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21690 (vec_info::free_stmt_vec_info): Same.
21691 (vect_free_loop_info_assumptions): Same.
21692 (vect_loop_vectorized_call): Same.
21693 (set_uid_loop_bbs): Same.
21694 (vectorize_loops): Same.
21695 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21696 * tree.c (add_tree_to_fld_list): Same.
21697 (fld_type_variant_equal_p): Same.
21698 (fld_decl_context): Same.
21699 (fld_incomplete_type_of): Same.
21700 (free_lang_data_in_binfo): Same.
21701 (need_assembler_name_p): Same.
21702 (find_decls_types_r): Same.
21703 (get_eh_types_for_runtime): Same.
21704 (find_decls_types_in_eh_region): Same.
21705 (find_decls_types_in_node): Same.
21706 (assign_assembler_name_if_needed): Same.
21707 * value-prof.c (stream_out_histogram_value): Same.
21708 * value-prof.h: Same.
21709 * var-tracking.c (use_narrower_mode): Same.
21710 (prepare_call_arguments): Same.
21711 (vt_expand_loc_callback): Same.
21712 (resolve_expansions_pending_recursion): Same.
21713 (vt_expand_loc): Same.
21714 * varasm.c (const_hash_1): Same.
21715 (compare_constant): Same.
21716 (tree_output_constant_def): Same.
21717 (simplify_subtraction): Same.
21718 (get_pool_constant): Same.
21719 (output_constant_pool_2): Same.
21720 (output_constant_pool_1): Same.
21721 (mark_constants_in_pattern): Same.
21722 (mark_constant_pool): Same.
21723 (get_section_anchor): Same.
21724 * vr-values.c (compare_range_with_value): Same.
21725 (vr_values::extract_range_from_phi_node): Same.
21726 * vr-values.h: Same.
21727 * web.c (unionfind_union): Same.
21728 * wide-int.h: Same.
21730 2019-07-09 Martin Sebor <msebor@redhat.com>
21733 * align.h: Change class-key from class to struct and vice versa
21734 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21735 * alloc-pool.h: Same.
21736 * asan.c (shadow_mem_size): Same.
21737 * auto-profile.c: Same.
21738 * basic-block.h: Same.
21740 * cfgexpand.c (set_rtl): Same.
21741 (expand_one_stack_var_at): Same.
21742 * cfghooks.h: Same.
21745 * config/i386/i386.h: Same.
21746 * df-problems.c (df_print_bb_index): Same.
21748 * df.h (df_single_use): Same.
21749 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21750 (layout::annotation_line_showed_range_p): Same.
21751 (get_printed_columns): Same.
21752 (correction::ensure_terminated): Same.
21753 (line_corrections::~line_corrections): Same.
21756 * dump-context.h: Same.
21757 * dumpfile.h: Same.
21758 * dwarf2out.c: Same.
21759 * edit-context.c: Same.
21760 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21762 * function.c (assign_stack_local): Same.
21763 * function.h: Same.
21765 * gcov.c (block_info::block_info): Same.
21766 * genattrtab.c: Same.
21767 * genextract.c: Same.
21768 * genmatch.c (comparison_code_p): Same.
21769 (id_base::id_base): Same.
21770 (decision_tree::print): Same.
21771 * genoutput.c: Same.
21772 * genpreds.c (write_one_predicate_function): Same.
21773 * genrecog.c (validate_pattern): Same.
21774 (find_operand_positions): Same.
21775 (optimize_subroutine_group): Same.
21776 (merge_pattern_transition::merge_pattern_transition): Same.
21777 (merge_pattern_info::merge_pattern_info): Same.
21778 (merge_state_result::merge_state_result): Same.
21779 (merge_into_state): Same.
21780 * gensupport.c: Same.
21781 * gensupport.h: Same.
21782 * ggc-common.c (init_ggc_heuristics): Same.
21783 * ggc-tests.c (test_union): Same.
21784 * gimple-loop-interchange.cc (dump_induction): Same.
21785 * gimple-loop-versioning.cc: Same.
21786 * gimple-match.h (gimple_match_cond::any_else): Same.
21787 * gimple-ssa-backprop.c: Same.
21788 * gimple-ssa-sprintf.c: Same.
21789 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21791 (store_immediate_info::store_immediate_info): Same.
21792 (merged_store_group::apply_stores): Same.
21793 (get_location_for_stmts): Same.
21794 * gimple-ssa-strength-reduction.c: Same.
21795 * gimple-ssa-warn-alloca.c: Same.
21796 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21797 * godump.c (go_type_decl): Same.
21798 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21799 * hash-map.h: Same.
21800 * hash-set-tests.c (test_set_of_strings): Same.
21801 * hsa-brig.c: Same.
21802 * hsa-common.h: Same.
21803 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21804 * input.c (assert_loceq): Same.
21807 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21808 * ipa-fnsummary.h: Same.
21809 * ipa-inline.h: Same.
21810 * ipa-prop.h: Same.
21811 * ipa-split.c (visit_bb): Same.
21812 * ira-int.h (minmax_set_iter_next): Same.
21813 * loop-invariant.c: Same.
21815 * lra-eliminations.c: Same.
21817 * lra-lives.c (mark_regno_dead): Same.
21818 * lra-remat.c: Same.
21819 * lra-spills.c: Same.
21820 * lto-streamer.h: Same.
21821 * mem-stats.h: Same.
21822 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21823 * omp-low.c (omp_clause_aligned_alignment): Same.
21824 * optabs-query.h (get_vcond_eq_icode): Same.
21826 * opts.c (wrap_help): Same.
21827 * poly-int.h: Same.
21828 * predict.c (predict_paths_leading_to_edge): Same.
21829 * pretty-print.h: Same.
21830 * profile-count.h: Same.
21832 * read-rtl-function.c: Same.
21835 * regrename.c: Same.
21836 * regrename.h: Same.
21838 * rtl-iter.h: Same.
21839 * rtl.h (costs_add_n_insns): Same.
21841 * sched-int.h: Same.
21842 * sel-sched-ir.h: Same.
21843 * selftest.h: Same.
21844 * sese.h (vec_find): Same.
21846 * target-globals.h: Same.
21847 * tree-affine.c (aff_combination_find_elt): Same.
21848 * tree-affine.h: Same.
21849 * tree-data-ref.h: Same.
21850 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21851 * tree-predcom.c: Same.
21852 * tree-scalar-evolution.c (find_var_scev_info): Same.
21853 * tree-ssa-alias.h: Same.
21854 * tree-ssa-ccp.c: Same.
21855 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21856 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21857 (rewrite_mem_refs): Same.
21858 (execute_sm_if_changed): Same.
21859 (hoist_memory_references): Same.
21860 * tree-ssa-loop-ivopts.c (operator<=): Same.
21861 * tree-ssa-loop.h: Same.
21862 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21863 * tree-ssa-structalias.c: Same.
21864 * tree-switch-conversion.h (cluster::cluster): Same.
21865 (simple_cluster::simple_cluster): Same.
21866 * tree-vect-patterns.c (type_conversion_p): Same.
21867 * tree-vectorizer.c (dump_stmt_cost): Same.
21868 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21869 * tree.c (protected_set_expr_location): Same.
21870 * tree.h (desired_pro_or_demotion_p): Same.
21871 (fndecl_built_in_p): Same.
21872 * unique-ptr-tests.cc: Same.
21873 * var-tracking.c (delete_variable_part): Same.
21874 * varasm.c (assemble_real): Same.
21875 (tree_output_constant_def): Same.
21877 * wide-int-bitmask.h: Same.
21878 * wide-int.h (decompose): Same.
21880 2019-07-09 Richard Biener <rguenther@suse.de>
21882 PR tree-optimization/91114
21883 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21884 find a vector type isn't fatal.
21886 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21888 * config/aarch64/aarch64-simd.md
21889 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21890 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21891 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21892 (*aarch64_crypto_aese_fused,
21893 *aarch64_crypto_aesd_fused): Update to new definition.
21894 * config/aarch64/aarch64.c
21895 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21897 2019-07-09 Richard Biener <rguenther@suse.de>
21899 * gimple-match.h (gimple_match_op::resimplify): New.
21900 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21901 gimple_resimplify4, gimple_resimplify5): Remove.
21902 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21903 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21905 (gimple_match_op::resimplify): New.
21906 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21907 according to availability. Use gimple_match_op::resimplify.
21909 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21911 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21913 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21915 * config/arm/crypto.md:
21916 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21917 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21918 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21919 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21921 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21922 * config/arm/aarch-common-protos.h
21923 (aarch_crypto_can_dual_issue): Remove.
21924 * config/arm/aarch-common.c
21925 (aarch_crypto_can_dual_issue): Likewise.
21926 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21927 * config/arm/cortex-a53.md: Likewise.
21928 * config/arm/cortex-a57.md: Likewise.
21929 * config/arm/iterators.md:
21930 (CRYPTO_BINARY): Redefine.
21931 (CRYPTO_UNARY): Removed.
21932 (CRYPTO_AES, CRYPTO_AESMC): New.
21934 2019-07-09 Richard Biener <rguenther@suse.de>
21936 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21937 (vn_reference_lookup_3): If the main ref has no access path recorded
21938 but orig_ref has use it to do access-path based disambiguation.
21939 (vn_reference_lookup_pieces): Adjust.
21940 (vn_reference_lookup): Pass down original ref if we valueized.
21942 2019-07-09 Martin Liska <mliska@suse.cz>
21944 * doc/extend.texi: Document influence on loop
21947 2019-07-09 Martin Liska <mliska@suse.cz>
21949 * lto-compress.c (lto_normalized_zstd_level): Do not use
21950 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21951 of libzstd. One can use 0 as a default compression level.
21953 2019-07-09 Martin Liska <mliska@suse.cz>
21955 * doc/invoke.texi: Add link from -fprofile-dir option.
21956 Use better wording for 'gcno filename'.
21958 2019-07-08 Martin Sebor <msebor@redhat.com>
21960 PR middle-end/71924
21961 PR middle-end/90549
21962 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21964 (args_loc_t): New type.
21965 (args_loc_t, locmap_t): same.
21966 (diag_returned_locals): New function.
21967 (is_addr_local): Same.
21968 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21969 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21970 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21972 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21974 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21975 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21976 and casts in offset when different, both through gimple stmts
21977 and through trees. Rewritten using loops to minimize code duplication
21980 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21982 * emit-rtl.c (set_insn_locations): New function moved from...
21983 * function.c (set_insn_locations): ...here.
21984 * ira-emit.c (emit_moves): Propagate location of the first instruction
21985 to the inserted move instructions.
21986 * reg-stack.c (compensate_edge): Set the location if the sequence is
21987 inserted on the edge.
21988 * rtl.h (set_insn_locations): Declare.
21990 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21992 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21993 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21996 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21998 PR rtl-optimization/88233
21999 * common.opt (fsplit-wide-types-early): New option.
22000 * common/config/rs6000/rs6000-common.c
22001 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22003 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22004 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22005 flag_split_wide_types_early.
22006 (pass_data_lower_subreg3): New.
22007 (pass_lower_subreg3): New.
22008 (make_pass_lower_subreg3): New.
22009 * passes.def (pass_lower_subreg2): Move after the loop passes.
22010 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22011 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22012 the pass pipeline; its previous place is taken by ...
22013 (make_pass_lower_subreg3): ... this.
22015 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22017 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22018 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22020 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22022 * config/s390/constraints.md: Add new jsc constraint.
22023 * config/s390/predicates.md: New predicates.
22024 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22025 * config/s390/s390.c (s390_valid_shift_count): New function.
22026 (print_shift_count_operand): Use s390_valid_shift_count.
22027 (print_operand): Likewise.
22028 * config/s390/s390.md: Use new predicate.
22029 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22030 * config/s390/vector.md: Use new predicate.
22032 2019-07-08 Andrew Waterman <andrew@sifive.com>
22033 Jim Wilson <jimw@sifive.com>
22035 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22036 bitsize instead of BITS_PER_WORD.
22038 2019-07-08 Martin Liska <mliska@suse.cz>
22040 * collect2.c (defined): Revert to before r254460.
22041 (scan_prog_file): Revert to before r254460.
22043 2019-07-08 Richard Biener <rguenther@suse.de>
22045 PR tree-optimization/83518
22046 * tree-ssa-sccvn.c: Include splay-tree.h.
22047 (struct pd_range, struct pd_data): New.
22048 (struct vn_walk_cb_data): Add data to track partial definitions.
22049 (vn_walk_cb_data::~vn_walk_cb_data): New.
22050 (vn_walk_cb_data::push_partial_def): New.
22051 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22052 (vn_reference_lookup_2): When partial defs are registered give up.
22053 (vn_reference_lookup_3): Track partial defs for memset and
22054 constructor zeroing and for defs from constants.
22056 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22058 * doc/install.texi (bootstrap-Og): Document.
22060 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22062 * config/riscv/pic.md (*local_pic_load_s<mode>)
22063 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22064 referenced by <mode>, giving...
22065 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22066 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22067 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22068 use <X:MODE> for the mode attribute.
22070 2019-07-07 Jeff Law <law@redhat.com>
22072 PR tree-optimization/91090
22073 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22074 in handling of ranges to simplify switch statements.
22076 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22078 * config/darwin.c (darwin_override_options): Make a final check on PIC
22081 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22083 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22084 on for kernel code.
22086 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22089 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22090 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22091 instead of matching them to "l" output operands.
22093 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22095 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22096 and check whether addr.reg is nonnull before using it.
22098 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22100 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22101 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22102 variable(s). For conditional lastprivate look through outer
22103 GIMPLE_OMP_SCAN context.
22104 (lower_omp_1): For conditional lastprivate look through outer
22105 GIMPLE_OMP_SCAN context.
22107 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22108 member to combined_into_simd_safelen1.
22109 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22110 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22111 clauses if ctx->combined_into_simd_safelen1 put statements after the
22112 predicate conditionalized block rather than into it.
22114 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22116 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22118 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22119 Make the choice of <mode> explicit, giving...
22120 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22122 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22124 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22125 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22127 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22128 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22129 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22130 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22131 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22132 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22133 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22134 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22135 (*avx512f_scatterdi<mode>): Likewise.
22136 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22138 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22140 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22141 specify the mode iterator referenced by <mode>, giving...
22142 (*push1_h8300hs_<QHI:mode>): ...this.
22144 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22146 * config/gcn/gcn-valu.md
22147 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22148 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22149 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22150 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22151 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22152 but using the _exec comparison patterns.
22153 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22154 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22155 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22156 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22157 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22158 but using the _exec comparison patterns.
22160 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22162 * config/arm/sync.md
22163 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22164 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22165 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22166 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22167 <SIDI:cas_cmp_str>.
22169 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22171 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22172 (maybe_lookup_ctx): Add forward declaration.
22173 (omp_find_scan): Likewise. Walk into body of simd if composited
22174 with worksharing loop.
22175 (scan_omp_simd_scan): New function.
22176 (scan_omp_1_stmt): Call it.
22177 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22178 ctx->for_simd_scan_phase.
22179 (lower_rec_input_clauses): Do much less work for inscan reductions
22180 in ctx->for_simd_scan_phase is_simd regions.
22181 (lower_omp_scan): Set is_simd also on simd constructs composited
22182 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22183 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22184 emit their body after in simd constructs composited with worksharing
22186 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22188 * omp-low.c (omp_find_scan): Make static.
22189 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22190 the second loop, var2 represents the first partial sum and so needs
22191 to go before rprivb[ivar].
22193 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22195 * config/rs6000/rs6000-logue.c: Remove unused code.
22197 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22199 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22201 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22204 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22205 check with a frame laid out check.
22207 2019-07-05 Richard Biener <rguenther@suse.de>
22209 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22210 when comparing against a store with possibly the same value.
22212 2019-07-05 Richard Biener <rguenther@suse.de>
22214 PR tree-optimization/91091
22215 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22216 (walk_non_aliased_vuses): Likewise.
22217 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22218 (get_continuation_for_phi): New tbaa_p parameter and pass
22220 (walk_non_aliased_vuses): Likewise.
22221 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22222 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22223 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22225 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22226 (adjust_offsets_for_equal_base_address): New function.
22227 (vn_reference_lookup_3): Use it to catch more base equivalences.
22228 Handle and pass down tbaa_p flag.
22229 (vn_reference_lookup_pieces): Adjust.
22230 (vn_reference_lookup): Remove alias-set altering, instead pass
22231 down false as tbaa_p.
22233 2019-07-05 Richard Biener <rguenther@suse.de>
22235 PR tree-optimization/91091
22236 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22237 accesses can happen with -fno-strict-aliasing.
22239 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22241 * tree-ssa-alias.c (alias_stats): Add
22242 nonoverlapping_component_refs_since_match_p_must_overlap.
22243 (dump_alias_stats): Print it.
22244 (nonoverlapping_component_refs_since_match_p): Add early exit.
22245 (nonoverlapping_component_refs_p): Do not account early exit.
22247 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22249 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22250 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22251 (emit_eh_dispatch): Delete.
22252 (lower_catch): Emit the eh_dispatch manually and set the location of
22253 the first catch statement onto it.
22254 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22255 (lower_eh_dispatch): Propagate location.
22256 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22257 (eliminate_build): Likewise.
22259 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22261 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22262 phi nodes if possible.
22263 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22264 location info on the newly created statement.
22265 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22266 newly created increment if needed.
22268 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22270 PR middle-end/78884
22271 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22272 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22273 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22274 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22275 ctx->add_safelen1 is set.
22277 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22278 GOMP_loop_start at the start of second worksharing loop in a scan.
22279 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22280 worksharing loop in a scan even if there are conditional lastprivates,
22281 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22283 2019-07-04 Jan Hubicka <jh@suse.cz>
22285 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22286 Fix check for match in the ref walk.
22288 2019-07-04 Martin Liska <mliska@suse.cz>
22290 * tree-ssa-loop-niter.c
22291 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22292 (estimate_numbers_of_iterations):
22293 Support __builtin_expect_with_probability for analysis
22294 of # of loop iterations.
22296 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22298 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22299 * except.c: Likewise.
22300 * expr.c (expand_expr_real_1): Reject it.
22301 * gimplify.c (gimplify_expr): Gimplify it, within
22303 * tree-dump.c (dequeue_and_dump): Dump it.
22304 * tree-pretty-print.c (dump_generic_node): Likewise.
22305 * tree.c (block_may_fallthru): Handle it.
22306 * tree.def (EH_ELSE_EXPR): Introduce it.
22307 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22308 with GIMPLE_EH_ELSE as try/finally/else.
22310 2019-07-04 Richard Biener <rguenther@suse.de>
22313 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22314 parameter whether to disable GC collection.
22315 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22317 (execute_all_ipa_transforms): Likewise and pass it down.
22318 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22319 collection from applying IPA transforms.
22320 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22321 from applying IPA transforms.
22323 2019-07-04 Richard Biener <rguenther@suse.de>
22325 PR tree-optimization/90911
22326 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22327 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22328 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22329 scalar_loop_scaling.
22330 (vect_transform_loop): Scale scalar loop profile if needed.
22331 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22332 the loop copy from if-conversion adjust edge probabilities
22333 and scale the vectorized loop body profile, queue the scalar
22334 profile for updating after peeling.
22336 2019-07-04 Jan Hubicka <jh@suse.cz>
22338 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22339 parameters; return early for must-alias.
22340 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22341 outer types match, try nonoverlapping_component_refs
22342 if must-alias is not obvious.
22343 (indirect_refs_may_alias_p): Likewise.
22344 (refs_may_alias_p_2): Likewise.
22346 2019-07-04 Richard Biener <rguenther@suse.de>
22348 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22350 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22352 (struct vn_walk_cb_data): New callback data struct.
22353 (vn_reference_lookup_2): Adjust.
22354 (vn_reference_lookup_3): Likewise.
22355 (vn_reference_lookup_pieces): Likewise.
22356 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22357 (visit_reference_op_load): Adjust.
22359 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22361 PR tree-optimization/91063
22362 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22363 stmt from stmts sequence before calling vect_init_vector_1.
22366 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22369 * fwprop.c (reg_single_def_p): New function.
22370 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22371 (forward_propagate_into): New parameter reg_prop_only
22372 with default value false.
22373 Propagate def's src into loop only if SET_SRC and SET_DEST
22374 of def_set have single definitions.
22375 Likewise if reg_prop_only is set to true.
22376 (fwprop): New param fwprop_addr_p.
22377 Integrate fwprop_addr into fwprop.
22378 (fwprop_addr): Remove.
22379 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22381 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22382 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22383 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22385 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22387 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22388 in worksharing loop scans.
22390 PR tree-optimization/91074
22391 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22394 PR rtl-optimization/90756
22395 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22398 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22400 * config/aarch64/aarch64.md: Remove redundant constraints from
22401 define_expand but keep some patterns untouched if they are
22402 specially selected by TARGET_SECONDARY_RELOAD hook.
22403 * config/aarch64/aarch64-sve.md: Likewise.
22404 * config/aarch64/atomics.md: Remove redundant constraints from
22406 * config/aarch64/aarch64-simd.md: Likewise.
22408 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22410 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22411 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22412 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22414 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22417 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22419 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22420 (STARTFILE_SPEC): Split crt3 into a separate spec.
22421 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22422 (DARWIN_CRT2_SPEC): New.
22423 (DARWIN_CRT3_SPEC): New.
22424 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22425 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22426 (DARWIN_CRT3_SPEC): New.
22428 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22430 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22431 Change the RTL attribute "length" from "4" to "*" to allow the
22432 length attribute to be adjusted automatically for prefixed load,
22433 store, and add immediate instructions.
22434 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22436 (extendsi<mode>2, EXTSI iterator): Likewise.
22437 (movsi_internal1): Likewise.
22438 (movsi_from_sf): Likewise.
22439 (movdi_from_sf_zero_ext): Likewise.
22440 (mov<mode>_internal): Likewise.
22441 (movcc_internal1, QHI iterator): Likewise.
22442 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22443 (movsf_from_si): Likewise.
22444 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22445 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22446 (mov<mode>, FMOVE128 iterator): Likewise.
22447 (movdi_internal64): Likewise.
22448 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22450 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22451 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22452 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22453 (vsx_splat_v4sf): Likewise.
22455 2019-07-03 Mark Wielaard <mark@klomp.org>
22458 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22459 DW_AT_addr_base if there is actually a .debug_addr section with
22461 (output_addr_table): Add DWARF5 table header generation here after
22462 checking there are actually any addresses from...
22463 (dwarf2out_finish): ...here.
22465 2019-07-03 Richard Biener <rguenther@suse.de>
22467 PR middle-end/91069
22468 * match.pd (vec_perm -> bit_insert): Fix element read from
22471 2019-07-03 Martin Liska <mliska@suse.cz>
22473 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22474 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22476 * generic-match-head.c: Include dbgcnt.h.
22477 * gimple-match-head.c: Likewise.
22479 2019-07-03 Martin Liska <mliska@suse.cz>
22481 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22482 (GCOV_COUNTER_V_TOPN): New.
22483 (GCOV_COUNTER_V_INDIR): Use _topn.
22484 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22485 (GCOV_TOPN_VALUES): New.
22486 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22487 (GCOV_TOPN_VALUES_COUNTERS): New.
22488 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22490 (gimple_init_gcov_profiler): Rename variables from one_value
22492 (gimple_gen_one_value_profiler): Remove.
22493 (gimple_gen_topn_values_profiler): New function.
22494 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22495 names instead of SINGLE_VALUE.
22496 (stream_out_histogram_value): Likewise.
22497 (stream_in_histogram_value): Likewise.
22498 (get_most_common_single_value): Likewise.
22499 (gimple_divmod_fixed_value_transform): Likewise.
22500 (gimple_stringops_transform): Likewise.
22501 (gimple_divmod_values_to_profile): Likewise.
22502 (gimple_stringops_values_to_profile): Likewise.
22503 (gimple_find_values_to_profile): Likewise.
22504 * value-prof.h (enum hist_type): Rename to TOPN.
22505 (gimple_gen_one_value_profiler): Remove.
22506 (gimple_gen_topn_values_profiler): New.
22508 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22510 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22511 if it has the DW_AT_data_member_location attribute.
22513 2019-07-03 Richard Biener <rguenther@suse.de>
22515 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22518 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22520 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22521 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22522 (tlsdesc_small_sve_<mode>): Likewise.
22524 2019-07-03 Martin Liska <mliska@suse.cz>
22526 * Makefile.in: Define ZSTD_LIB.
22527 * common.opt: Adjust compression level
22528 to support also zstd levels.
22529 * config.in: Regenerate.
22530 * configure: Likewise.
22531 * configure.ac: Add --with-zstd and --with-zstd-include options
22533 * doc/install.texi: Mention zstd dependency.
22534 * gcc.c: Print supported LTO compression algorithms.
22535 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22536 (lto_compression_zstd): Likewise.
22537 (lto_uncompression_zstd): Likewise.
22538 (lto_end_compression): Dispatch in between zlib and zstd.
22539 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22540 (lto_uncompression_zlib): Make it static.
22541 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22542 * lto-section-in.c (lto_get_section_data): Pass info
22543 about used compression.
22544 * lto-streamer-out.c: By default use zstd when possible.
22545 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22546 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22548 2019-07-03 Martin Liska <mliska@suse.cz>
22550 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22551 * lto-section-out.c (lto_destroy_simple_output_block): Never
22552 compress LTO_section_lto section.
22553 * lto-streamer-out.c (produce_asm): Do not set major_version
22555 (lto_output_toplevel_asms): Likewise.
22556 (produce_lto_section): New function.
22557 (lto_output): Call produce_lto_section.
22558 (lto_write_mode_table): Do not set major_version and
22560 (produce_asm_for_decls): Likewise.
22561 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22563 (struct lto_header): Remove.
22564 (struct lto_section): New struct.
22565 (struct lto_simple_header): Do not inherit from lto_header.
22566 (struct lto_file_decl_data): Add lto_section_header field.
22568 2019-07-03 Martin Liska <mliska@suse.cz>
22570 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22572 * reg-stack.c (check_asm_stack_operands): Likewise.
22573 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22574 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22575 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22576 force_expand_binop.
22578 2019-07-03 Martin Liska <mliska@suse.cz>
22580 PR tree-optimization/90892
22581 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22582 in string constants.
22584 2019-07-03 Martin Liska <mliska@suse.cz>
22586 PR middle-end/90899
22587 * multiple_target.c (create_dispatcher_calls): Add to comdat
22588 group only if set for ifunc.
22590 2019-07-03 Martin Liska <mliska@suse.cz>
22593 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22594 Define local_object_name in outer scope in order to handle
22595 use-after-scope issue.
22597 2019-07-03 Martin Liska <mliska@suse.cz>
22599 * common.opt: Add fprofile-note.
22600 * coverage.c (coverage_init): Append the option
22602 * doc/invoke.texi: Document -fprofile-note.
22604 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22606 PR tree-optimization/91033
22607 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22608 vect_analyze_data_refs): Add bool * arguments.
22609 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22610 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22611 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22612 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22613 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22614 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22615 vect_analyze_data_refs caller.
22617 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22619 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22620 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22621 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22622 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22623 OMP_CLAUSE__SCANTEMP_ entry.
22624 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22625 * tree-pretty-print.c (dump_omp_clause): Likewise.
22626 * tree-nested.c (convert_nonlocal_omp_clauses,
22627 convert_local_omp_clauses): Likewise.
22628 * omp-general.h (struct omp_for_data): Add have_scantemp and
22629 have_nonctrl_scantemp members.
22630 * omp-general.c (omp_extract_for_data): Initialize them.
22631 * omp-low.c (struct omp_context): Add scan_exclusive member.
22632 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22633 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22634 ctx->scan_exclusive.
22635 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22636 of !ctx->scan_inclusive.
22637 (lower_rec_input_clauses): Simplify gimplification of dtors using
22638 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22639 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22640 loops. Don't add barrier for reduction_omp_orig_ref if
22641 ctx->scan_??xclusive.
22642 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22643 (lower_omp_scan): Use ctx->scan_exclusive instead
22644 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22645 reductions. Use new_vard != new_var instead of repeated
22646 omp_is_reference calls.
22647 (omp_find_scan, lower_omp_for_scan): New functions.
22648 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22650 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22651 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22652 and fd->have_scantemp.
22654 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22655 on worksharing loop propagate it as shared clause to containing
22658 * omp-expand.c (expand_omp_for_static_nochunk,
22659 expand_omp_for_static_chunk): For nowait worksharing loop with
22660 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22663 2019-07-02 qing zhao <qing.zhao@oracle.com>
22665 PR preprocessor/90581
22666 * doc/cppopts.texi: Add document for -fmax-include-depth.
22667 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22669 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22671 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22672 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22673 (mmx_packssdw): Ditto.
22674 (mmx_punpckhbw): Ditto.
22675 (mmx_punpcklbw): Ditto.
22676 (mmx_punpckhwd): Ditto.
22677 (mmx_punpcklwd): Ditto.
22678 (mmx_punpckhdq): Ditto.
22679 (mmx_punpckldq): Ditto.
22680 (*vec_dupv4hi): Ditto.
22681 (*vec_dupv2si): Ditto.
22682 (mmx_pmovmskb): Ditto.
22683 * config/i386/sse.md (sse_cvtpi2ps): Use
22684 TARGET_SSE2 && SSE_REG_P in split condition.
22685 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22686 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22687 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22688 (ssse3_pshufbv8qi3): Ditto.
22689 (ssse3_palignrdi): Ditto.
22691 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22693 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22694 with inlined save and restore.
22696 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22698 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22699 to be inserted on single successor edge of the entry block. Then call
22700 commit_edge_insertions instead of inserting the instructions manually.
22701 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22702 RTL expansion and rebuild jump labels chain.
22704 2019-07-02 Richard Biener <rguenther@suse.de>
22706 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22708 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22710 * tree.c (build_common_tree_nodes): Initialize them.
22711 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22712 Make declarations comments.
22713 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22714 chrec_known): Remove definitions.
22715 (initialize_scalar_evolutions_analyzer): Remove.
22716 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22717 * tree-streamer.c (preload_common_nodes): Do not preload
22718 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22720 2019-07-02 Jan Hubicka <jh@suse.cz>
22722 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22725 2019-07-02 Jan Hubicka <jh@suse.cz>
22727 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22729 (nonoverlapping_component_refs_since_match_p): ... this one;
22730 handle also non-decl bases; return -1 if search gave up.
22731 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22732 nonoverlapping_component_refs_of_decl_p_no_alias to
22733 nonoverlapping_component_refs_since_match_p_may_alias,
22734 nonoverlapping_component_refs_since_match_p_no_alias.
22735 (dump_alias_stats): Update dumping.
22736 (aliasing_matching_component_refs_p): Break out from ...;
22737 dispatch to nonoverlapping_component_refs_for_decl_p
22738 and nonoverlapping_component_refs_since_match_p.
22739 (aliasing_component_refs_p): ... here; call
22740 nonoverlapping_component_refs_p in scenarios where we can not
22741 precisely determine base match.
22742 (decl_refs_may_alias_p): Use
22743 nonoverlapping_component_refs_since_match_p.
22744 (indirect_ref_may_alias_decl_p): Do not call
22745 nonoverlapping_component_refs_p.
22746 (indirect_refs_may_alias_p): Likewise.
22748 2019-07-02 Jan Hubicka <jh@suse.cz>
22750 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22751 to clobber of return value.
22753 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22755 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22756 for is_neon_type instructions that have not already been categorized.
22758 2019-07-02 Richard Biener <rguenther@suse.de>
22760 PR tree-optimization/58483
22761 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22762 for MEM_REF base hashing.
22763 (equal_mem_array_ref_p): Likewise for base comparison.
22765 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22767 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22768 parameterized name.
22769 (signbit<mode>2): Use that name. Simplify.
22771 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22773 PR middle-end/66726
22774 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22775 Tune heuristic from PR71016 to allow MIN / MAX.
22777 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22779 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22780 parameterized name.
22781 (abs<mode>2): Use that name. Simplify.
22783 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22785 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22786 parameterized name.
22787 (neg<mode>2): Use that name. Simplify.
22789 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22791 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22793 (abs<mode>2): Use that name. Simplify.
22795 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22797 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22799 (neg<mode>2): Use that name. Simplify.
22801 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22803 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22804 ("enabled" attribute): Handle sse_noavx isa attribute.
22805 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22806 Use TARGET_SSE && SSE_REGNO_P in split condition.
22807 (*vec_dupv2sf): Ditto.
22809 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22811 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22813 (floatsi<mode>2): Use that name. Simplify.
22815 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22817 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22818 parameterized name.
22819 (extenddf<mode>2_vsx): Make this a parameterized name.
22820 (extenddf<mode>2): Use those names. Simplify.
22822 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22824 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22826 (eh_return): Use that name. Simplify.
22828 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22830 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22831 (doloop_end): Use that name. Simplify.
22833 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22835 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22836 parameterized name.
22837 (indirect_jump): Use that name. Simplify.
22839 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22841 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22842 parameterized name.
22843 (abs<mode>2): Use that name. Simplify.
22845 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22847 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22848 parameterized name.
22849 (fix_trunc<mode>si2): Use that name. Simplify.
22851 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22853 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22854 (allocate_stack): Use that name. Simplify.
22856 2019-07-01 Martin Sebor <msebor@redhat.com>
22858 PR middle-end/90923
22859 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22860 (hash_map::get_or_insert): Same. Reformat comment.
22861 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22862 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22863 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22864 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22865 (hash_table::hash_table (const hash_table&)): Use copy ctor
22866 instead of assignment to copy elements.
22868 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22869 John David Anglin <danglin@gcc.gnu.org>
22872 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22873 using saved frame pointer.
22875 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22877 PR middle-end/64242
22878 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22879 Add frame clobber and schedule blockage.
22881 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22883 * doc/invoke.texi (Link Options): Further editorial changes to
22884 -flinker-output docs.
22886 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22888 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22889 Load both operands of a PLUS into registers separately.
22891 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22893 * config/s390/vector.md: Fix shift count operand printing.
22895 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22897 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22899 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22901 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22902 Use recog_data to test for an output operand.
22904 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22906 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22907 exclude any others that are disparaged or that are bound to need
22909 (ira_get_dup_out_num): Expand comment.
22911 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22913 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22914 constraint string for each operand/alternative combo. Only handle
22915 '%' at the start of constraint strings, and look for it outside
22918 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22920 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22921 alternative_mask instead of HARD_REG_SET to represent a
22922 bitmask of alternatives.
22923 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22924 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22926 2019-07-01 Martin Liska <mliska@suse.cz>
22928 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22929 use () for a constructor call.
22930 (test_applying_fixits_line_out_of_range): Likewise.
22931 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22933 (free_page): Likewise.
22935 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22937 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22938 parameter names to match usage (no functional change).
22939 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22941 2019-07-01 Richard Biener <rguenther@suse.de>
22943 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22945 (pass_fre::execute): Honor it.
22946 * passes.def: Adjust pass_fre invocations to allow iterating,
22947 add non-iterating pass_fre before late threading/dom.
22949 2019-07-01 Richard Biener <rguenther@suse.de>
22951 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22952 TARGET_MEM_REF handling to also handle address-taken ones.
22954 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22956 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22957 hardware attributes): Document avx512vp2intersect.
22959 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22961 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22962 (abs<mode>2): New expander.
22963 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22964 Use CODE_FOR_ssse3_absv8qi2.
22965 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22966 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22968 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22970 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22971 to sse, sse_noavx and avx. Update all uses.
22973 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22975 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22976 (*mmx_<plusminus_insn><mode>3): Ditto.
22977 (*mmx_mulv4hi3"): Ditto.
22978 (*mmx_smulv4hi3_highpart): Ditto.
22979 (*mmx_umulv4hi3_highpart): Ditto.
22980 (*mmx_pmaddwd): Ditto.
22981 (*sse2_umulv1siv1di3): Ditto.
22982 (*mmx_<code>v4hi3): Ditto.
22983 (*mmx_<code>v8qi3): Ditto.
22984 (mmx_ashr<mode>3): Ditto.
22985 ("mmx_<shift_insn><mode>3): Ditto.
22986 (*mmx_eq<mode>3): Ditto.
22987 (mmx_gt<mode>3): Ditto.
22988 (mmx_andnot<mode>3): Ditto.
22989 (*mmx_<code><mode>3): Ditto.
22990 (*mmx_pinsrw): Ditto.
22991 (*mmx_pextrw): Ditto.
22992 (mmx_pshufw_1): Ditto.
22993 (*mmx_uavgv8qi3): Ditto.
22994 (*mmx_uavgv4hi3): Ditto.
22995 ("mmx_psadbw): Ditto.
22996 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22997 (sse_cvttps2pi): Ditto.
22998 (ssse3_pmaddubsw): Ditto.
22999 (*ssse3_pmulhrswv4hi3): Ditto.
23000 (ssse3_psign<mode>3): Ditto.
23002 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23004 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23005 adjustment for bit-fields to all aggregate types.
23007 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23009 * config/rs6000/predicates.md (pcrel_address): Use
23010 SYMBOL_REF_LOCAL_P to determine if a label is local.
23011 (pcrel_external_address): New predicate.
23012 (non_prefixed_mem_operand): Delete, predicate not used.
23013 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23014 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23016 (SYMBOL_REF_PCREL_P): Likewise.
23019 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23021 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23022 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23023 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23025 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23027 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23028 override on extra_headers.
23030 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23032 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23033 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23035 (darwin_driver_init): Likewise.
23037 2019-06-28 Jan Beulich <jbeulich@suse.com>
23039 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23040 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23041 Eliminate redundant alternative.
23043 2019-06-28 Jan Beulich <jbeulich@suse.com>
23045 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23046 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23047 Use vector_operand.
23049 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23051 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23052 having a lower cost regardless of the speed option.
23054 2019-06-28 Jan Beulich <jbeulich@suse.com>
23056 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23057 vector_operand plus, on both alternatives, "Bm" constraint.
23059 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23061 * config/arm/arm.md: Remove redundant constraints from
23062 define_expand but leave reload_inm and reload_outm patterns
23063 untouched since they need special constraints to work.
23064 * config/arm/arm-fixed.md: Remove redundant constraints from
23066 * config/arm/iwmmxt.md: Likewise.
23067 * config/arm/neon.md: Likewise.
23068 * config/arm/sync.md: Likewise.
23069 * config/arm/thumb1.md: Likewise.
23070 * config/arm/vec-common.md: Likewise.
23072 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23074 * doc/install.texi: Document --disable-tm-clone-registry.
23076 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23079 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23082 PR tree-optimization/91010
23083 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23084 return true. Otherwise, don't call operand_equal_p if offset1 or
23085 offset2 is NULL and just return false.
23087 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23089 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23090 user-specified float mode choice for kernel mode code.
23092 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23094 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23097 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23099 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23100 use longcall for 64b code.
23102 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23104 * builtins.c (get_memory_rtx): Fix comment.
23105 * optabs.def (movmem_optab): Change to cpymem_optab.
23106 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23107 (emit_block_move_hints): Change movmem to cpymem.
23108 * defaults.h: Change movmem to cpymem.
23109 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23110 (default_use_by_pieces_infrastructure_p): Ditto.
23111 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23112 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23114 * config/aarch64/aarch64.h: Change movmem to cpymem.
23115 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23116 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23117 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23119 * config/arc/arc-protos.h: Change movmem to cpymem.
23120 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23121 * config/arc/arc.h: Change movmem to cpymem in comment.
23122 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23123 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23124 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23125 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23126 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23127 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23128 * config/avr/avr-protos.h: Change movmem to cpymem.
23129 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23130 avr_out_movmem): Change movmem to cpymem.
23131 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23132 Change movmem to cpymem.
23133 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23134 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23135 Change movmem to cpymem.
23136 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23137 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23138 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23139 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23140 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23141 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23142 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23143 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23144 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23145 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23146 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23147 expand_small_cpymem_or_setmem,
23148 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23149 expand_set_or_cpymem_constant_prologue,
23150 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23151 * config/i386/i386-protos.h: Change movmem to cpymem.
23152 * config/i386/i386.h: Change movmem to cpymem in comment.
23153 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23154 (setmem<mode>): Change expansion function name.
23155 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23156 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23157 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23158 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23159 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23160 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23161 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23163 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23164 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23165 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23166 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23167 Change movmem to cpymem.
23168 * config/mips/mips.h: Change movmem to cpymem.
23169 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23170 * config/nds32/nds32-memory-manipulation.c
23171 (nds32_expand_movmemsi_loop_unknown_size,
23172 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23173 nds32_expand_movmemsi_unroll,
23174 nds32_expand_movmemsi): Change movmem to cpymem.
23175 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23176 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23177 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23178 (pa_adjust_insn_length): Change call to compute_movmem_length.
23179 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23180 movmemdi, movmemdi_prereload,
23181 movmemdi_postreload): Change movmem to cpymem.
23182 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23183 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23184 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23185 * config/riscv/riscv.h: Change movmem to cpymem.
23186 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23187 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23188 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23190 * config/s390/s390-protos.h: Change movmem to cpymem.
23191 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23192 s390_expand_insv): Change movmem to cpymem.
23193 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23194 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23195 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23196 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23197 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23198 for nonexistent function.
23199 * config/vax/vax.h: Change movmem to cpymem in comment.
23200 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23201 * config/visium/visium.h: Change movmem to cpymem in comment.
23202 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23203 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23204 * doc/md.texi: Change movmem to cpymem and update description to match.
23205 * doc/rtl.texi: Change movmem to cpymem.
23206 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23207 * doc/tm.texi: Regenerate.
23209 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23211 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23212 -fvariable-expansion-in-unroller by default.
23213 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23216 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23219 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23220 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23222 * config.gcc(rs6000-*-*): Define target_gtfiles.
23224 2019-06-27 Jan Hubicka <jh@suse.cz>
23226 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23227 (add_type_duplicate): When odr hash is not allocated, to nothing.
23228 (odr_based_tbaa_p): New function.
23229 (set_type_canonical_for_odr_type): New function.
23230 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23231 set_type_canonical_for_odr_type): New.
23232 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23233 ODR based TBAA are not equivalent to non-ODR types.
23235 2019-06-27 Martin Liska <mliska@suse.cz>
23237 PR tree-optimization/90974
23238 PR rtl-optimization/90975
23239 PR rtl-optimization/90976
23241 PR tree-optimization/91017
23242 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23244 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23245 initial commit of IRA.
23246 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23248 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23249 Remove unused mode1.
23250 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23253 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23256 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23257 instead of register_operand for operands[1], add m to its constraints
23258 if operands[2] uses "C" constraint. Ensure in condition that if
23259 operands[2] is not 0, then operands[1] is not a MEM. For last two
23260 alternatives, use unaligned loads instead of aligned if operands[1] is
23261 misaligned_operand.
23263 2019-06-27 Martin Liska <mliska@suse.cz>
23265 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23267 * bt-load.c (move_btr_def): Likewise.
23268 * builtins.c (expand_builtin_apply_args_1): Likewise.
23269 (expand_builtin_apply): Likewise.
23270 * cfgexpand.c (expand_asm_stmt): Likewise.
23271 (construct_init_block): Likewise.
23272 * cfghooks.c (verify_flow_info): Likewise.
23273 * cfgloopmanip.c (remove_path): Likewise.
23274 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23275 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23276 * combine.c (simplify_if_then_else): Likewise.
23277 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23278 (choose_basereg): Likewise.
23279 (ix86_expand_prologue): Likewise.
23280 (ix86_preferred_output_reload_class): Likewise.
23281 * cselib.c (cselib_record_sets): Likewise.
23282 * df-scan.c (df_scan_alloc): Likewise.
23283 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23284 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23285 * emit-rtl.c (try_split): Likewise.
23286 * graphite-scop-detection.c (assign_parameter_index_in_region):
23288 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23289 * ira-color.c (setup_profitable_hard_regs): Likewise.
23290 * ira.c (rtx_moveable_p): Likewise.
23291 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23292 * read-rtl.c (read_subst_mapping): Likewise.
23293 * regrename.c (scan_rtx): Likewise.
23294 * reorg.c (fill_slots_from_thread): Likewise.
23295 * tree-inline.c (tree_function_versioning): Likewise.
23296 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23297 * tree-ssa-sink.c (statement_sink_location): Likewise.
23298 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23299 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23300 (vect_create_epilog_for_reduction): Likewise.
23301 * tree.c (build_nonstandard_integer_type): Likewise.
23303 2019-06-27 Richard Biener <rguenther@suse.de>
23305 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23307 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23309 PR tree-optimization/89772
23310 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23311 out-of-bound accesses checking.
23313 2019-06-27 Martin Liska <mliska@suse.cz>
23315 PR tree-optimization/91014
23316 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23317 when LHS is NULL_TREE.
23319 2019-06-27 Martin Liska <mliska@suse.cz>
23321 * symbol-summary.h (traverse): Pass
23322 argument a to the call of callback.
23323 (gt_ggc_mx): Mark arguments as unused.
23324 (gt_pch_nx): Likewise.
23326 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23329 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23332 2019-06-26 Jeff Law <law@redhat.com>
23334 PR tree-optimization/90883
23335 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23336 (delete_dead_or_redundant_assignment): Likewise.
23338 PR tree-optimization/90883
23339 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23340 * tree-ssa-dse.c: Update various comments to distinguish between
23341 dead and redundant stores.
23342 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23343 (dse_optimize_redundant_stores): New function.
23344 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23345 Distinguish between dead and redundant calls in dump output. All
23347 (delete_dead_or_redundant_assignment): Similarly for assignments.
23348 (dse_optimize_stmt): Handle _CHK variants. For statements which
23349 store 0 into multiple memory locations, try to prove a subsequent
23350 store is redundant.
23352 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23355 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23356 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23358 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23360 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23361 (branch_islands): New extern.
23362 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23363 * config/rs6000/rs6000.c: .. here.
23365 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23367 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23368 (powerpc*-*-*) ... to here.
23370 2019-06-26 Jeff Law <law@redhat.com>
23372 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23373 memcpy, memmove and memset builtins.
23374 (maybe_trim_memstar_call): Likewise.
23376 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23378 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23380 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23382 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23384 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23386 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23388 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23390 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23393 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23395 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23397 2019-06-26 Richard Biener <rguenther@suse.de>
23400 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23402 2019-06-26 Richard Biener <rguenther@suse.de>
23404 * lto-streamer.h (lto_bitmap_alloc): Remove.
23405 (lto_bitmap_free): Likewise.
23406 * lto-streamer.c (lto_bitmap_alloc): Remove.
23407 (lto_bitmap_free): Likewise.
23408 (lto_obstack): Likewise.
23409 (lto_obstack_initialized): Likewise.
23410 * lto-streamer-out.c (lto_output): Use own obstack for local
23411 bitmap, free it consistently.
23413 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23416 * config/i386/sse.md
23417 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23418 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23419 insns if operands[2] is misaligned_operand.
23421 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23423 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23425 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23428 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23430 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23432 2019-06-26 Martin Liska <mliska@suse.cz>
23434 PR tree-optimization/90973
23435 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23436 epilogue_cost_vec instead of prologue_cost_vec for
23439 2019-06-26 Martin Liska <mliska@suse.cz>
23441 * bb-reorder.c (connect_better_edge_p): Add missing else
23442 statement in the middle of if-else statements.
23444 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23445 H.J. Lu <hongjiu.lu@intel.com>
23446 Olga Makhotina <olga.makhotina@intel.com>
23448 * common/config/i386/i386-common.c
23449 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23450 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23451 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23452 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23453 (ix86_handle_option): Handle -mavx512vp2intersect.
23454 * config/i386/avx512vp2intersectintrin.h: New.
23455 * config/i386/avx512vp2intersectvlintrin.h: New.
23456 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23457 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23458 AVX512VP2INTERSECT.
23459 * config/i386/i386-builtin-types.def: Add new types.
23460 * config/i386/i386-builtin.def: Add new builtins.
23461 * config/i386/i386-builtins.c: (enum processor_features): Add
23462 F_AVX512VP2INTERSECT.
23463 (static const _isa_names_table isa_names_table): Ditto.
23464 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23465 __AVX512VP2INTERSECT__.
23466 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23467 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23468 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23469 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23470 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23471 * config/i386/i386-options.c (ix86_target_string): Add
23472 -mavx512vp2intersect.
23473 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23474 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23475 P2HImode and P2QImode.
23476 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23477 number for P2QImode and P2HImode.
23478 (ix86_regmode_natural_size): New function.
23479 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23480 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23481 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23482 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23483 * config/i386/i386.opt: Add -mavx512vp2intersect.
23484 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23485 avx512vp2intersectvlintrin.h.
23486 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23487 (define_mode_iterator VI48_AVX512VP2VL): New.
23488 (avx512vp2intersect_2intersect<mode>,
23489 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23490 * config.gcc: Add avx512vp2intersectvlintrin.h and
23491 avx512vp2intersectintrin.h to extra_headers.
23492 * doc/invoke.texi: Document -mavx512vp2intersect.
23494 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23496 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23498 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23500 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23501 savres_routine_syms, savres_routine_name, morestack_ref,
23502 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23503 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23504 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23505 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23506 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23507 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23508 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23509 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23510 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23511 get_stack_clash_protection_probe_interval,
23512 get_stack_clash_protection_guard_size,
23513 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23514 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23515 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23516 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23517 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23518 gen_frame_mem_offset, rs6000_savres_routine_name,
23519 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23520 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23521 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23522 rs6000_global_entry_point_prologue_needed_p,
23523 rs6000_get_separate_components, rs6000_components_for_bb,
23524 rs6000_disqualify_components, rs6000_emit_prologue_components,
23525 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23526 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23527 rs6000_output_savres_externs, rs6000_output_function_prologue,
23528 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23529 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23530 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23531 rs6000_output_function_epilogue, gen_add3_const,
23532 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23533 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23535 (machine_function): Moved to rs6000.h.
23536 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23538 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23539 savres_routine_syms, savres_routine_name, morestack_ref,
23540 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23541 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23542 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23543 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23544 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23545 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23546 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23547 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23548 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23549 get_stack_clash_protection_probe_interval,
23550 get_stack_clash_protection_guard_size,
23551 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23552 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23553 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23554 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23555 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23556 gen_frame_mem_offset, rs6000_savres_routine_name,
23557 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23558 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23559 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23560 rs6000_global_entry_point_prologue_needed_p,
23561 rs6000_get_separate_components, rs6000_components_for_bb,
23562 rs6000_disqualify_components, rs6000_emit_prologue_components,
23563 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23564 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23565 rs6000_output_savres_externs, rs6000_output_function_prologue,
23566 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23567 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23568 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23569 rs6000_output_function_epilogue, gen_add3_const,
23570 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23571 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23572 to here from rs6000.c.
23573 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23574 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23575 quad_address_offset_p) Moved to here from rs6000.c.
23576 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23577 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23580 2019-06-25 Martin Liska <mliska@suse.cz>
23582 * hash-table.c (hashtab_chk_error): Move here from ...
23583 * hash-table.h (hashtab_chk_error): ... here.
23585 2019-06-25 Martin Liska <mliska@suse.cz>
23587 PR tree-optimization/90978
23588 * df-scan.c (df_update_entry_block_defs): Remove dead else
23590 (df_update_exit_block_uses): Likewise.
23592 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23593 Andrew Stubbs <ams@codesourcery.com>
23595 * config.gcc (thread_file): Set to gcn for AMD GCN.
23596 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23597 (TARGET_EMUTLS_VAR_INIT): New hook.
23599 2019-06-25 Martin Jambor <mjambor@suse.cz>
23602 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23604 2019-06-25 Richard Biener <rguenther@suse.de>
23606 PR tree-optimization/90930
23607 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23608 into parallel form in the last pass instance.
23610 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23612 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23613 (arc_legitimize_pic_address): Simplify and cleanup the function.
23614 (SYMBOLIC_CONST): Remove.
23615 (prepare_pic_move): Likewise.
23616 (prepare_move_operands): Handle complex mov cases here.
23617 (arc_legitimize_address_0): Remove call to
23618 arc_legitimize_pic_address.
23619 (arc_legitimize_address): Remove call to
23620 arc_legitimize_tls_address.
23621 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23622 (movhi_insn): Likewise.
23624 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23626 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23628 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23629 format of "__intN" types for UINTMAX_TYPE.
23630 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23631 format of "__intN" types for SIZETYPE.
23632 * tree.c (build_common_tree_nodes): Accept "__intN__"
23633 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23634 * doc/invoke.texi: Document that __intN__ disables pedantic
23637 2019-06-25 Jan Hubicka <jh@suse.cz>
23639 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23640 base2_alias_set is non-zero before doing TBAA based disambiguation.
23642 2019-06-25 Martin Liska <mliska@suse.cz>
23644 PR tree-optimization/90973
23645 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23646 of prologue and epilogue.
23648 2019-06-24 Jan Hubicka <jh@suse.cz>
23650 * ipa-utils.h (type_with_linkage_p): Verify that type is
23652 (odr_type_p): Remove extra return.
23653 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23654 hash STRING_FLAG only for arrays and integers.
23655 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23656 Update analogously.
23657 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23659 * print-tree.c (print_node): Print cxx-odr-p
23661 * tree.c (need_assembler_name_p): Also check that type
23663 (verify_type_variant): Update verification of SRING_FLAG;
23664 also check CXX_ODR_P.
23665 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23666 (TYPE_STRING_FLAG): Use it.
23667 (TYPE_CXX_ODR_P): New macro.
23668 * dwarf2out.c (gen_array_type_die): First check that type
23669 is an array and then test string flag.
23671 2019-06-24 Richard Biener <rguenther@suse.de>
23673 PR tree-optimization/90972
23674 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23675 in common code, dealing with STRING_CST properly.
23677 2019-06-24 Richard Biener <rguenther@suse.de>
23679 PR tree-optimization/90930
23680 PR tree-optimization/90316
23681 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23682 decrement of limit.
23684 2019-06-24 Martin Sebor <msebor@redhat.com>
23686 * tree-pretty-print.h: Remove unnecessary punctuation characters
23688 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23690 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23692 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23693 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23694 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23696 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23698 * config/rs6000/darwin.h: Handle GCC target pragma.
23700 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23702 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23704 2019-06-22 Jeff Law <law@redhat.com>
23706 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23708 2019-06-22 Jan Hubicka <jh@suse.cz>
23710 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23711 give up on bitfields; continue searching for different refs
23714 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23716 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23717 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23718 containing the offset as possible simd lane access. Look through
23719 widening conversion. Move the
23720 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23722 2019-06-21 Richard Biener <rguenther@suse.de>
23724 PR tree-optimization/90930
23725 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23726 flag on new stmts to avoid re-processing them.
23728 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23730 PR c++/90875 - added -Wswitch-outside-range option
23731 * doc/invoke.texi (Wswitch-outside-range): Document.
23733 2019-06-21 Jeff Law <law@redhat.com>
23735 PR tree-optimization/90949
23736 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23737 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23739 2019-06-21 Richard Biener <rguenther@suse.de>
23742 * dwarf2out.c (prune_unused_types_walk): Always consider
23743 function-local extern declarations as used.
23745 2019-06-21 Richard Biener <rguenther@suse.de>
23747 PR tree-optimization/90913
23748 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23749 the scalar variant of if-conversion versioning.
23751 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23753 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23754 create another "omp scan inscan exclusive" array if
23755 !ctx->scan_inclusive.
23756 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23757 (lower_omp_scan): Likewise.
23758 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23759 2-bit bitfield for simd_lane_access_p member.
23760 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23761 aux == (void *)-4 as simd lane access.
23762 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23763 comment with permutations to show the canonical permutation order.
23764 (vectorizable_scan_store): Handle exclusive scan.
23765 (vectorizable_store): Call vectorizable_scan_store even for
23766 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23768 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23769 "omp simd array" arrays with one byte elements.
23771 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23773 * config/alpha/alpha.md (@unaligned_store<mode>):
23774 Rename from unaligned_store<mode>.
23775 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23776 * config/alpha/sync.md (@load_locked_<mode>): Rename
23777 from load_locked_<mode>.
23778 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23779 (@atomic_compare_and_swap<mode>_1): Rename
23780 from atomic_compare_and_swap<mode>_1.
23781 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23782 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23783 Use gen_reload_in_aligned and gen_unaligned_store.
23784 (emit_load_locked): Remove.
23785 (emit_store_conditional): Ditto.
23786 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23787 (alpha_split_compare_and_swap): Ditto.
23788 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23789 (alpha_split_compare_and_swap_12): Use gen_load_locked
23790 and gen_store_conditional.
23791 (alpha_split_atomic_exchange): Ditto.
23792 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23793 (alpha_split_atomic_exchange_12): Use gen_load_locked
23794 and gen_store_conditional.
23796 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23798 * config/aarch64/aarch64-errata.h: New file.
23799 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23800 (CA53_ERR_843419_SPEC): Delete.
23801 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23802 * config/aarch64/aarch64-linux.h: Likewise.
23803 * config/aarch64/aarch64-netbsd.h: Likewise.
23804 * config/aarch64/aarch64-freebsd.h: Likewise.
23806 2019-06-20 Marek Polacek <polacek@redhat.com>
23808 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23810 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23812 * config/rs6000/rs6000.md (isa attribute): Add support for
23813 for a future processor.
23815 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23818 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23819 standard scalar operation pattern for V2DF.
23820 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23821 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23822 (*ieee_<ieee_maxmin><mode>3): Likewise.
23823 (vec_setv2df_0): Likewise.
23825 2019-06-20 Jan Hubicka <jh@suse.cz>
23827 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23828 parameter; it has no use in gimple memory model.
23829 (indirect_ref_may_alias_decl_p): Update.
23831 2019-06-20 Martin Liska <mliska@suse.cz>
23833 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23836 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23838 * tree-vect-stmts.c (enum scan_store_kind): New type.
23839 (scan_store_can_perm_p): Change last argument from int * to
23840 vec<enum scan_store_kind> *, record precisely which permutations
23841 need whole vector left shift or that plus VEC_COND_EXPR.
23842 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23843 and additional VEC_COND_EXPR only for those iterations that need it.
23845 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23847 * config.gcc: Fix ARM --with-fpu checking and error message.
23849 2019-06-19 Marek Polacek <polacek@redhat.com>
23851 PR c++/60364 - noreturn after first decl not diagnosed.
23852 * attribs.c (get_attribute_namespace): No longer static.
23853 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23855 (attr_noreturn_exclusions): Make it extern.
23856 * attribs.h (get_attribute_namespace): Declare.
23857 * tree-inline.c (function_attribute_inlinable_p): Use
23858 get_attribute_name.
23860 2019-06-19 Martin Sebor <msebor@redhat.com>
23862 PR tree-optimization/90626
23863 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23865 PR tree-optimization/90626
23866 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23867 (handle_builtin_string_cmp): Call it.
23869 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23871 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23872 and DARWIN_NOPIE_SPEC.
23873 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23874 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23875 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23876 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23877 (DARWIN_EXPORT_DYNAMIC): Delete.
23878 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23879 and pie options processing to darwin.h.
23880 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23882 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23884 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23885 in computing the number of options to be moved.
23887 2019-06-19 Maya Rashish <coypu@sdf.org>
23889 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23890 (CLEAR_INSN_CACHE) Use it.
23892 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23894 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23896 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23898 PR middle-end/84521
23899 * builtins.c (expand_builtin_setjmp_setup): Save
23900 hard_frame_pointer_rtx.
23901 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23903 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23905 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23907 (remove_reg_equal_offset_note): Remove unused function.
23908 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23910 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23911 (arc_builtin_setjmp_frame_value): Remove function.
23912 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23913 (avr_builtin_setjmp_frame_value): Remove function.
23914 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23915 (ix86_builtin_setjmp_frame_value): Remove function.
23916 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23917 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23918 (sparc_builtin_setjmp_frame_value): Remove function.
23919 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23920 (vax_builtin_setjmp_frame_value): Remove function.
23921 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23922 pointer if has_nonlocal_label.
23924 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23926 * doc/md.texi: Document vec_shl_<mode> pattern.
23927 * optabs.def (vec_shl_optab): New optab.
23928 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23929 argument, if == vec_shl_optab, check for left whole vector shift
23930 pattern rather than right shift.
23931 (expand_vec_perm_const): Add vec_shl_optab support.
23932 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23934 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23935 can be handled by vec_shl_optab.
23936 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23937 (check_scan_store): Use it.
23938 (vectorizable_scan_store): If target can't do normal permutations,
23939 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23941 * config/i386/sse.md (vec_shl_<mode>): New expander.
23943 * omp-low.c (lower_rec_input_clauses): Handle references properly
23945 (lower_omp_scan): Likewise.
23947 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23949 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23950 mem_mode is BLKmode.
23952 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23955 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23956 pointer adjustment for the case of no callee-saved registers and
23957 stack frame bigger than 128 bytes.
23959 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23961 PR middle-end/90862
23962 * omp-low.c (check_omp_nesting_restrictions): Handle
23963 GF_OMP_TARGET_KIND_OACC_DECLARE.
23965 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23967 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23968 (@add<mode>3_carry): Rename from add<mode>3_carry.
23969 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23970 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23971 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23972 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23973 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23974 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23975 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23976 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23977 (cmpstrnsi): Use gen_cmp_1.
23978 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23979 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23980 (@umonitor_<mode>): Rename from umonitor_<mode>.
23981 * config/i386/i386-expand.c (ix86_expand_copysign):
23982 Use gen_copysign3_const and gen_copysign3_var.
23983 (ix86_expand_xorsign): Use gen_xorsign3_1.
23984 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23985 gen_sub3_carry_ccgz and gen_cmp1.
23986 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23987 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23988 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23989 (ix86_split_lshr): Ditto.
23990 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23992 2019-06-18 Jason Merrill <jason@redhat.com>
23994 * tree.c (build_constructor): Add MEM_STAT_DECL.
23996 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23998 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23999 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24000 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24001 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24002 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24003 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24004 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24005 Use CC_NZC instead of CC.
24006 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24007 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24008 (aarch64_print_operand): Handle E_CC_NZCmode.
24009 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24010 of gen_set_clobber_cc.
24012 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24014 * config/aarch64/aarch64-sve.md: Tabify file.
24016 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24018 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24019 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24020 * config/aarch64/aarch64-sve.md: Use it.
24022 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24024 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24025 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24026 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24027 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24028 (aarch64_expand_sve_vec_cmp_int): Use it.
24029 (aarch64_expand_sve_vec_cmp_float): Likewise.
24030 * config/aarch64/aarch64-sve.md: Likewise throughout.
24032 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24033 Kugan Vivekanandarajah <kuganv@linaro.org>
24035 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24036 (*cond_<optab><mode>_z): Fold into...
24037 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24038 operand 4 can be tied to operand 0 (either inherently or via RA).
24040 2019-06-18 Richard Biener <rguenther@suse.de>
24043 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24044 as if optimized away.
24046 2019-06-18 Tom de Vries <tdevries@suse.de>
24048 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24049 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24050 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24052 (define_insn "@set_softstack_<mode>"): ... this.
24053 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24054 (define_insn "@omp_simt_enter_<mode>"): ... this.
24055 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24056 (define_insn "@omp_simt_exit_<mode>"): ... this.
24058 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24060 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24061 vf parameter. Restore the previous iv step of nscalars_step,
24062 but give it iv_type rather than compare_type. Tweak code order
24063 to match the comments.
24064 (vect_set_loop_condition_masked): Update accordingly.
24065 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24066 for iv_precision. Tweak comment formatting.
24068 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24070 * config/darwin.c: Strip trailing whitespace.
24072 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24074 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24075 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24077 2019-06-18 Martin Jambor <mjambor@suse.cz>
24080 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24081 caller does not have flag_ipa_cp set.
24083 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24085 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24086 from "*fold_left_plus_<mode>", updated operands order.
24087 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24088 * internal-fn.c (mask_fold_left_direct): New define.
24089 (expand_mask_fold_left_optab_fn): Likewise.
24090 (direct_mask_fold_left_optab_supported_p): Likewise.
24091 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24092 * optabs.def (mask_fold_left_plus_optab): New optab.
24093 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24094 masked internal_fn for a reduction ifn.
24095 (vectorize_fold_left_reduction): Add support for masking reductions.
24097 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24099 PR middle-end/80791
24100 * target.def (predict_doloop_p): New hook.
24101 * targhooks.h (default_predict_doloop_p): New declaration.
24102 * targhooks.c (default_predict_doloop_p): New function.
24103 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24104 * doc/tm.texi: Regenerate.
24105 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24106 (TARGET_PREDICT_DOLOOP_P): New macro.
24107 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24109 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24111 * omp-low.c (struct omp_context): Add scan_inclusive field.
24112 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24114 (struct omplow_simd_context): Add lastlane member.
24115 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24116 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24118 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24119 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24120 (lower_omp_scan): New function.
24121 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24122 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24123 check 3rd argument if present rather than 2nd.
24124 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24125 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24127 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24128 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24130 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24131 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24132 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24134 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24135 IFN_GOMP_SIMD_LANE argument.
24136 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24137 encoded ->aux value.
24138 * tree-vect-stmts.c: Include attribs.h.
24139 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24140 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24142 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24143 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24145 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24148 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24149 (*nabs<mode>2_1): Ditto.
24150 (nabs sse-reg splitter): New splitter.
24151 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24153 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24155 PR bootstrap/90873.
24156 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24159 2019-06-17 Tom de Vries <tdevries@suse.de>
24161 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24162 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24163 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24165 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24167 (define_insn "omp_simt_enter_insn"): Rename to ...
24168 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24169 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24170 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24171 gen_omp_simt_enter_si.
24172 (define_expand "omp_simt_exit"): New.
24173 (define_insn "omp_simt_exit"): Rename to ...
24174 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24177 2019-06-17 Matthew Green <mrg@eterna.com.au>
24178 Maya Rashish <coypu@sdf.org>
24180 * config.gcc (aarch64*-*-netbsd*): New target.
24181 * config/aarch64/aarch64-netbsd.h: New file.
24182 * config/aarch64/t-aarch64-netbsd: Likewise.
24184 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24186 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24187 the access path from base to first VIEW_CONVERT_EXPR or
24190 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24192 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24193 access path on BIT_FIELD_REFs.
24195 2019-06-17 Martin Liska <mliska@suse.cz>
24198 * ipa-utils.h (odr_type_p): Remove dead code.
24200 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24202 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24203 alternative Solaris 11.4 format.
24204 * configure: Regenerate.
24206 2019-06-17 Tom de Vries <tdevries@suse.de>
24208 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24209 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24211 (define_insn "call_value_insn"): Rename to ...
24212 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24214 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24217 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24219 PR middle-end/64242
24220 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24221 frame clobbers and schedule block.
24222 (builtin_longjmp): Likewise.
24224 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24226 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24227 describe how to perform MSPABI compliant 64-bit shift.
24228 * config/msp430/msp430.md (ashldi3): New define_expand.
24229 (ashrdi3): New define_expand.
24230 (lshrdi3): New define_expand.
24232 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24234 * doc/sourcebuild.texi: Document new effective target keyword
24237 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24239 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24240 indirect_refs_may_alias_p): Revert accidental commits.
24242 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24243 at the end of structures.
24245 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24247 * config/darwin.c (machopic_indirect_call_target): Use renamed
24248 darwin_picsymbol_stubs to decide on output.
24249 (darwin_override_options): Handle darwin_picsymbol_stubs.
24250 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24251 (LD64_VERSION): Revise default.
24252 * config/darwin.opt: (mpic-symbol-stubs): New option.
24253 (darwin_picsymbol_stubs): New variable.
24254 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24255 rename to TARGET_MACHO_PICSYM_STUBS.
24256 * config/i386/i386.c (output_pic_addr_const): Likewise.
24257 * config/i386/i386.h Likewise.
24258 * config/rs6000/darwin.h: Likewise.
24259 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24260 darwin_picsymbol_stubs.
24262 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24264 * config/darwin.opt (prebind, noprebind, seglinkedit,
24265 noseglinkedit): Add RejectNegative.
24267 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24269 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24270 in my previous patch.
24272 2019-06-16 Tom de Vries <tdevries@suse.de>
24274 PR tree-optimization/89376
24275 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24277 2019-06-15 Maya Rashish <coypu@sdf.org>
24279 * doc/invoke.texi (Spec Files): Update location of the
24282 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24284 * doc/extend.texi (Common Function Attributes): Clarify
24285 no_sanitize. Fix grammar.
24287 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24289 * tree-ssa-alias.c (alias_stats): Add
24290 nonoverlapping_component_refs_p_may_alias,
24291 nonoverlapping_component_refs_p_no_alias,
24292 nonoverlapping_component_refs_of_decl_p_may_alias,
24293 nonoverlapping_component_refs_of_decl_p_no_alias.
24294 (dump_alias_stats): Dump them.
24295 (nonoverlapping_component_refs_of_decl_p): Add stats.
24296 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24299 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24301 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24302 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24304 (*anddi3_doubleword): Split before reload. Merge with
24305 anddi->zext pre-reload splitter.
24306 (*andndi3_doubleword): Split before reload.
24307 (*<code>di3_doubleword): Ditto.
24308 (*one_cmpldi2_doubleword): Ditto.
24310 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24312 PR middle-end/90779
24313 * gimplify.c: Include omp-offload.h and context.h.
24314 (gimplify_bind_expr): Add "omp declare target" attributes
24315 to static block scope variables inside of target region or target
24318 2019-06-15 Tom de Vries <tdevries@suse.de>
24320 PR tree-optimization/90009
24321 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24322 Return NULL if bb contains IFN_UNIQUE.
24324 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24326 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24327 (un): New define_mode_attr.
24328 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24329 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24330 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24332 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24334 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24336 * config/darwin.opt: Add RejectNegative where needed, reorder
24337 and add minimal functional descriptions.
24339 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24341 PR rtl-optimization/90765
24342 * calls.c (update_stack_alignment_for_call): New function.
24343 (expand_call): Call update_stack_alignment_for_call when
24344 outgoing parameter is passed in the stack.
24345 (emit_library_call_value_1): Likewise.
24346 * function.c (locate_and_pad_parm): Don't update
24347 stack_alignment_needed and preferred_stack_boundary.
24349 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24352 * config/i386/i386-features.c
24353 (dimode_scalar_chain::compute_convert_gain): Replace
24354 mmxsse_to_integer with sse_to_integer.
24355 * config/i386/i386.c (ix86_register_move_cost): Verify that
24356 moves between MMX and non-MMX units require secondary memory.
24357 Correct costs of moves between SSE and integer units.
24358 * config/i386/i386.h (processor_costs): Rename cost of moving
24359 SSE register to integer to sse_to_integer. Rename cost of
24361 2019-06-14 Matt Thomas <matt@3am-software.com>
24362 Matthew Green <mrg@eterna.com.au>
24363 Nick Hudson <skrll@netbsd.org>
24364 Maya Rashish <coypu@sdf.org>
24365 Richard Earnshaw <rearnsha@arm.com>
24367 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24368 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24369 * config/arm/netbsd-eabi.h: New file.
24370 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24372 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24373 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24374 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24375 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24377 2019-06-14 Richard Biener <rguenther@suse.de>
24379 * tree-loop-distribution.c (classify_partition): Return
24380 whether a reduction appeared in all partitions and do not
24381 stop builtin detection because of this.
24382 (distribute_loop): Sort a non-builtin partition last if
24383 there's a reduction in all partitions and make sure the
24384 partition prevailing as last is not a builtin.
24386 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24389 * ipa-prop.c (add_to_agg_contents_list): New function.
24390 (clobber_by_agg_contents_list_p): Likewise.
24391 (extract_mem_content): Likewise.
24392 (get_place_in_agg_contents_list): Delete.
24393 (determine_known_aggregate_parts): Renamed from
24394 determine_locally_known_aggregate_parts. New parameter
24397 2019-06-13 Martin Sebor <msebor@redhat.com>
24399 PR tree-optimization/90662
24400 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24403 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24406 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24407 dbase is not TARGET_MEM_REF.
24409 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24411 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24413 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24414 Do not generate DImode extends for 32bit targets.
24415 (and->zext post-reload splitter): Use gen_extend_insn
24416 instead of indirect functions.
24417 (anddi->zext pre-reload splitter): New.
24418 (*zext<mode>_doubleword_and): Remove.
24419 (*zext<mode>_doubleword): Ditto.
24420 (*zextsi_doubleword): Dittto.
24422 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24424 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24425 Use gen_sub3_insn instead of indirect function.
24426 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24428 (ix86_adjust_counter): Ditto.
24430 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24431 Lijia He <helijia@linux.ibm.com>
24433 PR tree-optimization/77820
24434 * tree-ssa-threadedge.c
24435 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24437 (thread_across_edge): Add call to
24438 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24440 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24442 * config/darwin-driver.c (validate_macosx_version_min): New.
24443 (darwin_default_min_version): Cleanup and validate supplied version.
24444 (darwin_driver_init): Likewise and push cleaned version into opts.
24446 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24448 PR tree-optimization/90869
24449 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24450 converts in MEM_REF referencing decl rather than view converts
24451 from decl type to MEM_REF type.
24453 2019-06-13 Richard Biener <rguenther@suse.de>
24455 PR tree-optimization/90856
24456 * tree-sra.c (build_ref_for_model): Only use
24457 build_reconstructed_reference when address-spaces are the same.
24459 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24461 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24462 wrap ei variable name in the declaration in ()s.
24463 (nvptx_single): Actually use mode_label variable. Formatting fix.
24465 2019-06-13 Richard Biener <rguenther@suse.de>
24467 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24468 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24469 also return the condition stmt.
24470 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24471 loop we can version and version that, reusing the loop version
24472 created by if-conversion instead of versioning again.
24474 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24476 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24478 * tree-vrp (value_range_base::may_contain_p): Call into
24479 value_inside_range.
24480 (value_inside_range): Make private inside value_range_base class.
24481 Take min/max from *this.
24482 (range_includes_p): Remove.
24483 * tree-vrp.h (value_range_base): Add value_inside_range.
24484 (range_includes_p): Remove.
24485 (range_includes_zero_p): Call may_contain_p.
24486 * vr-values.c (compare_range_with_value): Same.
24488 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24490 * doc/extend.texi (ARC Function Attributes): Update info.
24492 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24494 PR tree-optimization/89713
24495 * doc/invoke.texi (-ffinite-loops): Document new option.
24496 * common.opt (-ffinite-loops): New option.
24497 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24498 IFN_GOACC_LOOP calls as necessary.
24499 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24501 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24502 IFN_GOACC_LOOP call is not used.
24503 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24505 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24508 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24509 compare_type is not with Pmode size, we will create an IV with
24510 Pmode size with truncated use (i.e. converted to the correct type).
24511 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24512 (vect_iv_limit_for_full_masking): New. Factored out of
24513 vect_set_loop_condition_masked.
24514 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24515 (vect_iv_limit_for_full_masking): Declare.
24517 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24520 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24521 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24522 (get_alias_ptr_type_for_ptr_address): Likewise.
24523 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24524 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24525 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24528 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24530 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24532 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24534 * common/config/pru/pru-common.c: New file.
24535 * config.gcc: Add PRU target.
24536 * config/pru/alu-zext.md: New file.
24537 * config/pru/constraints.md: New file.
24538 * config/pru/predicates.md: New file.
24539 * config/pru/pru-opts.h: New file.
24540 * config/pru/pru-passes.c: New file.
24541 * config/pru/pru-pragma.c: New file.
24542 * config/pru/pru-protos.h: New file.
24543 * config/pru/pru.c: New file.
24544 * config/pru/pru.h: New file.
24545 * config/pru/pru.md: New file.
24546 * config/pru/pru.opt: New file.
24547 * config/pru/t-pru: New file.
24548 * doc/extend.texi: Document PRU pragmas.
24549 * doc/invoke.texi: Document PRU-specific options.
24550 * doc/md.texi: Document PRU asm constraints.
24552 2019-06-12 Martin Sebor <msebor@redhat.com>
24554 PR middle-end/90676
24555 * tree-pretty-print.c (dump_mem_ref): New function. Include
24556 MEM_REF type in output when different size than operand.
24557 (dump_generic_node): Move code to dump_mem_ref and call it.
24559 2019-06-12 Martin Sebor <msebor@redhat.com>
24561 PR tree-optimization/90662
24562 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24565 2019-06-12 Tom de Vries <tdevries@suse.de>
24567 PR tree-optimization/90009
24568 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24570 2019-06-12 Martin Liska <mliska@suse.cz>
24572 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24574 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24575 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24576 Do not sanitize created maps.
24578 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24580 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24581 value_range::singleton_p.
24582 * tree-vrp.c (value_range_constant_singleton): Remove.
24583 * tree-vrp.h (value_range_constant_singleton): Remove.
24584 * vr-values.c (vr_values::singleton): Use
24585 value_range::singleton_p.
24587 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24590 * cfgexpand.c (align_local_variable): Add really_expand argument,
24591 don't SET_DECL_ALIGN if it is false.
24592 (add_stack_var): Add really_expand argument, pass it through to
24593 align_local_variable.
24594 (expand_one_stack_var_1): Pass true as really_expand to
24595 align_local_variable.
24596 (expand_one_ssa_partition): Pass true as really_expand to
24598 (expand_one_var): Pass really_expand through to add_stack_var.
24600 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24602 * config/arm/iterators.md (VABAL): New int iterator.
24603 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24604 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24605 UNSPEC_VABAL_U values.
24607 2019-06-12 Martin Liska <mliska@suse.cz>
24609 * value-prof.c (stream_out_histogram_value): Only first value
24612 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24615 * symtab.c (symtab_node::set_section): Allow being called on aliases
24616 as long as they aren't analyzed yet.
24618 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24620 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24621 to `mips_set_text_contents_type' to indicate whether a
24622 non-debug insn follows.
24624 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24626 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24627 enabling -mpcrel by default.
24628 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24629 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24630 that the test against -mcpu=future is done first. Then test if
24631 -mprefixed-addr is on for -mpcrel.
24632 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24634 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24637 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24638 instead of and.u%d.
24640 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24642 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24644 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24646 PR c++/90449 - add -Winaccessible-base option.
24647 * doc/invoke.texi (Winaccessible-base): Document.
24649 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24651 PR tree-optimization/62041
24652 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24654 2019-06-11 Jason Merrill <jason@redhat.com>
24656 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24657 * tree.c (get_tree_code_name): Likewise.
24658 * print-tree.c (print_node): Only briefly print a node with an
24661 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24664 * trans-mem.c (tm_memopt_compute_available): Add assertion
24665 that blocks is not empty. Formatting fix.
24667 2019-06-11 Martin Liska <mliska@suse.cz>
24670 * hash-table.h: Extend create_gcc, add one parameter
24671 that is passed into hash_table::hash_table.
24673 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24675 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24677 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24678 Emit clobber also for non-sse operations.
24679 (ix86_split_fp_absneg_operator): New function.
24680 * config/i386/i386.md (SSEMODEF): New mode iterator.
24681 (ssevecmodef): New mode attribute.
24682 (<code>tf2): Use absneg code iterator.
24683 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24684 Add three-operand AVX alternatives.
24685 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24686 Use absneg code iterator and X87MODEF mode iterator.
24687 (absneg fp_reg non-sse splitter): Call absneg code iterator
24688 and X87MODEF mode iterator.
24689 (absneg general_reg non-sse splitter): Use absneg code iterator
24690 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24691 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24692 code iterator. Add three-operand AVX alternative.
24693 (absneg sse_reg splitter): Use absneg code iterator
24694 and SSEMODEF mode iterator. Handle AVX operands.
24695 (absneg fp_reg splitter): Use absneg code iterator
24696 and MODEF mode iterator.
24697 (absneg general_reg splitter): Merge splitters using MODEF mode
24698 iterator. Use absneg code iterator. Call
24699 ix86_split_fp_absneg_operator.
24700 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24701 Do not enable for non-sse modes before reload.
24702 (CSGNMODE): Remove.
24703 (CSGNVMODE): Ditto.
24704 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24705 ssevecmodef mode attribute instaed of CSGNVMODE.
24706 (copysign<mode>3_const): Ditto.
24707 (copysign<mode>3_var): Ditto.
24708 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24709 Use absneg code iterator. Simplify code using std::swap.
24710 * config/i386/predicates.md (absneg_operator): Remove.
24712 2019-06-10 Martin Sebor <msebor@redhat.com>
24714 * gimple-fold.c (get_range_strlen): Update comment that didn't
24715 make it into r267503 or related commits.
24717 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24719 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24720 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24722 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24724 * tree.def (OMP_SCAN): New tree code.
24725 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24726 OMP_CLAUSE_EXCLUSIVE.
24727 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24728 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24729 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24730 OMP_CLAUSE_{IN,EX}CLUSIVE.
24731 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24732 * tree-nested.c (convert_nonlocal_reference_stmt,
24733 convert_local_reference_stmt, convert_gimple_call): Handle
24735 * tree-pretty-print.c (dump_omp_clause): Handle
24736 OMP_CLAUSE_{IN,EX}CLUSIVE.
24737 (dump_generic_node): Handle OMP_SCAN.
24738 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24739 * gimple.h (gomp_scan): New type.
24740 (is_a_helper <gomp_scan *>::test,
24741 is_a_helper <const gomp_scan *>::test): New templates.
24742 (gimple_build_omp_scan): Declare.
24743 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24744 gimple_omp_scan_set_clauses): New inline functions.
24745 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24746 * gimple.c (gimple_build_omp_scan): New function.
24747 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24748 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24749 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24750 GIMPLE_OMP_TASKGROUP.
24751 (dump_gimple_omp_scan): New function.
24752 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24753 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24754 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24755 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24756 (is_gimple_stmt): Handle OMP_SCAN.
24757 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24758 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24759 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24760 mentioned in nested #pragma omp scan. Handle
24761 OMP_CLAUSE_{IN,EX}CLUSIVE.
24762 (gimplify_expr): Handle OMP_SCAN.
24763 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24764 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24766 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24769 2019-06-10 Martin Liska <mliska@suse.cz>
24771 * ipa-cp.c (ignore_edge_p): New function.
24772 (build_toporder_info): Use it.
24773 * ipa-inline.c (ignore_edge_p): New function.
24774 (inline_small_functions): Use it.
24775 * ipa-pure-const.c (ignore_edge_for_nothrow):
24776 Verify opt_for_fn for caller and callee.
24777 (ignore_edge_for_pure_const): Likewise.
24778 * ipa-reference.c (ignore_edge_p): Extend to check
24780 * ipa-utils.c (searchc): Refactor.
24781 * ipa-utils.h: Fix coding style.
24783 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24785 * config/arc/arc.c (arc_rtx_costs): Update costs.
24787 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24789 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24790 (arc_split_ior): Likewise.
24791 (arc_check_mov_const): Likewise.
24792 (arc_split_mov_const): Likewise.
24793 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24794 (arc_rtx_costs): Replace check Crr with Cax constraint.
24795 (prepare_move_operands): Cleanup, remove unused code.
24796 (arc_split_ior): New function.
24797 (arc_check_ior_const): Likewise.
24798 (arc_split_mov_const): Likewise.
24799 (arc_check_mov_const): Likewise.
24800 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24801 in define_insn_and_split pattern.
24802 (iorsi3): Likewise.
24803 (mulsi3_v2): Add new matching variant.
24804 (andsi3_i): Cleanup pattern.
24805 (rotrsi3_cnt1): Update pattern.
24806 (rotrsi3_cnt8): New pattern.
24807 (ashlsi2_cnt8): Likewise.
24808 (ashlsi2_cnt16): Likewise.
24809 * config/arc/constraints.md (C0p): Update constraint.
24811 (C0x): New pattern.
24812 (Cax): New pattern.
24814 2019-06-10 Martin Liska <mliska@suse.cz>
24816 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24817 Update coding style.
24818 (sem_item_optimizer::dump_cong_classes):
24819 Print how many items are in a non-singular class. Improve
24822 2019-06-10 Martin Liska <mliska@suse.cz>
24824 * value-prof.c (dump_histogram_value): Change dump format.
24825 (gimple_mod_subtract_transform): Remove legacy comment.
24827 2019-06-10 Martin Liska <mliska@suse.cz>
24829 * value-prof.c (dump_histogram_value): Print histogram values
24832 2019-06-10 Martin Liska <mliska@suse.cz>
24834 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24835 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24836 * ipa-profile.c (ipa_profile_generate_summary):
24837 Use get_most_common_single_value.
24838 * tree-profile.c (gimple_init_gcov_profiler):
24839 Instrument with __gcov_one_value_profiler_v2
24840 and __gcov_indirect_call_profiler_v4.
24841 * value-prof.c (dump_histogram_value):
24842 Print all values for HIST_TYPE_SINGLE_VALUE.
24843 (stream_out_histogram_value): Update assert for
24845 (stream_in_histogram_value): Set number of
24846 counters for HIST_TYPE_SINGLE_VALUE.
24847 (get_most_common_single_value): New.
24848 (gimple_divmod_fixed_value_transform):
24849 Use get_most_common_single_value.
24850 (gimple_ic_transform): Likewise.
24851 (gimple_stringops_transform): Likewise.
24852 (gimple_find_values_to_profile): Set number
24853 of counters for HIST_TYPE_SINGLE_VALUE.
24854 * value-prof.h (get_most_common_single_value): New.
24856 2019-06-10 Martin Liska <mliska@suse.cz>
24858 * hash-map.h: Pass default value to hash_table ctor.
24859 * hash-table.h: Add default value to call of a ctor.
24861 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24863 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24864 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24866 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24869 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24870 Call pa_output_function_label.
24871 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24872 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24873 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24875 (pa_linux_output_function_prologue): Declare.
24876 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24877 (pa_output_function_label): New.
24878 (pa_output_function_prologue): Revise to use pa_output_function_label.
24879 (pa_linux_output_function_prologue): New.
24880 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24882 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24884 * tree-vrp.h (value_range_base::intersect): New.
24885 (value_range::intersect_helper): Move from here...
24886 (value_range_base::intersect_helper): ...to here.
24887 * tree-vrp.c (value_range::intersect_helper): Rename to...
24888 (value_range_base::intersect_helper): ...this, and rewrite to
24889 return a value instead of modifying THIS in place.
24890 Also, move equivalence handling...
24891 (value_range::intersect): ...here, while calling intersect_helper.
24892 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24894 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24896 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24898 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24900 * Makefile.in (genprogerr): Add condmd.
24901 (genprog): Remove it here.
24903 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24905 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24907 2019-06-07 Richard Biener <rguenther@suse.de>
24910 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24911 that appear after user labels.
24913 2019-06-07 Martin Liska <mliska@suse.cz>
24915 * cselib.c (cselib_init): Disable hash table
24917 * hash-set.h: Pass new default argument to m_table.
24918 * hash-table.c: Add global variable with hash table
24919 sanitization limit.
24920 * hash-table.h (Allocator>::hash_table): Add new argument
24922 (hashtab_chk_error): New.
24923 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24924 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24925 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24927 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24929 * common.opt (flto-odr-type-merging): Ignore.
24930 * invoke.texi (-flto-odr-type-merging): Remove.
24931 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24932 (can_be_vtable_hashed_p): Remove.
24933 (hash_odr_vtable): Remove.
24934 (odr_vtable_hasher::hash): Remove.
24935 (types_same_for_odr): Remove.
24936 (types_odr_comparable): Remove.
24937 (odr_vtable_hasher::equal): Remove.
24938 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24939 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24940 (get_odr_type): Do not use vtable hash.
24941 (dump_odr_type): Remove commented out code.
24942 (build_type_inheritance_graph): Do not allocate vtable hash.
24943 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24944 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24945 (odr_type_p): Likewise.
24946 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24949 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24951 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24952 immediately after same_types_for_tbaa_p returns -1 and continue
24953 looking for possible exact match; if matching types are arrays
24954 watch for partial overlaps.
24955 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24956 (indirect_refs_may_alias_p): Do type based disambiguation first;
24959 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24961 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24963 2019-06-07 Martin Liska <mliska@suse.cz>
24965 * doc/invoke.texi: Remove param.
24966 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24968 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24969 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24970 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24971 * profile.c (instrument_values): Remove
24972 HIST_TYPE_INDIR_CALL_TOPN.
24973 * tree-profile.c (init_ic_make_global_vars):
24974 Always build __gcov_indirect_call only.
24975 (gimple_init_gcov_profiler): Remove usage
24976 of PARAM_INDIR_CALL_TOPN_PROFILE.
24977 (gimple_gen_ic_profiler): Likewise.
24978 * value-prof.c (dump_histogram_value): Likewise.
24979 (stream_in_histogram_value): Likewise.
24980 (gimple_indirect_call_to_profile): Likewise.
24981 (gimple_find_values_to_profile): Likewise.
24982 * value-prof.h (enum hist_type): Likewise.
24984 2019-06-07 Martin Liska <mliska@suse.cz>
24986 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24989 2019-06-07 Martin Liska <mliska@suse.cz>
24991 PR tree-optimization/78902
24992 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24993 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24994 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24995 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24996 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24997 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24998 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24999 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25000 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25001 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25002 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25003 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25004 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25006 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25007 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25008 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25009 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25010 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25011 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25012 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25013 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25014 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25015 warn_unused_result attribute.
25016 (BUILT_IN_STRDUP): Likewise.
25017 (BUILT_IN_STRNDUP): Likewise.
25018 (BUILT_IN_ALLOCA): Likewise.
25019 (BUILT_IN_CALLOC): Likewise.
25020 (BUILT_IN_MALLOC): Likewise.
25021 (BUILT_IN_REALLOC): Likewise.
25023 2019-06-06 Jim Wilson <jimw@sifive.com>
25026 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25027 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25028 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25030 2019-06-06 Martin Sebor <msebor@redhat.com>
25032 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25033 (handle_builtin_malloc): Remove trailing spaces.
25034 (handle_builtin_memset): Same.
25035 (handle_builtin_memcmp): Same.
25036 (compute_string_length): Same.
25037 (determine_min_objsize): Same.
25038 (handle_builtin_string_cmp): Same.
25039 (handle_char_store): Same. Break up excessively long line.
25041 2019-06-06 Martin Jambor <mjambor@suse.cz>
25043 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25046 2019-06-06 Martin Jambor <mjambor@suse.cz>
25048 * tree-sra.c (struct access): New field grp_same_access_path.
25049 (dump_access): Dump it.
25050 (build_reconstructed_reference): New function.
25051 (build_ref_for_model): Use it if possible.
25052 (path_comparable_for_same_access): New function.
25053 (same_access_path_p): Likewise.
25054 (sort_and_splice_var_accesses): Set the new flag.
25055 (analyze_access_subtree): Likewise.
25056 (propagate_subaccesses_across_link): Propagate zero value of the new
25057 flag down the access tree.
25059 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25061 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25062 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25063 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25064 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25067 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25069 PR tree-optimization/90332
25070 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25071 Handle VALS containing two vectors.
25072 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25074 (@aarch64_combinez<mode>): ... This.
25075 (*aarch64_combinez_be<mode>): Rename to...
25076 (@aarch64_combinez_be<mode>): ... This.
25077 (vec_init<mode><Vhalf>): New define_expand.
25078 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25080 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25082 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25083 library functions only when not optimizing for size.
25084 (ashlsi3): Likewise.
25085 (ashrhi3): Likewise.
25086 (ashrsi3): Likewise.
25087 (lshrhi3): Likewise.
25088 (lshrsi3): Likewise.
25090 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25092 PR rtl-optimization/88751
25093 * ira.c (ira): Use the number of the actually referenced registers
25094 when calculating the threshold.
25096 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25098 * configure: Regenerate.
25100 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25102 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25103 register if it is in memory, so the shift can be emulated with a rotate
25105 (ashrhi3): Likewise.
25106 (lshrhi3): Likewise.
25108 2019-06-06 Martin Liska <mliska@suse.cz>
25110 PR tree-optimization/87954
25111 * match.pd: Simplify mult where both arguments are 0 or 1.
25113 2019-06-06 Richard Biener <rguenther@suse.de>
25115 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25116 put equivalences on UNDEFINED ranges.
25117 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25118 Make sure to drop defs of stmts added during simplification
25121 2019-06-06 Richard Biener <rguenther@suse.de>
25123 * tree-ssa-structalias.c: Include tree-cfg.h.
25124 (make_heapvar): Do not make heap vars artificial.
25125 (find_func_aliases_for_builtin_call): Handle stack allocation
25127 (find_func_aliases): Delay processing of simple enough returns
25129 (set_uids_in_ptset): Adjust.
25130 (find_what_var_points_to): Likewise.
25131 (solve_constraints): Do not dump points-to sets here.
25132 (compute_points_to_sets): Post-process return statements,
25133 amending the escaped solution. Dump points-to sets afterwards.
25134 (ipa_pta_execute): Dump points-to sets.
25136 2019-06-06 Martin Liska <mliska@suse.cz>
25139 * doc/install.texi: Fix HTML headers and
25140 titles for 'Installing GCC' pages.
25142 2019-06-06 Martin Liska <mliska@suse.cz>
25144 * ipa-icf-gimple.h (dump_message_1): Remove.
25145 (dump_message): Likewise.
25146 (return_false_with_message_1): Print also file.
25147 (return_false_with_msg): Likewise.
25148 (return_with_result): Likewise.
25149 (return_with_debug): Likewise.
25150 * ipa-icf.c (sem_function::equals_private): Remove call
25153 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25155 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25156 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25157 memory operand for it.
25158 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25160 2019-06-05 Martin Sebor <msebor@redhat.com>
25162 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25163 Adjust quoting and hyphenation.
25164 * convert.c (convert_to_real_1): Same.
25165 * gcc.c (driver_wrong_lang_callback): Same.
25166 (driver::handle_unrecognized_options): Same.
25167 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25168 * opts-common.c (cmdline_handle_error): Same.
25169 (read_cmdline_option): Same.
25170 * opts-global.c (complain_wrong_lang): Same.
25171 (print_ignored_options): Same.
25172 (handle_common_deferred_options): Same.
25173 * pretty-print.h: Same.
25174 * print-rtl.c (debug_bb_n_slim): Same.
25175 * sched-rgn.c (make_pass_sched_fusion): Same.
25176 * tree-cfg.c (verify_gimple_assign_unary): Same.
25177 (verify_gimple_label): Same.
25178 * tree-ssa-operands.c (verify_ssa_operands): Same.
25179 * varasm.c (do_assemble_alias): Same.
25180 (assemble_alias): Same.
25182 2019-06-05 Richard Henderson <rth@twiddle.net>
25184 * config/alpha/alpha.c (direct_return): Move down after
25185 struct machine_function definition; use saved frame_size;
25187 (struct machine_function): Add sa_mask, sa_size, frame_size.
25188 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25189 (alpha_compute_frame_layout): ... new function.
25190 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25191 (alpha_initial_elimination_offset): Use saved sa_size.
25192 (alpha_vms_initial_elimination_offset): Likewise.
25193 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25194 (alpha_expand_prologue): Use saved frame data. Merge integer
25195 and fp register save loops.
25196 (alpha_expand_epilogue): Likewise.
25197 (alpha_start_function): Use saved frame data.
25198 * config/alpha/alpha-protos.h (direct_return): Update.
25199 (alpha_sa_size): Remove.
25201 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25203 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25204 multiplication by a power-of-two value.
25205 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25206 and turn the modulo operation into a masking operation.
25208 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25211 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25212 with VOIDmode inner operands.
25214 2019-06-05 Richard Biener <rguenther@suse.de>
25216 PR middle-end/90726
25217 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25218 turn an expression graph into a tree.
25220 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25222 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25224 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25225 treat it like explicit monotonic schedule modifier.
25226 (expand_omp_for): Initialize has_lastprivate_conditional.
25227 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25230 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25231 references, lookup in in hash map MEM_REF operand instead of the
25233 (lower_omp_1): When looking for lastprivate conditional assignments,
25234 handle MEM_REFs with REFERENCE_TYPE operands.
25236 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25237 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25238 and references a VLA. Handle references to non-VLAs if is_simd
25239 all privatization clauses like reductions.
25240 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25241 If omp_is_reference, use always omp simd arrays and set
25242 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25243 fails, emit reference initialization.
25245 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25248 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25249 _mm_mask_fpclass_sd_mask): New intrinsics.
25250 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25251 * config/i386/i386-builtin.def
25252 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25254 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25255 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25256 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25257 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25258 case QI_FTYPE_V2SF_INT): Ditto.
25259 * config/i386/sse.md
25260 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25261 Extended to insnstructions with mask operands.
25263 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25265 * config/rs6000/constraints.md (define_register_constraint "wp"):
25267 (define_register_constraint "wq"): Delete.
25268 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25269 (rs6000_init_hard_regno_mode_ok): Adjust.
25270 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25271 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25272 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25273 (define_mode_attr VSa): Delete.
25274 (define_mode_attr VSisa): New.
25275 (rest of file): Adjust.
25276 * doc/md.texi (Machine Constraints): Adjust.
25278 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25280 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25281 (define_attr "enabled"): Handle those new isa values.
25283 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25285 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25286 (define_mode_attr VSr5): Delete.
25287 (define_mode_attr VStype_sqrt): Delete.
25288 (define_mode_iterator VSX_SPDP): Delete.
25289 (define_mode_attr VS_spdp_res): Delete.
25290 (define_mode_attr VS_spdp_insn): Delete.
25291 (define_mode_attr VS_spdp_type): Delete.
25292 (*vsx_sqrt<mode>2): Adjust.
25293 (vsx_<VS_spdp_insn>): Delete, split to...
25294 (vsx_xscvdpsp): ... this. New. And...
25295 (vsx_xvcvspdp): ... this. New. And...
25296 (vsx_xvcvdpsp): ... this. New.
25298 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25300 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25302 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25303 (rest of file): Adjust.
25305 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25307 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25308 (vsx_extract_<mode>_var): Ditto.
25310 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25312 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25315 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25317 * config/rs6000/constraints.md (define_register_constraint "ww"):
25319 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25320 (rs6000_init_hard_regno_mode_ok): Adjust.
25321 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25322 RS6000_CONSTRAINT_ww.
25323 * config/rs6000/rs6000.md: Adjust.
25324 * config/rs6000/vsx.md: Adjust.
25325 * doc/md.texi (Machine Constraints): Adjust.
25327 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25329 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25330 (define_mode_attr sd): New.
25331 (define_mode_attr s): New.
25332 (define_mode_attr Ftrad): Delete.
25333 (define_mode_attr Fvsx): Delete.
25334 (define_mode_attr Fs): Delete.
25335 (rest of file): Use the new mode attributes.
25336 * config.rs6000/vsx.md: Use the new mode attributes.
25338 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25340 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25343 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25345 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25346 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25347 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25349 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25352 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25353 C++ with strict ANSI requirements.
25355 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25357 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25358 computations when step is 1.
25360 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25362 * config/rs6000/constraints.md (define_register_constraint "wf"):
25364 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25365 (rs6000_init_hard_regno_mode_ok): Adjust.
25366 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25367 RS6000_CONSTRAINT_wf.
25368 * config/rs6000/rs6000.md: Adjust.
25369 * config/rs6000/vsx.md: Adjust.
25370 * doc/md.texi (Machine Constraints): Adjust.
25372 2019-06-04 Andrew Pinski <apinski@marvell.com>
25374 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25377 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25379 * config/rs6000/constraints.md (define_register_constraint "wd"):
25381 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25382 (rs6000_init_hard_regno_mode_ok): Adjust.
25383 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25384 RS6000_CONSTRAINT_wd.
25385 * config/rs6000/rs6000.md: Adjust.
25386 * config/rs6000/vsx.md: Adjust.
25387 * doc/md.texi (Machine Constraints): Adjust.
25389 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25391 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25392 (rest of file): Adjust.
25394 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25396 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25397 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25398 (vsx_splat_<mode>_reg): Adjust.
25400 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25402 * config/rs6000/constraints.md (define_register_constraint "ws"):
25404 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25405 (rs6000_init_hard_regno_mode_ok): Adjust.
25406 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25407 RS6000_CONSTRAINT_ws.
25408 * config/rs6000/rs6000.md: Adjust.
25409 * config/rs6000/vsx.md: Adjust.
25410 * doc/md.texi (Machine Constraints): Adjust.
25412 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25414 * config/rs6000/constraints.md (define_register_constraint "wv"):
25416 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25417 (rs6000_init_hard_regno_mode_ok): Adjust.
25418 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25419 RS6000_CONSTRAINT_wv.
25420 * config/rs6000/rs6000.md: Adjust.
25421 * config/rs6000/vsx.md: Adjust.
25422 * doc/md.texi (Machine Constraints): Adjust.
25424 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25426 * config/rs6000/constraints.md (define_register_constraint "wi"):
25428 (define_register_constraint "wt"): Delete.
25429 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25430 (rs6000_init_hard_regno_mode_ok): Adjust.
25431 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25432 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25433 * config/rs6000/rs6000.md: Adjust.
25434 * config/rs6000/vsx.md: Adjust.
25435 * doc/md.texi (Machine Constraints): Adjust.
25437 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25439 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25441 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25442 default_elf_asm_output_external.
25444 2019-06-04 Martin Liska <mliska@suse.cz>
25446 * ipa-icf.c (INCLUDE_LIST): Remove.
25447 (sem_item_optimizer::execute): Remove call to init_wpa.
25448 * ipa-icf.h (init_wpa): Remove.
25450 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25452 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25453 conditional on combined for simd.
25454 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25456 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25457 constructs, don't remove lastprivate_conditional_map, but instead set
25458 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25459 to parent construct temporaries.
25460 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25461 like !ctx->lastprivate_conditional_map.
25462 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25463 use up->outer context instead of up.
25464 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25465 gimple_omp_for_combined_p.
25466 (expand_omp_for_static_nochunk): Likewise.
25467 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25468 probably moved over into expand_omp_for_generic rather than being copied
25471 2019-06-04 Martin Liska <mliska@suse.cz>
25473 * value-prof.c (dump_histogram_value): Fix typo.
25474 (gimple_mod_subtract_transform): Likewise.
25476 2019-06-04 Richard Biener <rguenther@suse.de>
25478 PR middle-end/90726
25479 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25480 (tree_contains_chrecs): Likewise.
25481 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25482 exponential behaivor from ...
25483 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25485 (expression_expensive_p): Avoid exponential behavior and compute
25486 expanded size, rejecting any expansion.
25487 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25488 (idx_contains_abnormal_ssa_name_p): Likewise.
25489 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25490 (contains_abnormal_ssa_name_p): Simplify and use
25491 walk_tree_without_duplicates.
25493 2019-06-04 Richard Biener <rguenther@suse.de>
25495 PR tree-optimization/90738
25497 2019-06-03 Richard Biener <rguenther@suse.de>
25499 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25500 full reference tree and record in ref->ref.
25501 (vn_reference_lookup_3): Pass in original ref to
25502 ao_ref_init_from_vn_reference.
25503 (vn_reference_lookup): Likewise.
25504 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25505 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25506 Handle non-decl bases in the original reference.
25508 2019-06-04 Martin Liska <mliska@suse.cz>
25510 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25511 number of references.
25512 (sem_item_optimizer::do_congruence_step):
25513 (sem_item_optimizer::worklist_push): Dump how references
25515 (sem_item_optimizer::worklist_pop): Use heap.
25516 (sem_item_optimizer::process_cong_reduction): Likewise.
25517 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25519 2019-06-04 Martin Liska <mliska@suse.cz>
25521 * ipa-icf.h (struct sem_usage_pair_hash): New.
25522 (sem_usage_pair_hash::hash): Likewise.
25523 (sem_usage_pair_hash::equal): Likewise.
25524 (struct sem_usage_hash): Likewise.
25525 * ipa-icf.c (sem_item::sem_item): Initialize
25526 referenced_by_count.
25527 (sem_item::add_reference): Register a reference
25528 in ref_map and not in target->usages.
25529 (sem_item::setup): Remove initialization of
25531 (sem_item::~sem_item): Remove usage of dead vectors.
25532 (sem_item::dump): Remove dump of references.
25533 (sem_item_optimizer::sem_item_optimizer): Initialize
25535 (sem_item_optimizer::read_section): Remove useless
25537 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25538 (sem_item_optimizer::build_graph): Pass m_references
25539 to ::add_reference.
25540 (sem_item_optimizer::verify_classes): Remove usage of dead
25542 (sem_item_optimizer::traverse_congruence_split): Return true
25543 when a class is split.
25544 (sem_item_optimizer::do_congruence_step_for_index): Use
25545 hash_map for look up of (sem_item *, index). That brings
25546 significant speed up.
25547 (sem_item_optimizer::do_congruence_step): Return true
25548 when a split is done.
25549 (congruence_class::is_class_used): Use referenced_by_count.
25551 2019-06-04 Alan Modra <amodra@gmail.com>
25554 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25557 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25559 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25560 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25561 (rs6000_secondary_reload_simple_move): Adjust.
25562 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25563 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25564 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25567 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25568 (floatunssi<mode>2_lfiwzx): Adjust.
25569 (fix_trunc<mode>si2_stfiwx): Adjust.
25570 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25571 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25572 (mfpgpr): Mark as deprecated.
25573 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25574 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25575 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25577 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25579 * config/rs6000/constraints.md (define_register_constraint "wg"):
25581 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25582 RS6000_CONSTRAINT_wg.
25583 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25584 (rs6000_init_hard_regno_mode_ok): Adjust.
25585 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25586 Delete "wg" alternatives.
25587 * doc/md.texi (Machine Constraints): Adjust.
25589 2019-06-03 Alan Modra <amodra@gmail.com>
25591 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25592 (get_uncond_jump_length): Assert length less than INT_MAX and
25595 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25597 PR middle-end/64242
25598 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25600 (expand_builtin_nonlocal_goto): Likewise.
25602 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25604 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25605 (aarch64_asm_output_external): Declare.
25606 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25607 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25608 (aarch64_asm_output_alias): New.
25609 (aarch64_asm_output_external): New.
25610 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25611 (ASM_OUTPUT_EXTERNAL): Define.
25613 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25614 * tree-vrp.h (value_range_base::nonzero_p): New.
25615 (value_range_base::set_nonnull): Rename to...
25616 (value_range_base::set_nonzero): ...this.
25617 (value_range_base::set_null): Rename to...
25618 (value_range_base::set_zero): ...this.
25619 (value_range::set_nonnull): Remove.
25620 (value_range::set_null): Remove.
25621 * tree-vrp.c (range_is_null): Remove.
25622 (range_is_nonnull): Remove.
25623 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25624 instead of range_is_*null.
25625 (extract_range_from_unary_expr): Same.
25626 (value_range_base::set_nonnull): Rename to...
25627 (value_range_base::set_nonzero): ...this.
25628 (value_range::set_nonnull): Remove.
25629 (value_range_base::set_null): Rename to...
25630 (value_range_base::set_zero): ...this.
25631 (value_range::set_null): Remove.
25632 (extract_range_from_binary_expr): Rename set_*null uses to
25634 (extract_range_from_unary_expr): Same.
25635 (union_helper): Same.
25636 * vr-values.c (get_value_range): Use set_*zero instead of
25638 (vr_values::extract_range_from_binary_expr): Same.
25639 (vr_values::extract_range_basic): Same.
25641 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25644 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25646 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25648 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25649 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25651 (aarch64_<su>abd<mode>_3): ... This.
25652 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25654 2019-06-03 Richard Biener <rguenther@suse.de>
25656 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25657 full reference tree and record in ref->ref.
25658 (vn_reference_lookup_3): Pass in original ref to
25659 ao_ref_init_from_vn_reference.
25660 (vn_reference_lookup): Likewise.
25661 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25662 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25663 Handle non-decl bases in the original reference.
25665 2019-06-03 Martin Liska <mliska@suse.cz>
25667 * doc/generic.texi: Remove Java Trees.
25669 2019-06-03 Martin Liska <mliska@suse.cz>
25671 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25672 returns 0 when operands are equal.
25674 2019-06-03 Richard Biener <rguenther@suse.de>
25676 PR tree-optimization/90716
25677 * tree-loop-distribution.c (destroy_loop): Process blocks in
25680 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25683 * vector-builder.h (vector_builder::count_dups): New method.
25684 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25686 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25687 (vec_init<mode><Vel>): New pattern.
25688 * config/aarch64/aarch64.c (emit_insr): New function.
25689 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25690 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25691 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25692 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25694 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25696 PR tree-optimization/90681
25697 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25698 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25699 special case for SLP, but fail on non-groupped loads.
25701 2019-06-03 Martin Liska <mliska@suse.cz>
25703 * cfg.c (debug): Use TDF_DETAILS for debug and
25704 print edge info only once.
25706 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25709 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25711 2019-06-01 Martin Sebor <msebor@redhat.com>
25713 PR middle-end/90694
25714 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25716 2019-05-31 Jan Hubicka <jh@suse.cz>
25718 * alias.c: Include ipa-utils.h.
25719 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25720 * ipa-devirt.c (prevailing_odr_type): New.
25721 * ipa-utils.h (previaling_odr_type): Declare.
25723 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25724 Hongtao Liu <hongtao.liu@intel.com>
25727 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25728 NOTE_INSN_DELETED_LABEL check.
25730 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25731 Robert Suchanek <robert.suchanek@mips.com>
25733 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25734 and 3rd operands of the fmadd/fmsub/maddv builtin.
25736 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25738 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25739 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25740 on OMP_SIMD if not nested inside of worksharing loop that also has
25741 lastprivate conditional clause for the same decl.
25742 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25743 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25745 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25747 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25749 (lower_lastprivate_clauses): Likewise.
25750 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25751 calling lower_rec_input_clauses.
25752 (lower_omp_for): Likewise.
25753 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25754 clause on simd construct.
25755 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25756 OMP_CLAUSE__CONDTEMP_ clause is present.
25758 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25761 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25764 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25765 TEX_D32, TEX_D64 or TEX_D128.
25767 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25769 * match.pd (~(vec?cst1:cst2)): New transformation.
25771 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25773 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25774 ((size_t)(A /[ex] B) CMP C): New transformation.
25776 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25778 * doc/md.texi: Document define_insn_and_rewrite.
25779 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25780 * gensupport.c (queue_elem): Update comment.
25781 (replace_operands_with_dups): New function.
25782 (gen_rewrite_sequence): Likewise.
25783 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25784 * read-rtl.c (apply_subst_iterator): Likewise.
25785 (add_condition_to_rtx, named_rtx_p): Likewise.
25786 (rtx_reader::read_rtx_operand): Likewise.
25787 * config/aarch64/aarch64-sve.md
25788 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25789 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25790 define_insn_and_rewrite.
25791 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25792 Remove separate define_split.
25794 2019-05-31 Jan Hubicka <jh@suse.cz>
25796 * tree-ssa-alias.c (type_has_components_p): New function.
25797 (aliasing_component_refs_p): Use it.
25799 2019-05-31 Martin Liska <mliska@suse.cz>
25801 * gdbhooks.py: Add const_tree to TreePrinter.
25803 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25806 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25807 * doc/invoke.texi (Debugging Options): Document new default of
25808 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25810 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25812 PR tree-optimization/90671
25813 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25814 template_block used to be empty on the first call, don't use
25815 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25816 seq with bb_seq and set it with set_bb_seq.
25818 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25820 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25822 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25823 Michael Meissner <meissner@linux.ibm.com>
25825 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25826 (prefixed_mem_operand): Likewise.
25827 (non_prefixed_mem_operand): Likewise.
25828 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25830 * config/rs6000/rs6000.c (print_operand_address): Handle
25831 PC-relative addresses.
25832 (mode_supports_prefixed_address_p): New function.
25833 (rs6000_prefixed_address): New function.
25834 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25835 (SYMBOL_REF_PCREL_P): Likewise.
25837 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25839 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25840 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25841 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25842 is nested inside of parallel region, add _condtemp_ clause to both.
25843 * tree-nested.c (convert_nonlocal_omp_clauses,
25844 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25846 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25848 * omp-general.c (omp_extract_for_data): Compute it.
25849 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25850 (lower_rec_input_clauses): Likewise.
25851 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25852 clause is already present, just add one further one after it.
25853 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25854 (lower_send_shared_vars): Clear _condtemp_ vars.
25855 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25856 or section or taskgroup.
25857 * omp-expand.c (determine_parallel_type): Disallow combining only if
25858 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25859 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25860 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25861 expand_omp_for_static_chunk, expand_omp_for): Use
25862 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25863 determine if a special set of API routines are needed and if condtemp
25864 needs to be initialized, while always initialize cond_var if
25865 fd->lastprivate_conditional is non-zero.
25867 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25868 Michael Meissner <meissner@linux.ibm.com>
25870 * config/rs6000/constraints.md (eI): New constraint.
25871 * config/rs6000/predicates.md (cint34_operand): New predicate.
25872 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25873 (SIGNED_34BIT_OFFSET_P): Likewise.
25874 * doc/md.texi (eI): Document constraint.
25876 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25878 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25880 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25881 Michael Meissner <meissner@linux.ibm.com>
25883 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25884 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25885 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25886 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25887 (OTHER_FUTURE_MASKS): Likewise.
25888 (POWERPC_MASKS): Likewise.
25889 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25890 specified without -mprefixed-addr or -mcpu=future. Error if
25891 -mprefixed-addr is specified without -mcpu=future.
25892 (rs6000_opt_masks): Add entry for prefixed-addr.
25893 * rs6000.opt (mprefixed-addr): New option.
25895 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25897 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25898 cfun->is_thunk check.
25900 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25902 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25905 2019-05-30 Martin Liska <mliska@suse.cz>
25907 * gdbinit.in: Fix 'ptc' command. Add trt
25908 that prints TREE_TYPE($).
25910 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25911 Alan Modra <amodra@gmail.com>
25913 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25915 (rs6000_indirect_call_template_1): ...and here.
25916 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25917 plt16_ha, plt16_lo, mtctr indirect calls. Use
25918 rs6000_pltseq_enum.
25919 (rs6000_decl_ok_for_sibcall): New function.
25920 (rs6000_function_ok_for_sibcall): Refactor.
25921 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25922 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25923 when pcrel. Reorganize.
25924 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25925 * rs6000.h (rs6000_pltseq_enum): New enum.
25926 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25927 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25928 (*pltseq_plt16_ha): Likewise.
25929 (*pltseq_plt16_lo): Likewise.
25930 (*pltseq_mtctr): Likewise.
25931 (*pltseq_plt_pcrel): New insn.
25932 (*call_local_aix): Handle @notoc calls.
25933 (*call_value_local_aix): Likewise.
25934 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25935 (*call_value_nonlocal_aix): Likewise.
25936 (*call_indirect_pcrel): New insn.
25937 (*call_value_indirect_pcrel): Likewise.
25939 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25941 * config/i386/sse.md (*save_multiple<mode>): Rename from
25942 save_multiple<mode>.
25943 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25944 (*restore_multiple_and_return<mode>): Rename from
25945 restore_multiple_and_return<mode>.
25946 (*restore_multiple_leave_return<mode>): Rename from
25947 restore_multiple_leave_return<mode>.
25949 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25951 * config.gcc (rx-*-linux*): New target.
25952 * config/rx/elf.opt: New file.
25953 * config/rx/linux.h: Likewise.
25954 * config/rx/t-linux: Likewise.
25955 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25957 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25958 (ASM_APP_OFF): Likewise.
25959 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25962 2019-05-29 Jan Hubicka <jh@suse.cz>
25964 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25965 variants are pointer equivalent.
25967 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25969 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25970 * config/aarch64/aarch64-sve2.md: New file.
25971 (<u>avg<mode>3_floor): New pattern.
25972 (<u>avg<mode>3_ceil): Likewise.
25973 (*<sur>h<addsub><mode>): Likewise.
25974 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25975 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25977 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25980 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25981 for var_opt_string printing. In cl_optimization_print_diff, print
25982 (null) instead of invoking undefined behavior if one of the
25983 var_opt_string pointers is NULL and use && instead of first || in the
25984 guarding condition. For var_target_other options, handle const char *
25985 target variables similarly to const char * optimize node variables.
25987 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25989 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25990 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25991 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25992 Add autib1716 and pacib1716 initialisation.
25993 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25994 for autib1716 and pacib1716.
25995 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25996 aarch64_post_cfi_startproc): Define.
25997 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25998 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25999 aarch64_handle_pac_ret_protection): Set default sign key to A.
26000 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26001 aarch64_expand_prologue): Add check for b-key.
26002 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26003 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26004 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26005 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26006 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26007 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26008 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26009 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26010 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26011 pauth_hint_num_a with pauth_hint_num.
26012 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26013 pauth_hint_num_a with pauth_hint_num.
26014 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26015 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26016 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26017 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26018 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26019 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26020 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26021 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26022 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26023 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26024 UNSPEC_AUTIA1716 respectively.
26025 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26026 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26027 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26028 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26029 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26030 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26032 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26034 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26035 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26036 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26037 explicit clause on combined parallel into implicit shared clause.
26038 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26039 and firstprivate if the decl has one too from combined parallel to
26040 the worksharing construct.
26042 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26043 Michael Meissner <meissner@linux.ibm.com>
26045 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26047 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26049 * rtl.h (LABEL_REF_P): New #define.
26051 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26053 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26055 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26057 * internal-fn.c: Marked mask_load_direct as vectorizable.
26058 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26059 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26060 combined even if masks different with allow_slp_p param.
26061 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26062 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26063 dissolve SLP-only vectorizable groups when SLP has been discarded.
26064 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26065 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26067 (vect_build_slp_tree_1): Fixed comment typo.
26068 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26069 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26070 loads for SLP only.
26071 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26073 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26075 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26077 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26078 Remove obsolete use_thunk reference.
26079 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26080 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26081 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26082 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26083 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26084 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26085 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26086 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26087 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26089 2019-05-28 Nathan Sidwell <nathan@acm.org>
26091 * tree.h (IDENTIFIER_ANON_P): New.
26092 (anon_aggrname_format, anon_aggname_p): Don't declare.
26093 (make_anon_name): Declare.
26094 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26095 (hash_tree): Likewise.
26096 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26097 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26098 (anon_cnt, make_anon_name): New.
26100 2019-05-28 Martin Liska <mliska@suse.cz>
26103 * opts-global.c (decode_options): Print help for all
26104 help_option_arguments.
26105 * opts.c (print_help): Add new argument.
26106 (common_handle_option): Remember all values into
26107 help_option_arguments.
26108 * opts.h (print_help): Add new argument.
26110 2019-05-28 Martin Liska <mliska@suse.cz>
26113 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26114 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26115 (func_checker::compare_bb): Call compare_loops.
26117 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26119 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26120 on sections construct.
26121 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26123 (lower_omp_sections): Handle lastprivate conditional.
26124 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26125 lastprivate_conditional_map.
26126 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26128 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26129 critical, taskgroup and section regions when looking for a region
26130 with non-NULL lastprivate_conditional_map.
26132 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26134 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26135 (*ix86_gen_sub3): Ditto.
26136 (*ix86_gen_sub3_carry): Ditto.
26137 (*ix86_gen_one_cmpl2): Ditto.
26138 (*ix86_gen_andsp): Ditto.
26139 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26140 (gen_and2_insn): New static function.
26141 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26142 Use gen_add3_insn instead of ix86_gen_add3.
26143 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26144 instead of ix86_gen_add3.
26145 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26146 Use gen_sub3_insn instead of ix86_gen_sub3.
26147 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26148 instead of ix86_gen_add3.
26149 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26150 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26151 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26152 * config/i386/i386-options.c (ix86_option_override_internal):
26153 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26154 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26156 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26158 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26159 and DW_OP_GNU_const_index opcodes.
26161 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26163 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26165 2019-05-27 Richard Biener <rguenther@suse.de>
26167 PR tree-optimization/90637
26168 * tree-ssa-sink.c (statement_sink_location): Honor the
26169 computed sink location for single-uses.
26171 2019-05-27 Richard Biener <rguenther@suse.de>
26173 PR middle-end/90610
26174 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26177 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26179 * config/i386/i386.md (@sub<mode>3_carry): Rename
26180 from sub<mode>3_carry.
26181 (@leave_<mode>): New expander.
26182 (*leave): Rename from leave.
26183 (*leave_rex64): Rename from leave_rex64.
26184 (@monitorx_<mode>): Rename from monitorx_<mode>.
26185 (@clzero_<mode>): Rename from clzero_<mode>.
26186 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26187 from sse3_monitor_<mode>.
26188 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26189 (*ix86_gen_leave): Ditto.
26190 (*ix86_gen_monitor): Ditto.
26191 (*ix86_gen_monitorx): Ditto.
26192 (*ix86_gen_clzero): Ditto.
26193 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26194 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26195 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26196 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26197 Use gen_sse3_monitor instead of ix86_gen_monitor.
26198 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26199 instead of ix86_gen_monitorx.
26200 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26201 instead of ix86_gen_clzero.
26202 * config/i386/i386-options.c (ix86_option_override_internal):
26203 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26204 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26206 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26208 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26209 Rename from tls_global_dynamic_64_<mode>.
26210 (@tls_local_dynamic_base_64_<mode>): Rename from
26211 tls_local_dynamic_base_64_<mode>.
26212 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26213 Remove indirect function.
26214 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26215 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26216 instead of ix86_gen_tls_global_dynamic_64.
26217 Use gen_tls_local_dynamic_base_64 instead of
26218 ix86_gen_tls_local_dynamic_base_64.
26219 * config/i386/i386-options.c (ix86_option_override_internal):
26220 Do not initialize ix86_gen_tls_global_dynamic_64 and
26221 ix86_gen_tls_local_dynamic_base_64.
26223 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26225 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26226 Rename from pro_epilogue_adjust_stack_<mode>_add.
26227 (@pro_epilogue_adjust_stack_sub_<mode>)
26228 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26229 (@allocate_stack_worker_probe_<mode>):
26230 Rename from allocate_stack_worker_probe_<mode>.
26231 (allocate_stack): Use gen_allocate_stack_worker_probe.
26232 (probe_stack): Use gen_probe_stack_1.
26233 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26234 (@adjust_stack_and_probe_<mode>): Rename from
26235 adjust_stack_and_probe<mode>.
26236 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26237 (stack_protect_set): Use gen_stack_protect_set_1.
26238 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26239 (stack_protect_test): Use gen_stack_protect_test_1.
26240 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26241 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26242 Remove indirect function.
26243 (*ix86_gen_adjust_stack_and_probe): Ditto.
26244 (*ix86_gen_probe_stack_range): Ditto.
26245 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26246 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26247 (ix86_adjust_stack_and_probe_stack_clash): Use
26248 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26249 (ix86_adjust_stack_and_probe): Ditto.
26250 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26251 of ix86_gen_probe_stack_range.
26252 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26253 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26254 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26255 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26256 CODE_FOR_stack_protect_test_{si,di}.
26257 * config/i386/i386-options.c (ix86_option_override_internal):
26258 Do not initialize ix86_gen_allocate_stack_worker,
26259 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26261 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26263 * doc/invoke.texi (Link Options): Many editorial changes around
26266 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26268 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26269 pre-Solaris 11 referene and most Studio compiler details.
26271 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26274 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26275 DImode to SImode in floating-point registers on 64-bit target.
26276 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26277 register_operand in xmpyu patterns.
26279 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26281 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26282 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26283 OMP_CLAUSE__REDUCTEMP_.
26284 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26285 OMP_CLAUSE__CONDTEMP_.
26286 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26287 * tree-pretty-print.c (dump_omp_clause): Likewise.
26288 * tree-nested.c (convert_nonlocal_omp_clauses,
26289 convert_local_omp_clauses): Likewise.
26290 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26291 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26292 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26294 (gimplify_omp_for): Warn and disable conditional modifier from
26295 lastprivate on loop iterators.
26296 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26298 * omp-general.c (omp_extract_for_data): Initialize it.
26299 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26301 (delete_omp_context): Delete it.
26302 (lower_lastprivate_conditional_clauses): New function.
26303 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26304 handle lastprivate conditional clauses.
26305 (lower_reduction_clauses): Add CLIST argument, emit it into
26306 the critical section if any.
26307 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26308 lower_reduction_clauses callers.
26309 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26310 to lower_lastprivate_clauses.
26311 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26312 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26313 clist into a critical section if not emitted there already by
26314 lower_reduction_clauses.
26315 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26317 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26318 conditional variables.
26319 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26321 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26322 expand_omp_for_static_chunk): Handle lastprivate conditional.
26323 (expand_omp_for): Handle fd.lastprivate_conditional like
26326 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26328 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26329 kernel does not exit cleanly.
26330 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26332 2019-05-24 Jason Merrill <jason@redhat.com>
26335 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26337 2019-05-24 Richard Biener <rguenther@suse.de>
26340 * tree-loop-distribution.c (struct partition): Add location
26342 (partition_alloc): Initialize all fields.
26343 (generate_memset_builtin): Use the location recorded in the
26344 partition for the generated call.
26345 (generate_memcpy_builtin): Likewise.
26346 (classify_partition): Record the location of a single store
26347 as location for the partition.
26349 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26351 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26354 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26357 * common/config/aarch64/aarch64-common.c
26358 (aarch64_rewrite_selected_cpu): Change local temporary variable
26359 type from unsigned long to uint64_t.
26360 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26361 aarch64_get_extension_string_for_isa_flags): Change declaration to
26362 match new definition by replacing unsigned long with uint64_t.
26364 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26367 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26368 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26369 Handle stack_protect_test_<mode> codegen similarly to corresponding
26372 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26374 * config/i386/darwin.h: Reject -mfentry*.
26375 * doc/sourcebuild.texi: Document mfentry target support.
26377 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26379 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26380 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26381 false for PC-relative functions.
26382 (rs6000_output_function_prologue): Change called function name to
26383 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26384 name,1" for PC-relative functions.
26385 (rs6000_elf_declare_function_name): Change called function name to
26386 rs6000_global_entry_point_prologue_needed_p.
26388 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26391 * config/i386/i386.c (gen_rtx_cost):
26392 Use ix86_tune_cost instead of ix86_cost.
26394 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26395 Michael Meissner <meissner@linux.ibm.com>
26396 Segher Boessenkool <segher@kernel.crashing.org>
26398 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26400 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26401 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26402 (rs6000_fndecl_pcrel_p): Likewise.
26403 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26404 error if -mpcrel is requested without -mcpu=future.
26405 (rs6000_opt_masks): Add entry for pcrel.
26406 (rs6000_fndecl_pcrel_p): New function.
26407 (rs6000_pcrel_p): Likewise.
26408 * config/rs6000/rs6000.opt (mpcrel): New option.
26409 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26411 2019-05-23 Jan Hubicka <jh@suse.cz>
26412 Martin Liska <mliska@suse.cz>
26414 PR tree-optimization/90576
26415 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26417 (aliasing_component_refs_p): Fix three way size compare conditional;
26418 give up earlier in case we can not decide on equivalence.
26420 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26421 Michael Meissner <meissner@linux.ibm.com>
26422 Segher Boessenkool <segher@kernel.crashing.org>
26424 * config.gcc: Add future cpu.
26425 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26426 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26428 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26429 (RS6000_CPU): New instantiation for future cpu.
26430 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26432 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26433 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26434 * config/rs6000/rs6000-tables.opt: Regenerate.
26435 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26436 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26437 (rs6000_machine_from_flags): Handle future cpu.
26438 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26439 PROCESSOR_POWER9 for now.
26440 (rs6000_adjust_cost): Likewise.
26441 (rs6000_issue_rate): Likewise.
26442 (rs6000_register_move_cost): Likewise.
26443 (rs6000_opt_masks): Add entry for future.
26444 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26445 (MASK_FUTURE): New #define.
26446 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26447 * config/rs6000/rs6000.opt (mfuture): New target option.
26448 * doc/invoke.texi (mcpu): Add future cpu.
26450 2019-05-23 Martin Liska <mliska@suse.cz>
26453 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26454 operation points to a temporary (pointed via tree_to_wide_ref)
26455 that is out of scope after the &.
26457 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26460 * doc/extend.texi (Function Names): Add missing word.
26462 2019-05-23 Richard Biener <rguenther@suse.de>
26464 PR tree-optimization/88440
26465 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26467 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26469 (generate_memcpy_builtin): Likewise.
26470 (distribute_loop): Pass in whether to only distribute patterns.
26471 (prepare_perfect_loop_nest): Also allow size optimization.
26472 (pass_loop_distribution::execute): When optimizing a loop
26473 nest for size allow pattern replacement.
26475 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26478 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26481 2019-05-23 Martin Liska <mliska@suse.cz>
26484 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26485 expression similarly to gimplify_decl_expr.
26487 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26489 * cse.c (cse_dump_path): s/dump_file/f.
26491 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26494 * diagnostic-format-json.cc: Include "selftest.h".
26495 (json_from_expanded_location): Only add "file" key for non-NULL
26497 (json_from_location_range): Don't add "start" and "finish"
26498 children if they are UNKNOWN_LOCATION.
26499 (selftest::test_unknown_location): New selftest.
26500 (selftest::test_bad_endpoints): New selftest.
26501 (selftest::diagnostic_format_json_cc_tests): New function.
26502 * json.cc (json::object::get): New function.
26503 (selftest::test_object_get): New selftest.
26504 (selftest::json_cc_tests): Call it.
26505 * json.h (json::object::get): New decl.
26506 * selftest-run-tests.c (selftest::run_tests): Call
26507 selftest::diagnostic_format_json_cc_tests.
26508 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26511 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26512 Andrew Stubbs <amd@codesourcery.com>
26514 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26515 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26516 (kernel): Rename to...
26517 (main_kernel): ... this.
26518 (load_image): Load _init_array and _fini_array kernels.
26519 (run): Add argument for kernel to run.
26520 (main): Run init_array_kernel before main_kernel, and
26521 fini_array_kernel after.
26522 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26523 amdgpu_hsa_kernel attribute on functions.
26524 (gcn_disable_constructors): Delete.
26525 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26526 * config/gcn/crt0.c (size_t): Define.
26527 (_init_array, _fini_array): New.
26528 (__preinit_array_start, __preinit_array_end,
26529 __init_array_start, __init_array_end,
26530 __fini_array_start, __fini_array_end): Declare weak references.
26532 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26534 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26536 2019-05-22 Jason Merrill <jason@redhat.com>
26538 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26540 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26543 * config/i386/i386-options.c (ix86_init_machine_status): Set
26544 stack_frame_required to true.
26545 * config/i386/i386.c (ix86_get_frame_size): New function.
26546 (ix86_frame_pointer_required): Replace get_frame_size with
26547 ix86_get_frame_size.
26548 (ix86_compute_frame_layout): Likewise.
26549 (ix86_find_max_used_stack_alignment): Changed to void. Set
26550 stack_frame_required.
26551 (ix86_finalize_stack_frame_flags): Always call
26552 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26553 ix86_get_frame_size.
26554 * config/i386/i386.h (machine_function): Add stack_frame_required.
26556 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26558 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26560 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26562 * common/config/aarch64/aarch64-common.c
26563 (struct aarch64_option_extension, struct processor_name_to_arch,
26564 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26565 aarch64_contains_opt,
26566 aarch64_get_extension_string_for_isa_flags): Change type of
26567 variables storing flags to uint64_t.
26568 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26569 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26570 * config/aarch64/aarch64.c (struct processor,
26571 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26572 aarch64_validate_march, aarch64_override_options,
26573 aarch64_option_print, aarch64_handle_attr_isa_flags,
26574 aarch64_declare_function_name, aarch64_start_file): Make flag
26575 variables uint64_t.
26576 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26577 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26578 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26579 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26580 * config/aarch64/driver-aarch64.c
26581 (struct aarch64_arch_extension, struct aarch64_core_data,
26582 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26583 flag variables uint64_t.
26584 * doc/invoke.texi: Add documentation for new arguments.
26586 2019-05-22 Richard Biener <rguenther@suse.de>
26588 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26590 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26592 2019-05-22 Martin Liska <mliska@suse.cz>
26595 * doc/extend.texi: Document the change.
26597 2019-05-22 Richard Biener <rguenther@suse.de>
26599 PR tree-optimization/90450
26600 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26601 (mem_ref_hasher::equal): Check it.
26602 (mem_ref_alloc): Initialize it.
26603 (gather_mem_refs_stmt): Set it.
26605 2019-05-22 Richard Biener <rguenther@suse.de>
26607 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26609 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26612 2019-05-22 Alan Modra <amodra@gmail.com>
26614 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26615 (ASM_CPU_SPEC): Conditionally add -many.
26616 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26617 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26618 (rs6000_file_start): ..extracted from here, and modified to
26620 (rs6000_output_function_prologue): Emit .machine as necessary.
26622 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26624 PR middle-end/90553
26625 * ira-lives.c (process_bb_node_lives): Consider defs
26626 for a call insn to be die before the call, not after.
26628 * function.c (assign_parm_setup_block): Raise alignment of
26629 stacked parameter only for STRICT_ALIGNMENT targets.
26631 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26633 * config/rs6000/constraints.md (define_register_constraint "wz"):
26635 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26636 RS6000_CONSTRAINT_wz.
26637 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26638 (rs6000_init_hard_regno_mode_ok): Adjust.
26639 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26640 * doc/md.texi (Machine Constraints): Adjust.
26642 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26644 * config/rs6000/constraints.md (define_register_constraint "wl"):
26646 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26647 RS6000_CONSTRAINT_wl.
26648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26649 (rs6000_init_hard_regno_mode_ok): Adjust.
26650 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26651 * doc/md.texi (Machine Constraints): Adjust.
26653 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26655 * config/rs6000/constraints.md (define_register_constraint "wm"):
26657 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26658 RS6000_CONSTRAINT_wm.
26659 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26660 (rs6000_init_hard_regno_mode_ok): Adjust.
26661 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26662 * doc/md.texi (Machine Constraints): Adjust.
26664 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26666 * config/rs6000/constraints.md (define_register_constraint "wk"):
26668 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26669 RS6000_CONSTRAINT_wk.
26670 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26671 (rs6000_init_hard_regno_mode_ok): Adjust.
26672 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26673 * doc/md.texi (Machine Constraints): Adjust.
26675 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26677 * config/rs6000/constraints.md (define_register_constraint "wj"):
26679 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26680 RS6000_CONSTRAINT_wj.
26681 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26682 (rs6000_init_hard_regno_mode_ok): Adjust.
26683 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26685 * config/rs6000/vsx.md: Ditto.
26686 * doc/md.texi (Machine Constraints): Adjust.
26688 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26690 * config/rs6000/constraints.md (define_register_constraint "wh"):
26692 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26693 RS6000_CONSTRAINT_wh.
26694 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26695 (rs6000_init_hard_regno_mode_ok): Adjust.
26696 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26697 * doc/md.texi (Machine Constraints): Adjust.
26699 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26702 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26703 Avoid calling gen_lowpart with CONST operand.
26705 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26707 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26708 field template_last_to_copy.
26709 (ssa_create_duplicates): Set it, and use it. Attempt to
26710 preserve more debug stmts.
26712 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26714 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26715 (signbit<mode>2): New expander
26717 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26720 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26721 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26723 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26725 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26726 %ebx and %ecx bafore calling cpuid with leaf 1 or
26727 non-constant leaf argument.
26729 2019-05-21 Alan Modra <amodra@gmail.com>
26732 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26733 power9 direct move cost.
26735 2019-05-21 Richard Biener <rguenther@suse.de>
26737 PR middle-end/90510
26738 * fold-const.c (fold_read_from_vector): New function.
26739 * fold-const.h (fold_read_from_vector): Declare.
26740 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26741 single-element insert permutations. Canonicalize selector
26742 further and fix issue with last commit.
26744 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26746 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26747 parameter with default value false to declaration.
26748 (split_edges_for_insertion): New inline function. Wrapper for
26749 split_critical_edges with for_edge_insertion_p = true.
26750 * tree-cfg.c (split_critical_edges): Don't split non-critical
26751 edges if for_edge_insertion_p is false. Fix whitespace.
26752 * tree-ssa-pre.c (pass_pre::execute): Call
26753 split_edges_for_insertion instead of split_critical_edges.
26754 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26755 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26756 (pass_data_sink_code): Update function name in the comment.
26758 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26760 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26761 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26762 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26763 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26766 2019-05-21 Martin Liska <mliska@suse.cz>
26768 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26770 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26771 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26773 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26775 (rs6000_function_arg): Likewise.
26776 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26777 (rs6000_expand_ternop_builtin): Use interval syntax.
26778 (get_element_number): Likewise.
26779 (altivec_expand_builtin): Likewise.
26780 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26782 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26786 * function.h (struct function): Add calls_eh_return member.
26787 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26788 gimplifying __builtin_eh_return call.
26789 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26791 (expand_call_inline): Or in src_cfun->calls_eh_return into
26792 dst_cfun->calls_eh_return.
26793 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26794 cfun->calls_eh_return.
26795 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26796 * lto-streamer-out.c (output_struct_function_base): Write
26799 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26801 PR rtl-optimization/43147
26802 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26803 IX86_BUILTIN_SHUFPD.
26805 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26807 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26808 (refs_may_alias_p_1): ... here; update stats.
26809 (refs_may_alias_p): Do not update stats here.
26811 2019-05-20 Richard Biener <rguenther@suse.de>
26813 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26814 doesn't produce pointers.
26815 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26816 the first operand points to.
26818 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26820 * tree-ssa-alias.c (compare_sizes): New function.
26821 (sompare_type_sizes): New function
26822 (aliasing_component_refs_p): Use it.
26823 (indirect_ref_may_alias_decl_p): Likewise.
26825 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26827 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26829 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26831 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26832 (LIBLSAN_EARLY_SPEC): Likewise.
26833 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26835 2019-05-20 Martin Liska <mliska@suse.cz>
26837 * config/i386/i386.c (ix86_libc_has_fast_function):
26838 Add ATTRIBUTE_UNUSED for the argument.
26840 2019-05-20 Richard Biener <rguenther@suse.de>
26842 * gimple-match-head.c: Include vec-perm-indices.h.
26843 * generic-match-head.c: Likewise.
26844 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26846 * fold-const.c (fold_vec_perm): Export.
26847 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26848 (match.pd): ...here.
26850 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26852 * cfgloop.h (struct loop): Add simdlen member.
26853 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26854 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26855 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26856 as new argument to autovectorize_vector_sizes target hook. If
26857 loop->simdlen, pick up vector size where the vectorization factor
26858 is equal to loop->simd, and if there is none, fall back to the first
26860 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26862 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26863 * omp-general.c (omp_max_vf): Likewise.
26864 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26865 * tree-vect-slp.c (vect_slp_bb): Likewise.
26866 * target.def (autovectorize_vector_sizes): Add ALL argument and
26868 * doc/tm.texi: Adjust documentation.
26869 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26870 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26871 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26873 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26874 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26875 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26876 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26877 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26878 preferred vector size is not 512-bit or 256-bit, just put those
26879 unpreferred ones last.
26881 2019-05-20 Martin Liska <mliska@suse.cz>
26883 * targhooks.c (default_libc_has_fast_function): New function.
26884 * targhooks.h (default_libc_has_fast_function): Likewise.
26886 2019-05-20 Martin Liska <mliska@suse.cz>
26888 PR middle-end/90263
26889 * builtins.c (expand_builtin_memory_copy_args): When having a
26890 target with fast mempcpy implementation do now use memcpy.
26891 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26892 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26893 * doc/tm.texi: Likewise.
26894 * doc/tm.texi.in: Likewise.
26896 * expr.c (emit_block_move_hints): Add 2 new arguments.
26897 * expr.h (emit_block_move_hints): Bail out when libcall
26898 to memcpy would be used.
26900 2019-05-20 Martin Liska <mliska@suse.cz>
26902 * profile-count.c: Add vertical spacing in order
26903 to separate functions.
26904 * profile-count.h: Likewise.
26906 2019-05-20 Martin Liska <mliska@suse.cz>
26908 * profile-count.h: Do not use full qualified
26910 * profile-count.c (profile_count::to_frequency): Likewise.
26912 2019-05-20 Martin Liska <mliska@suse.cz>
26914 * profile-count.h (enum profile_quality): Use capital letters
26915 for enum value names. Use the adjusted names.
26916 * profile-count.c: Use the adjusted names.
26918 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26920 * config/rs6000/constraints.md (define_register_constraint "wH"):
26922 (define_register_constraint "wI"): Delete.
26923 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26924 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26925 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26926 (rs6000_init_hard_regno_mode_ok): Adjust.
26927 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26928 resp. "d", or with "wa" as appropriate, all with "p8v".
26929 * config/rs6000/vsx.md: Ditto.
26930 * doc/md.texi (Machine Constraints): Adjust.
26932 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26934 * config/rs6000/constraints.md (define_register_constraint "wy"):
26936 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26937 RS6000_CONSTRAINT_wy.
26938 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26939 (rs6000_init_hard_regno_mode_ok): Adjust.
26940 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26941 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26942 (define_mode_attr Fisa): New.
26943 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26944 * doc/md.texi (Machine Constraints): Adjust.
26946 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26948 * config/rs6000/constraints.md (define_register_constraint "wu"):
26950 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26951 RS6000_CONSTRAINT_wu.
26952 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26953 (rs6000_init_hard_regno_mode_ok): Adjust.
26954 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26956 (define_mode_attr Fa): Delete.
26957 * config/rs6000/vsx.md: Ditto.
26958 * doc/md.texi (Machine Constraints): Adjust.
26960 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26962 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26964 (define_register_constraint "wK"): Delete.
26965 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26966 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26967 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26968 (rs6000_init_hard_regno_mode_ok): Adjust.
26969 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26970 Replace "wK" constraint by "wH" with "p9v".
26971 * config/rs6000/vsx.md: Ditto.
26972 * doc/md.texi (Machine Constraints): Adjust.
26974 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26976 * config/rs6000/constraints.md (define_register_constraint "wb"):
26978 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26979 RS6000_CONSTRAINT_wb.
26980 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26981 (rs6000_init_hard_regno_mode_ok): Adjust.
26982 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26983 * config/rs6000/vsx.md: Ditto.
26984 * doc/md.texi (Machine Constraints): Adjust.
26986 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26988 * config/rs6000/constraints.md (define_register_constraint "wo"):
26990 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26991 RS6000_CONSTRAINT_wo.
26992 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26993 (rs6000_init_hard_regno_mode_ok): Adjust.
26994 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26995 * config/rs6000/altivec.md: Ditto.
26996 * doc/md.texi (Machine Constraints): Adjust.
26998 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27000 * config/darwin-c.c (darwin_register_objc_includes): Do not
27001 prepend the sysroot when building gnu-runtime header search
27004 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27006 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27007 instead of direct output of the asm.
27009 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27011 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27012 argument to be type bool (was int before).
27013 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27014 at first use. Use type bool for some variables. Fix a theoretical
27015 eh_return bug for svr4.
27017 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27019 * config/rs6000/rs6000.md (isa): New attribute.
27020 (enabled): New attribute.
27022 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27024 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27025 assemble_start_function and assemble_end_function.
27027 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27029 PR middle-end/89433
27030 * omp-general.c (oacc_verify_routine_clauses): Change formal
27031 parameters. Add checking if already marked with an OpenACC
27032 'routine' directive. Adjust all users.
27034 PR middle-end/89433
27035 * omp-general.c (oacc_build_routine_dims): Move some of its
27037 (oacc_verify_routine_clauses): ... this new function.
27038 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27040 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27042 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27043 formating of picbase labels to match other ports.
27045 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27047 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27048 in the generated code.
27050 2019-05-16 Martin Sebor <msebor@redhat.com>
27052 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27053 identifiers, keywords, operators, and types in diagnostics. Correct
27054 quoting, spelling, and sentence capitalization issues.
27055 (expand_builtin_atomic_is_lock_free): Same.
27056 (fold_builtin_next_arg): Same.
27057 * cfgexpand.c (expand_one_var): Same.
27058 (tree_conflicts_with_clobbers_p): Same.
27059 (expand_asm_stmt): Same.
27060 (verify_loop_structure): Same.
27061 * cgraphunit.c (process_function_and_variable_attributes): Same.
27062 * collect-utils.c (collect_execute): Same.
27063 * collect2.c (maybe_run_lto_and_relink): Same.
27064 (is_lto_object_file): Same.
27065 (scan_prog_file): Same.
27066 * convert.c (convert_to_real_1): Same.
27067 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27068 * except.c (verify_eh_tree): Same.
27069 * gcc.c (execute): Same.
27070 (eval_spec_function): Same.
27071 (run_attempt): Same.
27072 (driver::set_up_specs): Same.
27073 (compare_debug_auxbase_opt_spec_function): Same.
27074 * gcov-tool.c (unlink_gcda_file): Same.
27076 (do_rewrite): Same.
27077 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27078 * gimplify.c (gimplify_asm_expr): Same.
27079 (gimplify_adjust_omp_clauses): Same.
27080 * hsa-gen.c (gen_hsa_addr_insns): Same.
27081 (gen_hsa_insns_for_load): Same.
27082 (gen_hsa_cmp_insn_from_gimple): Same.
27083 (gen_hsa_insns_for_operation_assignment): Same.
27084 (gen_get_level): Same.
27085 (gen_hsa_alloca): Same.
27086 (omp_simple_builtin::generate): Same.
27087 (gen_hsa_atomic_for_builtin): Same.
27088 (gen_hsa_insns_for_call): Same.
27089 * input.c (dump_location_info): Same.
27090 * ipa-devirt.c (compare_virtual_tables): Same.
27091 * ira.c (ira_setup_eliminable_regset): Same.
27092 * lra-assigns.c (lra_assign): Same.
27093 * lra-constraints.c (lra_constraints): Same.
27094 * lto-streamer-in.c (lto_input_mode_table): Same.
27095 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27096 (merge_and_complain): Same.
27097 (compile_offload_image): Same.
27098 (compile_images_for_offload_targets): Same.
27099 (debug_objcopy): Same.
27102 * opts.c (print_specific_help): Same.
27103 (parse_no_sanitize_attribute): Same.
27104 (print_help): Same.
27105 (handle_param): Same.
27106 * plugin.c (add_new_plugin): Same.
27107 (parse_plugin_arg_opt): Same.
27108 (try_init_one_plugin): Same.
27109 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27110 operators, and types in diagnostics. Correct quoting and spelling
27112 * read-rtl-function.c (parse_edge_flag_token): Same.
27113 (function_reader::parse_enum_value): Same.
27114 * reg-stack.c (check_asm_stack_operands): Same.
27115 * regcprop.c (validate_value_data): Same.
27116 * sched-rgn.c (make_pass_sched_fusion): Same.
27117 * stmt.c (check_unique_operand_names): Same.
27118 * targhooks.c (default_target_option_pragma_parse): Same.
27119 * tlink.c (recompile_files): Same.
27120 * toplev.c (process_options): Same.
27121 (do_compile): Same.
27122 * trans-mem.c (diagnose_tm_1): Same.
27123 (ipa_tm_scan_irr_block): Same.
27124 (ipa_tm_diagnose_transaction): Same.
27125 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27126 format a tree code name in a diagnostic.
27127 (verify_types_in_gimple_min_lval): Same.
27128 (verify_types_in_gimple_reference): Same.
27129 (verify_gimple_call): Same.
27130 (verify_gimple_assign_unary): Same.
27131 (verify_gimple_assign_binary): Same.
27132 (verify_gimple_assign_ternary): Same.
27133 (verify_gimple_assign_single): Same.
27134 (verify_gimple_switch): Same.
27135 (verify_gimple_label): Same.
27136 (verify_gimple_phi): Same.
27137 (verify_gimple_in_seq): Same.
27138 (verify_eh_throw_stmt_node): Same.
27139 (collect_subblocks): Same.
27140 (gimple_verify_flow_info): Same.
27141 (do_warn_unused_result): Same.
27142 * tree-inline.c (expand_call_inline): Same.
27143 * tree-into-ssa.c (update_ssa): Same.
27144 * tree.c (tree_int_cst_elt_check_failed): Same.
27145 (tree_vec_elt_check_failed): Same.
27146 (omp_clause_operand_check_failed): Same.
27147 (verify_type_variant): Same.
27148 (verify_type): Same.
27149 * value-prof.c (verify_histograms): Same.
27150 * varasm.c (assemble_start_function): Same.
27152 2019-05-16 Martin Sebor <msebor@redhat.com>
27154 * config/i386/i386-expand.c (get_element_number): Quote keywords
27155 and other internal names in diagnostics. Adjust other diagnostic
27156 formatting issues noted by -Wformat-diag.
27157 * config/i386/i386-features.c
27158 (ix86_mangle_function_version_assembler_name): Same.
27159 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27160 * config/i386/i386.c (ix86_function_type_abi): Same.
27161 (ix86_function_ms_hook_prologue): Same.
27162 (classify_argument): Same.
27163 (ix86_expand_prologue): Same.
27164 (ix86_md_asm_adjust): Same.
27165 (ix86_memmodel_check): Same.
27167 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27169 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27170 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27173 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27176 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27177 intrinsics without SSE/SSE2/SSSE3.
27178 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27180 (*mmx_uavgv8qi3): Likewise.
27182 2019-05-17 Richard Biener <rguenther@suse.de>
27184 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27185 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27187 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27189 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27190 vec_sldw insn pattern.
27192 2019-05-17 Richard Biener <rguenther@suse.de>
27194 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27196 2019-05-17 Martin Liska <mliska@suse.cz>
27199 * toplev.c (output_stack_usage): With LTO and sanitizer it
27200 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27201 has no file location.
27203 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27206 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27207 sz0 is equal to sz1, instead return false in that case.
27209 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27210 has non-constant expression, force sctx.lane and use two
27211 argument IFN_GOMP_SIMD_LANE instead of single argument.
27212 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27213 two argument IFN_GOMP_SIMD_LANE without lhs.
27214 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27216 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27218 (LOOP_REQUIRES_VERSIONING): Or in
27219 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27220 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27222 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27223 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27224 from simd if clause if needed.
27226 2019-05-16 Richard Biener <rguenther@suse.de>
27228 * tree-affine.c (expr_to_aff_combination): New function split
27230 (tree_to_aff_combination): ... here.
27231 (aff_combination_expand): Avoid building a GENERIC tree.
27233 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27235 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27236 assemble_start_function and assemble_end_function calls.
27237 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27238 assemble_start_function and assemble_end_function.
27239 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27240 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27241 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27242 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27243 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27244 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27245 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27246 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27247 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27248 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27249 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27250 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27252 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27253 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27254 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27255 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27256 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27257 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27258 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27259 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27260 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27261 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27262 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27263 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27264 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27265 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27267 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27268 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27269 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27271 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27273 * tree-ssa-alias.c (alias_stats): Add
27274 aliasing_component_refs_p_may_alias and
27275 aliasing_component_refs_p_no_alias.
27276 (dump_alias_stats): Print aliasing_component_refs_p stats.
27277 (aliasing_component_refs_p): Update stats.
27279 2019-05-16 Martin Liska <mliska@suse.cz>
27282 * multiple_target.c (expand_target_clones): Do not allow
27283 target_clones being used with a symbol that is an alias.
27285 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27287 PR tree-optimization/90394
27288 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27289 positives rather than ICE for cases where (code2 == NE_EXPR
27290 && code1 == BIT_AND_EXPR).
27292 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27295 * tree-core.h (struct tree_decl_common): Document
27296 decl_nonshareable_flag for PARM_DECLs.
27297 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27298 * calls.c (expand_call): Don't try tail call if caller
27299 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27300 passed on the stack and callee needs to pass any arguments on the
27302 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27303 else if instead of series of mutually exclusive ifs. Handle
27304 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27305 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27307 * lto-streamer.h (LTO_major_version): Bump to 9.
27309 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27311 PR tree-optimization/90106
27312 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27313 new parameter as new internal function call, also move it to new
27315 (use_internal_fn): Pass internal function call to
27316 shrink_wrap_one_built_in_call_with_conds.
27318 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27320 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27322 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27323 safelen_int and set loop->dont_vectorize.
27325 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27328 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27330 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27332 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27333 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27334 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27337 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27340 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27341 define_insn_and_split to support SSE emulation.
27342 (*vec_extractv2sf_0): Likewise.
27343 (*vec_extractv2sf_1): Likewise.
27344 (*vec_extractv2si_0): Likewise.
27345 (*vec_extractv2si_1): Likewise.
27346 (*vec_extractv2si_zext_mem): Likewise.
27347 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27348 (vec_extractv2sf_1 splitter): Likewise.
27349 (vec_extractv2sfsf): Likewise.
27350 (vec_setv2si): Likewise.
27351 (vec_extractv2si_1 splitter): Likewise.
27352 (vec_extractv2sisi): Likewise.
27353 (vec_setv4hi): Likewise.
27354 (vec_extractv4hihi): Likewise.
27355 (vec_setv8qi): Likewise.
27356 (vec_extractv8qiqi): Likewise.
27357 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27358 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27359 (vec_extractv2sisi): Likewise.
27360 (vec_extractv4hihi): Likewise.
27361 (vec_extractv8qiqi): Likewise.
27362 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27363 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27364 (vec_initv2sisi): Likewise.
27365 (vec_initv4hihi): Likewise.
27366 (vec_initv8qiqi): Likewise.
27367 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27368 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27369 (vec_setv4hi): Likewise.
27370 (vec_setv8qi): Likewise.
27372 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27375 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27376 TARGET_MMX_WITH_SSE.
27377 (MMXMODE:*mov<mode>_internal): Likewise.
27378 (MMXMODE:movmisalign<mode>): Likewise.
27380 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27383 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27384 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27385 (sse2_cvtpd2pi): Ditto.
27386 (sse2_cvttpd2pi): Ditto.
27387 (*vec_concatv2sf_sse4_1): Ditto.
27388 (*vec_concatv2sf_sse): Ditto.
27389 (*vec_concatv2si_sse4_1): Ditto.
27390 (*vec_concatv2si): Ditto.
27391 (*vec_concatv4si_0): Ditto.
27392 (*vec_concatv2di_0): Ditto.
27394 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27397 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27399 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27402 * config/i386/sse.md (ssse3_palignrdi): Changed to
27403 define_insn_and_split to support SSE emulation.
27405 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27408 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27410 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27413 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27414 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27417 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27420 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27421 or TARGET_MMX_WITH_SSE.
27422 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27427 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27432 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27433 Changed to define_insn_and_split to support SSE emulation.
27435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27438 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27439 Changed to define_insn_and_split to support SSE emulation.
27441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27444 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27445 (*mmx_<emms>): This.
27446 (mmx_<emms>): New expander.
27448 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27451 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27453 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27455 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27458 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27463 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27468 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27469 TARGET_MMX_WITH_SSE.
27470 (*mmx_uavgv4hi3): Add SSE emulation.
27472 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27475 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27476 and TARGET_MMX_WITH_SSE.
27477 (*mmx_uavgv8qi3): Add SSE emulation.
27479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27482 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27483 maskmovdqu for __MMX_WITH_SSE__.
27485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27488 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27489 TARGET_MMX and TARGET_MMX_WITH_SSE.
27490 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27492 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27495 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27496 define_insn_and_split to support SSE emulation.
27498 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27501 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27502 and TARGET_MMX_WITH_SSE.
27503 (mmx_<code>v8qi3): Likewise.
27504 (smaxmin:<code>v4hi3): New.
27505 (umaxmin:<code>v8qi3): Likewise.
27506 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27507 (umaxmin:*mmx_<code>v8qi3): Likewise.
27509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27512 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27513 TARGET_MMX_WITH_SSE.
27514 (*mmx_pinsrw): Add SSE emulation.
27516 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27519 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27524 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27525 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27528 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27531 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27532 (sse_cvttps2pi): Likewise.
27534 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27537 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27538 TARGET_MMX_WITH_SSE.
27539 (mmx_pshufw_1): Add SSE emulation.
27540 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27541 TARGET_MMX_WITH_SSE to support SSE emulation.
27543 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27546 * config/i386/constraints.md (Yw): New constraint.
27547 * config/i386/mmx.md (*vec_dupv2si): Changed to
27548 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27549 support SSE emulation.
27551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27554 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27555 TARGET_MMX_WITH_SSE.
27556 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27558 (mmx_gt<mode>3): Likewise.
27560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27563 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27564 TARGET_MMX_WITH_SSE. Add SSE support.
27566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27569 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27570 TARGET_MMX_WITH_SSE.
27571 (any_logic:<code><mode>3): New.
27572 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27575 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27578 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27579 TARGET_MMX_WITH_SSE. Add SSE emulation.
27580 (mmx_<shift_insn><mode>3): Likewise.
27581 (ashr<mode>3): New.
27582 (<shift_insn><mode>3): Likewise.
27584 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27587 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27588 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27593 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27594 TARGET_MMX_WITH_SSE.
27595 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27598 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27601 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27602 TARGET_MMX_WITH_SSE.
27604 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27610 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27611 (plusminus:mmx_<plusminus_insn><mode>3): Check
27612 TARGET_MMX_WITH_SSE.
27613 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27614 (<plusminus_insn><mode>3): New.
27615 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27616 (*mmx_<plusminus_insn><mode>3): Likewise.
27618 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27621 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27622 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27624 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27625 define_insn_and_split to support SSE emulation.
27626 (mmx_punpcklbw): Likewise.
27627 (mmx_punpckhwd): Likewise.
27628 (mmx_punpcklwd): Likewise.
27629 (mmx_punpckhdq): Likewise.
27630 (mmx_punpckldq): Likewise.
27632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27633 Uros Bizjak <ubizjak@gmail.com>
27636 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27638 (ix86_split_mmx_pack): Likewise.
27639 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27641 (ix86_split_mmx_pack): Likewise.
27642 * config/i386/i386.md (mmx_isa): New.
27643 (enabled): Also check mmx_isa.
27644 * config/i386/mmx.md (any_s_truncate): New code iterator.
27645 (s_trunsuffix): New code attr.
27646 (mmx_packsswb): Removed.
27647 (mmx_packssdw): Likewise.
27648 (mmx_packuswb): Likewise.
27649 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27650 MMX packsswb/packuswb with SSE2.
27651 (mmx_packssdw): Likewise.
27652 * config/i386/predicates.md (register_mmxmem_operand): New.
27654 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27657 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27658 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27659 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27660 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27661 (ix86_vector_mode_supported_p): Likewise.
27662 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27664 2019-05-15 Martin Liska <mliska@suse.cz>
27666 PR middle-end/90478
27667 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27668 Check for overflow.
27670 2019-05-15 Richard Biener <rguenther@suse.de>
27672 * tree-into-ssa.c (pass_build_ssa::execute): Run
27673 update_address_taken before going into SSA.
27675 2019-05-15 Richard Biener <rguenther@suse.de>
27677 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27678 as __BIT_FIELD_REF with type with -gimple.
27680 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27682 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27683 semantically equivalent branches (left over after prior refactorings).
27685 2019-05-15 Richard Biener <rguenther@suse.de>
27687 PR tree-optimization/88828
27688 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27691 2019-05-14 Richard Biener <rguenther@suse.de>
27693 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27694 as __VIEW_CONVERT with -gimple.
27696 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27699 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27702 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27704 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27705 define_split to become a define_insn_and_split.
27707 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27709 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27711 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27712 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27713 (sibcall_epilogue): Adjust.
27714 (epilogue): Adjust.
27716 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27718 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27719 to unsupported ones.
27720 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27721 * config.host: Likewise.
27722 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27723 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27724 __svr4__]: Remove "brand" fallback.
27725 [!KSTAT_DATA_STRING]: Remove.
27726 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27728 (comdat_group): Likewise.
27729 (set_have_as_tls): Likewise.
27730 (gcc_cv_target_dl_iterate_phdr): Likewise.
27731 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27732 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27733 * configure: Regenerate.
27734 * doc/install.texi: Simplify Solaris target triplets.
27735 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27736 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27737 Remove Solaris 10 references.
27738 Remove obsolete Solaris bug reference.
27739 (Specific, sparc-sun-solaris2.10): Remove.
27741 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27743 * config/i386/i386.md (any_div): New code iterator.
27744 (paired_mod): New code attribute.
27745 (sgnprefix): Handle DIV and UDIV RTXes.
27747 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27748 and udivmod<mode>4 patterns using any_div code iterator.
27749 (divmod splitters): Macroize splitters using any_div code iterator.
27750 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27751 (*udivmodsi4_pow2_zext_2): Ditto.
27752 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27753 and *udivmod<mode>4_noext patterns using any_div code iterator.
27754 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27755 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27756 patterns using any_div code iterator.
27757 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27758 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27759 patterns using any_div code iterator.
27760 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27761 udivmodhiqi3 patterns using any_extend code iterator.
27763 2019-05-14 Richard Biener <rguenther@suse.de>
27764 H.J. Lu <hongjiu.lu@intel.com>
27766 PR tree-optimization/88828
27767 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27768 permuting in a single non-constant element not extracted
27771 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27773 * internal-fn.def (SIGNBIT): New.
27774 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27776 (signbitv4sf2): Likewise.
27778 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27781 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27782 next insn when the SRC reg is dead.
27784 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27786 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27787 (alloc_cand_and_find_basis): Ditto.
27788 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27789 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27790 (create_add_imm_cand, slsr_process_cast): Ditto.
27791 (slsr_process_copy, replace_mult_candidate): Ditto.
27792 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27793 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27794 (pass_strength_reduction::execute): Init the first NULL element.
27796 2019-05-13 Nathan Sidwell <nathan@acm.org>
27798 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27799 (run_attempt): Reformat line break.
27801 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27804 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27805 data registers in sibcall epilogues.
27806 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27808 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27811 * configure.ac (--enable-frame-pointer):
27812 Disable by default for cygwin and mingw.
27813 * configure: Regenerate.
27815 2019-05-13 Nathan Sidwell <nathan@acm.org>
27817 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27819 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27820 (gen_member_die): Move abstract origin check earlier. Only VARs
27821 can be static_inline_p. Simplify splicing control flow.
27823 2019-05-13 Richard Biener <rguenther@suse.de>
27825 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27827 (vect_build_slp_tree_1): Likewise.
27829 2019-05-13 Richard Biener <rguenther@suse.de>
27831 PR tree-optimization/90402
27832 * tree-if-conv.c (tree_if_conversion): Value number only
27833 the loop body by making the latch an exit of the region
27835 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27837 (do_rpo_vn): Deal with multiple edges into the entry block
27838 that are not backedges inside the region by skipping PHIs
27839 of the entry block.
27841 2019-05-13 Richard Biener <rguenther@suse.de>
27843 PR tree-optimization/90316
27844 * tree-ssa-pre.c (insert_aux): Fold into ...
27845 (insert): ... this function. Use a RPO walk to reduce the
27846 number of required iterations.
27848 2019-05-13 Martin Liska <mliska@suse.cz>
27850 PR tree-optimization/90416
27851 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27852 string instead of passing the second part as va_arg argument.
27854 2019-05-13 Martin Liska <mliska@suse.cz>
27856 PR gcov-profile/90380
27857 * gcov.c (handle_cycle): Do not support zero cycle count,
27858 it should not be possible.
27859 (path_contains_zero_cycle_arc): New function.
27860 (circuit): Ignore zero cycle arc counts.
27862 2019-05-13 Martin Liska <mliska@suse.cz>
27864 PR gcov-profile/90380
27865 * gcov.c (enum loop_type): Remove the enum and
27867 (handle_cycle): Assert that we should not reach
27869 (circuit): Use loop_found instead of a tri-state loop_type.
27870 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27873 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27876 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27877 (ix86_output_indirect_branch_via_reg): Use output mechanism
27878 accounting for __USER_LABEL_PREFIX__.
27879 (ix86_output_indirect_branch_via_push): Likewise.
27880 (ix86_output_function_return): Likewise.
27881 (ix86_output_indirect_function_return): Likewise.
27883 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27885 * doc/md.texi: Document use of code attributes in rtx patterns.
27886 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27887 * read-rtl.c (find_code): Split out search loops into...
27888 (maybe_find_code): ...this new function.
27889 (check_code_iterator): Make the error message more informative.
27890 (check_code_attribute): New function.
27891 (rtx_reader::rtx_alloc_for_name): Likewise.
27892 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27893 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27894 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27895 <max_opp> directly as an rtx code instead of via a match_operator.
27896 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27897 (<su>abd<mode>_3): Update accordingly.
27899 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27901 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27902 is given, print the state of the EH "save world" computation for
27905 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27908 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27909 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27911 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27913 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27914 Use pinsrd for TARGET_SSE4_1.
27915 * config/i386/sse.md (movdi_to_sse): Ditto.
27917 2019-05-10 Richard Biener <rguenther@suse.de>
27919 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27920 (do_rpo_vn): Initialize next_value_id.
27922 2019-05-10 Martin Liska <mliska@suse.cz>
27924 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27927 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27929 PR tree-optimization/90385
27930 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27931 arguments of the exit phis.
27934 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27935 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27937 (copy_tree_body_r): Likewise.
27938 (copy_fn): Set id.do_not_fold to true.
27940 2019-05-10 Martin Liska <mliska@suse.cz>
27942 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27943 Reapply changes from r269790.
27945 2019-05-10 Martin Liska <mliska@suse.cz>
27947 PR middle-end/90340
27948 * doc/invoke.texi: New params.
27949 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27950 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27951 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27953 * tree-switch-conversion.h (struct jump_table_cluster):
27956 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27958 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27960 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27962 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27964 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27966 PR rtl-optimization/88879
27967 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27969 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27972 * config/arm/arm.c (callee_saved_reg_p): Move before
27973 thumb_find_work_register.
27974 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27975 thumb_find_work_register. Only call df_get_live_out once.
27976 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27977 (thumb_find_work_register): Use
27978 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27979 algorithms to locate a spare call clobbered reg.
27981 2019-05-09 Martin Liska <mliska@suse.cz>
27983 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27984 and MAX_EXPR in GIMPLE FE format.
27986 2019-05-09 Martin Liska <mliska@suse.cz>
27988 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27989 * gimple-pretty-print.c (dump_gimple_bb_header):
27991 (pp_cfg_jump): Dump edge probability.
27992 * profile-count.c (profile_quality_as_string): Simplify
27993 with a static array.
27994 (parse_profile_quality): New function.
27995 (profile_count::dump): Simplify with a static array.
27996 (profile_count::from_gcov_type): Add new argument.
27997 * profile-count.h (parse_profile_quality): Likewise.
27998 * predict.h (set_hot_bb_threshold): New.
27999 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28001 * predict.c (get_hot_bb_threshold): Set from the new param.
28002 (set_hot_bb_threshold): New.
28004 2019-05-09 Richard Biener <rguenther@suse.de>
28006 PR tree-optimization/90395
28007 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28008 rewrite vector stores that throw internally.
28010 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28012 * cif-code.def (CHKP): Remove.
28015 * configure.ac (--enable-frame-pointer): Disable by default for
28017 * configure: Regenerate.
28019 2019-05-09 Alan Modra <amodra@gmail.com>
28022 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28023 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28024 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28025 cost for general <-> vsx when direct moves are available.
28026 Cost union classes at minimal cost for any reg in the class.
28027 Correct calculation for moves between vsx, float, and altivec.
28028 Don't return a low cost for moves between special regs. Don't
28029 use hard coded register numbers.
28030 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28031 (rs6000_ira_change_pseudo_allocno_class): New function.
28032 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28033 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28035 (movsi_internal1): Don't disparage vector alternatives.
28036 (mov<mode>_internal): Likewise, excepting alternative that
28038 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28039 we <- b alternative.
28041 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28044 PR tree-optimization/89060
28045 * tree-ssa-live.h (live_vars_map): New typedef.
28046 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28047 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28048 (struct compute_live_vars_data): New type.
28049 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28050 live_vars_at_stmt, destroy_live_vars): New functions.
28051 * tree-tailcall.c: Include tree-ssa-live.h.
28052 (live_vars, live_vars_vec): New global variables.
28053 (find_tail_calls): Perform variable life analysis before punting.
28054 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28055 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28057 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28058 Perform variable life analysis to select variables that really need
28060 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28061 instead set id->eh_landing_pad_dest and assert it is the same.
28062 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28064 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28065 Richard Earnshaw <rearnsha@arm.com>
28068 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28070 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28071 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28072 register if both the epilogue and prologue can use call-clobbered
28074 (thumb1_unexpanded_epilogue): Use
28075 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28076 picking temporaries for restoring high regs to match that of the
28077 prologue where possible.
28078 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28079 the list of work registers. Detect if the return address is still live
28080 at the end of the prologue and avoid using it for a work register if so.
28081 If the return address is not live, add LR to the list of pushable regs
28082 after the first pass.
28084 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28086 PR tree-optimization/90078
28087 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28088 (INFTY): Increase the value for infinite cost.
28089 (struct comp_cost): Promote type of members to int64_t.
28090 (infinite_cost): Don't set complexity in initialization.
28091 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28092 overflows to infinite_cost.
28093 (adjust_setup_cost): Promote type of parameter and cost computation
28095 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28097 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28098 cost computation to int64_t.
28099 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28100 int64_t's format specifier in dump.
28102 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28104 PR tree-optimization/90240
28105 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28106 with respect to scaling factor pre-computed for each basic block.
28107 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28108 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28109 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28110 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28111 live range for array of loop's basic blocks. Cleanup aux field of
28112 loop's basic blocks.
28114 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28116 PR tree-optimization/90356
28117 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28119 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28121 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28122 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28123 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28124 (ix86_handle_option): Handle -mavx512bf16.
28125 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28127 * config/i386/avx512bf16vlintrin.h: New.
28128 * config/i386/avx512bf16intrin.h: New.
28129 * config/i386/cpuid.h (bit_AVX512BF16): New.
28130 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28131 * config/i386/i386-builtin-types.def: Add new types.
28132 * config/i386/i386-builtin.def: Add new builtins.
28133 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28135 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28136 (ix86_option_override_internal): Handle BF16.
28137 (ix86_valid_target_attribute_inner_p): Ditto.
28138 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28139 * config/i386/i386-builtin.c (enum processor_features): Add
28141 (static const _isa_names_table isa_names_table): Ditto.
28142 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28143 (PTA_AVX512BF16): Ditto.
28144 * config/i386/i386.opt: Add -mavx512bf16.
28145 * config/i386/immintrin.h: Include avx512bf16intrin.h
28146 and avx512bf16vlintrin.h.
28147 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28148 avx512f_cvtneps2bf16_<mode><mask_name>,
28149 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28150 * config/i386/subst.md (mask_half): Add new subst.
28151 * doc/invoke.texi: Document -mavx512bf16.
28153 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28155 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28156 Delete declaration.
28157 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28158 (rs6000_debug_legitimize_reload_address): Delete.
28159 (rs6000_legitimize_reload_address_ptr): Delete.
28160 (rs6000_option_override_internal): Adjust.
28161 (mem_operand_gpr): Adjust comment.
28162 (legitimate_lo_sum_address_p): Ditto.
28163 (rs6000_legitimize_reload_address): Delete.
28164 (rs6000_debug_legitimize_reload_address): Delete.
28165 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28167 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28170 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28171 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28172 to compute vector element selector for both constant and variable
28175 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28177 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28178 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28179 ashrdi3_cvt using SWI48 mode iterator.
28181 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28183 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28184 (aarch64_<su>abd<mode>_3): Likewise.
28185 (*aarch64_<su>abd<mode>_3): New define_insn.
28186 (<sur>sad<vsi2qi>): New define_expand.
28187 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28188 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28189 (build_vect_cond_expr): Likewise.
28191 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28193 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28194 clobbers outside of accessible_reg_set.
28195 * config/i386/i386.c (ix86_conditional_register_usage):
28196 Disable register sets by clearing corresponding bits in
28197 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28198 call_used_regs and don't clear corresponding reg_names array members.
28200 2019-05-07 Richard Biener <rguenther@suse.de>
28202 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28203 not specified still compute a comp_vectype for invariant
28206 2019-05-07 Richard Biener <rguenther@suse.de>
28208 PR tree-optimization/90316
28209 * tree-ssa-pre.c (translate_vuse_through_block): When
28210 same_valid is NULL do not bother to search for a virtual
28212 (phi_translate_1): When operands changed we cannot keep
28213 the same value-number so do not bother to ask whether
28214 that's possible from translate_vuse_through_block.
28216 2019-05-07 Martin Liska <mliska@suse.cz>
28218 * bitmap.c (bitmap_register): Come up with
28219 alloc_descriptor_max_uid and assign it for
28221 (register_overhead): Use get_descriptor as
28223 (release_overhead): New.
28224 (bitmap_elem_to_freelist): Call it.
28225 (bitmap_elt_clear_from): Likewise.
28226 (bitmap_obstack_free): Likewise.
28227 (bitmap_move): Sensitively release memory.
28228 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28229 (bitmap_initialize): Initialize alloc_descriptor to zero.
28230 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28232 2019-05-07 Richard Biener <rguenther@suse.de>
28234 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28235 we build a SLP node. Remove max_size and limiting.
28236 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28238 2019-05-07 Richard Biener <rguenther@suse.de>
28240 PR tree-optimization/90316
28241 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28242 limit by reference.
28243 (walk_non_aliased_vuses): Take walking limit argument.
28244 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28245 walking if it is reached instead of just counting.
28246 (get_continuation_for_phi): Likewise.
28247 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28248 limiting to the callback.
28249 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28250 (vn_reference_lookup_3): Likewise.
28251 (vn_reference_lookup_pieces): Likewise.
28252 (vn_reference_lookup): Likewise.
28253 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28254 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28255 (avail_exprs_stack::lookup_avail_expr): Likewise.
28257 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28259 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28260 for comparaible types in the second direction even if first one
28261 hits incomparable type.
28263 2019-05-07 Richard Biener <rguenther@suse.de>
28266 * lto-wrapper.c (debug_objcopy): Use the original filename
28267 including archive offset for the filename used for -save-temps.
28269 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28271 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28274 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28275 Hongtao Liu <hongtao.liu@intel.com>
28279 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28280 Modified, original implementation isn't correct.
28282 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28284 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28285 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28286 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28287 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28288 (FRAME_POINTER_REGNUM): Change numbering.
28289 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28290 (alt_reg_names): Adjust.
28291 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28293 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28294 (DWARF_FRAME_REGISTERS): Delete.
28295 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28296 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28298 (REG_ALLOC_ORDER): Adjust.
28299 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28300 (REG_CLASS_CONTENTS): Adjust.
28301 (RETURN_ADDR_RTX): Change comment.
28302 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28304 (REGISTER_NAMES): Adjust.
28305 (ADDITIONAL_REGISTER_NAMES): Adjust.
28306 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28308 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28310 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28312 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28313 (DWARF_FRAME_REGISTERS): Adjust.
28314 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28316 (REG_ALLOC_ORDER): Adjust.
28317 (enum reg_class): Delete SPR_REGS.
28318 (REG_CLASS_NAMES): Delete SPR_REGS.
28319 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28320 (REGISTER_NAMES): Adjust.
28321 (ADDITIONAL_REGISTER_NAMES): Adjust.
28322 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28323 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28324 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28325 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28326 (htm_spr_regno): Delete.
28327 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28329 (rs6000_dbx_register_number): Adjust.
28331 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28333 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28335 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28337 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28338 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28340 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28342 PR tree-optimization/88709
28343 PR tree-optimization/90271
28344 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28345 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28346 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28348 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28349 of the store merging group is larger than
28350 PARAM_STORE_MERGING_MAX_SIZE parameter.
28351 (split_group): Add bzero_first argument. If set, always emit first
28352 the first store which must be = {} of the whole area and then for the
28353 rest of the stores consider all zero bytes as paddings.
28354 (imm_store_chain_info::output_merged_store): Check if first store
28355 is = {} of the whole area and if yes, determine which setting of
28356 bzero_first for split_group gives smaller number of stores. Adjust
28357 split_group callers.
28358 (lhs_valid_for_store_merging_p): Allow decls.
28359 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28361 (pass_store_merging::process_store): Likewise.
28363 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28366 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28367 handling of V1TImode.
28369 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28372 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28373 and enable_frame_pointer ...
28374 * configure.ac: ... here. Update help strings for
28375 --enable-frame-pointer.
28376 * configure: Regenerate.
28377 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28378 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28379 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28380 (USE_X86_64_FRAME_POINTER): Ditto.
28382 2019-05-06 Martin Liska <mliska@suse.cz>
28384 * config.gcc: Append to target_gtfiles and fix indentation.
28386 2019-05-06 Richard Biener <rguenther@suse.de>
28388 PR tree-optimization/90358
28389 * tree-vect-stmts.c (get_group_load_store_type): Properly
28390 detect unused upper half of load.
28391 (vectorizable_load): Likewise.
28393 2019-05-06 Richard Biener <rguenther@suse.de>
28395 PR tree-optimization/88828
28396 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28397 (simplify_vector_constructor): ...here. Handle constants in
28400 2019-05-06 Richard Biener <rguenther@suse.de>
28402 PR tree-optimization/90328
28403 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28404 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28405 is valid in the loop nest before using it.
28406 (initialize_data_dependence_relation): Adjust.
28407 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28408 loop as loop-nest to dr_may_alias_p.
28410 2019-05-06 Richard Biener <rguenther@suse.de>
28412 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28414 2019-05-06 Richard Biener <rguenther@suse.de>
28416 PR tree-optimization/90316
28417 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28418 compute target on demand.
28419 (get_continuation_for_phi): Remove code walking stmts to
28420 get to a target virtual operand which could end up being
28423 2019-05-06 Martin Liska <mliska@suse.cz>
28426 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28427 when -mabi is selected to a non-default version.
28429 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28430 Martin Liska <mliska@suse.cz>
28432 * Makefile.in: Add lto-dump.texi.
28433 * cgraph.h: Add new functions get_visibility_string and
28434 get_symtab_type_string.
28435 * doc/gcc.texi: Include lto-dump section.
28436 * doc/lto-dump.texi: New file.
28437 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28438 (parse_dump_option): Factor out this function.
28439 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28440 (parse_dump_option): Export the function.
28441 * symtab.c (symtab_node::get_visibility_string): New function.
28442 (symtab_node::get_symtab_type_string): Likewise.
28444 2019-05-06 Martin Liska <mliska@suse.cz>
28446 * config/i386/i386-builtins.c: New file.
28447 * config/i386/i386-builtins.h: New file.
28448 * config/i386/i386-expand.c: New file.
28449 * config/i386/i386-expand.h: New file.
28450 * config/i386/i386-features.c: New file.
28451 * config/i386/i386-features.h: New file.
28452 * config/i386/i386-options.c: New file.
28453 * config/i386/i386-options.h: New file.
28454 * config.gcc: Add new files into extra_objs and
28456 * config/i386/i386.c: Split content of the file
28457 into newly introduced files.
28458 * config/i386/i386.h: Declare common variables
28460 * config/i386/t-i386: Define dependencies for new files.
28462 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28465 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28466 Restrict 'all' variant to 32-bit configurations.
28467 (unaligned_loadhiu): Likewise.
28468 (unaligned_storehi): Likewise.
28469 (unaligned_storesi): Likewise.
28470 (unaligned_loadhis): Disable when compiling for thumb1.
28472 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28474 PR tree-optimization/90269
28475 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28478 2019-05-03 Martin Liska <mliska@suse.cz>
28480 * hash-map.h: Add is_empty function.
28481 * hash-set.h: Likewise.
28482 * hash-table.h: Likewise.
28483 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28484 elements () == 0 (and similar usages).
28485 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28486 * gimplify.c (gimplify_bind_expr): Likewise.
28487 (gimplify_switch_expr): Likewise.
28488 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28489 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28490 * postreload-gcse.c (dump_hash_table): Likewise.
28491 (gcse_after_reload_main): Likewise.
28492 * predict.c (combine_predictions_for_bb): Likewise.
28493 * tree-parloops.c (reduction_phi): Likewise.
28494 (separate_decls_in_region): Likewise.
28495 (transform_to_exit_first_loop): Likewise.
28496 (gen_parallel_loop): Likewise.
28497 (gather_scalar_reductions): Likewise.
28498 (try_create_reduction_list): Likewise.
28499 * var-tracking.c (dump_vars): Likewise.
28500 (emit_notes_for_changes): Likewise.
28501 (vt_emit_notes): Likewise.
28503 2019-05-03 Richard Biener <rguenther@suse.de>
28505 PR tree-optimization/90316
28506 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28509 2019-05-03 Richard Biener <rguenther@suse.de>
28511 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28512 peeling for gaps by loading only lower halves of vectors
28514 (vectorizable_load): Likewise.
28516 2019-05-03 Richard Biener <rguenther@suse.de>
28518 PR middle-end/89518
28519 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28521 2019-05-03 Richard Biener <rguenther@suse.de>
28523 PR middle-end/87314
28524 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28525 Handle STRING_CST vs DECL or STRING_CST.
28527 2019-05-03 Richard Biener <rguenther@suse.de>
28529 PR tree-optimization/88963
28530 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28531 vector loads feeding only BIT_FIELD_REFs to component
28532 loads. Rewrite stores fed by CONSTRUCTORs to component
28535 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28537 * opts.h (finish_options): Remove lang_mask argument.
28538 (print_help, help_option_argument): Declare.
28539 * opts.c (print_help): Remove forward declaration, no longer static.
28540 (finish_options): Remove lang_mask argument, don't call print_help
28542 * opts-global.c (decode_options): Adjust finish_option caller, call
28545 PR tree-optimization/90303
28546 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28547 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28549 2019-05-03 Richard Biener <rguenther@suse.de>
28551 PR tree-optimization/89698
28552 * gimple-fold.c (canonicalize_constructor_val): Early out
28553 for constants, handle unfolded INTEGER_CSTs as they appear in
28554 C++ virtual table ctors.
28556 2019-05-03 Richard Biener <rguenther@suse.de>
28558 * passes.c (execute_function_todo): Remove dead code.
28560 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28562 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28563 the internal register number, for any "real" register.
28565 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28567 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28568 correct numbers for TFHAR, TFIAR, TEXASR.
28570 2019-05-02 Richard Biener <rguenther@suse.de>
28572 PR tree-optimization/89653
28573 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28574 update-address-taken before the pass.
28575 * passes.def (pass_tree_loop_init): Put comment before it.
28577 2019-05-02 Richard Biener <rguenther@suse.de>
28579 PR tree-optimization/89509
28580 * tree-ssa-structalias.c (compute_dependence_clique): Look
28581 at the first subvar when determining whether it is restrict.
28583 2019-05-02 Richard Biener <rguenther@suse.de>
28585 PR tree-optimization/90273
28586 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28587 useless debug stmts.
28589 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28591 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28593 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28595 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28596 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28597 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28598 (vectorizable_reduction): Use the functions above to vectorize in a
28599 fully masked loop codes that don't have a conditional internal
28602 2019-05-02 Martin Liska <mliska@suse.cz>
28604 * cgraphclones.c: Call valid_attribute_p with 1 for
28606 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28607 it's for target attribute.
28608 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28609 Add new boolean argument.
28610 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28612 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28613 to ix86_valid_target_attribute_inner_p.
28614 (ix86_valid_target_attribute_p): Pass flags argument to
28615 ix86_valid_target_attribute_inner_p.
28616 (get_builtin_code_for_version): Use 0 as it's target attribute.
28618 2019-05-02 Martin Liska <mliska@suse.cz>
28620 * gcc.c (process_command): Add dummy file only
28622 * opts-global.c (decode_options): Pass lang_mask.
28623 * opts.c (print_help): New function.
28624 (finish_options): Print --help if help_option_argument
28626 (common_handle_option): Factor out content of OPT__help_
28628 * opts.h (finish_options): Add new argument.
28630 2019-05-02 Martin Liska <mliska@suse.cz>
28633 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28634 With -minline-all-stringops use inline expansion using 4B loop.
28635 * doc/invoke.texi: Document the change of
28636 -minline-all-stringops.
28638 2019-05-01 Jeff Law <law@redhat.com>
28640 PR tree-optimization/88797
28641 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28642 PHI feeds a conditional on the RHS of an assignment.
28644 2019-04-30 Andrew Waterman <andrew@sifive.com>
28645 Jim Wilson <jimw@sifive.com>
28647 * config/riscv/constraints.md (L): New.
28648 * config/riscv/predicates.md (lui_operand): New.
28649 (sfb_alu_operand): New.
28650 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28651 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28652 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28653 * config/riscv/risc.md (type): Add sfb_alu.
28654 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28655 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28656 (branch_zero<mode>): Delete.
28657 (mov<mode>cc): New.
28658 (mov<GPR:mode><X:mode>cc): Likewise.
28659 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28661 2019-04-30 Nathan Sidwell <nathan@acm.org>
28663 * tree.h (MARK_TS_EXP): New.
28665 2019-04-30 Martin Liska <mliska@suse.cz>
28667 * opts.c (enable_warning_as_error): Provide hints
28668 for unknown options.
28670 2019-04-30 Martin Liska <mliska@suse.cz>
28673 * doc/invoke.texi: Add missing dash for gas-locview-support
28674 and gno-as-locview-support.
28676 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28679 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28680 whitespace at the start of target attribute string.
28682 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28685 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28686 Define __ARM_FEATURE_ATOMICS.
28688 2019-04-30 Martin Liska <mliska@suse.cz>
28690 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28691 into built_in_function enum. Remove code for endp == 2 and
28692 use BUILT_IN_* constants.
28693 (gimple_fold_builtin): Call the function with fcode.
28695 2019-04-30 Martin Liska <mliska@suse.cz>
28697 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28698 DECL_FUNCTION_CODE into ix86_builtins enum before
28699 the switch statement.
28701 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28703 PR tree-optimization/89475
28704 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28707 2019-04-30 Martin Liska <mliska@suse.cz>
28709 PR translation/90274
28710 * opts.c (print_filtered_help): Wrap string in _(...).
28712 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28714 PR tree-optimization/90240
28716 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28718 PR tree-optimization/90078
28719 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28720 checks for infinite_cost overflow.
28722 2019-04-29 Jeff Law <law@redhat.com>
28724 * passes.def: Move -Wrestrict pass after copy propagation.
28726 2019-04-29 Maya Rashish <coypu@sdf.org>
28728 * config.gcc (default_gnu_indirect_function): Default to yes
28729 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28730 sparc*-*-netbsd*, x86_64-*-netbsd*.
28732 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28734 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28735 where cond2 is NE_EXPR.
28736 (is_value_included_in): Update comment.
28738 2019-04-29 Richard Biener <rguenther@suse.de>
28740 PR tree-optimization/90278
28741 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28742 EH on comparison simplification.
28744 2019-04-29 Jason Merrill <jason@redhat.com>
28746 PR c++/82081 - tail call optimization breaks noexcept
28747 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28748 nothrow function to a might-throw function into a tail call.
28750 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28752 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28753 (DDR_INNER_LOOP): Likewise.
28754 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28755 (initialize_data_dependence_relation): Likewise.
28756 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28758 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28760 PR rtl-optimization/90257
28761 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28765 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28769 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28772 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28775 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28777 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28779 2019-04-29 Richard Biener <rguenther@suse.de>
28781 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28784 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28786 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28787 varasm.h, and netbsd-protos.h.
28789 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28792 * config/i386/i386-protos.h (ix86_data_alignment): Change
28793 the second argument type to unsigned int.
28794 * config/i386/i386.c (ix86_data_alignment): Change "align"
28795 argument type to unsigned int.
28797 2019-04-27 Martin Liska <mliska@suse.cz>
28799 PR middle-end/90258
28800 * opt-suggestions.c (option_proposer::build_option_suggestions):
28801 When get_valid_option_values returns empty values, add the
28802 misspelling candidate.
28804 2019-04-26 Jim Wilson <jimw@sifive.com>
28806 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28808 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28809 Pass orig_mode to riscv_build_integer.
28810 (riscv_split_integer): Pass mode to riscv_move_integer.
28811 (riscv_legitimize_const_move): Likewise.
28812 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28813 promoted_mode. Replace force_reg call with code to load constant into
28814 promoted reg and then subreg it for the store.
28815 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28816 riscv_move_integer.
28818 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28820 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28823 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28825 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28826 commentary about the encoding of precision.
28828 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28830 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28831 * config/i386/t-freebsd64: New file.
28832 * config.gcc: Add the t-freebsd64 for multilib support.
28834 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28836 * doc/extend.texi (vector_size): Add missing comma after @xref.
28838 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28840 * BASE-VER: Set to 10.0.0.
28842 2019-04-25 Richard Biener <rguenther@suse.de>
28844 PR middle-end/89765
28845 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28846 VIEW_CONVERT_EXPR into one operating on an rvalue.
28848 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28851 * config/i386/i386.c (feature_priority): Moved to file scope.
28852 (processor_features): Likewise.
28853 (processor_model): Likewise.
28854 (_arch_names_table): Likewise.
28855 (arch_names_table): Likewise.
28856 (_feature_list): Removed.
28857 (feature_list): Likewise.
28858 (_isa_names_table): Moved to file scope. Add priority.
28859 (isa_names_table): Likewise.
28860 (get_builtin_code_for_version): Replace feature_list with
28861 isa_names_table. Update error message for P_ZERO priority.
28863 2019-04-25 Richard Biener <rguenther@suse.de>
28865 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28866 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28868 2019-04-24 Jeff Law <law@redhat.com>
28870 PR tree-optimization/90037
28871 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28872 * passes.def: Replace all instance of phi-only cprop with the
28873 lattice propagator. Move propagation pass from after erroneous
28874 path isolation to before erroneous path isolation.
28875 * tree-ssa-phionlycprop.c: Remove.
28877 2019-04-24 Richard Biener <rguenther@suse.de>
28879 PR middle-end/90213
28880 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28881 by size and BITS_PER_UNIT on poly-wide-ints.
28883 2019-04-25 Richard Biener <rguenther@suse.de>
28885 PR middle-end/90194
28886 * match.pd: Add pattern to simplify view-conversion of an
28889 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28891 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28892 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28893 for Go on 32 bit AIX.
28894 * config/rs6000/aix72.h: Likewise.
28896 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28899 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28900 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28902 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28905 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28906 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28907 for restored hard frame pointer.
28908 (s390_sched_dependencies_evaluation): Implement new target hook.
28909 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28911 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28913 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28914 * config/arc/arc.c (arc_init): Cleanup warning message.
28915 (arc_override_options): Likewise.
28917 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28920 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28921 a register if both if_true and if_false are MEMs.
28923 PR tree-optimization/90208
28924 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28925 after labels of new_bb, not before them.
28927 PR tree-optimization/90211
28928 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28929 which are not SSA_NAMEs.
28931 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28933 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28935 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28937 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28939 PR rtl-optimization/87979
28940 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28943 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28945 PR rtl-optimization/84032
28946 * modulo-sched.c (ps_insn_find_column): Change condition so that
28947 branch will always be the last insn in a row inside partial
28950 2019-04-23 Richard Biener <rguenther@suse.de>
28953 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28954 dest_single_pred_p argument.
28955 (remove_forwarder_block): Adjust.
28956 (remove_forwarder_block_with_phi): Likewise.
28958 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28959 Bernd Edlinger <bernd.edlinger@hotmail.de>
28960 Jakub Jelinek <jakub@redhat.com>
28963 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28964 if used with general-regs-only.
28965 (arm_conditional_register_usage): Don't add non-general regs if
28967 (arm_valid_target_attribute_rec): Handle general-regs-only.
28968 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28970 (TARGET_HARD_FLOAT_SUB): Define.
28971 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28972 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28973 (TARGET_REALLY_IWMMXT2): Likewise.
28974 * config/arm/arm.opt: Add -mgeneral-regs-only.
28975 * doc/extend.texi: Document ARM general-regs-only target.
28976 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28978 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28980 PR tree-optimization/90078
28981 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28982 checks for infinite_cost overflow.
28984 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28986 PR tree-optimization/90021
28987 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28988 and check univariate against it.
28989 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28990 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28992 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28996 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28999 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29002 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29004 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29006 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29008 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29009 names using operand format, rather than hard-wired.
29010 (speculation_barrier): Likewise.
29012 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29014 PR tree-optimization/88055
29015 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29016 (gen_one_condition): Use it if !HONOR_NANS.
29018 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29020 PR middle-end/90139
29021 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29022 assign_temp instead of gen_reg_rtx.
29024 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29026 PR translation/90118
29027 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29028 Add missing space before %<.
29030 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29032 PR rtl-optimization/87871
29033 * ira-lives.c (make_object_dead): Don't add conflicts to
29034 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29036 2019-04-18 Martin Sebor <msebor@redhat.com>
29038 PR middle-end/89797
29039 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29040 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29041 assuming type size fits in SHWI.
29043 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29046 * ipa-inline.c (flatten_function): New parameter UPDATE.
29047 (ipa_inline, early_inliner): Use it.
29049 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29051 * fold-const.c (int_const_binop): Return early on failure.
29053 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29055 PR middle-end/85164
29056 * combine.c (force_int_to_mode): Cast the argument rather than
29057 the result of known_alignment.
29058 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29060 2019-04-18 Richard Biener <rguenther@suse.de>
29063 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29065 (remove_forwarder_block): ... here.
29066 (remove_forwarder_block_with_phi): Also move debug stmts here.
29068 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29070 PR translation/79183
29071 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29072 inform where appropriate.
29074 2019-04-18 Richard Biener <rguenther@suse.de>
29076 * tree.c (get_qualified_type): Put found type variants at the
29077 head of the variant list.
29079 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29081 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29083 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29086 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29087 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29088 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29089 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29090 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29092 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29094 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29095 even for allocno's with no conflicts.
29096 (print_conflicts): Print an extra newline.
29098 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29100 * auto-inc-dec.c (attempt_change): Set the alignment of the
29101 temporary memory to that of the original.
29103 2019-04-17 Joao Moreira <jmoreira@suse.de>
29105 * targhooks.c (default_print_patchable_function_entry): Emit
29106 __patchable_function_entries section with writable flags to allow
29107 relocation resolution.
29109 2019-04-17 Jonny Grant <jg@jguk.org>
29111 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29113 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29115 PR middle-end/90095
29116 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29117 on lowpart SUBREGs.
29119 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29121 * config/arc/arc.c (arc_init): Format diagnostic string.
29122 (arc_override_options): Likewise.
29123 (check_if_valid_regno_const): Likewise.
29124 (arc_reorg): Likewise.
29126 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29129 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29131 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29133 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29134 (*movdi_update1): Use Pmode.
29135 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29136 (movdi_<mode>_update_stack): Rename to ...
29137 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29139 (*movsi_update1): Use Pmode.
29140 (*movsi_update2): Use Pmode.
29141 (movsi_update): Rename to ...
29142 (movsi_<mode>_update): ... this. Use Pmode.
29143 (movsi_update_stack): Fix condition.
29144 (*movhi_update1): Use Pmode. Fix argument to
29145 avoiding_indexed_address_p.
29146 (*movhi_update2): Ditto.
29147 (*movhi_update3): Ditto.
29148 (*movhi_update4): Ditto.
29149 (*movqi_update1): Ditto.
29150 (*movqi_update2): Ditto.
29151 (*movqi_update3): Ditto.
29152 (*movsf_update1, *movdf_update1): Merge, rename to...
29153 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29154 avoiding_indexed_address_p. Add "size" attribute.
29155 (*movsf_update2, *movdf_update2): Merge, rename to...
29156 (*mov<mode>_update2): This. Ditto.
29157 (*movsf_update3): Use Pmode. Fix argument to
29158 avoiding_indexed_address_p.
29159 (*movsf_update4): Ditto.
29160 (allocate_stack): Simplify condition. Adjust pattern names.
29162 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29165 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29166 whitespace at the start of target attribute string.
29168 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29171 * config/rs6000/power9.md: Add store forwarding bypass.
29173 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29176 * valtrack.c (dead_debug_insert_temp): Reset debug references
29177 to the return value of a call being removed.
29179 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29181 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29182 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29183 implement target hook.
29184 (arc_memory_move_cost): New function.
29185 (TARGET_REGISTER_MOVE_COST): Define.
29186 (TARGET_MEMORY_MOVE_COST): Likewise.
29187 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29188 (MEMORY_MOVE_COST): Likewise.
29190 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29192 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29193 (sibcall_value_insn): Likewise.
29194 * config/arc/constraints.md (Rs5): Remove.
29196 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29198 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29199 for last two fake registers.
29200 (arc_conditional_register_usage): Make sure fake frame and arg
29201 pointer regs are in general regs class.
29202 (FRAME_POINTER_MASK): Remove.
29203 (RETURN_ADDR_MASK): Remove.
29204 (arc_must_save_register): Use hard frame regnum.
29205 (frame_restore_reg): Use hard_frame_pointer_rtx.
29206 (arc_save_callee_saves): Likewise.
29207 (arc_restore_callee_saves): Likewise.
29208 (arc_save_callee_enter): Likewise.
29209 (arc_restore_callee_leave): Likewise.
29210 (arc_save_callee_milli): Likewise.
29211 (arc_eh_return_address_location): Likewise.
29212 (arc_check_multi): Use hard frame regnum.
29213 (arc_can_eliminate): Likewise.
29214 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29215 for register allocator.
29216 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29217 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29218 (FRAME_POINTER_REGNUM): Change it to a fake register.
29219 (HARD_FRAME_POINTER_REGNUM): Defined.
29220 (ARG_POINTER_REGNUM): Change it to a new fake register.
29221 (ELIMINABLE_REGS): Update.
29222 (REGISTER_NAMES): Update names.
29223 * config/arc/arc.md (LP_START): Remove.
29224 (LP_END): Likewise.
29225 (shift_si3_loop): Update pattern.
29227 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29229 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29230 to avoid delay slot scheduling.
29231 (arc_must_save_register): Don't save SP.
29232 * config/arc/arc.md (stack_tie): Remove.
29233 (UNSPEC_ARC_STKTIE): Likewise.
29235 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29236 Shiva Chen <shiva0217@gmail.com>
29238 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29239 code gen with large shift amount.
29241 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29243 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29246 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29249 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29250 print -m64/-mx32/-m32 if it is true.
29251 (ix86_debug_options, ix86_function_specific_print): Pass true as
29252 ADD_ABI_P to ix86_target_string.
29253 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29254 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29255 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29257 PR rtl-optimization/90082
29258 * dce.c (can_delete_call): New function.
29259 (deletable_insn_p, mark_insn): Use it.
29261 PR tree-optimization/90090
29262 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29264 (is_division_by_square): Likewise. Formatting fix.
29266 2019-04-16 Richard Biener <rguenther@suse.de>
29268 PR tree-optimization/56049
29269 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29270 equality check if alias-set zero will prevail.
29272 2019-04-15 Jeff Law <law@redhat.com>
29274 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29275 size and alignment as unsigned.
29277 2019-04-15 Richard Biener <rguenther@suse.de>
29280 * tree-loop-distribution.c (destroy_loop): Preserve correct
29283 2019-04-15 Richard Biener <rguenther@suse.de>
29285 PR tree-optimization/90071
29286 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29287 abnormal operands from def stmts.
29289 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29291 PR rtl-optimization/89794
29292 * combine.c (count_auto_inc): New function.
29293 (try_combine): Count how many auto_inc expressions there were in the
29294 original instructions. Ensure we have the same number in the new
29295 instructions. Remove the code that tried to ensure auto_inc side
29296 effects on i1 and i0 are not lost.
29298 2019-04-15 Richard Biener <rguenther@suse.de>
29301 * tree.h (auto_var_p): Declare.
29302 * tree.c (auto_var_p): New function, split out from ...
29303 (auto_var_in_fn_p): ... here.
29304 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29306 (new_var_info): Initialize it.
29307 (set_uids_in_ptset): Also set the shadow variable uid if required.
29308 (ipa_pta_execute): Postprocess points-to solutions assigning
29309 shadow variable uids for locals that may reach their containing
29310 function recursively.
29311 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29312 assert but instead check whether the points-to solution is
29315 2019-04-15 Martin Jambor <mjambor@suse.cz>
29318 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29321 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29323 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29325 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29326 Kito Cheng <kito.cheng@gmail.com>
29327 Shiva Chen <shiva0217@gmail.com>
29329 * config/nds32/nds32-md-auxiliary.c
29330 (nds32_legitimize_pic_address): Use new PIC pattern.
29331 (nds32_legitimize_tls_address): Use new TLS pattern.
29332 (nds32_output_symrel): New.
29333 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29334 (nds32_alloc_relax_group_id): Ditto.
29335 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29336 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29338 (nds32_group_tls_insn): Ditto.
29339 (nds32_group_float_insns): Ditto.
29340 * config/nds32/nds32.md (tls_le): New.
29343 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29345 * configure: Add nds32 target for dwarf2 debug_line checking.
29346 * configure.ac: Regenerated.
29348 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29351 * ipa-devirt.c (skip_in_fields_list_p): New.
29352 (odr_types_equivalent_p): Use it.
29354 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29357 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29358 instead of strncmp when checking for thumb and arm. Formatting fixes.
29360 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29362 * doc/install.texi: Document --with-target-system-zlib.
29364 2019-04-12 Martin Sebor <msebor@redhat.com>
29370 * targhooks.c (default_vector_alignment): Avoid assuming
29371 argument fits in SHWI.
29372 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29373 a shift expression.
29374 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29376 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29378 PR rtl-optimization/89965
29379 * dce.c: Include rtl-iter.h.
29380 (struct check_argument_load_data): New type.
29381 (check_argument_load): New function.
29382 (find_call_stack_args): Check for loads from stack slots still tracked
29383 in sp_bytes and punt if any is found.
29385 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29387 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29389 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29390 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29392 2019-04-12 Martin Liska <mliska@suse.cz>
29394 PR middle-end/89970
29395 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29397 (separate_attrs): Handle multiple 'default's.
29398 (expand_target_clones): Rework error handling code.
29400 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29403 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29404 mode of vector rather than mode of destination for move instruction.
29405 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29406 Use QI inner mode with V16QI vector mode.
29408 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29411 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29412 "invalid %%t operand" in output_operand_lossage message.
29414 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29416 * config/s390/predicates.md (permute_pattern_operand): New
29418 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29419 operand for the permute pattern.
29420 ("*vec_perm<mode>"): New insn definition.
29421 ("bswap<mode>"): Generate the permute pattern operand in the
29422 expander and perform the operand reloads for pre arch13 level
29424 ("*bswap<mode>_emu"): Rename to ...
29425 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29426 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29427 Add the USE operand for the permute pattern.
29428 ("*vec_set_bswap_vec<mode>"): Likewise.
29430 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29433 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29434 and gcc_unreachable if it fails, just call tree_to_uhwi which
29435 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29436 Start warning message with a lower-case letter. Formatting fixes.
29438 PR rtl-optimization/90026
29439 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29440 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29441 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29442 in cfglayout mode, use emit_barrier_after_bb.
29444 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29446 PR rtl-optimization/87763
29447 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29450 2019-04-11 Tom de Vries <tdevries@suse.de>
29452 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29453 max macro using statement expression.
29455 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29457 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29458 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29459 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29460 read_only_private_data_section using xcoff_private_rodata_section_name.
29461 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29463 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29466 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29468 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29470 PR rtl-optimization/89965
29471 * dce.c (sp_based_mem_offset): New function.
29472 (find_call_stack_args): Use sp_based_mem_offset.
29474 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29476 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29478 2019-04-11 Richard Biener <rguenther@suse.de>
29480 PR tree-optimization/90020
29481 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29482 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29483 * tree-ssa-pre.c (compute_avail): Use it to not put
29484 possibly trapping references after a call that might not
29485 return into EXP_GEN.
29486 * gcse.c (compute_hash_table_work): Do not elide
29487 marking a block containing a call if the call might not
29490 2019-04-11 Richard Biener <rguenther@suse.de>
29492 PR tree-optimization/90018
29493 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29494 Test both SLP and interleaving variants.
29496 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29498 * config/s390/8561.md: New file.
29499 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29500 Add arch13 cpu model.
29501 * config/s390/s390-opts.h (enum processor_type): Likewise.
29502 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29503 (s390_get_unit_mask): Likewise.
29504 (s390_is_fpd): Likewise.
29505 (s390_is_fxd): Likewise.
29506 * config/s390/s390.h (s390_tune_attr): Likewise.
29507 * config/s390/s390.md: Include arch13 pipeline description.
29508 * config/s390/s390.opt: Add arch13.
29510 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29512 PR rtl-optimization/87763
29513 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29515 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29517 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29519 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29520 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29521 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29522 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29524 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29526 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29527 "Although" in -fipa-icf documentation.
29529 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29530 of using multiple -g options.
29532 2019-04-10 Martin Liska <mliska@suse.cz>
29534 PR gcov-profile/89959
29535 * doc/gcov.texi: Make documentation of -x option
29538 2019-04-10 Richard Biener <rguenther@suse.de>
29540 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29542 (DR_GROUP_SAME_DR_STMT): Remove.
29543 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29544 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29545 replace with assert.
29546 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29547 (vect_record_grouped_load_vectors): Remove unreachable code.
29549 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29552 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29553 obsolete reference to N.
29555 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29557 PR middle-end/90025
29558 * expr.c (store_expr): Set properly size on the MEM passed to
29562 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29563 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29564 translation is needed, and when translation is needed, only append
29565 ... if the string length is hostsz or more bytes long. Avoid using
29568 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29571 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29572 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29574 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29575 differences directly.
29576 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29578 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29580 PR translation/90011
29581 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29583 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29585 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29586 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29587 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29588 trailing space from -gsplit-dwarf diagnostics.
29590 PR tree-optimization/89998
29591 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29592 instead of integer_type_node if possible, don't add ranges if return
29593 type is not compatible with int.
29594 * gimple-fold.c (gimple_fold_builtin_sprintf,
29595 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29598 2019-04-09 Martin Liska <mliska@suse.cz>
29600 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29601 * doc/install.texi: Document the new config.
29603 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29605 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29606 use gimple_expr_type for load and store calls. Skip over the
29607 condition argument in a conditional internal function.
29608 Protect use of TREE_INT_CST_LOW.
29610 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29613 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29614 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29615 trailing period from it too.
29617 2019-04-08 wu yuan <wuyuan5@huawei.com>
29619 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29620 * config/aarch64/aarch64.md: Add "tsv110.md".
29621 * config/aarch64/tsv110.md: New file.
29623 2019-04-08 Richard Biener <rguenther@suse.de>
29625 PR tree-optimization/90006
29626 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29629 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29632 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29634 (fma_root_node): Likewise.
29635 (func_fma_steering): Likewise.
29637 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29639 PR rtl-optimization/89865
29640 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29642 PR rtl-optimization/89865
29643 * config/i386/i386.md
29644 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29645 numbers not to clash with the additional operands[4].
29646 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29647 with extra register copy in the middle.
29649 2019-04-08 Martin Liska <mliska@suse.cz>
29651 PR gcov-profile/89961
29652 * doc/gcov.texi: Document data_file.
29653 * gcov.c (generate_results): Add data_info into JSON output.
29655 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29657 PR tree-optimization/89725
29658 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29659 loop's chrec as invariant symbol.
29660 * tree-chrec.h (chrec_contains_symbols): New parameter.
29661 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29662 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29663 function of loops not in DDR's loop_nest.
29664 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29666 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29669 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29672 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29675 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29676 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29678 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29680 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29681 targetm.fixed_condition_code_regs.
29683 2019-04-05 Richard Biener <rguenther@suse.de>
29687 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29688 debug bind stmts but reset them if they are not valid at the
29691 2019-04-05 Martin Liska <mliska@suse.cz>
29693 PR translation/89936
29694 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29695 order to wrap keywords or arguments.
29696 * collect2.c (main): Likewise.
29697 (scan_prog_file): Likewise.
29698 (scan_libraries): Likewise.
29699 * common/config/riscv/riscv-common.c
29700 (riscv_subset_list::parsing_subset_version): Likewise.
29701 (riscv_subset_list::parse_std_ext): Likewise.
29702 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29704 * config/arm/arm.c (arm_option_override): Likewise.
29705 * config/cris/cris.c (cris_print_operand): Likewise.
29706 * config/darwin-c.c (darwin_pragma_options): Likewise.
29707 (darwin_pragma_unused): Likewise.
29708 (darwin_pragma_ms_struct): Likewise.
29709 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29710 * config/i386/i386.c (print_reg): Likewise.
29711 (ix86_print_operand): Likewise.
29712 * config/i386/xm-djgpp.h: Likewise.
29713 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29714 * config/m32c/m32c.c (m32c_option_override): Likewise.
29715 * config/msp430/msp430.c (msp430_option_override): Likewise.
29716 * config/nds32/nds32.c (nds32_option_override): Likewise.
29717 * config/nvptx/mkoffload.c (main): Likewise.
29718 * config/rx/rx.c (rx_print_operand): Likewise.
29719 (valid_psw_flag): Likewise.
29720 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29721 (vms_pragma_nomember_alignment): Likewise.
29722 (vms_pragma_extern_model): Likewise.
29723 * lto-wrapper.c (compile_offload_image): Likewise.
29724 * omp-offload.c (oacc_parse_default_dims): Likewise.
29725 * symtab.c (symtab_node::verify_base): Likewise.
29726 * tlink.c (recompile_files): Likewise.
29727 (start_tweaking): Likewise.
29728 * tree-profile.c (parse_profile_filter): Likewise.
29730 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29732 PR tree-optimization/89956
29733 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29734 multiple negates of the same value.
29736 2019-04-04 Martin Sebor <msebor@redhat.com>
29738 PR middle-end/89957
29739 PR middle-end/89911
29740 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29741 have the same precision since the function crashes otherwise.
29742 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29743 has non-zero arguments.
29745 2019-04-04 Martin Sebor <msebor@redhat.com>
29747 PR middle-end/89934
29748 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29749 out if the number of arguments is less than expected.
29751 2019-04-04 Jeff Law <law@redhat.com>
29753 PR rtl-optimization/89399
29754 * ree.c (combine_set_extension): Use single_set rather than
29755 digging into PATTERN for items on the candidate list.
29756 (combine_reaching_defs): Likewise.
29758 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29760 PR rtl-optimization/46590
29761 * loop-invariant.c (find_defs): Move df_remove_problem and
29762 df_process_deferred_rescans to move_invariants.
29763 Move df_live_add_problem and df_live_set_all_dirty calls
29764 to move_invariants.
29765 (move_invariants): Likewise.
29766 (move_loop_invariants): Likewise, making the df_live calls
29767 conditional on -O. Remove the problem again if we added it
29770 2019-04-03 qing zhao <qing.zhao@oracle.com>
29772 PR tree-optimization/89730
29773 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29774 -flive-patching=inline-only-static.
29775 (can_inline_edge_by_limits_p): Add the checking for
29776 -flive-patching=inline-only-static and grant always_inline
29777 even when -flive-patching=inline-only-static is specified.
29779 2019-04-03 Jeff Law <law@redhat.com>
29781 PR rtl-optimization/81025
29782 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29784 2019-04-03 Richard Biener <rguenther@suse.de>
29786 PR tree-optimization/84101
29787 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29788 regs.h for hard_regno_nregs.
29789 (cfun_returns): New helper.
29790 (vect_model_store_cost): When vectorizing a store to a decl
29791 we return and the function ABI returns in a multi-reg location
29792 account for the possible spilling that will happen.
29794 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29796 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29797 displacement addresses for vector mode operands.
29799 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29801 * config/arc/arc.c (GMASK_LEN): Define.
29802 (arc_restore_callee_saves): Restore first blink when
29805 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29807 * doc/extend.texi: Add deprecated comment on sign-return-address
29808 function attribute and add mbranch-protection.
29809 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29811 2019-04-03 Richard Biener <rguenther@suse.de>
29814 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29815 the all target phony.
29817 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29821 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29822 Return false for variable DImode shifts.
29823 (dimode_scalar_chain::compute_convert_gain): Do not handle
29824 register count operand in variable DImode shifts.
29825 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29826 count argument of a variable shift instruction to a vector register.
29827 (dimode_scalar_chain::convert_reg): Remove support to convert
29828 count argument of a variable shift instruction.
29830 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29832 PR rtl-optimization/84206
29833 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29834 iterating over loop headers.
29836 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29838 PR rtl-optimization/85876
29839 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29840 beyond the original fence.
29842 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29844 * config.gcc: Mark spu* targets as deprecated/obsolete.
29846 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29848 * config/s390/s390-builtin-types.def: New builtin function type
29849 definitions. Remove unused types.
29850 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29851 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29852 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29853 overloaded builtins.
29854 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29855 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29856 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29857 (vec_double, vec_signed, vec_unsigned): Define to use the new
29858 overloaded builtins.
29859 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29862 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29864 * config/s390/s390-builtin-types.def: New builtin function type
29866 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29867 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29868 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29869 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29870 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29871 constant definitions.
29872 * config/s390/vecintrin.h (vec_search_string_cc)
29873 (vec_search_string_until_zero_cc): New builtin name definitions.
29874 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29876 ("vec_vstrs<mode>"): New insn definition.
29878 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29880 * config/s390/s390-builtin-types.def: Add new builtin function
29882 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29883 New overloaded builtins.
29884 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29886 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29887 (UNSPEC_VEC_SLDBYTE): ... this.
29888 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29889 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29891 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29892 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29893 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29895 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29897 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29898 New insn definition.
29899 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29900 * config/s390/vector.md (V_HW_HSD): ... here.
29902 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29904 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29905 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29906 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29907 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29908 New insn definitions.
29910 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29912 * config/s390/s390-builtin-types.def: Add new builtin function type.
29913 * config/s390/s390-builtins.def: Add overloaded builtin
29914 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29915 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29916 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29917 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29918 ("eltswap<mode>"): New expander.
29919 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29922 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29924 * config/s390/s390-builtin-types.def: Add new builtin function types.
29925 * config/s390/s390-builtins.def: Add overloaded builtin
29926 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29928 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29929 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29930 ("bswap<mode>"): New expander.
29931 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29933 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29935 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29936 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29937 vector builtin version number in __VEC__.
29939 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29941 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29943 (SFSI): New mode attribute.
29944 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29945 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29947 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29948 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29949 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29950 ("floatsi<mode>2"): Add wcefb instruction.
29952 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29954 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29955 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29957 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29958 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29959 support 32 bit fp-int conversions. Rename to ...
29960 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29961 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29962 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29963 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29966 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29968 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29969 if-then-else constructs if we can use the select instruction.
29970 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29972 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29974 * config/s390/s390.md ("*popcountdi_arch13_cc")
29975 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29977 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29978 Append _z196 to make it ...
29979 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29980 ("popcounthi2_z196"): ... this.
29981 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29982 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29984 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29986 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29987 certain compares for arch13 in order to make use of the condition
29988 code result produced by the new instructions.
29989 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29990 nxrk, and nxgrk instruction patterns.
29991 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29992 (inv_no): Add new code iterator together with some attributes.
29993 ("*andc_split_<mode>"): Disable splitter for arch13.
29994 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29995 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29996 ("*<ANDOR:bitops_name>c<GPR:mode>")
29997 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29998 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29999 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30000 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30002 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30004 * common/config/s390/s390-common.c (processor_flags_table): New
30006 * config.gcc: Support arch13 with the --with-arch= configure flag.
30007 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30008 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30009 * config/s390/s390.c (s390_get_sched_attrmask)
30010 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30011 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30012 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30013 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30014 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30016 * config/s390/s390.opt: Support arch13 as processor type in
30017 command line options.
30019 2019-04-02 Martin Liska <mliska@suse.cz>
30021 PR translation/89912
30022 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30023 Fix param description of graphite-max-arrays-per-scop.
30025 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30027 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30028 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30029 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30031 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30033 PR rtl-optimization/85412
30034 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30035 sel_sched_region_1, not after.
30037 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30039 PR rtl-optimization/86928
30040 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30041 compute_live if necessary.
30042 (sel_redirect_edge_and_branch): Likewise.
30044 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30046 PR rtl-optimization/89865
30047 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30048 register if it is a part of small class.
30050 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30052 PR rtl-optimization/87273
30053 * sel-sched-ir.c (merge_fences): Remove assert.
30055 2019-04-01 Richard Biener <rguenther@suse.de>
30057 PR tree-optimization/46590
30058 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30059 (dom_walker::m_reachability): Add in place of...
30060 (dom_walker::m_skip_unreachable_blocks): ...this.
30061 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30062 Move complex initialization ...
30063 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30064 lazily and initialize edge flags on each invocation.
30065 (dom_walker::bb_reachable): Use m_reachability.
30067 2019-04-01 Martin Liska <mliska@suse.cz>
30070 * opt-suggestions.c (option_proposer::build_option_suggestions):
30071 Add variant without any argument in order to provide better
30074 2019-04-01 Richard Biener <rguenther@suse.de>
30077 * gimple.c: Include langhooks.h.
30078 (gimple_get_alias_set): Treat enumeral types as the underlying
30081 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30082 Eric Botcazou <ebotcazou@adacore.com>
30084 PR rtl-optimization/89862
30085 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30086 that operates on the full registers for WORD_REGISTER_OPERATIONS
30089 2019-03-29 Jim Wilson <jimw@sifive.com>
30091 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30092 Clear MASK_RVC and then set if C subset supported.
30094 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30097 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30098 non-addressable complit into its initializer if it is volatile.
30100 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30102 * opts-common.c (integral_argument): Set errno properly in one case.
30104 2019-03-29 Martin Liska <mliska@suse.cz>
30106 * doc/invoke.texi: Remove -Wchkp from documentation.
30108 2019-03-29 Martin Liska <mliska@suse.cz>
30110 * dbgcnt.c (print_limit_reach): New function.
30113 2019-03-29 Martin Liska <mliska@suse.cz>
30115 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30116 (dbg_cnt_process_opt): Parse first tokens aas
30117 dbg_cnt_process_single_pair is also using strtok.
30119 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30121 PR rtl-optimization/87485
30122 * function.c (expand_function_end): Move stack_protect_epilogue
30123 before loading of return value into hard register(s).
30125 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30127 PR middle-end/89621
30128 * tree-inline.h (struct copy_body_data): Add
30129 dont_remap_vla_if_no_change flag.
30130 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30131 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30132 and remap_type_2 returns false.
30133 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30134 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30135 only from where it is copied to nested contexts.
30137 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30140 * config/i386/i386.md (RMW operation with LEA peephole):
30141 Use LEAMODE mode attribute instead of SWI mode iterator for
30144 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30147 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30148 Also process XEXP (src, 0) of a shift insn.
30150 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30152 PR middle-end/89725
30153 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30154 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30156 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30158 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30160 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30161 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30162 immediately after first one with df_analyze in between, but rather
30163 process all bbs, queueing ones that need second pass in a worklist,
30164 df_analyze, process queued debug insn changes and if second pass is
30165 needed, process bbs from worklist, df_analyze, process queued debug
30168 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30169 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30170 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30172 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30175 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30178 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30181 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30182 function for 32-bit MS_ABI.
30183 (function_value_ms_32): New function.
30185 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30187 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30188 (movdi): Call gen_movdi_symbol_save_scc.
30189 (gen_movdi_symbol_save_scc): New insn and split.
30191 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30193 PR rtl-optimization/89313
30194 * function.c (matching_constraint_num): New static function.
30195 (match_asm_constraints_1): Use it. Fixup white space and comment.
30196 Don't replace inputs with non-matching constraints which conflict
30197 with early clobber outputs.
30199 2019-03-27 Jeff Law <law@redhat.com>
30201 PR rtl-optimization/87761
30202 PR rtl-optimization/89826
30203 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30205 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30206 note problem to get REG_DEAD/REG_UNUSED notes updated.
30208 2019-03-27 Richard Biener <rguenther@suse.de>
30210 PR tree-optimization/89463
30211 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30212 queue edges to remove.
30213 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30214 dead stmts. Delay edge removal until PHIs are removed to
30215 make debug-stmt creation not confused by seemingly degenerate
30218 2019-03-27 Alan Modra <amodra@gmail.com>
30220 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30222 * config/rs6000/darwin.h: Likewise.
30223 * config/rs6000/rs6000.c: Likewise.
30225 2019-03-27 Alan Modra <amodra@gmail.com>
30227 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30228 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30230 2019-03-26 Andrew Waterman <andrew@sifive.com>
30231 Jim Wilson <jimw@sifive.com>
30233 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30234 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30235 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30236 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30237 (generic_alu): Add auipc to type list.
30238 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30239 (riscv_microarchitecture): Declare.
30240 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30241 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30243 (riscv_microarchitecture): New.
30244 (sifive_7_tune_info): New.
30245 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30246 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30248 (riscv_store_data_bypass_p): New.
30249 (riscv_option_override): Set riscv_microarchitecture from
30250 cpu->microarchitecture.
30251 * config/riscv/riscv.md: Include sifive-7.md.
30254 (auipc<mode>): Change type to auipc.
30255 (restore_stack_nonlocal): New.
30256 * config/riscv/sifive-7.md: New.
30257 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30259 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30262 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30263 Also process XEXP (src, 0) of a shift insn.
30265 2019-03-26 Richard Biener <rguenther@suse.de>
30267 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30268 (copy_debug_stmt): Likewise.
30269 (expand_call_inline): Likewise.
30270 (copy_bb): Avoid redundant lookup & set of gimple_block.
30271 * gimple-low.c (lower_gimple_return): Likewise.
30272 (lower_builtin_setjmp): Likewise.
30274 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30276 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30277 is constant 0, turn into static const data member initialized to false.
30278 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30279 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30281 2019-03-26 Jason Merrill <jason@redhat.com>
30282 Jakub Jelinek <jakub@redhat.com>
30284 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30286 (mem_alloc_description::release_object_overhead): Fix comment typos.
30287 * hash-table.h (hash_table::~hash_table): Call
30288 release_instance_overhead only if m_entries is non-NULL, otherwise
30289 call unregister_descriptor.
30291 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30293 PR tree-optimization/81740
30294 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30295 In case of outer loop vectorization, check for backward dependence
30296 at the inner loop if outer loop dependence is reversed.
30298 2019-03-26 Alan Modra <amodra@gmail.com>
30300 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30301 rs6000_vector_mem init. Correct wI and wJ comment.
30303 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30305 PR rtl-optimization/88347
30306 PR rtl-optimization/88423
30307 * sched-deps.c (sched_analyze_insn): Take into account that for
30308 tablejumps the barrier appears after a label and a jump_table_data.
30310 2019-03-25 Martin Sebor <msebor@redhat.com>
30313 * c-common.c (check_user_alignment): Rename local. Correct maximum
30314 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30315 convert it to UHWI when it fits.
30317 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30320 * dwarf2out.c (premark_used_variables): New function.
30321 (prune_unused_types_walk): Do not mark not premarked external
30323 (prune_unused_types): Call premark_used_variables.
30325 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30327 PR rtl-optimization/89676
30328 * lra-constraints.c (curr_insn_transform): Do match reload for
30329 early clobbers when the match was successful only for different
30332 2019-03-25 Martin Sebor <msebor@redhat.com>
30334 * doc/extend.texi (Common Type Attributes): Document vector_size.
30335 (Common Variable Attributes): Mention size constraint. Correct
30337 (Vector Extensions): Use @dfn when defining bas type. Clarify
30338 base type and size constraints.
30340 2019-03-25 Richard Biener <rguenther@suse.de>
30342 PR tree-optimization/89789
30343 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30344 changes from non-undefined back to undefined.
30346 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30348 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30349 heap string and a gc string, but since this variable is unknown to
30350 ggc the gc string might get reused and corrupted. Fixed by always
30351 using a heap string.
30353 2019-03-25 Richard Biener <rguenther@suse.de>
30355 PR tree-optimization/89779
30356 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30357 to remove IV defs, delay actual removal.
30358 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30359 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30360 very end, properly also reset loop control IV information.
30362 2019-03-25 Richard Biener <rguenther@suse.de>
30364 PR tree-optimization/89802
30365 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30366 move EH data to folded stmt.
30368 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30370 * config/s390/s390-builtin-types.def: Remove few unused types and
30371 fix sort order for others.
30373 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30375 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30376 expected and found types with -mdebug during builtin matching.
30378 2019-03-25 Richard Biener <rguenther@suse.de>
30380 PR middle-end/89790
30381 * fold-const.c (operand_equal_p): Revert last change with
30384 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30386 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30387 notes for the result of the __tls_get_addr calls.
30388 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30390 2019-03-24 Jeff Law <law@redhat.com>
30392 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30394 PR rtl-optimization/87761
30395 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30396 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30398 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30399 rescans. Reprocess blocks as needed, calling df_analyze before
30400 reprocessing. Always call df_analyze before fixing up debug bind
30403 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30405 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30408 2019-03-22 Andrew Pinski <apinski@marvell.com>
30410 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30411 attrribute for uxtw.
30413 2019-03-26 Jeff Law <law@redhat.com>
30415 PR rtl-optimization/87761
30416 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30417 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30418 (mips_split_move): Accept new INSN argument. Try to forward SRC
30419 into the next instruction.
30420 (mips_split_move_insn): Pass INSN through to mips_split_move.
30422 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30424 PR rtl-optimization/89676
30425 * lra-constraints.c (curr_insn_transform): Do match reload for
30426 early clobbers even if the match was successful.
30428 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30431 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30433 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30435 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30437 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30439 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30440 <avx512>_fmsub_<mode>_mask3<round_name>,
30441 <avx512>_fnmadd_<mode>_mask3<round_name>,
30442 <avx512>_fnmsub_<mode>_mask3<round_name>,
30443 avx512f_vmfmadd_<mode>_mask3<round_name>,
30444 avx512f_vmfmsub_<mode>_mask3<round_name>,
30445 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30446 instead of register_operand and %v instead of v for match_operand 1.
30447 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30448 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30449 <round_nimm_predicate> instead of register_operand and %v instead of v
30450 for match_operand 1.
30452 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30453 <avx512>_fmadd_<mode>_mask3<round_name>,
30454 <avx512>_fmsub_<mode>_mask<round_name>,
30455 <avx512>_fmsub_<mode>_mask3<round_name>,
30456 <avx512>_fnmadd_<mode>_mask<round_name>,
30457 <avx512>_fnmadd_<mode>_mask3<round_name>,
30458 <avx512>_fnmsub_<mode>_mask<round_name>,
30459 <avx512>_fnmsub_<mode>_mask3<round_name>,
30460 <avx512>_fmaddsub_<mode>_mask<round_name>,
30461 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30462 <avx512>_fmsubadd_<mode>_mask<round_name>,
30463 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30464 <round_nimm_predicate> instead of nonimmediate_operand.
30465 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30466 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30467 Use register_operand instead of <round_nimm_predicate> for the
30468 operand that needs to match output.
30469 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30470 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30471 Likewise. Formatting fixes.
30474 * config/i386/i386.c (enum ix86_builtins): Remove
30475 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30476 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30477 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30478 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30479 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30480 __builtin_ia32_vfmsubss3_mask3): New builtins.
30481 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30482 avx512f_vmfmadd_<mode>_mask3<round_name>,
30483 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30484 *avx512f_vmfmsub_<mode>_mask<round_name>,
30485 avx512f_vmfmsub_<mode>_mask3<round_name>,
30486 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30487 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30488 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30489 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30490 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30491 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30492 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30493 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30494 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30495 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30496 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30497 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30498 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30499 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30500 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30501 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30502 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30503 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30504 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30505 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30506 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30507 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30508 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30509 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30510 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30511 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30512 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30513 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30515 2019-03-21 Martin Sebor <msebor@redhat.com>
30517 PR tree-optimization/89350
30518 * builtins.c (compute_objsize): Also ignore offsets whose upper
30520 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30521 (builtin_memref::builtin_memref): Initialize new member.
30522 Allow EXPR to be null.
30523 (builtin_memref::extend_offset_range): Replace local with a member.
30524 Avoid assuming pointer offsets are unsigned.
30525 (builtin_memref::set_base_and_offset): Determine base object
30526 before computing offset range.
30527 (builtin_access::builtin_access): Handle memset.
30528 (builtin_access::generic_overlap): Replace local with a member.
30529 (builtin_access::strcat_overlap): Same.
30530 (builtin_access::overlap): Same.
30531 (maybe_diag_overlap): Same.
30532 (maybe_diag_access_bounds): Same.
30533 (wrestrict_dom_walker::check_call): Handle memset.
30534 (check_bounds_or_overlap): Same.
30536 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30537 Jakub Jelinek <jakub@redhat.com>
30540 * tree.c (fld_type_variant, fld_incomplete_type_of,
30541 fld_process_array_type): Call fld->pset.add and don't call
30542 add_tree_to_fld_list if it returns true.
30543 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30544 non-marked types from TYPE_NEXT_VARIANT list.
30545 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30547 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30549 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30550 to false, if true, don't alloc_entries during construction, but defer
30551 it to the first method that needs m_entries allocated.
30552 (hash_table::hash_table, hash_table::~hash_table,
30553 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30554 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30555 hash_table::clear_slot, hash_table::traverse_noresize,
30556 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30557 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30559 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30560 NO_INSERT instead of find_with_hash.
30561 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30562 hash_set::m_table): Add Lazy to template params of hash_table.
30563 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30564 * attribs.c (test_attribute_exclusions): Likewise.
30565 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30566 hash_set. Add tests for hash_set with Lazy = true.
30568 2019-03-21 Richard Biener <rguenther@suse.de>
30570 PR tree-optimization/89779
30571 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30572 checks with respect to released SSA names now having error_mark_node
30574 * fold-const.c (operand_equal_p): Likewise.
30576 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30579 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30581 (s390_optimize_register_info): Use global_not_special_regno_p to
30582 check for global regs.
30584 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30587 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30588 update this_alternative nor this_alternative_set.
30590 2019-03-19 Jim Wilson <jimw@sifive.com>
30593 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30594 align, size, offset. Use them to handle a BLKmode reference. Update
30596 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30598 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30600 PR rtl-optimization/89768
30601 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30602 instead of GEN_INT.
30603 (unroll_loop_runtime_iterations): Likewise.
30605 2019-03-19 Martin Sebor <msebor@redhat.com>
30607 PR tree-optimization/89644
30608 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30609 rather than endptr as an indicator of nul-termination.
30611 PR tree-optimization/89644
30612 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30613 arrays in determining sequence sizes in strncpy and stpncpy.
30615 2019-03-19 Martin Liska <mliska@suse.cz>
30617 PR middle-end/89737
30618 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30619 unlikely_edges if there's an edge that belongs to both these sets.
30621 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30624 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30625 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30626 go via a stack temporary.
30628 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30631 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30632 instead of gen_rtx_SUBREG.
30633 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30635 2019-03-19 Richard Biener <rguenther@suse.de>
30638 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30640 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30644 * tree.c (free_lang_data_in_decl): Do not free context of C++
30647 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30650 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30651 subs for the first alternative except when operands[3] is 1.
30654 * gimplify.c (gimplify_asm_expr): For output argument with
30655 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30658 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30660 PR rtl-optimization/89753
30661 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30662 explicit unrolling factor even more robust.
30664 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30667 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30668 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30669 signed zeros, do another copysign after the compensation.
30671 2019-03-18 Martin Sebor <msebor@redhat.com>
30673 PR tree-optimization/89720
30674 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30675 more conservatively, the same as anti-range.
30677 2019-03-18 Richard Biener <rguenther@suse.de>
30679 PR middle-end/88945
30680 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30681 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30682 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30683 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30685 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30687 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30688 Extend queue to 1024 entries.
30689 Add "consumed" field.
30690 (gomp_print_output): Remove print_index parameter.
30691 Add final parameter.
30692 Change limit to unsigned.
30693 Use consumed field to implement circular buffer.
30694 Detect interrupted print in final pass.
30695 Flush output at the end.
30696 (run): Update gomp_print_output usage.
30697 (main): Initialize kernargs->output_data.consumed.
30699 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30701 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30702 calculation of the minimum number of scalar iterations for
30703 fully-predicated loops.
30705 2019-03-18 Martin Jambor <mjambor@suse.cz>
30707 PR tree-optimization/89546
30708 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30709 any propagation to its children took place.
30711 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30714 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30715 parameter, and make use of it.
30716 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30718 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30720 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30721 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30722 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30723 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30724 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30725 match what the ops is doing.
30726 (push_multi_fp_blink): Likewise.
30727 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30728 compiling for size and elf target.
30729 (arc_save_callee_enter): Adjust note to match what enter/leave
30732 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30734 * config/arc/arc.md (tst_movb): Fix constraint.
30736 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30738 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30740 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30742 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30743 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30744 reg_alloc_order references.
30745 (size_alloc_order): Define.
30746 (arc_adjust_reg_alloc_order): New function.
30747 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30749 (ADJUST_REG_ALLOC_ORDER): Define.
30750 (HONOR_REG_ALLOC_ORDER): Likewise.
30752 2019-03-18 Richard Biener <rguenther@suse.de>
30755 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30756 loads and stores a bit more.
30758 2019-03-18 Richard Biener <rguenther@suse.de>
30761 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30762 load pessimization to stores as well.
30764 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30766 PR middle-end/86979
30767 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30768 successor, use NULL as its av set.
30770 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30772 PR rtl-optimization/89721
30773 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30775 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30778 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30779 When handling vec_extract, use modular arithmetic to allow
30780 constant selectors greater than vector length.
30781 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30782 V1TImode vectors to have constant selector values greater than 0.
30783 Use modular arithmetic to compute vector index.
30784 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30785 index for in-memory vectors. Correct code generation for
30786 in-register vectors.
30787 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30790 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30794 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30797 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30800 * tree.c (inchash::add_expr): Strip any location wrappers.
30801 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30802 after hash verification.
30805 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30806 SIGN_EXTEND and ZERO_EXTEND.
30808 2019-03-14 Jason Merrill <jason@redhat.com>
30809 Jakub Jelinek <jakub@redhat.com>
30811 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30812 than if is_empty (*slot).
30813 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30814 existing elt and for elt removal.
30815 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30816 of already removed elt.
30818 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30821 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30822 REG_EH_REGION note.
30824 2019-03-14 Martin Liska <mliska@suse.cz>
30827 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30829 2019-03-14 Richard Biener <rguenther@suse.de>
30832 * config/i386/i386.c (make_resolver_func): Properly set
30833 DECL_CONTEXT on the RESULT_DECL.
30834 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30836 2019-03-14 Richard Biener <rguenther@suse.de>
30838 * gimple-pretty-print.c: Include cfgloop.h.
30839 (dump_gimple_phi): Adjust.
30840 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30841 (pp_cfg_jump): Adjust.
30842 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30843 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30844 (lower_phi_internal_fn): Remove.
30845 (verify_gimple_call): Remove IFN_PHI special-casing.
30846 (dump_function_to_file): Dump IL state.
30847 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30848 done to deal with PHI nodes being present in non-SSA state.
30850 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30853 * multiple_target.c (create_dispatcher_calls): Change
30854 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30855 In the node->iterate_referring loop, push *ref rather than ref, call
30856 ref->remove_reference () and always pass 0 to iterate_referring.
30858 PR rtl-optimization/89679
30859 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30860 would contain a paradoxical SUBREG.
30862 2019-03-14 Richard Biener <rguenther@suse.de>
30864 PR tree-optimization/89710
30865 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30868 2019-03-14 Martin Liska <mliska@suse.cz>
30870 * coverage.c (coverage_begin_function): Stream also
30872 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30873 documentation about function declaration location.
30874 * gcov-dump.c (tag_function): Print whole range
30875 of function declaration.
30876 * gcov.c (struct function_info): Add end_column field.
30877 (function_info::function_info): Initialize it.
30878 (output_json_intermediate_file): Output {start,end}_column
30880 (read_graph_file): Read end_column.
30882 2019-03-14 Richard Biener <rguenther@suse.de>
30884 PR middle-end/89698
30885 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30886 that the access types are similar.
30888 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30890 PR tree-optimization/89703
30891 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30892 aren't compatible also with builtin_decl_explicit. Check pure
30893 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30894 and BUILT_IN_STPNCPY{,_CHK}.
30896 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30899 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30900 addr32 prefix to VSIB address for X32.
30901 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30903 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30904 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30905 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30906 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30907 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30908 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30909 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30910 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30911 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30912 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30913 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30914 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30915 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30916 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30917 (*avx512f_scatterdi<mode>): Likewise.
30919 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30922 * lra-constraints.c (inherit_in_ebb): Update
30923 potential_reload_hard_regs along with live_hard_regs.
30925 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30928 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30930 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30932 2019-03-13 Martin Sebor <msebor@redhat.com>
30934 PR tree-optimization/89662
30935 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30938 2019-03-13 Richard Biener <rguenther@suse.de>
30940 PR middle-end/89677
30941 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30942 throw FP expressions at tree-affine.
30944 2019-03-14 Richard Biener <rguenther@suse.de>
30946 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30947 dump negative integer constants using _Literal (type) -num.
30949 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30951 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30952 nonlocal_value member.
30954 PR middle-end/88588
30955 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30956 (ipa_simd_modify_function_body): Handle PHIs.
30958 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30960 * config/s390/s390.c (s390_option_override_internal): Use more
30961 aggressive inlining parameters.
30963 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30965 * config/s390/3906.md: New file.
30966 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30967 (LONGRUNNING_THRESHOLD): Remove.
30968 (MAX_SCHED_MIX_SCORE): Decrease.
30969 (MAX_SCHED_MIX_DISTANCE): Decrease.
30970 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30971 (struct s390_sched_state): New struct to hold scheduling state.
30972 (S390_SCHED_STATE_NORMAL): Remove.
30973 (S390_SCHED_STATE_CRACKED): Remove.
30974 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30975 (s390_get_sched_attrmask): Use new attribute.
30976 (s390_get_unit_mask): Use new units.
30977 (s390_is_fpd): New function.
30978 (s390_is_fxd): New function.
30979 (s390_is_longrunning): New function.
30980 (s390_sched_score): Use new functions.
30981 (s390_sched_reorder): Likewise.
30982 (s390_sched_variable_issue): Rework and use new functions.
30983 (s390_sched_init): Use new functions.
30984 * config/s390/s390.h (s390_tune_attr): Add z14.
30985 * config/s390/s390.md: Add z14.
30987 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30989 * config/s390/2964.md: Update pipeline description.
30990 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30991 (LONGRUNNING_THRESHOLD): Remove.
30992 (LATENCY_FACTOR): Remove.
30993 (s390_get_unit_mask): Add unit.
30994 (s390_sched_score): Use fxd/fpd.
30995 (s390_sched_variable_issue): Use fxd/fpd.
30997 2019-03-12 Martin Liska <mliska@suse.cz>
30999 * config/i386/i386.c: Reword an error message.
31001 2019-03-12 Martin Jambor <mjambor@suse.cz>
31003 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31004 terminate with newline.
31006 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31009 * config/s390/s390.md (tabort): Use %wd instead of
31010 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31011 letters and periods.
31012 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31013 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31016 PR middle-end/89663
31017 * builtins.c (expand_builtin_int_roundingfn,
31018 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31019 gcc_unreachable if validate_arglist fails.
31021 2019-03-12 Richard Biener <rguenther@suse.de>
31023 PR tree-optimization/89664
31024 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31025 free the occurance tree after the early out.
31027 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31029 PR middle-end/89655
31031 * vr-values.c (vr_values::update_value_range): If
31032 old_vr->varying_p (), don't update it, make new_vr also VARYING
31035 2019-03-11 Martin Liska <mliska@suse.cz>
31037 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31038 Fix double string quoting.
31040 2019-03-11 Martin Liska <mliska@suse.cz>
31042 * collect-utils.c (collect_wait): Wrap apostrophes
31043 in gcc internal format with %'.
31044 * collect2.c (main): Likewise.
31045 (scan_prog_file): Likewise.
31046 (scan_libraries): Likewise.
31047 * config/i386/i386.c (ix86_expand_call): Likewise.
31048 (ix86_handle_interrupt_attribute): Likewise.
31049 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31050 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31051 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31052 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31053 * symtab.c (symtab_node::verify_base): Likewise.
31054 * tree-cfg.c (verify_gimple_label): Likewise.
31055 * tree.c (verify_type_variant): Likewise.
31057 2019-03-11 Martin Liska <mliska@suse.cz>
31059 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31060 in a string format message and fix GNU coding style.
31061 (expand_builtin_set_thread_pointer): Likewise.
31062 * common/config/aarch64/aarch64-common.c
31063 (aarch64_rewrite_selected_cpu): Likewise.
31064 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31065 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31066 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31067 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31068 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31069 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31070 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31071 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31072 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31073 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31075 * common/config/riscv/riscv-common.c
31076 (riscv_subset_list::parsing_subset_version): Likewise.
31077 (riscv_subset_list::parse_std_ext): Likewise.
31078 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31079 (riscv_subset_list::parse): Likewise.
31080 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31081 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31082 (aarch64_override_options_internal): Likewise.
31083 (aarch64_validate_mcpu): Likewise.
31084 (aarch64_validate_march): Likewise.
31085 (aarch64_validate_mtune): Likewise.
31086 (aarch64_override_options): Likewise.
31087 * config/alpha/alpha.c (alpha_option_override): Likewise.
31088 * config/arc/arc.c (arc_init): Likewise.
31089 (parse_mrgf_banked_regs_option): Likewise.
31090 (arc_override_options): Likewise.
31091 (arc_expand_builtin_aligned): Likewise.
31092 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31093 (arm_expand_builtin): Likewise.
31094 * config/arm/arm.c (arm_option_check_internal): Likewise.
31095 (arm_configure_build_target): Likewise.
31096 (arm_option_override): Likewise.
31097 (arm_options_perform_arch_sanity_checks): Likewise.
31098 (arm_handle_cmse_nonsecure_entry): Likewise.
31099 (arm_handle_cmse_nonsecure_call): Likewise.
31100 (arm_tls_referenced_p): Likewise.
31101 (thumb1_expand_prologue): Likewise.
31102 * config/avr/avr.c (avr_option_override): Likewise.
31103 * config/bfin/bfin.c (bfin_option_override): Likewise.
31104 * config/c6x/c6x.c (c6x_option_override): Likewise.
31105 * config/cr16/cr16.c (cr16_override_options): Likewise.
31106 * config/cris/cris.c (cris_option_override): Likewise.
31107 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31108 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31109 * config/darwin.c (darwin_override_options): Likewise.
31110 * config/frv/frv.c (frv_expand_builtin): Likewise.
31111 * config/h8300/h8300.c (h8300_option_override): Likewise.
31112 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31113 (ix86_option_override_internal): Likewise.
31114 (warn_once_call_ms2sysv_xlogues): Likewise.
31115 (ix86_expand_prologue): Likewise.
31116 (split_stack_prologue_scratch_regno): Likewise.
31117 (ix86_warn_parameter_passing_abi): Likewise.
31118 * config/ia64/ia64.c (fix_range): Likewise.
31119 * config/m68k/m68k.c (m68k_option_override): Likewise.
31120 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31121 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31122 (mips_set_compression_mode): Likewise.
31123 * config/mmix/mmix.c (mmix_option_override): Likewise.
31124 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31125 * config/msp430/msp430.c (msp430_option_override): Likewise.
31126 * config/nds32/nds32.c (nds32_option_override): Likewise.
31127 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31128 (nios2_option_override): Likewise.
31129 (nios2_expand_custom_builtin): Likewise.
31130 * config/nvptx/mkoffload.c (main): Likewise.
31131 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31132 * config/pa/pa.c (fix_range): Likewise.
31133 (pa_option_override): Likewise.
31134 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31135 (riscv_option_override): Likewise.
31136 * config/rl78/rl78.c (rl78_option_override): Likewise.
31137 * config/rs6000/aix61.h: Likewise.
31138 * config/rs6000/aix71.h: Likewise.
31139 * config/rs6000/aix72.h: Likewise.
31140 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31141 * config/rs6000/freebsd64.h: Likewise.
31142 * config/rs6000/linux64.h: Likewise.
31143 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31144 (rs6000_expand_zeroop_builtin): Likewise.
31145 (rs6000_expand_mtfsb_builtin): Likewise.
31146 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31147 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31148 (rs6000_invalid_builtin): Likewise.
31149 (rs6000_expand_split_stack_prologue): Likewise.
31150 * config/rs6000/rtems.h: Likewise.
31151 * config/rx/rx.c (valid_psw_flag): Likewise.
31152 (rx_expand_builtin): Likewise.
31153 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31154 * config/s390/s390.c (s390_expand_builtin): Likewise.
31155 (s390_function_profiler): Likewise.
31156 (s390_option_override_internal): Likewise.
31157 (s390_option_override): Likewise.
31158 * config/sh/sh.c (sh_option_override): Likewise.
31159 (sh_builtin_saveregs): Likewise.
31160 (sh_fix_range): Likewise.
31161 * config/sh/vxworks.h: Likewise.
31162 * config/sparc/sparc.c (sparc_option_override): Likewise.
31163 * config/spu/spu.c (spu_option_override): Likewise.
31164 (fix_range): Likewise.
31165 * config/visium/visium.c (visium_option_override): Likewise.
31166 (visium_handle_interrupt_attr): Likewise.
31167 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31168 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31169 (dbg_cnt_process_opt): Likewise.
31170 * dwarf2out.c (output_dwarf_version): Likewise.
31171 * except.c (expand_eh_return): Likewise.
31172 * gcc.c (defined): Likewise.
31173 (driver_handle_option): Likewise.
31174 (process_command): Likewise.
31175 (compare_files): Likewise.
31176 (driver::prepare_infiles): Likewise.
31177 (driver::do_spec_on_infiles): Likewise.
31178 (driver::maybe_run_linker): Likewise.
31179 * omp-offload.c (oacc_parse_default_dims): Likewise.
31180 * opts-global.c (handle_common_deferred_options): Likewise.
31181 * opts.c (parse_sanitizer_options): Likewise.
31182 (common_handle_option): Likewise.
31183 (enable_warning_as_error): Likewise.
31184 * passes.c (enable_disable_pass): Likewise.
31185 * plugin.c (parse_plugin_arg_opt): Likewise.
31186 (default_plugin_dir_name): Likewise.
31187 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31188 (default_pch_valid_p): Likewise.
31189 * toplev.c (init_asm_output): Likewise.
31190 (process_options): Likewise.
31191 (toplev::run_self_tests): Likewise.
31192 * tree-cfg.c (verify_gimple_call): Likewise.
31193 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31194 (tree_inlinable_function_p): Likewise.
31195 * var-tracking.c (vt_find_locations): Likewise.
31197 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31199 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31200 only on the else branch.
31202 2019-03-11 Martin Liska <mliska@suse.cz>
31204 * gcov.c (output_intermediate_json_line): Print function
31206 (output_json_intermediate_file): Add new argument.
31207 * doc/gcov.texi: Document the change.
31209 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31211 PR rtl-optimization/89588
31212 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31213 explicit unrolling factor more robust.
31215 2019-03-11 Richard Biener <rguenther@suse.de>
31217 PR tree-optimization/89649
31218 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31219 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31220 on the prolog and epilog loops.
31221 (vect_loop_versioning): Return copy of loop.
31222 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31223 on the non-vectorized version of the loop.
31225 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31228 * config/i386/sse.md (*vec_extractv2di_0_sse):
31229 Add (=r,x) alternative and corresponding splitter.
31231 2019-03-10 Martin Jambor <mjambor@suse.cz>
31233 PR tree-optimization/85762
31234 PR tree-optimization/87008
31235 PR tree-optimization/85459
31236 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31237 it points to if there is a type changing MEM_REF. Adjust all callers.
31238 (build_accesses_from_assign): Disable total scalarization if
31239 contains_vce_or_bfcref_p returns true through the new parameter, for
31242 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31245 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31246 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31249 * common.opt (fdiagnostics-show-labels,
31250 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31251 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31252 gas-locview-support, ginline-points, ginternal-reset-location-views):
31253 Terminate description text with a dot.
31254 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31255 * config/mcore/mcore.opt (m210, m340): Likewise.
31256 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31257 mnops=): Start description text with a capital letter.
31258 * config/arc/arc.opt (msize-level=): Likewise.
31259 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31260 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31261 mnewlib): Likewise.
31262 * config/ft32/ft32.opt (msim): Likewise.
31263 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31264 (mnodiv, mnopm): Terminate description text with a dot.
31265 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31267 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31269 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31272 PR rtl-optimization/89634
31273 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31274 are modified in BB_END (e->src) instruction.
31276 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31279 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31280 messages more amenable to translation, and improve wording.
31282 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31284 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31285 ud- and du-chains between phases.
31287 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31290 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31291 instead of POLY_INT_CST.
31293 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31295 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31298 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31303 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31304 (_mm_storeu_si64): Ditto.
31306 2019-03-08 Martin Liska <mliska@suse.cz>
31309 * config/i386/i386.c (ix86_option_override_internal): Disable
31310 jump tables when retpolines are used.
31312 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31315 * ipa-split.c (execute_split_functions): Do not split
31316 'noinline' or 'section' function.
31318 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31321 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31322 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31323 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31326 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31327 from diagnostics. Formatting fixes.
31330 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31331 warn_odr diagnostics.
31334 * lra-constraints.c (process_alt_operands): Avoid one space before
31335 " at the end of line and another after " on another line in a string
31337 * attribs.c (handle_dll_attribute): Likewise.
31338 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31340 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31341 warning_at or inform messages in G_() if there is no ?:.
31343 PR tree-optimization/89550
31344 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31345 returned true. Formatting fixes.
31346 (expand_builtin_strnlen): Formatting fixes.
31347 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31348 if warning_at returned true.
31349 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31351 2019-03-08 Richard Biener <rguenther@suse.de>
31353 PR middle-end/89578
31354 * cfgloop.h (struct loop): Add owned_clique field.
31355 * cfgloopmanip.c (copy_loop_info): Copy it.
31356 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31358 * tree-inline.c (copy_loops): Remap owned_clique.
31359 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31360 * lto-streamer-out.c (output_cfg): Likewise.
31362 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31365 * config/darwin.c: Include intl.h.
31366 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31367 composing the message out of two separate parts.
31369 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31372 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31373 doesn't start with a capital letter and doesn't end with a dot.
31374 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31375 with a capital letter.
31376 (ix86_mangle_function_version_assembler_name): Likewise.
31377 (ix86_generate_version_dispatcher_body): Likewise.
31378 (fold_builtin_cpu): Likewise.
31379 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31380 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31381 translators, wrap full type name in %qs.
31383 PR translation/79999
31384 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31385 depend clause with source (or sink) modifier.
31386 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31389 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31390 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31391 (avx512f_load<mode>_mask): New define_expand.
31392 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31393 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31394 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31395 __builtin_ia32_movess_mask): New builtins.
31396 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31397 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31398 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31399 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31401 2019-03-07 Martin Jambor <mjambor@suse.cz>
31404 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31405 for extern inline functions.
31407 2019-03-07 Martin Jambor <mjambor@suse.cz>
31410 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31411 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31412 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31413 have multiple callees. At the end check if declarations match as
31414 opposed to cgraph_nodes.
31416 2019-03-07 Martin Liska <mliska@suse.cz>
31418 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31419 which is equivalent to searching for this in clones chain.
31420 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31421 names with a neighbour and special case first node in a chain.
31423 2019-01-25 Jason Merrill <jason@redhat.com>
31425 PR c++/80916 - spurious "static but not defined" warning.
31426 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31427 for an internal symbol with DECL_EXTERNAL.
31429 2019-04-07 Richard Biener <rguenther@suse.de>
31431 PR middle-end/89618
31432 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31433 * tree-inline.c (copy_loops): Simplify.
31435 2019-03-07 Martin Liska <mliska@suse.cz>
31437 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31439 2019-03-07 Richard Biener <rguenther@suse.de>
31441 PR tree-optimization/89595
31442 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31443 stmt iterator as reference, take boolean output parameter to
31444 indicate whether the stmt was removed and thus the iterator
31446 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31447 stmts created by folding.
31449 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31452 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31455 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31457 PR rtl-optimization/88845
31458 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31460 * lra.c (remove_scratches_1): New function.
31461 (remove_scratches): Use it.
31462 (lra_emit_move): Likewise.
31464 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31466 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31467 unaligned_access variable.
31468 * config/arc/arc.c (arc_override_options): Set unaligned access
31469 default on for HS CPUs.
31470 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31472 2019-03-06 Martin Liska <mliska@suse.cz>
31474 PR gcov-profile/89577
31475 * doc/gcov.texi: Prefer to use --coverage.
31476 * doc/sourcebuild.texi: Likewise.
31478 2019-03-02 Jason Merrill <jason@redhat.com>
31480 PR c++/86485 - -Wmaybe-unused with empty class ?:
31481 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31483 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31486 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31489 PR middle-end/89590
31490 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31491 exactly one argument.
31493 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31494 Richard Sandiford <richard.sandiford@arm.com>
31496 PR tree-optimization/89570
31497 * match.pd (vec_cond into cond_op simplification): Don't use
31498 get_conditional_internal_fn, use as_internal_fn (cond_op).
31500 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31503 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31504 to decide when to split off a non-zero offset from a symbol.
31505 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31506 in function symbols.
31508 2019-03-05 Richard Biener <rguenther@suse.de>
31510 PR tree-optimization/89594
31511 * tree-if-conv.c (pass_if_conversion::execute): Handle
31512 case where .LOOP_VECTORIZED_FUNCTION was removed.
31514 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31517 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31518 instead alloca it only when needed with the needed size.
31520 PR tree-optimization/89570
31521 * match.pd (vec_cond into cond_op simplification): Guard with
31522 vectorized_internal_fn_supported_p test and #if GIMPLE.
31524 PR tree-optimization/89566
31525 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31526 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31527 Punt if get_user_idx_format succeeds, but idx_format argument is
31528 not provided or doesn't have pointer type, or if idx_args is above
31529 number of provided arguments.
31531 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31533 PR tree-optimization/89437
31534 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31536 2019-03-04 Richard Biener <rguenther@suse.de>
31538 PR middle-end/89572
31539 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31542 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31544 PR tree-optimization/89487
31545 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31546 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31547 (distribute_loop): Don't do runtime alias check if there is non-
31548 addressable data reference.
31549 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31550 is a register variable.
31552 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31555 * config/arm/arm.md (cmpsi2_addneg): Use
31556 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31557 If operands[2] is 0 or INT_MIN, force use of subs.
31558 (*compare_scc splitter): Use gen_int_mode.
31559 (*negscc): Likewise.
31560 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31562 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31563 Monk Chiang <sh.chiang04@gmail.com>
31565 * common/config/riscv/riscv-common.c: Include sstream.
31566 (riscv_subset_list::to_string): New.
31567 (riscv_arch_str): Likewise.
31568 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31569 * config.in: Regen.
31570 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31571 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31572 (riscv_emit_attribute): New.
31573 (riscv_file_start): Emit attribute if needed.
31574 (riscv_option_override): Init riscv_emit_attribute_p.
31575 * config/riscv/riscv.opt (mriscv-attribute): New option.
31576 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31577 * configure: Regen.
31578 * doc/install.texi: Document --with-riscv-attribute.
31579 * doc/invoke.texi: Document -mriscv-attribute.
31581 * common/config/riscv/riscv-common.c:
31582 Include config/riscv/riscv-protos.h.
31583 (INCLUDE_STRING): Defined.
31584 (RISCV_DONT_CARE_VERSION): Defined.
31585 (riscv_subset_t): Declare.
31586 (riscv_subset_t::riscv_subset_t): New.
31587 (riscv_subset_list): Declare.
31588 (riscv_subset_list::riscv_subset_list): New.
31589 (riscv_subset_list::~riscv_subset_list): Likewise.
31590 (riscv_subset_list::parsing_subset_version): Likewise.
31591 (riscv_subset_list::parse_std_ext): Likewise.
31592 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31593 (riscv_subset_list::add): Likewise.
31594 (riscv_subset_list::lookup): Likewise.
31595 (riscv_subset_list::xlen): Likewise.
31596 (riscv_subset_list::parse): Likewise.
31597 (riscv_supported_std_ext): Likewise.
31598 (current_subset_list): Likewise.
31599 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31602 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31604 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31605 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31606 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31608 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31610 PR rtl-optimization/85899
31611 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31612 fallthru edges leading to the exit block.
31614 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31617 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31618 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31620 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31622 PR tree-optimization/89535
31623 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31624 for each operand. Calculate the fallback choice for mask operands
31625 and pass it to vect_get_vec_def_for_operand.
31627 2019-03-01 Richard Biener <rguenther@suse.de>
31629 PR middle-end/89541
31630 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31631 get virtual operands.
31632 (get_expr_operands): Handle CONST_DECL like other decls.
31634 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31636 PR middle-end/89503
31637 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31638 on DECL_P and EXPR_P.
31640 2019-03-01 Richard Biener <rguenther@suse.de>
31642 PR middle-end/89497
31643 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31644 argument, defaulted to zero.
31645 * passes.c (execute_function_todo): Pass down SSA update flags
31646 to cleanup_tree_cfg.
31647 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31648 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31650 (cleanup_tree_cfg): Get and pass down SSA update flags.
31652 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31655 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31656 early_lto_debug argument.
31658 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31660 PR tree-optimization/89536
31661 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31662 only whether bit #0 of the value is 0 instead of the entire value.
31664 2019-02-28 Marek Polacek <polacek@redhat.com>
31666 PR c++/87068 - missing diagnostic with fallthrough statement.
31667 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31668 at the end of a seq, save its location to walk_stmt_info.
31669 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31672 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31675 * tree.c (find_atomic_core_type): Move ahead in file.
31676 (check_base_type): Correctly compare alignments of atomic types.
31678 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31681 * config/i386/i386.c (get_builtin_code_for_version): Identify
31682 Westmere from PCLMUL, instead of AES.
31684 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31687 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31688 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31691 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31694 * config/aarch64/aarch64-option-extensions.def: Document it.
31695 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31698 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31701 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31702 builtins if they don't have a single scalar floating point argument.
31705 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31707 PR rtl-optimization/89490
31708 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31709 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31710 block section is not mergeable.
31712 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31715 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31716 old define_insn to ...
31717 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31718 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31719 Rename old define_insn to ...
31720 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31721 (thumb2_casesi_internal_pic): New define_expand. Rename old
31723 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31724 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31725 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31727 2019-02-27 Richard Biener <rguenther@suse.de>
31730 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31732 2019-02-27 Richard Biener <rguenther@suse.de>
31734 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31737 2019-02-27 Richard Biener <rguenther@suse.de>
31740 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31741 parameter, prefix section name with .gnu.debuglto_ if true.
31742 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31743 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31745 2019-02-27 Richard Biener <rguenther@suse.de>
31748 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31749 rather than on use_debug_types, doing what output_die does.
31750 (value_format): Likewise.
31752 2019-02-27 Martin Jambor <mjambor@suse.cz>
31753 Martin Sebor <msebor@redhat.com>
31755 * doc/invoke.texi (Warning Options): Reword description of
31756 -Wno-absolute-value.
31758 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31760 PR tree-optimization/89280
31761 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31762 builtin_setjmp_setup_bb): New functions.
31763 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31764 When visiting __builtin_setjmp_setup block, queue in special
31765 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31766 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31767 from visited after the loop if they don't have any visited successor
31770 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31772 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31774 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31776 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31779 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31780 with types other than sizetype/ssizetype.
31782 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31784 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31785 (enum sparc_processor_type): ...this.
31786 (enum sparc_code_model_type): New enumeration type.
31787 (enum sparc_memory_model_type): Tweak comments.
31788 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31790 (mcmodel): Use sparc_code_model enumeration and variable.
31791 (sparc_code_model): New enumeration.
31792 (mdebug): Add Undocumented marker.
31793 * config/sparc/sparc.h (enum cmodel): Delete.
31794 (sparc_cmodel): Likewise.
31795 (TARGET_CM_MEDLOW): Adjust to above renaming.
31796 (TARGET_CM_MEDMID): Likewise.
31797 (TARGET_CM_MEDANY): Likewise.
31798 (TARGET_CM_EMBMEDANY): Likewise.
31799 * config/sparc/sparc.c (sparc_cmodel): Delete.
31800 (sparc_option_override): Remove string/value mapping support for the
31801 code model. Move code and memory model support to after the handling
31802 of target flags. Do private machine setup last.
31803 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31804 (sparc_legitimize_reload_address): Likewise.
31805 (sparc_output_mi_thunk): Likewise.
31806 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31808 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31810 PR tree-optimization/89500
31811 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31812 (handle_builtin_strlen): Remove noncst_bound variable. Always
31813 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31814 cst if the first cst bytes starting at x are known to be non-zero,
31815 even if the string is not zero terminated. Don't try to modify
31816 *si for strnlen. Update strlen_to_stridx only for strlen or if
31817 we can prove strnlen returns the same value as strlen would.
31819 2019-02-26 Martin Liska <mliska@suse.cz>
31821 * alloc-pool.h (struct pool_usage): Remove extra
31823 * bitmap.h (struct bitmap_usage): Likewise.
31824 * ggc-common.c (struct ggc_usage): Likewise.
31825 * mem-stats.h (struct mem_usage): Likewise.
31826 (mem_alloc_description::dump): Print dash lines
31827 here and repeat header at the end of a table report.
31828 It's then more readable.
31829 * tree-phinodes.c (phinodes_print_statistics): Make
31830 horizontal alignment.
31831 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31832 * vec.c (struct vec_usage): Remove extra print_dash_line.
31833 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31835 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31837 * doc/extend.texi (__builtin_object_size):
31838 Use @pxref instead of @xref inside parenthesis.
31839 (__builtin_has_attribute): Add missing comma after @xref.
31840 (__builtin_object_size): Ditto.
31841 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31843 2019-02-26 Jeff Law <law@redhat.com>
31845 PR rtl-optimization/87761
31846 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31847 detect obviously dead insns and delete them.
31849 2019-02-26 Richard Biener <rguenther@suse.de>
31851 PR tree-optimization/89505
31852 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31853 to handle restrict pointed-to vars with multiple subvars
31856 2019-02-26 Richard Biener <rguenther@suse.de>
31858 PR tree-optimization/89489
31859 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31861 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31863 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31864 and move around comment.
31865 <BIT_AND_EXPR>: Likewise.
31866 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31868 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31871 * config/i386/i386.c (remove_partial_avx_dependency): Call
31872 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31873 after changing possibly many instructions to use that pseudo. Fix up
31874 insertion of v4sf_const0 setter at the start of bb.
31876 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31879 * doc/extend.texi (Variadic Pointer Args): New section.
31881 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31882 Martin Sebor <msebor@gmail.com>
31884 * common.opt (Wattribute-alias): Likewise.
31885 * doc/invoke.texi (Option Summary): List general form of
31886 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31887 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31888 Add cross-references.
31889 (-Wattribute-alias): Rewrite and correct default. Mention
31890 considered attributes (same as for -Wmissing-attributes).
31892 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31894 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31895 (_mm_cvtpd_ps): Likewise.
31896 (_mm_cvttpd_epi32): Likewise.
31899 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31900 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31903 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31905 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31908 * common/config/aarch64/aarch64-common.c
31909 (struct aarch64_option_extension): Add is_synthetic.
31910 (all_extensions): Use it.
31911 (TARGET_OPTION_INIT_STRUCT): Define hook.
31912 (struct gcc_targetm_common): Moved to end.
31913 (all_extensions_by_on): New.
31914 (opt_ext_cmp, typedef opt_ext): New.
31915 (aarch64_option_init_struct): New.
31916 (aarch64_contains_opt): New.
31917 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31918 * config/aarch64/aarch64-option-extensions.def
31919 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31920 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31921 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31922 Set is_synthetic to false.
31923 (crypto): Set is_synthetic to true.
31924 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31927 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31929 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31930 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31931 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31932 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31933 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31934 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31935 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31936 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31938 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31939 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31940 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31941 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31942 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31943 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31944 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31945 vfmlsl_laneq_high_f16): ... To this.
31946 * config/arm/neon.md: Update comments.
31948 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31950 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31951 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31952 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31953 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31954 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31955 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31956 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31957 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31959 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31960 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31961 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31962 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31963 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31964 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31965 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31966 vfmlslq_laneq_high_f16): ... To this.
31968 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31970 PR rtl-optimization/86096
31971 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31972 comparing mw_order values.
31974 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31977 * config/arm/arm.md (*subsi3_carryin_const): Use
31978 arm_neg_immediate_operand predicate instead of
31979 arm_not_immediate_operand, "L" constraint instead of "K" and
31980 print it using %n2 instead of %B2.
31981 (*subsi3_carryin_const0): New define_insn.
31982 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31983 instead of arm_not_operand and "I" constraint instead of "K" and
31984 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31985 another match_operand and in the condition check that it is negation
31987 (*subsi3_carryin_compare_const0): New define_ins.
31988 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31989 *subsi3_carryin_const.
31990 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31991 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31994 * config/arm.vfp.md (*negdf2_vfp): Use
31995 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31996 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31998 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32000 PR rtl-optimization/89445
32001 * simplify-rtx.c (simplify_ternary_operation): Don't use
32002 simplify_merge_mask on operands that may trap.
32003 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32004 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32005 second operand is CONST_VECTOR, check if any element could be zero.
32006 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32007 their operands can trap.
32009 2019-02-23 Martin Sebor <msebor@redhat.com>
32011 * gimple-ssa-sprintf.c (target_strtol): Rename...
32012 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32013 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32014 check for range error.
32016 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32019 * opts-common.c (prune_options): Also prune joined switches
32020 with Negative and RejectNegative.
32021 * config/i386/i386.opt (march=): Add Negative(march=).
32022 (mtune=): Add Negative(mtune=).
32023 * doc/options.texi: Document Negative used together with Joined
32024 and RejectNegative.
32026 2019-02-22 Martin Sebor <msebor@redhat.com>
32028 * doc/extend.texi (Other Builtins): Add
32029 __builtin_is_constant_evaluated.
32031 2019-02-22 Richard Biener <rguenther@suse.de>
32033 PR tree-optimization/87609
32034 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32036 2019-02-22 Jeff Law <law@redhat.com>
32038 PR rtl-optimization/87761
32039 * config/mips/mips.md: Add new combiner pattern to recognize
32040 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32042 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32045 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32046 destination register in peepholes generating patterns for ADDS/SUBS.
32047 (add<mode>3_compare0,
32048 *addsi3_compare0_uxtw, add<mode>3_compareC,
32049 add<mode>3_compareV_imm, add<mode>3_compareV,
32050 *adds_<optab><ALLX:mode>_<GPI:mode>,
32051 *subs_<optab><ALLX:mode>_<GPI:mode>,
32052 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32053 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32054 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32055 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32056 sub<mode>3_compare1): Allow stack pointer for source register.
32057 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32059 2019-02-22 Martin Sebor <msebor@redhat.com>
32061 PR tree-optimization/88993
32062 PR tree-optimization/88853
32063 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32065 (sprintf_dom_walker::call_info::is_string_func): New helper.
32066 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32067 for formatted string functions.
32068 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32070 2019-02-22 Martin Sebor <msebor@redhat.com>
32073 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32074 unreachable subexpressions.
32076 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32077 Hongtao Liu <hongtao.liu@intel.com>
32078 Sunil K Pandey <sunil.k.pandey@intel.com>
32081 * config/i386/i386-passes.def: Add
32082 pass_remove_partial_avx_dependency.
32083 * config/i386/i386-protos.h
32084 (make_pass_remove_partial_avx_dependency): New.
32085 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32087 (pass_data_remove_partial_avx_dependency): New.
32088 (pass_remove_partial_avx_dependency): Likewise.
32089 (make_pass_remove_partial_avx_dependency): Likewise.
32090 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32091 (*extendsfdf2): Add avx_partial_xmm_update.
32092 (truncdfsf2): Likewise.
32093 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32094 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32096 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32098 PR middle-end/85598
32099 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32102 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32105 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32106 (PTA_SKYLAKE): Add PTA_AES.
32107 (PTA_GOLDMONT): Likewise.
32109 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32111 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32112 instruction if enabled.
32113 (aarch64_override_options): Remove reference to return address key.
32115 2019-02-22 Richard Biener <rguenther@suse.de>
32117 PR tree-optimization/89440
32118 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32119 not necessary assert.
32121 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32124 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32125 (oacc_replace_fn_attrib_attr): ... this new function.
32126 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32127 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32129 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32131 * config/arm/arm-cpus.in (ares): Rename to...
32132 (neoverse-n1): ... This. Add ares as alias.
32133 * config/arm/arm-tables.opt: Regenerate.
32134 * config/arm/arm-tune.md: Likewise.
32135 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32137 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32139 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32140 * config/aarch64/aarch64-tune.md: Regenerate.
32141 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32143 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32145 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32146 (neoversen1_tunings): ... This.
32147 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32148 (neoverse-n1): New CPU.
32149 * config/aarch64/aarch64-tune.md: Regenerate.
32150 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32152 2019-02-22 Richard Biener <rguenther@suse.de>
32154 PR middle-end/87609
32155 * cfghooks.h (dependence_hash): New typedef.
32156 (struct copy_bb_data): New type.
32157 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32158 (duplicate_block): Likewise.
32159 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32160 (copy_bbs): Create and pass down copy_bb_data.
32161 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32162 (rtl_duplicate_bb): Likewise.
32163 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32164 remap dependence info.
32166 2019-02-22 Richard Biener <rguenther@suse.de>
32168 PR tree-optimization/87609
32169 * tree-core.h (tree_base): Document special clique values.
32170 * tree-inline.c (remap_dependence_clique): Do not use the
32171 special clique value of one.
32172 (maybe_set_dependence_info): Use clique one.
32173 (clear_dependence_clique): New callback.
32174 (compute_dependence_clique): Clear clique one from all refs
32175 before assigning it (again).
32177 2019-02-21 Martin Sebor <msebor@redhat.com>
32179 * doc/extend.texi (__clear_cache): Correct signature.
32181 2019-02-21 Ian Lance Taylor <iant@golang.org>
32184 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32185 than output_constant_def.
32186 (add_constant_to_table): New static function.
32187 (output_constant_def): Call add_constant_to_table.
32188 (tree_output_constant_def): Likewise.
32190 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32193 * builtins.c (fold_builtin_arith_overflow): If first two args are
32194 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32197 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32200 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32201 error for -mindirect-branch/-mfunction-return with incompatible
32204 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32207 * constraints.md (q): Remove.
32208 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32211 2019-02-21 Martin Jambor <mjambor@suse.cz>
32214 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32215 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32216 (omp_adjust_for_condition): ...here. Added necessary parameters.
32217 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32218 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32219 proper values to new parameters of omp_adjust_for_condition.
32221 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32223 PR middle-end/89412
32224 * expr.c (expand_assignment): If result is a MEM, use change_address
32225 instead of simplify_gen_subreg.
32227 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32228 David Malcolm <dmalcolm@redhat.com>
32230 PR middle-end/89091
32231 * fold-const.c (decode_field_reference): Return NULL_TREE if
32232 lang_hooks.types.type_for_size returns NULL. Check it before
32233 overwriting *exp_. Use return NULL_TREE instead of return 0.
32235 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32237 PR middle-end/88074
32238 PR middle-end/89415
32239 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32242 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32245 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32246 TARGET_SSE in addition to TARGET_SSE_MATH.
32248 (ix86_excess_precision): Ditto.
32249 (ix86_float_exceptions_rounding_supported_p): Ditto.
32250 (use_rsqrt_p): Ditto.
32251 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32253 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32256 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32257 linenum_arith_t when determining if two adjacent line spans are
32258 close enough to merge.
32259 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32260 lines within each line_span.
32262 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32265 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32266 paradoxical SUBREGS.
32268 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32271 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32272 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32273 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32276 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32278 * config/gcn/gcn.c (print_operand): Fix typo.
32280 2019-02-19 Richard Biener <rguenther@suse.de>
32282 PR middle-end/88074
32283 * toplev.c (do_compile): Initialize mpfr's exponent range
32284 based on available float modes.
32286 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32288 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32289 as long as the epilogue isn't completed.
32291 2019-02-18 Martin Sebor <msebor@redhat.com>
32293 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32294 __has_cpp_attribute, and __has_include.
32296 2019-02-18 Martin Sebor <msebor@redhat.com>
32298 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32300 2019-02-18 Martin Sebor <msebor@redhat.com>
32302 PR middle-end/89294
32303 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32305 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32307 2019-02-18 Richard Biener <rguenther@suse.de>
32309 PR tree-optimization/89296
32310 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32311 of no-warning flag to cases that might emit the bogus warning.
32313 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32316 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32318 * config/arm/vfp.md (*movdi_vfp): Likewise.
32319 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32320 "q" constraint for operands[0].
32323 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32324 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32325 pattern in a temporary buffer.
32326 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32327 than 64-operands[2].
32330 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32331 s390_indirect_branch_settings): Define unconditionally.
32332 (s390_set_current_function): Likewise, but guard the whole body except
32333 the s390_indirect_branch_settings call with
32334 #if S390_USE_TARGET_ATTRIBUTE.
32335 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32337 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32338 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32339 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32340 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32341 HOST_WIDE_INT_1U instead of 1ULL.
32342 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32343 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32344 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32345 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32347 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32350 2019-02-18 Martin Jambor <mjambor@suse.cz>
32352 PR tree-optimization/89209
32353 * tree-sra.c (create_access_replacement): New optional parameter
32354 reg_tree. Use it as a type if non-NULL and access type is not of
32356 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32357 to create_access_replacement.
32358 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32359 Check lacc is non-NULL before attempting to re-create it on the RHS.
32361 2019-02-18 Martin Liska <mliska@suse.cz>
32364 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32366 (symbol_table::free_edge): Recycle m_summary_id.
32367 * cgraph.h (get_summary_id): New.
32368 (symbol_table::release_symbol): Set m_summary_id to -1
32370 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32371 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32372 function_summary to fast_function_summary.
32373 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32374 * ipa-pure-const.c (class funct_state_summary_t):
32375 Switch from function_summary to fast_function_summary.
32376 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32377 (class ipa_ref_opt_summary_t): Switch from function_summary
32378 to fast_function_summary.
32379 * symbol-summary.h (class function_summary_base): New class
32380 that is created from base of former function_summary.
32381 (function_summary_base::unregister_hooks): New.
32382 (class function_summary): Inherit from function_summary_base.
32383 (class call_summary_base): New class
32384 that is created from base of former call_summary.
32385 (class call_summary): Inherit from call_summary_base.
32386 (struct is_same): New.
32387 (class fast_function_summary): New summary class.
32388 (class fast_call_summary): New summary class.
32389 * vec.h (vec_safe_grow_cleared): New function.
32391 2019-02-18 Martin Liska <mliska@suse.cz>
32393 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32394 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32395 * doc/tm.texi: Document new target hook.
32396 * doc/tm.texi.in: Likewise.
32397 * target.def: Add new target macro.
32398 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32401 2019-02-17 Alan Modra <amodra@gmail.com>
32404 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32405 output reg on add insn.
32406 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32408 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32411 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32412 (PMULHRSW): Likewise.
32413 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32415 (ssse3_pmulhrswv4hi3): New expander.
32417 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32419 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32420 MMX. Add isa attribute.
32422 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32424 PR rtl-optimization/66152
32425 * builtins.h (c_readstr): Declare.
32426 * builtins.c (c_readstr): Remove forward declaration. Add
32427 null_terminated_p argument, if false, read all bytes from the
32428 string instead of stopping after '\0'.
32429 * expr.c (string_cst_read_str): New function.
32430 (store_expr): Use string_cst_read_str instead of
32431 builtin_strncpy_read_str. Try to store by pieces the whole
32432 exp_len first, and only if that fails, split it up into
32433 store by pieces followed by clear_storage. Formatting fix.
32435 * config/i386/i386.md (*movqi_internal): Remove static from
32436 buf variable. Use output_asm_insn (buf, operands); return "";
32437 instead of return buf;.
32438 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32439 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32440 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32442 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32444 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32445 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32446 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32447 (CC1_SPEC): Likewise.
32448 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32450 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32452 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32453 the base address on 64-bit strict-alignment platforms.
32455 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32457 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32459 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32461 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32463 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32465 PR rtl-optimization/88308
32466 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32467 on copied instruction.
32469 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32471 * final.c (insn_current_reference_address): Replace test on JUMP_P
32472 with test on jump_to_label_p.
32473 * config/visium/visium-passes.def: New file.
32474 * config/visium/t-visium (PASSES_EXTRA): Define.
32475 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32476 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32477 (TRAMPOLINE_ALIGNMENT): Define.
32478 * config/visium/visium.c (visium_option_override): Do not register
32479 the machine-specific reorg pass here.
32480 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32482 (output_branch): Adjust threshold for long branch instruction.
32483 * config/visium/visium.md (cpu): Move around.
32484 (length): Adjust for the GR6.
32486 2019-02-15 Richard Biener <rguenther@suse.de>
32487 Jakub Jelinek <jakub@redhat.com>
32489 PR tree-optimization/89278
32490 * tree-loop-distribution.c: Include tree-eh.h.
32491 (generate_memset_builtin, generate_memcpy_builtin): Call
32492 rewrite_to_non_trapping_overflow on builtin->size before passing it
32493 to force_gimple_operand_gsi.
32495 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32498 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32500 * opth-gen.awk: Likewise.
32502 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32504 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32505 Enable MMX, SSE and SSE2 by default.
32506 * config/i386/i386.c (ix86_option_override_internal): Do not
32507 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32509 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32511 PR rtl-optimization/89354
32512 * combine.c (make_extraction): Punt if extraction_mode is narrower
32515 2019-02-14 Maya Rashish <coypu@sdf.org>
32517 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32518 * config/netbsd-d.c: New file.
32519 * config/t-netbsd: Add netbsd-d.o
32521 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32523 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32524 affects_type_identity to true for aarch64_vector_pcs.
32525 (aarch64_comp_type_attributes): New function.
32526 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32528 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32531 * config/arm/iterators.md (ANY64): Add V4HF.
32533 2019-02-14 Martin Liska <mliska@suse.cz>
32535 PR rtl-optimization/89242
32536 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32537 process a transformation.
32539 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32541 PR tree-optimization/89314
32542 * fold-const.c (fold_binary_loc): Cast strlen argument to
32543 const char * before dereferencing it. Formatting fixes.
32545 PR middle-end/89284
32546 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32548 2019-02-13 Ian Lance Taylor <iant@golang.org>
32550 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32551 and set current index for other optimizations.
32553 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32555 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32556 nonimmediate_operand as operand 2 predicate.
32557 (vec_set<VF2_512_256:mode>_0): Ditto.
32558 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32559 (*vec_concatv2si): Remove alternative 2.
32560 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32561 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32562 (vec_concatv2di): Split alternatives 4,5,6 to ...
32563 (*vec_concatv2di_0) ... new pattern.
32565 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32568 * config/arm/arm.c (ldm_stm_operation_p) Set
32569 addr_reg_in_reglist correctly for first register.
32570 (load_multiple_sequence): Remove dead base check.
32571 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32573 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32576 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32577 Expose as @aarch64_pred_mov.
32578 * config/aarch64/aarch64.c (aarch64_classify_address):
32579 Use expand_insn which legitimizes operands.
32581 2019-02-13 Martin Liska <mliska@suse.cz>
32583 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32584 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32585 and pointer_offset fields.
32586 (initialize_argument_information): Remove usage of dead
32588 * cgraph.h (struct cgraph_thunk_info): Remove
32589 add_pointer_bounds_args.
32590 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32592 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32594 * config/i386/i386.c (ix86_function_arg_advance): Remove
32596 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32597 (def_builtin): Remove usage of dead fields.
32598 (ix86_add_new_builtins): Likewise.
32599 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32600 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32601 (sem_function::init): Likewise.
32602 (sem_variable::merge): Likewise.
32603 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32604 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32605 * lto-cgraph.c (lto_output_node): Likewise.
32606 (lto_output_varpool_node): Likewise.
32607 (input_node): Likewise.
32608 (input_varpool_node): Likewise.
32609 * lto-streamer-out.c (lto_output): Likewise.
32610 * tree-inline.c (expand_call_inline): Remove usage of
32612 * tree-inline.h (struct copy_body_data): Likewise.
32613 * varpool.c (varpool_node::dump): Likewise.
32615 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32617 PR middle-end/89303
32618 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32619 into pt->vars_contains_escaped_heap instead of setting
32620 pt->vars_contains_escaped_heap to it.
32622 PR middle-end/89281
32623 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32624 INTVAL (size), compare it to GET_MODE_MASK instead of
32625 1 << GET_MODE_BITSIZE.
32628 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32629 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32632 2019-02-13 Martin Liska <mliska@suse.cz>
32635 * cfgrtl.c (remove_barriers_from_footer): New function.
32636 (try_redirect_by_replacing_jump): Use it.
32637 (cfg_layout_redirect_edge_and_branch): Likewise.
32639 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32641 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32642 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32643 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32644 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32645 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32646 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32648 * config/rs6000/rs6000.c (builtin_function_type)
32649 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32650 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32651 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32652 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32653 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32655 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32657 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32658 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32660 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32663 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32664 268678 and revision 268657.
32665 (*movti_internal): Likewise.
32667 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32670 * config/s390/s390.c (s390_decompose_address): Update comment.
32671 (s390_check_qrst_address): Reject invalid address forms after
32674 2019-02-12 Martin Liska <mliska@suse.cz>
32677 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32678 we need default values of funct_state for a function that
32681 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32683 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32684 the object to pick the size of stores on strict-alignment platforms.
32686 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32687 (*movdi_insn_sp32): Likewise.
32688 (*movdi_insn_sp64): Likewise.
32690 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32693 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32694 types that needs constructiong.
32695 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32697 2019-02-12 Richard Biener <rguenther@suse.de>
32699 PR tree-optimization/89253
32700 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32701 duplicate the loop.
32703 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32706 * input.c (selftest::test_line_offset_overflow): New selftest.
32707 (selftest::input_c_tests): Call it.
32709 2019-02-11 Martin Sebor <msebor@redhat.com>
32711 PR tree-optimization/88771
32712 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32713 when -Wstringop-overflow is set.
32714 (builtin_memref::builtin_memref): Adjust excessive upper bound
32715 only when lower bound is not excessive.
32716 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32717 -Wstringop-ovefflow.
32718 (maybe_diag_offset_bounds): Rename...
32719 (maybe_diag_access_bounds): ...to this.
32720 (check_bounds_or_overlap): Adjust for name change above.
32722 2019-02-11 Martin Sebor <msebor@redhat.com>
32725 * builtins.c (max_object_size): Move from here...
32726 * builtins.h (max_object_size): ...and here...
32727 * tree.c (max_object_size): ...to here...
32728 * tree.h (max_object_size): ...and here.
32730 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32732 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32733 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32734 for correct semantics.
32736 2019-02-11 Alan Modra <amodra@gmail.com>
32738 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32739 -mlongcall and -mpltseq.
32740 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32741 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32742 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32743 * config/rs6000/sysv4.opt (mpltseq): New option.
32744 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32745 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32746 support is lacking. Don't allow -mpltseq with -mbss-plt.
32747 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32748 -mpltseq given for ELFv1.
32749 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32750 Only use UNSPEC_PLTSEQ for inline PLT calls.
32751 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32752 use UNSPEC_PLTSEQ for inline PLT calls.
32753 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32754 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32755 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32756 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32757 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32758 (pltseq_mtctr_<mode>): Likewise.
32760 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32762 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32764 * configure: Regenerate.
32766 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32769 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32772 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32774 * function.c (assign_parm_setup_block): Use the stored
32775 size, not the passed size, when allocating stack-space,
32776 also for a parameter with alignment larger than
32777 MAX_SUPPORTED_STACK_ALIGNMENT.
32779 2019-02-11 Martin Liska <mliska@suse.cz>
32782 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32783 * ipa-inline.c (inline_small_functions): Likewise.
32784 * ipa-pure-const.c (propagate_pure_const): Likewise.
32785 (propagate_nothrow): Likewise.
32786 * ipa-reference.c (propagate): Likewise.
32787 * ipa-utils.c (struct searchc_env): Remove unused field.
32788 (searchc): Always search across AVAIL_INTERPOSABLE.
32789 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32790 the only called IPA pure const can properly not propagate
32791 across interposable boundary.
32792 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32794 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32796 * config/nds32/nds32.md (call_internal, call_value_internal,
32797 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32799 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32801 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32804 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32806 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32809 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32811 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32813 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32815 PR tree-optimization/89268
32816 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32817 if preds is non-NULL.
32819 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32822 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32825 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32827 * config/nds32/nds32.md (trap): New pattern.
32829 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32831 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32834 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32836 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32839 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32841 * ipa-visibility.c (localize_node): Also do not localize
32842 LDPR_PREVAILING_DEF_IRONLY_EXP.
32844 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32847 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32848 instead of type_with_linkage.
32850 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32853 * params.def (uninlined-function-insns, uninlined-function-time,
32854 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32855 bound so we don't get overflows.
32857 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32859 * config/rs6000/rs6000-string.c (expand_compare_loop,
32860 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32863 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32865 PR middle-end/89246
32866 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32867 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32868 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32870 2019-02-09 Alan Modra <amodra@gmail.com>
32873 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32874 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32877 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32879 PR middle-end/88560
32880 * lra-constraints.c (process_alt_operands): Don't increase reject
32881 for memory when offset memory is required.
32883 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32885 * config/s390/vector.md: Implement vector copysign.
32887 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32889 * expr.c (expand_constructor): Correct indentations.
32891 2019-02-08 Richard Biener <rguenther@suse.de>
32893 PR tree-optimization/89247
32894 * tree-if-conv.c: Include tree-cfgcleanup.h.
32895 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32896 (tree_if_conversion): Pass through predicate vector.
32897 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32898 inline, see if any if-converted loops we refrece in
32899 LOOP_VECTORIZED calls vanished and fixup.
32900 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32902 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32904 * config/s390/constraints.md (jdd): New constraint.
32906 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32909 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32910 upper 16 vector registers without TARGET_AVX512VL.
32911 (*movti_internal): Likewise.
32913 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32915 PR rtl-optimization/89234
32916 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32917 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32918 (copy_reg_eh_region_note_backward): Likewise.
32920 2019-02-08 Richard Biener <rguenther@suse.de>
32922 PR middle-end/89223
32923 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32924 doesn't fit in HWI.
32925 (analyze_subscript_affine_affine): Handle failure from
32926 initialize_matrix_A.
32928 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32930 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32933 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32935 PR tree-optimization/86637
32936 PR tree-optimization/89235
32937 * tree-vect-loop.c (optimize_mask_stores): Add an
32938 auto_purge_vect_location sentinel to ensure that vect_location is
32940 * tree-vectorizer.c
32941 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32942 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32943 to ensure that vect_location is purged on exit.
32944 (pass_slp_vectorize::execute): Likewise, replacing the manual
32946 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32948 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32950 * config/aarch64/iterators.md (max_opp): New code_attr.
32951 (USMAX): New code iterator.
32952 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32953 (aarch64_smax): Likewise.
32954 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32955 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32958 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32961 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32962 for TARGET_AVX512VL.
32963 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32965 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32967 * config/s390/s390-builtin-types.def: Add new types.
32968 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32969 (s390_vec_xlw4): Make the memory operand into a const pointer.
32970 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32972 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32973 a new vector type with the alignment of the scalar memory operand.
32975 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32976 Jakub Jelinek <jakub@redhat.com>
32979 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32980 arm_count_ldrdstrd_insns): New declarations.
32981 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32983 (valid_operands_ldrd_strd): New function.
32984 (arm_count_ldrdstrd_insns): New function.
32985 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32986 sets instead of single DImode set and define new insns to match this.
32988 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32990 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32991 Make it a C initializer.
32993 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32996 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32998 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33000 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33001 Use neon_dot<q> for type.
33002 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33004 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33006 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33007 Use neon_dot<q> for type.
33008 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33009 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33011 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33013 PR rtl-optimization/89225
33014 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33017 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33019 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33020 after restoring registers saved to allocate the frame on Windows.
33022 2019-02-06 Richard Biener <rguenther@suse.de>
33024 PR tree-optimization/89182
33025 * graphite.h (cached_scalar_evolution_in_region): Declare.
33026 * graphite.c (struct seir_cache_key): New.
33027 (struct sese_scev_hash): Likewise.
33028 (seir_cache): New global.
33029 (cached_scalar_evolution_in_region): New function.
33030 (graphite_transform_loops): Allocate and release seir_cache.
33031 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33032 cached_scalar_evolution_in_region.
33033 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33035 (scop_detection::graphite_can_represent_expr: Use
33036 cached_scalar_evolution_in_region.
33037 (scop_detection::stmt_simple_for_scop_p): Likewise.
33038 (find_params_in_bb): Likewise.
33039 (gather_bbs::before_dom_children): Likewise.
33040 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33041 (add_loop_constraints): Likewise.
33043 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33045 PR middle-end/89210
33046 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33047 operand to new_unary_operation only if both element types are integral
33048 and it isn't a widening conversion. Return NULL_TREE if
33049 new_unary_operation failed.
33051 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33054 * config/s390/s390.md: Remove load and test FP splitter.
33056 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33059 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33060 expand_compare_loop, expand_block_compare_gpr,
33061 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33062 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33063 #include "profile-count.h" and "predict.h" for types and functions
33064 needed to work with REG_BR_PROB notes.
33066 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33069 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33070 for the long branch case.
33072 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33075 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33076 can throw, non-call exceptions are enabled and we can't delete
33077 dead exceptions or alter cfg. Set must_clean if
33078 delete_insn_and_edges returns true, don't set it blindly for calls.
33079 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33081 PR rtl-optimization/89195
33082 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33083 of the original MEM.
33085 2019-02-05 Martin Liska <mliska@suse.cz>
33087 PR gcov-profile/89000
33088 * gcov.c (function_summary): Remove argument.
33089 (file_summary): New function.
33090 (print_usage): Replace tabs with spaces.
33091 (generate_results): Use new function file_summary.
33093 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33096 * optabs.c (prepare_cmp_insn): Pass x and y to
33097 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33099 2019-02-05 Richard Biener <rguenther@suse.de>
33101 PR middle-end/89150
33102 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33103 (struct bitmap_element): Drop chain_prev so we properly recurse on
33104 the prev member, supporting tree views.
33105 (struct bitmap_head): GTY skip the obstack member.
33107 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33110 * doc/extend.texi (Vector Extensions): Add an example of using vector
33111 types together with x86 intrinsics.
33113 2019-02-04 Alan Modra <amodra@gmail.com>
33115 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33116 str[] size to 160, and comment.
33118 2019-02-04 Alan Modra <amodra@gmail.com>
33120 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33121 (rs6000_pltseq_template): Guard output of TLS markers with
33122 TARGET_TLS_MARKERS.
33123 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33124 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33125 to use inline PLT sequences.
33126 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33127 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33128 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33130 2019-02-04 Martin Liska <mliska@suse.cz>
33133 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33134 out when ipa_fn_summaries does not contain entry for callee.
33136 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33138 * config/sparc/sparc.h: Remove superfluous blank lines.
33139 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33140 (got_register_rtx): ...this.
33141 (sparc_got): Adjust to above renaming.
33142 (sparc_tls_got): Likewise.
33143 (sparc_delegitimize_address): Likewise.
33144 (sparc_output_mi_thunk): Likewise.
33145 (sparc_init_pic_reg): Likewise.
33146 (save_local_or_in_reg_p): Fix test on the GOT register.
33147 (USE_HIDDEN_LINKONCE): Move around.
33148 (get_pc_thunk_name): Likewise.
33149 (gen_load_pcrel_sym): Likewise.
33150 (load_got_register): Likewise.
33152 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33154 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33155 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33157 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33159 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33160 into consideration.
33162 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33164 * config.gcc (with_nds32_lib, glibc):
33165 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33166 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33167 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33169 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33172 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33173 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33174 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33175 (*rcpsf2_sse): Ditto.
33176 (*rsqrtsf2_sse): Ditto.
33177 (sse4_1_round<mode<2): Ditto.
33179 2019-02-03 Richard Biener <rguenther@suse.de>
33182 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33185 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33187 PR middle-end/87887
33188 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33189 Punt with warning on aggregate return or argument types. Ignore
33190 type/mode checking for uniform arguments.
33192 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33194 * combine.c (try_combine): Do not print "Can't combine" messages unless
33195 printing failed combination attempts.
33197 2019-02-01 Martin Jambor <mjambor@suse.cz>
33200 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33201 segment and global segment variables before making them static.
33203 2019-02-01 Martin Jambor <mjambor@suse.cz>
33205 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33206 missed optimization dump with dump_enabled_p.
33208 2019-02-01 Richard Biener <rguenther@suse.de>
33210 PR middle-end/88597
33211 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33212 the instantiate cache.
33213 (instantiate_scev_binary): Elide second operand procesing
33214 if equal to the first.
33215 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33216 (chrec_contains_undetermined): Likewise.
33217 (tree_contains_chrecs): Likewise.
33219 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33221 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33223 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33225 PR tree-optimization/89143
33226 * wide-int-range.h (wide_int_range_absu): Declare.
33227 * wide-int-range.cc (wide_int_range_absu): New function.
33228 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33230 PR tree-optimization/88107
33231 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33232 instead of assertion that eh_region_outermost is non-NULL, if it
33233 is NULL, set *ALL to true and return NULL.
33234 (move_sese_region_to_fn): Adjust caller, if all is set, call
33235 duplicate_eh_regions with NULL region.
33237 2019-02-01 Richard Biener <rguenth@suse.de>
33239 PR rtl-optimization/88593
33240 * mode-switching.c (optimize_mode_switching): Free dominators before
33241 calling cleanup_cfg.
33243 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33245 PR tree-optimization/88932
33246 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33248 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33250 PR middle-end/89137
33251 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33252 bogus clang warning.
33254 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33257 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33258 alternative to avoid partial SSE register stall for TARGET_AVX.
33259 (truncdfsf2): Ditto.
33260 (sse4_1_round<mode>2): Ditto.
33262 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33264 PR tree-optimization/89008
33265 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33266 process anything of the form X * 0.
33268 2019-01-31 Richard Biener <rguenther@suse.de>
33270 PR tree-optimization/89135
33271 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33272 with abnormal preds.
33274 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33277 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33278 always_inline callees into no_sanitize_address callers.
33280 2019-01-31 Richard Biener <rguenther@suse.de>
33282 PR rtl-optimization/89115
33283 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33285 2019-01-30 Martin Sebor <msebor@redhat.com>
33288 * doc/extend.texi (cast to a union): Correct and expand.
33290 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33292 PR rtl-optimization/87246
33293 * lra-constraints.c (simplify_operand_subreg): Reload memory
33294 in subreg if the address became invalid.
33296 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33299 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33300 Disable for little-endian.
33302 2019-01-30 Richard Biener <rguenther@suse.de>
33304 PR rtl-optimization/89115
33305 * opts.c (default_options_optimization): Reduce
33306 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33307 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33310 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33312 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33313 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33314 type of vector element when vec_extract is implemented by direct
33317 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33319 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33321 2019-01-30 Richard Biener <rguenther@suse.de>
33323 PR tree-optimization/89111
33324 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33325 canonicalization to appropriately sized access types.
33327 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33330 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33331 for arguments to functions that are TU-local and shouldn't be
33332 referenced by assembly.
33334 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33336 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33339 2019-01-29 Martin Sebor <msebor@redhat.com>
33342 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33344 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33348 * omp-simd-clone.c (simd_clone_clauses_extract)
33349 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33350 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33352 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33354 * config.gcc: Force .init_array for ARC.
33356 2019-01-29 Richard Biener <rguenther@suse.de>
33359 * dwarf2out.c (collect_skeleton_dies): New helper.
33360 (copy_decls_for_unworthy_types): Call it.
33361 (build_abbrev_table): Assert we do not try to replace
33362 DW_AT_signature refs with local refs.
33364 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33366 PR middle-end/89002
33367 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33368 for lastprivate/linear IV, push gimplify context around gimplify_assign
33369 and, if it needed any temporaries, pop it into a gimple bind around the
33372 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33374 * common.opt (-Wattribute-alias): Remove "no-" from name.
33375 Make -Wattribute-alias command line option and
33376 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33378 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33381 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33382 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33384 (bmi2): Add missing @opindex.
33385 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33386 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33387 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33388 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33389 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33390 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33391 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33392 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33393 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33394 xsavec, xsaveopt and xsaves options.
33396 2019-01-28 Richard Biener <rguenther@suse.de>
33399 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33402 2019-01-28 Richard Biener <rguenther@suse.de>
33404 PR tree-optimization/88739
33405 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33406 BIT_FIELD_REFs only are applied to mode-precision operands
33407 when they are integral.
33408 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33409 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33410 BIT_FIELD_REFs of non-mode-precision integral operands.
33412 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33415 * config/i386/sse.md
33416 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33417 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33418 first constants in pairs are multiples of 2. Formatting fixes.
33419 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33420 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33421 first constants in each quadruple are multiples of 4. Formatting fixes.
33423 2019-01-26 Martin Jambor <mjambor@suse.cz>
33426 * tree-inline.c: Include tree-cfgcleanup.h.
33427 (delete_unreachable_blocks_update_callgraph): Move...
33428 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33429 ...here, make externally visible, make second argument bool, adjust
33431 * tree-cfgcleanup.c: Include cgraph.h.
33432 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33434 * ipa-prop.c: Include tree-cfgcleanup.h.
33435 (ipcp_transform_function): Call
33436 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33438 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33440 PR rtl-optimization/88846
33441 * ira.c (process_set_for_memref_referenced_p): New.
33442 (memref_referenced_p): Add new param. Use
33443 process_set_for_memref_referenced_p. Add new switch cases.
33444 (memref_used_between_p): Pass new arg to memref_referenced_p.
33446 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33449 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33450 argument ABI_BREAK. Set to true if the calculated alignment has
33451 changed in gcc-9. Check bit-fields for their base type alignment.
33452 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33453 (aarch64_function_arg_boundary): Likewise.
33454 (aarch64_gimplify_va_arg_expr): Likewise.
33456 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33458 PR middle-end/89037
33459 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33460 instead of accessing TREE_INT_CST_ELT directly.
33462 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33464 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33465 fenv_exceptions description.
33467 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33469 PR rtl-optimization/87763
33470 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33471 Allow SUBREG when matching CC_NZmode compare.
33473 2019-01-25 Richard Biener <rguenther@suse.de>
33475 PR tree-optimization/89049
33476 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33477 Look at the pattern stmt to determine if the stmt is vectorized.
33479 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33481 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33482 (pred_mov<mode>): Handle all-register forms using both a new
33483 alternative and a split.
33485 2019-01-25 Richard Biener <rguenther@suse.de>
33487 PR tree-optimization/86865
33488 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33489 Reject non-do-while loops.
33491 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33493 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33494 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33495 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33496 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33497 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33498 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33499 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33500 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33501 vlogical_operand, gpc_reg_operand, int_reg_operand,
33502 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33503 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33504 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33505 (save_world_operation, restore_world_operation, lmw_operation,
33506 stmw_operation): Use MEM_P and REG_P.
33507 (tie_operand): Use MEM_P.
33508 (vrsave_operation, crsave_operation): Use REG_P.
33509 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33510 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33511 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33512 (call_operand): Use HARD_REGISTER_P.
33513 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33515 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33516 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33517 quad_aligned_load_p, replace_swapped_aligned_store,
33518 recombine_lvx_pattern, replace_swapped_aligned_load,
33519 recombine_stvx_pattern): Use MEM_P.
33520 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33521 Use MEM_P and SYMBOL_REF_P.
33522 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33523 (insn_is_swappable_p): Use REG_P and MEM_P.
33524 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33525 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33527 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33528 Use CONST_DOUBLE_P.
33529 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33531 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33532 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33533 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33534 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33536 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33537 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33538 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33539 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33540 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33541 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33542 rs6000_split_logical_di): Use CONST_INT_P.
33543 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33544 REG_P and SYMBOL_REF_P.
33545 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33546 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33547 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33548 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33549 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33550 (small_data_operand, print_operand_address): Use CONST_INT_P and
33552 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33553 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33554 Use HARD_REGISTER_NUM_P.
33555 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33556 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33557 SUBREG_P and SYMBOL_REF_P.
33558 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33559 and HARD_REGISTER_NUM_P.
33560 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33562 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33563 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33565 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33566 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33567 find_addr_reg): Use REG_P.
33568 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33569 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33570 (offsettable_ok_by_alignment, constant_pool_expr_p,
33571 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33572 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33573 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33574 rs6000_assemble_integer, create_TOC_reference,
33575 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33576 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33577 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33578 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33579 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33580 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33581 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33582 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33583 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33584 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33585 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33586 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33587 and cbranch<mode>4): Use CONST_INT_P.
33588 (multiple define_splits): Use REG_P and SUBREG_P.
33589 (define_expands call, call_value): Use MEM_P.
33590 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33591 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33592 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33593 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33594 and HARD_REGISTER_NUM_P.
33595 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33597 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33599 PR rtl-optimization/88948
33600 * rtl.h (prepare_copy_insn): New prototype.
33601 * gcse.c (prepare_copy_insn): New function, split out from
33602 process_insert_insn.
33603 (process_insert_insn): Use prepare_copy_insn.
33604 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33605 instead of gen_move_insn.
33607 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33610 * config/i386/i386.c (ix86_pic_register_p): Return true for
33611 UNSPEC_SET_GOT too.
33613 PR tree-optimization/88964
33614 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33615 punt if HONOR_SNANS (chrec).
33617 PR middle-end/89015
33618 * tree-nested.c (convert_nonlocal_reference_stmt,
33619 convert_local_reference_stmt, convert_tramp_reference_stmt,
33620 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33621 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33622 or GIMPLE_OMP_TASK.
33624 PR tree-optimization/89027
33625 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33626 for "omp simd array" variables.
33628 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33631 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33632 force the alignment of m_val.
33634 2019-01-24 Richard Biener <rguenther@suse.de>
33637 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33638 When in "legacy" debug mode make sure to reset self-origins.
33640 2019-01-24 Martin Liska <mliska@suse.cz>
33642 PR gcov-profile/88994
33643 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33644 result will be always smaller or equal to the original.
33645 * gcov.c (mangle_name): Fix else branch where we should
33646 also copy to PTR and shift the pointer.
33648 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33650 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33651 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33653 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33655 * common/config/i386/i386-common.c
33656 (OPTION_MASK_ISA_ENQCMD_SET,
33657 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33658 (ix86_handle_option): Handle -menqcmd.
33659 * config.gcc (enqcmdintrin.h): New header file.
33660 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33661 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33663 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33665 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33666 __builtin_ia32_enqcmds): New builtins.
33667 * config/i386/i386-c.c (__ENQCMD__): New macro.
33668 * config/i386/i386-option.c (ix86_target_string): Add
33670 (ix86_valid_target_attribute_inner_p): Likewise.
33671 * config/i386/i386-expand.c
33672 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33673 IX86_BUILTIN_ENQCMDS.
33674 * config/i386/i386.h (TARGET_ENQCMD): New.
33675 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33676 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33677 (movdir64b_<mode>): Parameterize to enable share expansion code
33678 with ENQCMD in function ix86_expand_builtin.
33679 * config/i386/i386.opt: Add -menqcmd.
33680 * config/i386/immintrin.h: Include enqcmdintrin.h.
33681 * config/i386/enqcmdintrin.h: New intrinsic file.
33682 * doc/invoke.texi: Add -menqcmd.
33684 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33685 Steve Ellcey <sellcey@marvell.com>
33688 * recog.c (address_operand): Return false on wrong mode for address.
33689 (constrain_operands): Check for mode with 'p' constraint.
33691 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33694 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33695 Disparage MMX alternative.
33696 (sse2_cvtpd2pi): Ditto.
33697 (sse2_cvttpd2pi): Ditto.
33699 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33702 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33703 use-after-free of the result of
33704 aarch64_get_extension_string_for_isa_flags.
33706 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33709 * doc/extend.texi: Document break and continue behavior in
33710 statement expressions.
33712 2019-01-23 Richard Biener <rguenther@suse.de>
33714 PR tree-optimization/89008
33715 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33716 not leave another stray operand.
33718 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33720 * BASE-VER: Bump to 9.0.1.
33722 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33724 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33725 thunk that returns by reference, use the type of the return object
33726 of the thunk instead of that of the alias to build the dereference.
33728 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33730 * config/arc/atomic.md: Add operand to DMB instruction.
33732 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33734 PR tree-optimization/88964
33735 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33736 build_zero_cst instead of build_int_cst. Return false for loop
33737 invariants which honor signed zeros.
33739 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33741 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33743 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33746 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33747 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33748 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33750 PR middle-end/88968
33751 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33752 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33755 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33756 Disable for little endian.
33758 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33761 * config/arm/arm.c (arm_needs_double_word_align): Check
33762 DECL_BIT_FIELD_TYPE.
33764 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33765 H.J. Lu <hongjiu.lu@intel.com>
33768 * config/i386/i386-builtin.def: Add mask2 to all builtin
33769 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33771 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33772 (BDESC_FIRST): Likewise.
33773 (define_builtin): Add an argument for mask2. Updated to handle
33774 both ix86_isa_flags and ix86_isa_flags2.
33775 (define_builtin_const): Likewise.
33776 (define_builtin_pure): Likewise.
33777 (define_builtin2): Deleted.
33778 (define_builtin_const2): Likewise.
33779 (builtin_description): Add a member, mask2.
33780 (bdesc_*): Add mask2 to builtin initializations.
33781 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33782 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33784 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33786 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33789 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33792 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33795 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33796 alignment is dominated by a bitfield with 64-bit aligned base type.
33797 (arm_function_arg): Emit a warning if the alignment has changed since
33798 earlier GCC releases.
33799 (arm_function_arg_boundary): Likewise.
33800 (arm_setup_incoming_varargs): Likewise.
33802 2019-01-22 Richard Biener <rguenther@suse.de>
33804 PR tree-optimization/88862
33805 * graphite-scop-detection.c
33806 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33808 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33810 * doc/extend.tex (AMD GCN Function Attributes): New section.
33811 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33812 * doc/invoke.texi (AMD GCN Options): New section.
33813 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33815 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33817 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33818 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33820 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33822 PR tree-optimization/88044
33823 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33824 is false in the first iteration, but !every_iteration, return false
33825 instead of true with niter->niter zero.
33827 PR rtl-optimization/88904
33828 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33829 any nonequal registers before processing BB_END (b).
33832 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33834 (expand_binop_directly, expand_doubleword_clz,
33835 expand_doubleword_popcount, expand_ctz, expand_ffs,
33836 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33838 PR rtl-optimization/49429
33840 PR rtl-optimization/86334
33842 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33843 addressable from here...
33844 (emit_block_op_via_libcall): ... to here.
33846 2019-01-22 Richard Biener <rguenther@suse.de>
33848 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33849 auto_vec for cost vector to fix memleak.
33850 (vectorize_fold_left_reduction): Properly gather SLP defs.
33851 (vectorizable_comparison): Do not swap operands to properly
33854 2019-01-22 Alan Modra <amodra@gmail.com>
33857 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33858 stays a reg. Allow a const_int.
33859 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33860 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33861 (IS_NOMARK_TLSGETADDR): Define.
33862 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33863 (rs6000_output_tlsargs): New function.
33864 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33865 __tls_get_addr call takes an arg.
33866 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33867 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33869 (call_value_nonlocal_sysv): ..or here, delete split.
33870 (tls_gdld_nomark): Delete.
33871 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33872 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33873 (call_value_nonlocal_sysv): Likewise.
33874 (call_value_nonlocal_sysv_secure): Likewise.
33875 (call_value_nonlocal_aix): Likewise.
33876 (call_value_indirect_aix): Likewise.
33877 (call_value_indirect_elfv2): Likewise.
33878 (call_value_local32, call_value_local64): Disable for no-mark tls.
33879 (call_value_local_aix): Likewise.
33881 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33884 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33885 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33887 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33889 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33890 string contents as hash_map keys.
33892 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33895 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33896 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33897 instead of TYPE_ALIGN.
33898 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33899 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33900 pointer from TYPE_STUB_DECL.
33902 2019-01-21 Richard Biener <rguenther@suse.de>
33904 PR tree-optimization/88934
33905 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33906 at the possibly non-constant operand.
33907 (vect_get_constant_vectors): Adjust.
33909 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33912 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33913 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33914 instead of _X86INTRIN_H_INCLUDED.
33915 * onfig/i386/clwbintrin.h: Likewise.
33916 * config/i386/pkuintrin.h: Likewise.
33917 * config/i386/prfchwintrin.h: Likewise.
33918 * config/i386/rdseedintrin.h: Likewise.
33919 * config/i386/wbnoinvdintrin.h: Likewise.
33920 * config/i386/xsavecintrin.h: Likewise.
33921 * config/i386/xsavesintrin.h: Likewise.
33922 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33923 * config/i386/xsaveintrin.h: Likewise.
33924 * config/i386/xsaveoptintrin.h: Likewise.
33925 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33926 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33927 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33928 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33929 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33930 * config/i386/immintrin.h: Here.
33932 2019-01-20 Martin Jambor <mjambor@suse.cz>
33935 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33936 with aa_walk_budget.
33937 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33938 aa_walk_budget_p parameter.
33939 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33940 walk. Updated all callers.
33941 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33942 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33944 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33945 parameter info. Extract info from fbi. Pass fbi to recursive calls
33946 and to unmodified_parm.
33947 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33948 info, updated call to will_be_nonconstant_expr_predicate.
33949 (param_change_prob): New parameter fbi, limit AA walking.
33950 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33951 calls to various above functions.
33952 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33953 parameter. Use it to limit AA walking.
33954 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33955 fbi, limit AA walk.
33956 (detect_type_change): New parameter fbi, pass it on to
33957 detect_type_change_from_memory_writes.
33958 (detect_type_change_ssa): Likewise.
33959 (aa_overwalked): Removed.
33960 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33961 accordingly, adjust to the neew AA limiting scheme.
33962 (parm_ref_data_preserved_p): Likewise.
33963 (ipa_compute_jump_functions_for_edge): Adjust call to
33965 (ipa_analyze_call_uses): Likewise.
33966 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33967 (ipa_analyze_node): Initialize aa_walk_budget.
33968 (ipcp_transform_function): Likewise.
33969 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33970 to get_dynamic_type.
33972 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33974 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33975 outside of #if CHECKING_P code.
33977 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33979 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33980 New function, split out from...
33981 (loop_versioning::analyze_stride): ...here.
33982 (loop_versioning::find_per_loop_multiplication): Use gassign.
33983 (loop_versioning::analyze_term_using_scevs): Return a success code.
33984 (loop_versioning::analyze_arbitrary_term): New function.
33985 (loop_versioning::analyze_address_fragment): Use
33986 analyze_arbitrary_term if all else fails.
33988 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33991 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33994 2019-01-18 Richard Biener <rguenther@suse.de>
33996 PR tree-optimization/88903
33997 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33998 scalar stmts a SLP shift amount is composed of when detecting
34001 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34004 * config/arm/arm-cpus.in (mp): New feature.
34005 (sec): New feature.
34006 (fgroup ARMv7ve): Add mp and sec features.
34007 (arch armv7-a): Add options to allow mp and sec extensions.
34008 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34009 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34010 extenstions to the base architecture.
34011 (cpu cortex-a8): Add sec extension to the base architecture.
34012 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34013 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34014 variants down to the base v7-a varaint.
34015 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34016 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34017 of permitted extensions for -march=armv7-a and for
34018 -mcpu=generic-armv7-a.
34020 2019-01-18 Martin Liska <mliska@suse.cz>
34022 * params.def: Fix comment.
34023 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34025 (gimple_gen_ic_func_profiler): Likewise.
34027 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34029 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34030 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34031 and put in error checks for stack protector guard options.
34032 (aarch64_stack_protect_guard): New.
34033 (TARGET_STACK_PROTECT_GUARD): Define.
34034 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34035 (reg_stack_protect_address<mode>): New.
34036 (stack_protect_set): Adjust for SSP_GLOBAL.
34037 (stack_protect_test): Likewise.
34038 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34039 (-mstack-protector-guard): Likewise.
34040 (-mstack-protector-guard-offset): Likewise.
34042 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34044 PR tree-optimization/86214
34045 * tree-inline.h (struct copy_body_data): Add
34046 add_clobbers_to_eh_landing_pads member.
34047 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34048 (copy_edges_for_bb): Call it if EH edge destination is <
34049 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34050 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34051 if flag_stack_reuse != SR_NONE and clear it afterwards.
34053 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34056 * doc/install.texi (with-multilib-list): Document for aarch64.
34058 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34061 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34062 (("..."))) with ("...").
34064 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34066 * doc/extend.texi (Built-in Functions for Memory Model Aware
34067 Atomic Operations): Document atomic fetch and nand.
34069 2019-01-18 Martin Liska <mliska@suse.cz>
34070 Richard Biener <rguenther@suse.de>
34072 PR middle-end/88587
34073 * cgraph.h (create_version_clone_with_body): Add new argument
34075 * cgraphclones.c (cgraph_node::create_version_clone): Add
34076 DECL_ATTRIBUTES to a newly created decl. And call
34077 valid_attribute_p so that proper cl_target_optimization_node
34078 is set for the newly created declaration.
34079 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34081 (expand_target_clones): Do not call valid_attribute_p, it must
34083 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34086 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34089 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34090 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34091 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34093 2019-01-17 Martin Sebor <msebor@redhat.com>
34095 PR middle-end/88273
34096 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34097 Handle anti-ranges the same as no range at all.
34099 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34101 * config/aarch64/aarch64.c (cgraph.h): New include.
34102 (intl.h): New include.
34103 (supported_simd_type): New function.
34104 (currently_supported_simd_type): Ditto.
34105 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34106 (aarch64_simd_clone_adjust): Ditto.
34107 (aarch64_simd_clone_usable): Ditto.
34108 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34109 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34110 (TARGET_SIMD_CLONE_USABLE): Ditto.
34111 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34112 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34115 2019-01-17 Martin Sebor <msebor@redhat.com>
34117 PR tree-optimization/88800
34118 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34119 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34120 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34121 redundant argument. Add new argument and issue diagnostics under
34122 its control. Detect out-of-bounds access even with warnings
34124 (check_bounds_or_overlap): Change return type. Add argument.
34125 (wrestrict_dom_walker::check_call): Adjust.
34126 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34127 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34128 check_bounds_or_overlap's return value.
34129 (handle_builtin_stxncpy): Same.
34130 (handle_builtin_strcat): Same.
34132 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34133 Kwok Cheung Yeung <kcy@codesourcery.com>
34134 Julian Brown <julian@codesourcery.com>
34135 Tom de Vries <tom@codesourcery.com>
34137 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34139 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34141 * doc/sourcebuild.texi: Document dg-require-effective-target
34142 llvm_binutils and offload_gcn.
34144 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34145 Kwok Cheung Yeung <kcy@codesourcery.com>
34146 Julian Brown <julian@codesourcery.com>
34147 Tom de Vries <tom@codesourcery.com>
34149 * doc/sourcebuild.texi: Document dg-required-effective-target
34152 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34153 Kwok Cheung Yeung <kcy@codesourcery.com>
34154 Julian Brown <julian@codesourcery.com>
34155 Tom de Vries <tom@codesourcery.com>
34156 Jan Hubicka <hubicka@ucw.cz>
34157 Martin Jambor <mjambor@suse.cz>
34159 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34160 * configure.ac: Check for dlopen.
34161 * configure: Regenerate.
34163 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34164 Kwok Cheung Yeung <kcy@codesourcery.com>
34165 Julian Brown <julian@codesourcery.com>
34166 Tom de Vries <tom@codesourcery.com>
34167 Jan Hubicka <hubicka@ucw.cz>
34168 Martin Jambor <mjambor@suse.cz>
34170 * common/config/gcn/gcn-common.c: New file.
34171 * config/gcn/driver-gcn.c: New file.
34172 * config/gcn/gcn-builtins.def: New file.
34173 * config/gcn/gcn-hsa.h: New file.
34174 * config/gcn/gcn-modes.def: New file.
34175 * config/gcn/gcn-opts.h: New file.
34176 * config/gcn/gcn-passes.def: New file.
34177 * config/gcn/gcn-protos.h: New file.
34178 * config/gcn/gcn-run.c: New file.
34179 * config/gcn/gcn-tree.c: New file.
34180 * config/gcn/gcn.c: New file.
34181 * config/gcn/gcn.h: New file.
34182 * config/gcn/gcn.opt: New file.
34183 * config/gcn/t-gcn-hsa: New file.
34185 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34186 Kwok Cheung Yeung <kcy@codesourcery.com>
34187 Julian Brown <julian@codesourcery.com>
34188 Tom de Vries <tom@codesourcery.com>
34189 Jan Hubicka <hubicka@ucw.cz>
34190 Martin Jambor <mjambor@suse.cz>
34192 * config/gcn/constraints.md: New file.
34193 * config/gcn/gcn-valu.md: New file.
34194 * config/gcn/gcn.md: New file.
34195 * config/gcn/predicates.md: New file.
34197 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34199 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34200 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34201 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34202 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34204 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34207 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34208 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34209 it and document registers.
34211 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34213 * config/aarch64/aarch64.c (ares_tunings): Define.
34214 * config/aarch64/aarch64-cores.def (ares): Use the above.
34216 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34220 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34222 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34223 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34224 (_mm512_maskz_fixupimm_round_pd): Ditto.
34225 (_mm512_fixupimm_round_ps): Ditto.
34226 (_mm512_maskz_fixupimm_round_ps): Ditto.
34227 (_mm_fixupimm_round_sd): Ditto.
34228 (_mm_maskz_fixupimm_round_sd): Ditto.
34229 (_mm_fixupimm_round_ss): Ditto.
34230 (_mm_maskz_fixupimm_round_ss): Ditto.
34231 (_mm512_fixupimm_pd): Ditto.
34232 (_mm512_maskz_fixupimm_pd): Ditto.
34233 (_mm512_fixupimm_ps): Ditto.
34234 (_mm512_maskz_fixupimm_ps): Ditto.
34235 (_mm_fixupimm_sd): Ditto.
34236 (_mm_maskz_fixupimm_sd): Ditto.
34237 (_mm_fixupimm_ss): Ditto.
34238 (_mm_maskz_fixupimm_ss): Ditto.
34239 (_mm512_mask_fixupimm_round_pd): Update builtin.
34240 (_mm512_mask_fixupimm_round_ps): Ditto.
34241 (_mm_mask_fixupimm_round_sd): Ditto.
34242 (_mm_mask_fixupimm_round_ss): Ditto.
34243 (_mm512_mask_fixupimm_pd): Ditto.
34244 (_mm512_mask_fixupimm_ps): Ditto.
34245 (_mm_mask_fixupimm_sd): Ditto.
34246 (_mm_mask_fixupimm_ss): Ditto.
34247 * config/i386/avx512vlintrin.h:
34248 (_mm256_fixupimm_pd): Update parameters and builtin.
34249 (_mm256_maskz_fixupimm_pd): Ditto.
34250 (_mm256_fixupimm_ps): Ditto.
34251 (_mm256_maskz_fixupimm_ps): Ditto.
34252 (_mm_fixupimm_pd): Ditto.
34253 (_mm_maskz_fixupimm_pd): Ditto.
34254 (_mm_fixupimm_ps): Ditto.
34255 (_mm_maskz_fixupimm_ps): Ditto.
34256 (_mm256_mask_fixupimm_pd): Update builtin.
34257 (_mm256_mask_fixupimm_ps): Ditto.
34258 (_mm_mask_fixupimm_pd): Ditto.
34259 (_mm_mask_fixupimm_ps): Ditto.
34260 * config/i386/i386-builtin-types.def: Add new types and remove
34262 * config/i386/i386-builtin.def: Update builtin definitions.
34263 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34264 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34265 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34266 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34267 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34268 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34269 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34270 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34271 * config/i386/subst.md:
34272 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34273 (round_saeonly_sd_mask_op4): Ditto.
34274 (round_saeonly_expand_operand5): Ditto.
34275 (round_saeonly_expand): Update.
34277 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34281 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34283 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34284 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34285 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34286 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34287 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34288 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34289 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34291 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34295 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34298 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34299 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34300 instead of UNSPEC_FIXUPIMM.
34302 2019-01-17 Richard Biener <rguenther@suse.de>
34305 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34306 and friends for the LTO part of debug info.
34308 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34310 PR tree-optimization/86214
34311 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34314 PR rtl-optimization/88870
34315 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34316 throw if we can't alter the cfg or delete dead exceptions.
34317 (mark_insn): Don't call find_call_stack_args for such calls.
34319 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34321 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34322 prototypes for vec_st.
34323 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34324 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34325 mainly on signed/unsigned long long and double.
34327 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34330 * combine.c (delete_noop_moves): Convert to "bool" return,
34331 returning true if any edges are eliminated.
34332 (combine_instructions): Also return true if delete_noop_moves
34335 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34337 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34338 correct max nunits for endian swap.
34339 (aarch64_expand_fcmla_builtin): Correct subreg code.
34340 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34341 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34344 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34346 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34347 Handle split indirect COMPLEX_TYPE arguments.
34349 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34352 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34353 bit is set by add and compare.
34354 (CC_ADC): New CC_MODE.
34355 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34356 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34357 comparison. Add detection for CC_ADCmode.
34358 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34360 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34361 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34362 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34363 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34364 to eliminate the need for zero-extending the operands.
34365 (add<mode>3_compareC_imm): Delete. Merge into ...
34366 (add<mode>3_compareC): ... this. Restructure the comparison to
34367 eliminate the need for zero-extending the operands.
34368 (add<mode>3_carryin): Use LTU for the overflow detection.
34369 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34370 Reexpress comparison for overflow.
34371 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34372 (add<mode>3_carryinC): Likewise.
34373 (add<mode>3_carryinV): Use LTU for carry between partials.
34374 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34375 handling of CC_Cmode and add CC_ADCmode.
34376 (aarch64_borrow_operation): Likewise.
34378 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34380 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34381 Remove patternmode.
34382 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34383 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34384 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34385 Remove endianness conversion.
34387 2019-01-16 Martin Liska <mliska@suse.cz>
34389 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34391 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34393 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34394 (path_prefix_reset): Move up in the source file.
34395 (find_fortran_preinclude_file): Make complex search for the
34396 fortran header files.
34398 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34400 * godump.c (go_output_typedef): When outputting a typedef, refer
34401 to the underlying type by its name and not its structure.
34403 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34406 * tree.c (build_function_type): Assert that arg_types is not
34409 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34411 PR inline-asm/52813
34412 * doc/extend.texi: Document that listing the stack pointer in the
34413 clobber list of an asm is a deprecated feature.
34414 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34415 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34416 warning instead of an error for clobbers of the stack pointer.
34417 Add a note explaining why.
34419 2019-01-15 Richard Biener <rguenther@suse.de>
34422 * dwarf2out.c (gen_member_die): Do not generate inheritance
34425 2019-01-15 Richard Biener <rguenther@suse.de>
34427 PR tree-optimization/88855
34428 * tree-if-conv.c (combine_blocks): Collect
34429 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34431 2019-01-15 Tom de Vries <tdevries@suse.de>
34434 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34435 lhs == NULL_TREE for gang-level reduction.
34437 2019-01-15 Richard Biener <rguenther@suse.de>
34438 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34441 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34442 return true if SSA_NAME is already marked in visited bitmap.
34443 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34445 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34447 PR tree-optimization/88775
34448 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34449 equal == 0 equality pointer comparisons some more if compared in
34450 integral types and either one points to an automatic var and the
34451 other to a global, or we can prove at least one points to the middle
34452 or both point to start or both point to end.
34454 2019-01-14 Andi Kleen <ak@linux.intel.com>
34456 * Makefile.in: Lower autofdo sampling rate by 10x.
34457 * Makefile.tpl: Dito.
34459 2019-01-14 Tom Honermann <tom@honermann.net>
34461 * defaults.h: Define CHAR8_TYPE.
34463 2019-01-14 Martin Sebor <msebor@redhat.com>
34466 * doc/extend.texi (Darwin Format Checks): Clarify.
34468 2019-01-14 Richard Biener <rguenther@suse.de>
34470 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34471 whether we are in (simplify ...) or (match ...) context.
34473 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34475 PR rtl-optimization/88796
34476 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34477 * cfgexpand.c (stack_protect_prologue): Initialize
34478 crtl->stack_protect_guard_decl.
34479 * function.c (stack_protect_epilogue): Use it instead of calling
34480 targetm.stack_protect_guard again.
34481 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34482 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34483 crtl->stack_protect_guard_decl.
34484 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34485 on the returned MEM_EXPR.
34487 2019-01-12 Tom de Vries <tdevries@suse.de>
34489 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34490 vector length using -fopenacc-dim.
34492 2019-01-12 Tom de Vries <tdevries@suse.de>
34494 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34495 lengths into account.
34497 2019-01-12 Svante Signell <svante.signell@gmail.com>
34499 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34500 (TARGET_CAN_SPLIT_STACK): Define.
34501 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34503 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34505 * params.def (inline-unit-growth): Set to 40.
34507 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34509 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34511 2019-01-12 Tom de Vries <tdevries@suse.de>
34513 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34514 region calling vector-partitionable routine, set default_vector_length
34517 2019-01-12 Tom de Vries <tdevries@suse.de>
34519 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34520 variable default_vector_length.
34522 2019-01-12 Tom de Vries <tdevries@suse.de>
34524 PR middle-end/88703
34525 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34526 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34529 2019-01-12 Tom de Vries <tdevries@suse.de>
34531 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34532 (nvptx_goacc_validate_dims): Add used parameter.
34533 * doc/tm.texi: Regenerate.
34534 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34535 argument to call to targetm.goacc.validate_dims.
34536 (default_goacc_validate_dims): Add used
34538 * target.def (validate_dims): Add used parameter in DEFHOOK.
34539 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34541 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34543 PR middle-end/85956
34545 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34547 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34548 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34549 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34550 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34552 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34554 PR rtl-optimization/87305
34556 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34557 for little endian pseudos used as paradoxical subreg.
34559 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34561 PR tree-optimization/88693
34562 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34563 for STRING_CSTs that don't contain any NUL characters in the first
34564 TREE_STRING_LENGTH bytes.
34566 2019-01-11 Alan Modra <amodra@gmail.com>
34570 * genattrtab.c (min_fn): Don't translate values.
34571 (min_attr_value): Return INT_MAX when the value can't be calculated.
34572 Return minimum among any values that can be calculated.
34573 (max_attr_value): Adjust.
34575 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34577 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34579 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34581 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34582 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34583 (aarch64_return_call_with_max_clobbers): New function.
34584 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34585 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34587 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34588 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34589 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34590 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34591 * cselib.c (cselib_process_insn): Add argument to
34592 targetm.hard_regno_call_part_clobbered call.
34593 * ira-conflicts.c (ira_build_conflicts): Ditto.
34594 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34595 * lra-constraints.c (inherit_reload_reg): Ditto.
34596 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34597 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34598 argument. Call targetm.return_call_with_max_clobbers.
34599 Add argument to targetm.hard_regno_call_part_clobbered call.
34600 (calls_have_same_clobbers_p): New function.
34601 (process_bb_lives): Add call_insn and last_call_insn variables.
34602 Pass call_insn to check_pseudos_live_through_calls.
34603 Modify if stmt to check targetm.return_call_with_max_clobbers.
34604 Update setting of flush variable.
34605 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34607 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34608 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34609 targetm.hard_regno_call_part_clobbered call.
34610 * reginfo.c (choose_hard_reg_mode): Ditto.
34611 * regrename.c (check_new_reg_p): Ditto.
34612 * reload.c (find_equiv_reg): Ditto.
34613 * reload1.c (emit_reload_insns): Ditto.
34614 * sched-deps.c (deps_analyze_insn): Ditto.
34615 * sel-sched.c (init_regs_for_mode): Ditto.
34616 (mark_unavailable_hard_regs): Ditto.
34617 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34618 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34619 (return_call_with_max_clobbers): New target function.
34620 * doc/tm.texi: Regenerate.
34621 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34622 * hooks.c (hook_bool_uint_mode_false): Change to
34623 hook_bool_insn_uint_mode_false.
34624 * hooks.h (hook_bool_uint_mode_false): Ditto.
34626 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34628 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34629 (aarch64_remove_extra_call_preserved_regs): New function.
34630 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34631 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34632 * doc/tm.texi: Regenerate.
34633 * final.c (get_call_reg_set_usage): Call new hook.
34634 * target.def (remove_extra_call_preserved_regs): New hook.
34635 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34636 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34638 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34641 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34642 inside of pass_combine_1 dump rather than pass_profile_1.
34644 2019-01-11 Tom de Vries <tdevries@suse.de>
34646 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34647 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34648 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34649 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34652 2019-01-11 Tom de Vries <tdevries@suse.de>
34654 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34656 2019-01-11 Jan Beulich <jbeulich@suse.com>
34658 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34659 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34660 sse2_cvtsi2sd): Add {l}.
34661 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34664 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34667 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34669 (*float<floatunssuffix>v2div2sf2): New define_insn.
34670 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34671 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34672 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34673 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34674 match_operands with "const0_operand" "C".
34676 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34678 * config/aarch64/aarch64-builtins.c
34679 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34680 (aarch64_init_simd_builtins): ...Here
34682 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34684 PR rtl-optimization/87305
34686 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34687 allocation for big endian pseudos used as paradoxical subregs and
34688 spill them if it is wrong.
34689 * lra-constraints.c (lra_constraints): Add a comment.
34691 2019-01-10 Richard Biener <rguenther@suse.de>
34693 PR tree-optimization/88792
34694 * tree-ssa-pre.c (get_representative_for): Do not return a
34697 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34699 PR middle-end/84877
34701 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34702 (assign_parm_setup_block): Do the argument slot realignment here
34705 2019-01-10 Stefan Agner <stefan@agner.ch>
34708 * config/arm/arm.c (arm_option_override_internal): Force
34709 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34711 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34714 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34717 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34719 * config/arm/arm-builtins.c
34720 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34721 (MAC_LANE_PAIR_QUALIFIERS): New.
34722 (arm_expand_builtin_args): Use it.
34723 (arm_expand_builtin_1): Likewise.
34724 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34725 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34726 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34727 * config/arm/arm_neon.h:
34728 (vcadd_rot90_f16): New.
34729 (vcaddq_rot90_f16): New.
34730 (vcadd_rot270_f16): New.
34731 (vcaddq_rot270_f16): New.
34734 (vcmla_lane_f16): New.
34735 (vcmla_laneq_f16): New.
34736 (vcmlaq_lane_f16): New.
34737 (vcmlaq_laneq_f16): New.
34738 (vcmla_rot90_f16): New.
34739 (vcmlaq_rot90_f16): New.
34740 (vcmla_rot90_lane_f16): New.
34741 (vcmla_rot90_laneq_f16): New.
34742 (vcmlaq_rot90_lane_f16): New.
34743 (vcmlaq_rot90_laneq_f16): New.
34744 (vcmla_rot180_f16): New.
34745 (vcmlaq_rot180_f16): New.
34746 (vcmla_rot180_lane_f16): New.
34747 (vcmla_rot180_laneq_f16): New.
34748 (vcmlaq_rot180_lane_f16): New.
34749 (vcmlaq_rot180_laneq_f16): New.
34750 (vcmla_rot270_f16): New.
34751 (vcmlaq_rot270_f16): New.
34752 (vcmla_rot270_lane_f16): New.
34753 (vcmla_rot270_laneq_f16): New.
34754 (vcmlaq_rot270_lane_f16): New.
34755 (vcmlaq_rot270_laneq_f16): New.
34756 (vcadd_rot90_f32): New.
34757 (vcaddq_rot90_f32): New.
34758 (vcadd_rot270_f32): New.
34759 (vcaddq_rot270_f32): New.
34762 (vcmla_lane_f32): New.
34763 (vcmla_laneq_f32): New.
34764 (vcmlaq_lane_f32): New.
34765 (vcmlaq_laneq_f32): New.
34766 (vcmla_rot90_f32): New.
34767 (vcmlaq_rot90_f32): New.
34768 (vcmla_rot90_lane_f32): New.
34769 (vcmla_rot90_laneq_f32): New.
34770 (vcmlaq_rot90_lane_f32): New.
34771 (vcmlaq_rot90_laneq_f32): New.
34772 (vcmla_rot180_f32): New.
34773 (vcmlaq_rot180_f32): New.
34774 (vcmla_rot180_lane_f32): New.
34775 (vcmla_rot180_laneq_f32): New.
34776 (vcmlaq_rot180_lane_f32): New.
34777 (vcmlaq_rot180_laneq_f32): New.
34778 (vcmla_rot270_f32): New.
34779 (vcmlaq_rot270_f32): New.
34780 (vcmla_rot270_lane_f32): New.
34781 (vcmla_rot270_laneq_f32): New.
34782 (vcmlaq_rot270_lane_f32): New.
34783 (vcmlaq_rot270_laneq_f32): New.
34784 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34785 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34786 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34787 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34788 vcmlaq_lane270): New.
34789 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34790 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34791 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34792 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34793 (arm_option_reconfigure_globals): Use them.
34794 * config/arm/iterators.md (VDF, VQ_HSF): New.
34795 (VCADD, VCMLA): New.
34796 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34797 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34799 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34800 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34802 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34804 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34805 Add qualifier_lane_pair_index.
34806 (emit-rtl.h): Include.
34807 (TYPES_QUADOP_LANE_PAIR): New.
34808 (aarch64_simd_expand_args): Use it.
34809 (aarch64_simd_expand_builtin): Likewise.
34810 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34812 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34813 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34814 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34815 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34816 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34817 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34818 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34819 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34820 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34821 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34822 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34823 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34824 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34825 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34826 Add __ARM_FEATURE_COMPLEX.
34827 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34828 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34829 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34830 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34831 fcmlaq_lane270): New.
34832 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34833 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34834 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34835 * config/aarch64/arm_neon.h:
34836 (vcadd_rot90_f16): New.
34837 (vcaddq_rot90_f16): New.
34838 (vcadd_rot270_f16): New.
34839 (vcaddq_rot270_f16): New.
34842 (vcmla_lane_f16): New.
34843 (vcmla_laneq_f16): New.
34844 (vcmlaq_lane_f16): New.
34845 (vcmlaq_rot90_lane_f16): New.
34846 (vcmla_rot90_laneq_f16): New.
34847 (vcmla_rot90_lane_f16): New.
34848 (vcmlaq_rot90_f16): New.
34849 (vcmla_rot90_f16): New.
34850 (vcmlaq_laneq_f16): New.
34851 (vcmla_rot180_laneq_f16): New.
34852 (vcmla_rot180_lane_f16): New.
34853 (vcmlaq_rot180_f16): New.
34854 (vcmla_rot180_f16): New.
34855 (vcmlaq_rot90_laneq_f16): New.
34856 (vcmlaq_rot270_laneq_f16): New.
34857 (vcmlaq_rot270_lane_f16): New.
34858 (vcmla_rot270_laneq_f16): New.
34859 (vcmlaq_rot270_f16): New.
34860 (vcmla_rot270_f16): New.
34861 (vcmlaq_rot180_laneq_f16): New.
34862 (vcmlaq_rot180_lane_f16): New.
34863 (vcmla_rot270_lane_f16): New.
34864 (vcadd_rot90_f32): New.
34865 (vcaddq_rot90_f32): New.
34866 (vcaddq_rot90_f64): New.
34867 (vcadd_rot270_f32): New.
34868 (vcaddq_rot270_f32): New.
34869 (vcaddq_rot270_f64): New.
34873 (vcmla_lane_f32): New.
34874 (vcmla_laneq_f32): New.
34875 (vcmlaq_lane_f32): New.
34876 (vcmlaq_laneq_f32): New.
34877 (vcmla_rot90_f32): New.
34878 (vcmlaq_rot90_f32): New.
34879 (vcmlaq_rot90_f64): New.
34880 (vcmla_rot90_lane_f32): New.
34881 (vcmla_rot90_laneq_f32): New.
34882 (vcmlaq_rot90_lane_f32): New.
34883 (vcmlaq_rot90_laneq_f32): New.
34884 (vcmla_rot180_f32): New.
34885 (vcmlaq_rot180_f32): New.
34886 (vcmlaq_rot180_f64): New.
34887 (vcmla_rot180_lane_f32): New.
34888 (vcmla_rot180_laneq_f32): New.
34889 (vcmlaq_rot180_lane_f32): New.
34890 (vcmlaq_rot180_laneq_f32): New.
34891 (vcmla_rot270_f32): New.
34892 (vcmlaq_rot270_f32): New.
34893 (vcmlaq_rot270_f64): New.
34894 (vcmla_rot270_lane_f32): New.
34895 (vcmla_rot270_laneq_f32): New.
34896 (vcmlaq_rot270_lane_f32): New.
34897 (vcmlaq_rot270_laneq_f32): New.
34898 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34899 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34900 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34901 (FCADD, FCMLA): New.
34903 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34905 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34909 * config/pa/pa.c: Change "can not" to "cannot".
34910 * gimple-ssa-evrp-analyze.c: Likewise.
34911 * ipa-icf.c: Likewise.
34912 * ipa-polymorphic-call.c: Likewise.
34913 * ipa-pure-const.c: Likewise.
34914 * lra-constraints.c: Likewise.
34915 * lra-remat.c: Likewise.
34916 * reload1.c: Likewise.
34917 * reorg.c: Likewise.
34918 * tree-ssa-uninit.c: Likewise.
34920 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34924 * Makefile.in: Mechanically replace "can not" with "cannot".
34925 * alias.c: Likewise.
34926 * builtins.c: Likewise.
34927 * calls.c: Likewise.
34928 * cgraph.c: Likewise.
34929 * cgraph.h: Likewise.
34930 * cgraphclones.c: Likewise.
34931 * cgraphunit.c: Likewise.
34932 * combine-stack-adj.c: Likewise.
34933 * combine.c: Likewise.
34934 * common/config/i386/i386-common.c: Likewise.
34935 * config/aarch64/aarch64.c: Likewise.
34936 * config/alpha/sync.md: Likewise.
34937 * config/arc/arc.c: Likewise.
34938 * config/arc/predicates.md: Likewise.
34939 * config/arm/arm-c.c: Likewise.
34940 * config/arm/arm.c: Likewise.
34941 * config/arm/arm.h: Likewise.
34942 * config/arm/arm.md: Likewise.
34943 * config/arm/cortex-r4f.md: Likewise.
34944 * config/csky/csky.c: Likewise.
34945 * config/csky/csky.h: Likewise.
34946 * config/darwin-f.c: Likewise.
34947 * config/epiphany/epiphany.md: Likewise.
34948 * config/i386/i386.c: Likewise.
34949 * config/i386/sol2.h: Likewise.
34950 * config/m68k/m68k.c: Likewise.
34951 * config/mcore/mcore.h: Likewise.
34952 * config/microblaze/microblaze.md: Likewise.
34953 * config/mips/20kc.md: Likewise.
34954 * config/mips/sb1.md: Likewise.
34955 * config/nds32/nds32.c: Likewise.
34956 * config/nds32/predicates.md: Likewise.
34957 * config/pa/pa.c: Likewise.
34958 * config/rs6000/e300c2c3.md: Likewise.
34959 * config/rs6000/rs6000.c: Likewise.
34960 * config/s390/s390.h: Likewise.
34961 * config/sh/sh.c: Likewise.
34962 * config/sh/sh.md: Likewise.
34963 * config/spu/vmx2spu.h: Likewise.
34964 * cprop.c: Likewise.
34965 * dbxout.c: Likewise.
34966 * df-scan.c: Likewise.
34967 * doc/cfg.texi: Likewise.
34968 * doc/extend.texi: Likewise.
34969 * doc/fragments.texi: Likewise.
34970 * doc/gty.texi: Likewise.
34971 * doc/invoke.texi: Likewise.
34972 * doc/lto.texi: Likewise.
34973 * doc/md.texi: Likewise.
34974 * doc/objc.texi: Likewise.
34975 * doc/rtl.texi: Likewise.
34976 * doc/tm.texi: Likewise.
34978 * emit-rtl.c: Likewise.
34979 * emit-rtl.h: Likewise.
34980 * except.c: Likewise.
34981 * expmed.c: Likewise.
34982 * expr.c: Likewise.
34983 * fold-const.c: Likewise.
34984 * genautomata.c: Likewise.
34985 * gimple-fold.c: Likewise.
34986 * hard-reg-set.h: Likewise.
34987 * ifcvt.c: Likewise.
34988 * ipa-comdats.c: Likewise.
34989 * ipa-cp.c: Likewise.
34990 * ipa-devirt.c: Likewise.
34991 * ipa-fnsummary.c: Likewise.
34992 * ipa-icf.c: Likewise.
34993 * ipa-inline-transform.c: Likewise.
34994 * ipa-inline.c: Likewise.
34995 * ipa-polymorphic-call.c: Likewise.
34996 * ipa-profile.c: Likewise.
34997 * ipa-prop.c: Likewise.
34998 * ipa-pure-const.c: Likewise.
34999 * ipa-reference.c: Likewise.
35000 * ipa-split.c: Likewise.
35001 * ipa-visibility.c: Likewise.
35003 * ira-build.c: Likewise.
35004 * ira-color.c: Likewise.
35005 * ira-conflicts.c: Likewise.
35006 * ira-costs.c: Likewise.
35007 * ira-int.h: Likewise.
35008 * ira-lives.c: Likewise.
35011 * loop-invariant.c: Likewise.
35012 * loop-unroll.c: Likewise.
35013 * lower-subreg.c: Likewise.
35014 * lra-assigns.c: Likewise.
35015 * lra-constraints.c: Likewise.
35016 * lra-eliminations.c: Likewise.
35017 * lra-lives.c: Likewise.
35018 * lra-remat.c: Likewise.
35019 * lra-spills.c: Likewise.
35021 * lto-cgraph.c: Likewise.
35022 * lto-streamer-out.c: Likewise.
35023 * postreload-gcse.c: Likewise.
35024 * predict.c: Likewise.
35025 * profile-count.h: Likewise.
35026 * profile.c: Likewise.
35027 * recog.c: Likewise.
35029 * reload.c: Likewise.
35030 * reload1.c: Likewise.
35031 * reorg.c: Likewise.
35032 * resource.c: Likewise.
35033 * rtl.def: Likewise.
35035 * rtlanal.c: Likewise.
35036 * sched-deps.c: Likewise.
35037 * sched-ebb.c: Likewise.
35038 * sched-rgn.c: Likewise.
35039 * sel-sched-ir.c: Likewise.
35040 * sel-sched.c: Likewise.
35041 * shrink-wrap.c: Likewise.
35042 * simplify-rtx.c: Likewise.
35043 * symtab.c: Likewise.
35044 * target.def: Likewise.
35045 * toplev.c: Likewise.
35046 * tree-call-cdce.c: Likewise.
35047 * tree-cfg.c: Likewise.
35048 * tree-complex.c: Likewise.
35049 * tree-core.h: Likewise.
35050 * tree-eh.c: Likewise.
35051 * tree-inline.c: Likewise.
35052 * tree-loop-distribution.c: Likewise.
35053 * tree-nrv.c: Likewise.
35054 * tree-profile.c: Likewise.
35055 * tree-sra.c: Likewise.
35056 * tree-ssa-alias.c: Likewise.
35057 * tree-ssa-dce.c: Likewise.
35058 * tree-ssa-dom.c: Likewise.
35059 * tree-ssa-forwprop.c: Likewise.
35060 * tree-ssa-loop-im.c: Likewise.
35061 * tree-ssa-loop-ivcanon.c: Likewise.
35062 * tree-ssa-loop-ivopts.c: Likewise.
35063 * tree-ssa-loop-niter.c: Likewise.
35064 * tree-ssa-phionlycprop.c: Likewise.
35065 * tree-ssa-phiopt.c: Likewise.
35066 * tree-ssa-propagate.c: Likewise.
35067 * tree-ssa-threadedge.c: Likewise.
35068 * tree-ssa-threadupdate.c: Likewise.
35069 * tree-ssa-uninit.c: Likewise.
35070 * tree-ssanames.c: Likewise.
35071 * tree-streamer-out.c: Likewise.
35072 * tree.c: Likewise.
35073 * tree.h: Likewise.
35074 * vr-values.c: Likewise.
35076 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35078 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35079 (ix86_split_xorsign): Ditto.
35080 * config/i386/i386.c (ix86_expand_xorsign): New function.
35081 (ix86_split_xorsign): Ditto.
35082 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35083 (xorsign<mode>3): New expander.
35084 (xorsign<mode>3_1): New insn_and_split pattern.
35085 * config/i386/sse.md (xorsign<mode>3): New expander.
35087 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35089 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35090 (*tablejump_sp64): Likewise.
35091 (*tablejump<P:mode>): ...this.
35092 (*call_address_sp32): Merge into...
35093 (*call_address_sp64): Likewise.
35094 (*call_address<P:mode>): ...this.
35095 (*call_symbolic_sp32): Merge into...
35096 (*call_symbolic_sp64): Likewise.
35097 (*call_symbolic<P:mode>): ...this.
35098 (call_value): Remove constraint and add predicate.
35099 (*call_value_address_sp32): Merge into...
35100 (*call_value_address_sp64): Likewise.
35101 (*call_value_address<P:mode>): ...this.
35102 (*call_value_symbolic_sp32): Merge into...
35103 (*call_value_symbolic_sp64): Likewise.
35104 (*call_value_symbolic<P:mode>): ...this.
35105 (*sibcall_symbolic_sp32): Merge into...
35106 (*sibcall_symbolic_sp64): Likewise.
35107 (*sibcall_symbolic<P:mode>): ...this.
35108 (sibcall_value): Remove constraint and add predicate.
35109 (*sibcall_value_symbolic_sp32): Merge into...
35110 (*sibcall_value_symbolic_sp64): Likewise.
35111 (*sibcall_value_symbolic<P:mode>): ...this.
35112 (window_save): Minor tweak.
35113 (*branch_sp32): Merge into...
35114 (*branch_sp64): Likewise.
35115 (*branch<P:mode>): ...this.
35117 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35118 James Clarke <jrtc27@jrtc27.com>
35121 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35122 consistently in TLS address generation and adjust code to the renaming
35123 of patterns. Mark calls to __tls_get_addr as const.
35124 * config/sparc/sparc.md (tgd_hi22): Turn into...
35125 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35126 (tgd_lo10): Turn into...
35127 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35128 (tgd_add32): Merge into...
35129 (tgd_add64): Likewise.
35130 (tgd_add<P:mode>): ...this and use Pmode throughout.
35131 (tldm_hi22): Turn into...
35132 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35133 (tldm_lo10): Turn into...
35134 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35135 (tldm_add32): Merge into...
35136 (tldm_add64): Likewise.
35137 (tldm_add<P:mode>): ...this and use Pmode throughout.
35138 (tldm_call32): Merge into...
35139 (tldm_call64): Likewise.
35140 (tldm_call<P:mode>): ...this and use Pmode throughout.
35141 (tldo_hix22): Turn into...
35142 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35143 (tldo_lox10): Turn into...
35144 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35145 (tldo_add32): Merge into...
35146 (tldo_add64): Likewise.
35147 (tldo_add<P:mode>): ...this and use Pmode throughout.
35148 (tie_hi22): Turn into...
35149 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35150 (tie_lo10): Turn into...
35151 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35152 (tie_ld64): Use DImode throughout.
35153 (tie_add32): Merge into...
35154 (tie_add64): Likewise.
35155 (tie_add<P:mode>): ...this and use Pmode throughout.
35156 (tle_hix22_sp32): Merge into...
35157 (tle_hix22_sp64): Likewise.
35158 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35159 (tle_lox22_sp32): Merge into...
35160 (tle_lox22_sp64): Likewise.
35161 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35162 (*tldo_ldub_sp32): Merge into...
35163 (*tldo_ldub_sp64): Likewise.
35164 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35165 (*tldo_ldub1_sp32): Merge into...
35166 (*tldo_ldub1_sp64): Likewise.
35167 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35168 (*tldo_ldub2_sp32): Merge into...
35169 (*tldo_ldub2_sp64): Likewise.
35170 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35171 (*tldo_ldsb1_sp32): Merge into...
35172 (*tldo_ldsb1_sp64): Likewise.
35173 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35174 (*tldo_ldsb2_sp32): Merge into...
35175 (*tldo_ldsb2_sp64): Likewise.
35176 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35177 (*tldo_ldub3_sp64): Use DImode throughout.
35178 (*tldo_ldsb3_sp64): Likewise.
35179 (*tldo_lduh_sp32): Merge into...
35180 (*tldo_lduh_sp64): Likewise.
35181 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35182 (*tldo_lduh1_sp32): Merge into...
35183 (*tldo_lduh1_sp64): Likewise.
35184 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35185 (*tldo_ldsh1_sp32): Merge into...
35186 (*tldo_ldsh1_sp64): Likewise.
35187 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35188 (*tldo_lduh2_sp64): Use DImode throughout.
35189 (*tldo_ldsh2_sp64): Likewise.
35190 (*tldo_lduw_sp32): Merge into...
35191 (*tldo_lduw_sp64): Likewise.
35192 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35193 (*tldo_lduw1_sp64): Use DImode throughout.
35194 (*tldo_ldsw1_sp64): Likewise.
35195 (*tldo_ldx_sp64): Likewise.
35196 (*tldo_stb_sp32): Merge into...
35197 (*tldo_stb_sp64): Likewise.
35198 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35199 (*tldo_sth_sp32): Merge into...
35200 (*tldo_sth_sp64): Likewise.
35201 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35202 (*tldo_stw_sp32): Merge into...
35203 (*tldo_stw_sp64): Likewise.
35204 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35205 (*tldo_stx_sp64): Use DImode throughout.
35207 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35209 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35210 check configure option to set BTI and Return Address Signing.
35211 * configure.ac: Add --enable-standard-branch-protection and
35212 --disable-standard-branch-protection.
35213 * configure: Regenerated.
35214 * doc/install.texi: Document the same.
35216 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35217 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35219 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35220 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35221 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35223 * config/aarch64/aarch64-bti-insert.c: New file.
35224 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35226 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35228 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35229 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35230 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35231 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35233 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35235 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35236 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35237 Disable bti for -mbranch-protection=none.
35238 (aarch64_handle_standard_branch_protection): Enable bti for
35239 -mbranch-protection=standard.
35240 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35241 -mbranch-protection.
35242 (aarch64_bti_enabled): Check if bti is enabled.
35243 * config/aarch64/aarch64.opt: Declare target variable.
35244 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35246 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35248 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35249 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35250 (aarch64_expand_epilogue): Likewise.
35251 (aarch64_output_mi_thunk): Likewise.
35252 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35253 TAILCALL_ADDR_REGS to x16 and x17.
35254 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35256 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35258 * config/aarch64/aarch64-option-extensions.def: Define
35259 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35260 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35261 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35262 (AARCH64_FL_PREDRES): New.
35263 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35264 AARCH64_FL_PREDRES by default.
35265 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35267 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35269 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35271 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35272 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35273 * doc/invoke.texi: Document ARMv8.5-A.
35275 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35277 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35278 (xorsign<mode>3): Likewise.
35280 2019-01-09 Jelinek <jakub@redhat.com>
35282 PR middle-end/88758
35283 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35284 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35286 PR rtl-optimization/88331
35287 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35288 not currently_expanding_to_rtl.
35290 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35292 * doc/invoke.texi (-Os): Remove trailing spaces.
35293 (-finline-functions): Remove reference to -O2.
35295 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35297 PR rtl-optimization/79593
35298 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35300 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35301 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35303 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35306 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35310 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35311 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35313 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35316 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35317 ix86_avx_u128_mode_entry.
35319 2019-01-08 Martin Liska <mliska@suse.cz>
35321 PR tree-optimization/88753
35322 * tree-switch-conversion.c (switch_conversion::build_one_array):
35323 Come up with local variable constructor. Convert first to
35324 type of constructor values.
35326 2019-01-08 Richard Biener <rguenther@suse.de>
35328 PR tree-optimization/86554
35329 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35330 rpo_avail): Move earlier.
35331 (visit_nary_op): When value-numbering to expressions
35332 with different overflow behavior make sure there's an
35333 available expression on the path.
35335 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35337 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35338 aarch64_parse_branch_protection,
35339 struct aarch64_branch_protect_type,
35340 aarch64_handle_no_branch_protection,
35341 aarch64_handle_standard_branch_protection,
35342 aarch64_validate_mbranch_protection,
35343 aarch64_handle_pac_ret_protection,
35344 aarch64_handle_attr_branch_protection,
35345 accepted_branch_protection_string,
35346 aarch64_pac_ret_subtypes,
35347 aarch64_branch_protect_types,
35348 aarch64_handle_pac_ret_leaf): Define.
35349 (aarch64_override_options_after_change_1, aarch64_override_options):
35350 Add check for accepted_branch_protection_string.
35351 (aarch64_option_save): Save accepted_branch_protection_string.
35352 (aarch64_option_restore): Save accepted_branch_protection_string.
35353 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35354 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35355 msign-return-address.
35356 * doc/invoke.texi: Add mbranch-protection.
35358 2019-01-08 Alan Modra <amodra@gmail.com>
35361 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35362 Delete "unknownp" parameter. Adjust callers. Handle
35363 CONST_INT, PLUS, MINUS, and MULT.
35364 (attr_value_aligned): Renamed from or_attr_value.
35365 (min_attr_value): Return INT_MIN for unhandled rtl case..
35366 (min_fn): ..and translate to INT_MAX here.
35367 (write_length_unit_log): Modify to cope without "unknown".
35368 (write_attr_value): Handle IF_THEN_ELSE.
35370 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35372 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35373 optimization for masked stores.
35375 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35377 PR middle-end/88567
35378 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35379 output vector directly to duplicate_and_interleave instead of
35380 going through a temporary. Postpone insertion of ctor_seq to
35381 the end of the loop.
35383 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35386 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35387 unsigned_p. Handle signed and unsigned overflow correction as
35389 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35391 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35393 (add<mode>3_compareV_imm): Make this callable for expanding.
35394 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35395 aarch64_plus_operand for operand 2.
35396 (subv<GPI:mode>_insn): New insn pattern.
35397 (subv<GPI:mode>_imm): Likewise.
35398 (negv<GPI:mode>3): New expand pattern.
35399 (negv<GPI:mode>_insn): New insn pattern.
35400 (negv<GPI:mode>_cmp_only): Likewise.
35401 (cmpv<GPI:mode>_insn): Likewise.
35402 (subvti4): Use register_operand for operand 1. Update call to
35403 aarch64_expand_subvti.
35404 (usubvti4): Likewise.
35405 (negvti3): New expand pattern.
35406 (negdi_carryout): New insn pattern.
35407 (negvdi_carryinV): New insn pattern.
35408 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35409 version the named version.
35410 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35412 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35414 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35416 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35417 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35418 (sub<mode>3_carryinCV): Delete.
35419 (sub<GPI:mode>3_carryinV): New expand pattern.
35420 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35422 2019-01-07 Richard Biener <rguenther@suse.de>
35424 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35425 of tree_operand_hash.
35427 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35429 PR tree-optimization/88598
35430 * tree.h (single_nonzero_element): Declare.
35431 * tree.c (single_nonzero_element): New function.
35432 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35433 if I is the only nonzero element of CST.
35435 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35437 PR tree-optimization/88598
35438 * tree.h (initializer_each_zero_or_onep): Declare.
35439 * tree.c (initializer_each_zero_or_onep): New function.
35440 (signed_or_unsigned_type_for): Handle float types too.
35441 (unsigned_type_for, signed_type_for): Update comments accordingly.
35442 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35443 x & { 0 or -1, 0 or -1, ... }.
35445 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35447 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35448 with x86_64-pc-linux-gnu.
35450 2019-01-07 Tom de Vries <tdevries@suse.de>
35453 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35455 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35458 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35460 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35461 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35462 TARGET_AVX512F as condition.
35465 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35466 const_not_ok_for_debug_p target hook.
35467 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35468 on UNSPEC and subexpressions thereof if all subexpressions of the
35469 UNSPEC are CONSTANT_P.
35471 PR tree-optimization/88676
35472 * tree-ssa-phiopt.c (two_value_replacement): New function.
35473 (tree_ssa_phiopt_worker): Call it.
35476 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35477 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35480 * tree-vect-generic.c: Include insn-config.h and recog.h.
35481 (expand_vector_piecewise): Add defaulted ret_type argument,
35482 if non-NULL, use that in preference to type for the result type.
35483 (expand_vector_parallel): Formatting fix.
35484 (do_vec_conversion, do_vec_narrowing_conversion,
35485 expand_vector_conversion): New functions.
35486 (expand_vector_operations_1): Call expand_vector_conversion
35487 for VEC_CONVERT ifn calls.
35488 * internal-fn.def (VEC_CONVERT): New internal function.
35489 * internal-fn.c (expand_VEC_CONVERT): New function.
35490 * fold-const-call.c (fold_const_vec_convert): New function.
35491 (fold_const_call): Use it for CFN_VEC_CONVERT.
35492 * doc/extend.texi (__builtin_convertvector): Document.
35494 2019-01-07 Tom de Vries <tdevries@suse.de>
35496 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35497 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35498 vector_red_partition, vector_red_sym): New global variables.
35499 (nvptx_option_override): Initialize vector_red_sym.
35500 (nvptx_declare_function_name): Restore red_partition register.
35501 (nvptx_file_end): Emit code to declare the vector reduction variables.
35502 (nvptx_output_red_partition): New function.
35503 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35504 large vector reductions.
35505 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35506 (nvptx_init_builtins): Add VECTOR_ADDR.
35507 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35508 Handle nvptx_expand_shared_addr.
35509 (nvptx_get_shared_red_addr): Add vector argument and handle large
35511 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35513 (nvptx_goacc_reduction_init): Likewise.
35514 (nvptx_goacc_reduction_fini): Likewise.
35515 (nvptx_goacc_reduction_teardown): Likewise.
35516 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35517 init,fini,teardown}.
35518 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35519 (nvptx_set_current_function): Init vector_red_partition.
35520 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35521 (nvptx_red_partition): New insn.
35522 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35524 2019-01-07 Tom de Vries <tdevries@suse.de>
35527 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35530 2019-01-07 Tom de Vries <tdevries@suse.de>
35532 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35533 (nvptx_option_override): Init oacc_bcast_partition.
35534 (nvptx_init_oacc_workers): New function.
35535 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35536 (nvptx_needs_shared_bcast): New function.
35537 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35538 to propagate state.
35539 (nvptx_shared_propagate): Initialize vector bcast partition and
35540 synchronization state.
35541 (nvptx_single): Generalize to enable vectors to use shared-memory
35542 to propagate state.
35543 (nvptx_process_pars): Likewise.
35544 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35545 * config/nvptx/nvptx.h (struct machine_function): Add
35546 bcast_partition and sync_bar members.
35548 2019-01-07 Tom de Vries <tdevries@suse.de>
35550 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35551 (nvptx_apply_dim_limits): New function.
35552 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35555 2019-01-07 Tom de Vries <tdevries@suse.de>
35557 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35558 as late as possible.
35560 2019-01-07 Tom de Vries <tdevries@suse.de>
35562 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35563 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35564 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35565 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35566 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35568 2019-01-07 Tom de Vries <tdevries@suse.de>
35570 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35572 2019-01-07 Tom de Vries <tdevries@suse.de>
35574 * omp-offload.c (oacc_get_min_dim): New function.
35575 * omp-offload.h (oacc_get_min_dim): Declare.
35577 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35580 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35581 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35583 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35587 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35589 * ipa-inline.c (edge_badness): Use inlined_time instead of
35590 inline_summaries->get.
35592 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35594 * opts.c (enable_fdo_optimizations): Enable
35595 version-loops-for-strides, loop-interchange, unrol-and-jam
35596 and tree-loop-distribution.
35597 * invoke.texi: Document newly enabled options.
35599 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35601 * doc/invoke.texi (max-inline-insns-small): New parameters.
35602 * ipa-inline.c (want_early_inline_function_p): simplify.
35603 (want_inline_small_function_p): Fix pasto from previous patch;
35604 use max-inline-insns-small bound.
35605 * params.def (max-inline-insns-small): New param.
35606 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35607 variables correctly.
35609 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35611 * doc/invoke.texi: Document max-inline-insns-size,
35612 uninlined-function-insns, uninlined-function-time,
35613 uninlined-thunk-insns and uninlined-thunk-time.
35614 * params.def: Add max-inline-insns-size,
35615 uninlined-function-insns, uninlined-function-time,
35616 uninlined-thunk-insns and uninlined-thunk-time.
35617 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35619 * ipa-inline.c (can_inline_edge_by_limits_p,
35620 want_inline_small_function_p): Use new parameters.
35622 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35624 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35626 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35628 PR middle-end/82564
35630 * expr.c (expand_assignment): For calls returning VLA structures
35631 if to_rtx is not a MEM, force it into a stack temporary.
35634 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35635 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35636 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35637 subexpressions of both operands.
35638 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35639 subrtxes are CONSTANT_P.
35640 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35641 2018-11-09 changes.
35643 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35645 * params.def (hot-bb-count-ws-permille): Set to 990.
35647 2019-01-04 Martin Sebor <msebor@redhat.com>
35650 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35653 2019-01-04 Martin Sebor <msebor@redhat.com>
35656 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35658 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35660 * gdbinit.in: Turn off pagination for the skip commands, restore
35661 it to previous state afterwards.
35663 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35666 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35667 of GET_MODE (opN) as modes of the libcall arguments.
35669 2019-01-04 Jan Beulich <jbeulich@suse.com>
35671 * config/i386/sse.md
35672 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35673 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35674 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35675 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35676 avx512f_vmcmp<mode>3<round_saeonly_name>,
35677 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35678 avx512f_maskcmp<mode>3,
35679 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35680 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35681 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35682 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35683 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35684 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35685 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35686 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35687 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35688 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35689 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35690 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35691 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35692 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35693 avx512cd_maskb_vec_dup<mode>,
35694 avx512cd_maskw_vec_dup<mode>,
35695 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35696 avx512dq_vmfpclass<mode>,
35697 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35700 2019-01-03 Martin Sebor <msebor@redhat.com>
35702 PR tree-optimization/88659
35703 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35705 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35707 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35708 unaligned vsx and avoid lxvd2x/stxvd2x.
35709 (gen_lvx_v4si_move): New function.
35711 2019-01-03 Tom de Vries <tdevries@suse.de>
35713 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35714 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35716 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35718 2019-01-03 Tom de Vries <tdevries@suse.de>
35720 * config/nvptx/nvptx.c (struct offload_attrs): New.
35721 (populate_offload_attrs): New function. Factor mask extraction out of
35722 nvptx_reorg. Add extraction of dimensions.
35723 (nvptx_reorg): Use populate_offload_attrs.
35725 2019-01-03 Tom de Vries <tdevries@suse.de>
35727 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35728 cases for oacc_min_dims_p and routine_p. Add asserts for
35729 oacc_default_dims_p and offload_region_p.
35731 2019-01-03 Tom de Vries <tdevries@suse.de>
35733 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35734 factored out of ...
35735 (nvptx_goacc_validate_dims): ... here.
35737 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35739 PR tree-optimization/85574
35740 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35742 (struct ssa_equip_hash_traits): Declare.
35743 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35745 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35748 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35749 change it to qualified_type.
35751 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35753 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35754 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35756 2019-01-02 Martin Sebor <msebor@redhat.com>
35757 Jeff Law <law@redhat.com>
35759 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35760 (get_range_strlen_tree): Update appropriately.
35762 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35764 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35765 rather than set_range_info.
35766 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35767 maybe_set_strlen_range. Handle potentially boundary crossing
35768 cases more conservatively.
35769 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35770 Call set_strlen_range.
35771 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35773 PR middle-end/88663
35774 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35775 need the flexp argument.
35776 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35777 from calls to get_range_strlen. Update comments. Just update
35778 VAL for an unterminated const char array and let the reset of the
35779 code handle it normally. No longer try to set *flexp. Adjust
35781 (get_range_strlen): Update for the new get_range_strlen API.
35782 (get_maxval_strlen): Similarly.
35783 (gimple_fold_builtin_strlen): Handle update meaning of return value
35784 from get_range_strlen.
35785 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35786 get_range_strlen API.
35788 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35791 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35792 false at WPA time when body was removed.
35794 2019-01-02 Martin Liska <mliska@suse.cz>
35796 PR tree-optimization/88650
35797 * predict.c (set_even_probabilities): Calculate probability
35798 remainer only when really used.
35800 2019-01-02 Richard Biener <rguenther@suse.de>
35802 PR middle-end/88651
35803 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35804 widest_ints when mangling max_stmt_execution results.
35806 2019-01-02 Richard Biener <rguenther@suse.de>
35808 PR tree-optimization/88621
35809 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35810 bitfields when canoncalizing.
35812 2019-01-02 Richard Biener <rguenther@suse.de>
35815 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35816 cost of cheap SSE instruction.
35818 2019-01-02 Richard Biener <rguenther@suse.de>
35821 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35822 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35824 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35825 set after UIDs before splitting them.
35827 2019-01-01 Martin Sebor <msebor@redhat.com>
35828 Jeff Law <law@redhat.com>
35830 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35831 length is optimistic. If it is, then arrange to compute the
35832 conservative length as well.
35834 * gimple-fold.h (get_range_strlen): Update prototype.
35835 * builtins.c (check_access): Update call to get_range_strlen to use
35836 c_strlen_data pointer. Change various variable accesses to instead
35837 pull data from the c_strlen_data structure.
35838 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35839 * calls.c (maybe_warn_nonstring_arg): Likewise.
35840 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35841 minimum length if maximum lengh is unknown.
35842 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35843 that used c_strlen, it's no longer needed. Restructure slightly.
35844 (format_string): Set unlikely range appropriately.
35845 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35847 (get_range_strlen): Accept c_strlen_data pointer for external
35848 call sites as well. Pass through to call to internal get_range_strlen.
35849 Adjust minlen, maxlen and maxbound as needed.
35850 (get_maxval_strlen): Update comments.
35851 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35852 to use c_strlen_data pointer. Change variable accesses to instead
35853 use c_strlen_data data members.
35855 * gimple-fold.c (get_range_strlen): Update prototype.
35856 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35857 local variables. Use pdata to return information to caller.
35858 Update calls to get_range_strlen. Update pdata->maxbound.
35859 (get_range_strlen -- static version): Similarly.
35860 (get_range_strlen -- extern version): Update for internal
35861 get_range_strlen API change. Convert to external data format.
35862 (get_maxval_strlen): Similarly.
35864 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35866 * coverage.c (get_coverage_counts): Use current_function_decl.
35867 * profile.c (read_thunk_profile): New function.
35868 (branch_prob): Add THUNK parameter.
35869 * tree-profile.c (tree_profiling): Handle thunks.
35870 * value-prof.c (init_node_map): Handle thunks.
35871 * value-prof.h (branch_prob): Upate prototype.
35872 (read_thunk_profile): Declare.
35874 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35876 Update copyright years.
35878 * gcc.c (process_command): Update copyright notice dates.
35879 * gcov-dump.c (print_version): Ditto.
35880 * gcov.c (print_version): Ditto.
35881 * gcov-tool.c (print_version): Ditto.
35882 * gengtype.c (create_file): Ditto.
35883 * doc/cpp.texi: Bump @copying's copyright year.
35884 * doc/cppinternals.texi: Ditto.
35885 * doc/gcc.texi: Ditto.
35886 * doc/gccint.texi: Ditto.
35887 * doc/gcov.texi: Ditto.
35888 * doc/install.texi: Ditto.
35889 * doc/invoke.texi: Ditto.
35891 Copyright (C) 2019 Free Software Foundation, Inc.
35893 Copying and distribution of this file, with or without modification,
35894 are permitted in any medium without royalty provided the copyright
35895 notice and this notice are preserved.